#bg-team {
    display: flex;
    flex-direction: column;
    background-color: rgb(177, 184, 169);
    height: fit-content;
    width: auto;

}


/* Rolling Text title */

.caption-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
}

.caption {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 60px;
    color: #fff;
    text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25);
}

.rolling-text {
    height: 60px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px; 
}

.text-item {
    font-size: 60px;
    color: #fff;
    text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25);
    position: absolute;
    width: 100%;
    text-align: center;
    animation: roll 20s infinite;
    opacity: 0;
}

.text-item:nth-child(1) { animation-delay: 0s; }
.text-item:nth-child(2) { animation-delay: 4s; }
.text-item:nth-child(3) { animation-delay: 8s; }
.text-item:nth-child(4) { animation-delay: 12s; }
.text-item:nth-child(5) { animation-delay: 16s; }

@keyframes roll {
    0% { transform: translateY(100%); opacity: 0; }
    10%, 20% { transform: translateY(0); opacity: 1; }
    30% { transform: translateY(-100%); opacity: 0; }
    40%, 100% { transform: translateY(-100%); opacity: 0; }
}

/* Exec Track */

.bod-container {
    height: 100vh;
    width: 100vw;
    margin: 0rem;
    overflow: hidden;
    z-index: 10;
}

.bod-container-s {
    height: 80vh;
    width: 100vw;
    margin: 0rem;
    overflow: hidden;
    z-index: 10;
}

#first-panel {
    background-image: url(https://static.igem.wiki/teams/5103/documents/team/ssc-atrium.jpg);
    background-position: center;
    background-size: cover;
}


#image-track > .image {
    width: 40vmin;
    height: 56vmin;
    object-fit: cover;
    object-position:  center;
}

#image-track {
    display: flex;
    gap: 4vmin;
    position: relative;
    left: 50%;
    top: 10%;
    transform: translate(-60%, 0%);
    user-select: none;
    transition: transfom 0.3 ease;
}

.image-container {
    position: relative;
}

.image {
    width: 40vmin;
    height: 56vmin;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.image-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px black;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image {
    transform: scale(1.05);
}

.image-container:hover .image-name {
    opacity: 1;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }

    .modal-image-container {
        flex: 0 0 200px;
        max-width: 100%;
        height: 200px;
    }
}

/* Team sections */

.team-section {
    margin: 50px 0;
    padding: 40px 0px;
    border-radius: 10px;
    color: white;
}

/* .team-title {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 3em;
    margin-bottom: 50px;
    text-align: left;
    margin-left: 5%;
    color: white;
} */

.branch {
    width: 70vmin;
    object-fit: scale-down;
    object-position: center;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto; /* Centering the grid */
    max-width: 1600px; /* Limit the width of the grid */
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
    height: 250px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.team-member img {
    width: 100%;
    height: 150px;
}

.team-member:hover {
    transform: scale(1.05);
}

.member-info {
    padding: 10px;
}

.member-info h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
}

.member-info p {
    margin: 0;
    font-size: 1em;
    color: gray;
}