/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Start slightly below */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End at the original position */
    }
}
.header{
  background: linear-gradient(to top, #3b709f97, #3b709f97), url("https://static.igem.wiki/teams/5311/header-videos/team.webp") no-repeat center;
  background-size: cover;
}

.instructors,
.team {
    position: relative;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0px;
    margin-top: 2em;
  }


.team-member {
    margin-bottom: 90px;
    position: relative;
    margin-left: 1em;
    margin-right: 1em;
    opacity: 0; /* Start with the element hidden */
}

.team .team-member {
    width: 40%;
}

.instructors .team-member {
    width: 25%;
}

.team-member.visible {
    opacity: 1; /* Make the element visible */
    transform: translateY(0); /* Move to the original position */
    animation: fadeInUp 1.5s ease-in-out forwards; /* Apply the fade-in-up animation */
}
  
.team-member .pic {
    overflow: hidden;
    display: inline-block;
    margin:0px;
    text-align: center;
    font-size: 5px;
    line-height: 18px;
    padding: 0px;
    display: inline-block;
    position: relative;
    align-content: center;
  }

.team-member .pic img {
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
  }
  
.team-member .member-info {
    position: absolute;
    bottom: -70px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 10px 15px;
    color: #15222b;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px;
  }
  
  .team-member h4 {
    font-weight: 700;
    margin-bottom: 10px !important;
    font-size: 16px;
    color: #15222b;
    position: relative;
    padding-bottom: 10px;
  }
  
  .team-member h4::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 1px;
    background: black;
    bottom: 0;
    left: 0;
  }
  
  .team-member span {
    font-style: italic;
    display: block;
    font-size: 13px;
    line-height: 1.5;
  
  }
  
  .team-member .social {
    position: absolute;
    right: 15px;
    bottom: 15px;
  }
  
  .social img {
    height: 30px;
    width: auto;
  }
  
.team-member .member-info p{
    font-size: 12px;

  }
  


  
.overlay { /* Propiedades de la transparencia */
    background-color: #aacbf4;
    top: 50%; /* Centrar verticalmente */
    left: 50%; /* Centrar horizontalmente */
    transform: translate(-50%, -50%);
    opacity: 0; /* esta condicion mantiene el texto oculto */
    position: absolute;
    padding: 20px; /* espacio entre texto y bordes */
    transition: opacity .5s;
    text-align: justify; /* texto justificado */
    font-size: 250%; /* tamaño de letra */
    color:#ffffff; /* color de texto */
    width: 100%; /* ancho */
    height: auto; /* alto */
    /* centrar verticalmente el contenido */
    align-content: center;
  }
  
.pic:hover .overlay { /* Efecto al pasar el mouse */
    opacity: 0.95;
    transition: opacity .5s;
  }

@media (max-width: 1000px) {
    .team .team-member {
        width: 65%;
    }
    .instructors .team-member {
        width: 65%;
    }
}


.Linkedin {
    width: 30px;  /* Ajusta el ancho del ícono */
    height: 30px; /* Ajusta la altura del ícono */
    background-image: url('LinkedIn.svg'); /* Ruta del archivo SVG */
    background-size: contain; /* Asegura que el ícono se ajuste al tamaño */
    background-repeat: no-repeat;
    background-position: center;
  }
.instructors .team-member .social {
    position: absolute;
    top: 15px; /* Adjust as needed */
    right: 15px; /* Adjust as needed */
    z-index: 1; /* Ensure it appears above other elements */
}


/* Responsive Adjustments */
@media (max-width: 1000px) {
  .team .team-member {
      width: 65%;
  }
  .instructors .team-member {
      width: 40%;
  }
}

@media (max-width: 768px) {
  .team .team-member {
      width: 80%; /* More space for smaller screens */
  }
  .instructors .team-member {
      width: 80%;
  }

  .team-member h4 {
      font-size: 14px; /* Slightly smaller headings */
  }
  .team-member .member-info p{
    font-size: 14px;

  }

  .team-member span {
      font-size: 12px; /* Adjust role font size */
  }

  .team-member .member-info {
      padding: 8px 10px; /* Slightly reduced padding */
      bottom: -50px;
  }
}

@media (max-width: 630px) {
  .team-member {
      width: 100%; /* Full width for mobile devices */
  }

  .team-member .pic img {
      border-radius: 5px; /* Smaller border-radius for smaller screens */
  }

  .team-member .member-info {
      bottom: -40px;
      padding: 5px 8px; /* Compact padding */
  }

  .team-member h4 {
      font-size: 12px; /* Smaller font for mobile */
  }
  .team-member .member-info p{
    font-size: 11px;

  }

  .team-member span {
      font-size: 11px;
  }

  .social img {
      height: 20px; /* Smaller icons on mobile */
  }

  .overlay {
      font-size: 8px;
      line-height: 1.3;
  }
}

.Linkedin {
  width: 50px;  
  height: 50px; 
  background-image: url('LinkedIn.svg'); 
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
}

.image-center{
  height:400px;
  padding-right:10px;
  text-align: center;
}

.image-center img{
  object-fit: contain;
    width: 100%;
    height: 100%;
}
.image-center-footer {
  text-align: center;
  font-size: 0.9em; /* Smaller font for footer */
  color: #555; /* Grey color for footer */
  margin-top: 8px;
  font-style:italic;
}