body {
  background-color: #0a0a0a;
}

.Title {
  font-size: 4rem;
}

.team {
  max-width: 700px;
  height: 700px;
  border-radius: 50%;
  object-fit: cover;
  border-radius: 700px;
}

.team-photo-container {
  display: flex;
  justify-content: center;
}

.members, .ia {
  display: grid;
  padding: 50px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
  grid-template-rows: (minmax(100%, auto));
  grid-gap: 60px;
  justify-content: center;
  text-align: center;
}

/* GENERAL FORMATTING FOR ALL FLIP CARDS */
.flip-card {
  cursor: pointer;
  align-self: center !important;
  width: 300px;
  height: 100% !important;
  justify-content: center;
  position: relative !important;
}

.flip-card-inner {
  transition: transform 0.8s;
  transform-style: preserve-3d;
  align-content: center;
  width: 300px;
  height: 100% !important;
  justify-items: center;
  display: flex;
  flex-direction: column;
}

.flip-card.clicked .flip-card-inner {
  transform: rotateY(180deg);
}

.team-photos-front,
.bio-back,
.meyer,
.instructor {
  border-radius: 20px;
  padding: 0px;
  color: black;
  align-items: center;
  transition: transform 500ms ease-out, filter 0.3s ease, background-color 0.3s ease;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  height: 100% !important;  /* important fix */
  
  
  
  box-shadow: 0px 0px 10px 0px rgba(255, 150, 112, 0.65);
  backdrop-filter: blur(20px);
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}

.bio-back {
  transform: rotateY(180deg);
  transition: transform 500ms ease, filter 0.3s ease;
  height: 91%; /*important fix*/
  max-width: 300px;
  text-align: start !important;
  position: absolute !important;
  padding: 20px;
}

.members .team-photos-front img {
  filter: saturation(105%);
  filter: contrast(110%);
} 

.members .bio-back {
  box-shadow: 0px 0px 10px 0px rgba(255, 150, 112, 0.65);
  padding: 0px !important;
}

.members .bio-back img {
  margin: 0px;
  height: 100% !important;
  filter: brightness(0.92);
  
}

.meyer img, .instructor img {
  border-radius: 50px;
  padding-top: 10px;
  width: 200px;
  height: 300px;
  object-fit: cover;
  display: inline-block;
  filter: brightness(1) !important;
  margin-top: 20px;
}

/* Text formatting */
.TM {
  display: flex;
  align-items: center;
  align-content: center;
  justify-self: center;
  margin-left: 10px;
}

p {
  padding: 2px;
  line-height: 1.3;
}

h1 {
  display: flex;
  justify-content: center;
  margin-top: 100px;
  color: #dc724b;
  font-size: 4rem;
}

/* GENERAL FLIP-CARD ANIMATIONS */
.team-photos-front:hover, .meyer:hover, .instructor:hover {
  transform: scale(1.1);
  
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Team Members Formatting & Animations */

.members .team-photos-front:hover {
  filter: brightness(1);
}

.members .bio-back:hover {
  filter: brightness(1.2);
}

/* Meyer + Advisor formatting & animation */
.PI {
  margin: 0 auto;
  max-width: 100% !important;
  display: flex;
  text-align: center;
  justify-content: center;
} 

.meyer,
.instructor {
  background: linear-gradient(
    140deg, 
    rgba(255, 94, 35, 0.75) 29.58%, 
    rgba(255, 159, 124, 0.65) 78.9%);
  border: 1.5px solid rgba(251, 112, 60, 0.5);
}

.instructor h3 {
  margin-top: 15px;
}

.meyer:hover, .instructor:hover {
  background-color: #fa946e;
}

.PI .bio-back, .ia .bio-back {
  background: linear-gradient(
    127deg,
    rgba(255, 94, 35, 0.75) 21.06%,
    rgba(255, 138, 95, 0.65) 88.92%
  );
  transition: background-color 400ms ease;
}

.PI .bio-back:hover, .ia .bio-back:hover {
  background-color: #fa946e;  
}

.long-ia-role {
  text-align: start;
}