/* team page */
#team-body {
  background-color: #f8ebdd;
}

#team-container {
  max-width: 1300px;
}

/* member cards */
.flip-card {
  background-color: transparent;
  width: 300px !important;
  aspect-ratio: 0.67;
  perspective: 1000px; /* 3d effect */
  border-radius: 15px !important;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 15px !important;
}

@media (hover: hover) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.flip-card-front {
  color: black;
  border-radius: 15px !important;
}

.flip-card-back {
  color: white;
  transform: rotateY(180deg);
  border-radius: 15px !important;
}

/* set the inner card to be the same size as the outer card */
.card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: center;
  background-color: transparent;
  border-radius: 15px;
}

.card-img-top {
  padding: 7%;
  width: 100%;
  max-height: 90%;
  object-fit: cover;
}

.card-title {
  margin-top: 0.5em;
  padding: 3.5% 10.5% 3.5% 7%;
  border-top-right-radius: 2em;
  border-bottom-right-radius: 2em;
}

.card-body {
  border-radius: 15px;
  margin: 0.5em;
  > p {
    font-size: 1.1rem;
  }
}
