/* Ensure html and body take up the full height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Ensure main content stretches to fill the remaining space */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #66bb6a; /* Lighter green */
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    position: relative;
}

.header nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1em;
}

.header nav a {
    color: #fff;
    text-decoration: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

.responsive-logo {
    width: 159px;
    height: 41px;
}

/* Slider-specific styles */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.introduction {
    padding: 2em;
    text-align: center;
    background-color: #e8f5e9;
}

.team-section {
    padding: 2em;
    text-align: center;
    background: linear-gradient(to bottom, #f1f8e9, #1b5e20); /* Gradient from team section color to footer color */
    color: #fff;
}

.principals, .members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.principal {
    width: 40%;
    margin: 1%;
}

.members .researcher {
    width: 30%;
    margin: 1%;
}

.researcher img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 2px solid #66bb6a; /* Add border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.researcher img.visible {
    opacity: 1;
    transform: translateY(0);
}

.divider {
    height: 5px;
    background-color: #0d3b12; /* Darker green divider */
    margin-top: -5px; /* To ensure the divider sits on the gradient */
    border-top: 2px solid #0a2e0d; /* Even darker green border */
}

.footer {
    background-color: #1b5e20; /* Darker green */
    color: #fff;
    padding: 1em;
    text-align: center;
}

.footer-links {
    margin-bottom: 1em;
}

.footer-links a {
    color: #fff;
    margin: 0 0.5em;
    text-decoration: none;
}

.footer-contact p {
    margin: 0.5em 0;
}

.top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #66bb6a;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}


/* Specific banner styles */
.abstract-banner, .projects-banner, .playback-banner {
    position: relative;
    overflow: hidden;
    height: 400px; /* Set maximum height to 400px */
}

.abstract-banner img, .projects-banner img, .playback-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.abstract-banner::after, .projects-banner::after, .playback-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Content styles */
.abstract-content, .projects-content, .playback-content {
    padding: 2em;
    text-align:left;
    font-size: larger;
    background-color: #e8f5e9;
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
    }
    .menu-icon {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #66bb6a;
        z-index: 1000;
    }
    .nav-links.active {
        display: flex;
    }
    .header nav a {
        margin: 0.5em 0;
    }
    .principal, .members .researcher {
        width: 100%;
        margin: 1% 0;
    }

    .abstract-banner {
        height: 200px; /* Set maximum height to 200px */
    }    
}
