@font-face {
  font-family: 'Press Start 2P';
  src: url('https://static.igem.wiki/teams/5406/fonts/press-start-2p/pressstart2p-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
  
  :root {
    --color-secondary-blue: #046565;
  }
  
  h1 {
    background-color: var(--color-secondary-blue);
    color: white;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    font-size: 2em;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px;
    width: 80%;
    margin: 0 auto;
    background-color: transparent;
  }
  
  .team-grid-bottom {
    display: flex;
    justify-content: center;
    gap: 0px;
    padding: 10px;
    width: 61%;
    margin: 0 auto;
    background-color: transparent;
  }
  
  .team-card {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    max-width: 250px;
    margin: 0 auto;
    cursor: pointer;
  }
  
  /* Media queries for responsiveness */
  @media (max-width: 1400px) {
    .team-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid-bottom {
      flex-wrap: wrap;
    }
  }
  
  @media (max-width: 1000px) {
    .team-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 700px) {
    .team-grid {
      grid-template-columns: 1fr;
    }
    
    .team-grid-bottom {
      flex-direction: column;
      align-items: center;
    }
  }
  
  .team-card {
    perspective: 1000px;
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    max-width: 250px;
    margin: 0 auto;
    cursor: pointer;
  }
  
  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.45s;
    transform-style: preserve-3d;
  }
  
  .team-card:hover .card-inner {
    transform: rotateY(180deg);
  }
  
  .team-card:hover .card-back {
    animation: shakeCard 0.45s 0.45s infinite;
  }
  
  @keyframes shakeCard {
    0%, 100% { transform: rotateY(180deg) translateX(0); }
    25% { transform: rotateY(180deg) translateX(-5px); }
    75% { transform: rotateY(180deg) translateX(5px); }
  }
  
  .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
  }
  
  .card-front {
    background-color: var(--color-secondary-blue);
    color: white;
  }
  
  .card-front h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.8em;
    text-transform: uppercase;
  }
  
  .card-front img {
    width: 90%;
    height: 70%;
    object-fit: cover;
    object-position: center;
  }
  
  .card-back {
    background-color: var(--color-secondary-blue);
    color: white;
    transform: rotateY(180deg);
  }
  
  .card-back p {
    font-size: 0.8em;
    line-height: 1.5;
    padding: 15px;
  }
  
  @media (max-width: 1400px) {
    .team-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 1000px) {
    .team-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 700px) {
    .team-grid {
      grid-template-columns: 1fr;
    }
  }

  