/*TEAM*/
@font-face {
  font-family: 'gabriela';
  src: url('https://uploads.igem.org/teams/4998/wiki/wiki-photos/fonts/thessaloniki-fontsfree-net-gabriela3.woff');
}


h1,
h2,
h3,
 h4,
 h5,
h6 {
  font-family: 'gabriela';
} 
     

.team-box{
  box-sizing: border-box;
  /*border: 5px solid #33472B; Replace with your desired border color */
  box-shadow: 0px 1px 15px #445F3A;
  padding: 20px; /* Adjust as needed */
  background-color: rgba(150, 190, 120, 0.2);
  border-radius: 15px;
}
  
  .ourteam {
    width: 75%
  }
  
  .team .member {
    width: 100%;
    height: 100%;
    text-align: center;
    background:  #fff;
    border-radius: 10px;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0px 1px 15px #445F3A;
  }
  
  .team .back-member{
    width: 100%;
    height: 100%;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .team .back-member p {
    padding-top: 15px;
    font-size: 14px;
    font-style: italic;
    color: black;
  }
  
  
  .pis-container,
  .member-container {
    perspective: 1000px;
    width: 100%;
    height: 550px; /* Default height */
  }
  
  /* For extra-large screens (xl) */
  @media (min-width: 1200px) {
    .member-container,.pis-container {
      height: 530px;
    }
  }
  
  /* For large screens (lg) */
  @media (min-width: 992px) and (max-width: 1199px) {
    .member-container, .pis-container {
      height: 550px;
    }
  }
  
  /* For medium screens (md) */
  @media (min-width: 768px) and (max-width: 991px) {
    .member-container, .pis-container {
      height: 605px;
    }
  }
  
  /* For small screens (sm) */
  @media (max-width: 767px) {
    .member-container, .pis-container {
      height: 650px;
    }
  }
  
  
  
  
  
  /*ROTATION*/
  
  .member-container .member,
  .member-container .back-member {
    overflow: hidden;
    box-shadow: 0px 1px 15px #445F3A;
    position: absolute;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  }
  
  .member-container:hover .member,
  .member-container:hover .back-member{
    box-shadow: 0px 1px 15px #283822;
  }
  
  
  .member-container .member {
    transform: rotateY(0deg);
  }
  
  .member-container .back-member {
    transform: rotateY(-180deg); /* Flipped state */
  }
  
  .member-container.flipped .member {
    transform: rotateY(180deg); /* Flipped state */
  }
  
  .member-container.flipped .back-member {
    transform: rotateY(0deg); /* Initial state of back content */
  }
  
  
  .team .member img {
    border-radius: 10px;
    overflow: hidden;
  }
  
  /* Adjust the max-height for different screen sizes as needed */
  .pis-container .member img,
  .member-container .member img {
    max-height: 250px; /* Set your desired max-height here */
    max-width: 100%;
  }
  
  /* Media queries for different screen sizes */
  @media (max-width: 992px) {
    .pis-container .member img,
    .member-container .member img{
      max-height: 300px; /* Adjust for medium screens */
    }
  }
  
  @media (max-width: 768px) {
    .pis-container .member img,
    .member-container .member img {
      max-height: 400px; /* Adjust for small screens */
    }
  }
  
  
  .team .member .member-content {
    padding: 0 20px 30px 20px;
  }
  
  .team .member h4 {
    color:#283822;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 2px;
    font-size: 20px;
  }
  
  .team .member span {
    font-style: italic;
    display: block;
    font-size: 14px;
    color: #6c757d;
  }
  
  .team .member p {
    padding-top: 10px;
    font-size: 14px;
    font-style: italic;
    color: black;
  }
  
  .team .member .social {
    margin-top: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  
  
  .team .member .social a {
    color:#33472B;
    transition: 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #33472B;
    background-color: rgba(167, 195, 157, 0.2);
  }
  
  .team .member .social a:hover {
    color: #91B484;
    border-color: #91B484;
    background-color: #fff;
  }
  
  
  
  
  .polaroid-container {
    max-width: 500px; 
    width: 100%;
    border-width: 10px 10px 50px 10px; 
    border-style: solid;
    border-color: white;
    background-color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    padding: 10px;
    overflow: hidden;
    transition: 0,3s;
  }
  
  .polaroid-container:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
  }
  
  .polaroid-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Fit the image inside the container without cropping */
  }
  
 
  
  .bereal-container{
   border: 2px solid #547648;
   box-shadow: 5px 5px 10px #547648; 
   background-color: #d2e3b2;
   border-radius: 15px;
   padding: 10px;
   color: #33472B;
  }

