@charset "utf-8";

body {
  margin: 40px 0 0;
  padding: 0;
  font-family: "montserrat", sans-serif;
  background-color: var(--body-color);
}

.main-div {
  background: #f1f1f1;
  text-align: center;
}

.main-div h1 {
  display: inline-block;
  text-transform: uppercase;
  border-bottom: 4px solid var(--hover-color);
  font-size: 20px;
  padding-bottom: 10px;
  margin-top: 40px;
}

.sub-div {
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  padding: 20px;
}

.mini-div {
  display: inline-block;
  width: 30%;
  margin: 0 -2px;
  padding: 20px;
  box-sizing: border-box;
  cursor: pointer;
  transition: 0.4s;
  text-align: justify;
}

.mini-div:hover {
  background: #ddd;
}

.mini-div h2 {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.mini-div p {
  color: gray;
  font-size: 15px;
  font-weight: 500;
}

@media screen and (max-width: 800px) {
  .mini-div {
    width: 50%;
  }
}

@media screen and (max-width: 500px) {
  .mini-div {
    width: 100%;
  }
}

.map-heading {
  display: inline-block;
  text-transform: uppercase;
  border-bottom: 4px solid var(--hover-color);
  font-size: 20px;
}

.box-heading {
  display: inline-block;
  text-transform: uppercase;
  border-bottom: 4px solid #3498db;
  font-size: 20px;
}

.main-team {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-areas:
    'h h h h h h'
    'pic1 pic1 pic2 pic2 pic3 pic3';
  grid-gap: 10px;
}

.main-team h1 {
  grid-area: h;
  margin: 20px auto;
  display: inline-block;
  text-transform: uppercase;
  border-bottom: 4px solid var(--hover-color);
  font-size: 20px;
}

.main-team div {
  position: relative;
}

.main-team div:hover h5 {
  display: block;
  animation: 1s top-to-down linear;
}

.main-team div h5 {
  position: absolute;
  top: 35%;
  left: 50%;
  z-index: 3;
  display: none;
  font-size: 15px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

@keyframes top-to-down {
  from {
    top: 0%;
    font-size: 5px;

  }

  to {
    top: 35%;
    font-size: 15px;
  }
}

.pic1,
.pic2,
.pic3 {
  margin: auto;
  border-radius: 50%;
  width: 128px;
  height: 128px;
  overflow: hidden;
}

.pic1 img:hover,
.pic2 img:hover,
.pic3 img:hover {
  opacity: 0.4;
}

.pic1 {
  grid-area: pic1;

}

.pic2 {
  grid-area: pic2;

}

.pic3 {
  grid-area: pic3;
}