:root {
    font-family: Arial, sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 0.5px;
    line-height: 1.6;
    background-color: #ffffff; 
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #0f3f4e; 
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
}

button {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.logo-left {
    position: absolute;
    left: 20px;
    top: 35px;
    max-width: 230px;
    display: flex;
}

.nav-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10; 
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: background-color 0.3s;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: transform 0.3s, top 0.3s, bottom 0.3s;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

nav {
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav-list li a {
    color: #fff; 
    text-decoration: none;
}

section {
    padding: 2rem;
    margin: 1rem;
    margin-bottom: 1%;
    border-bottom: 1px solid #ccc;
    background-color: #f4f4f4;
    flex: 1;
}

.credits-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 5%;
    padding: 0 10px;
}

.researchers, .developers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.researcher, .developer {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-basis: calc(50% - 15px); 
    max-width: 400px;
    text-align: center;
}

.developers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.developer {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-basis: calc(50% - 15px); 
    max-width: 400px;
    text-align: center;
}

.image-container {
    background: #add8e6; 
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100px;
    border-radius: 50%;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media (max-width: 768px) {
    .researcher, .developer {
        flex-direction: column;
        max-width: 100%;
        text-align: center;
    }

    .image-container img {
        width: 80px;
    }
}

@media (max-width: 550px) {
    .researcher, .developer {
        flex-direction: column;
        max-width: 100%;
        text-align: center;
    }

    .image-container img {
        width: 60px;
    }

    .credits-container {
        padding: 0 5px;
    }

    .info p {
        font-size: 0.9rem;
    }
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.content {
    display: none; 
}

.collapsible.active + .content {
    display: block; 
}

.card-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
}

.card {
    width: 100%;
    max-width: 300px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: auto;
}

.card-body {
    padding: 15px;
    text-align: center;
}

.card-title {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}
@media (min-width: 768px) {
    .card-container {
        flex-direction: row; 
    }

    .card {
        width: calc(100% / 5 - 20px); 
    }
}

@media (max-width: 767px) {
    .card-container {
        flex-direction: column;
    }

    .card {
        width: 100%; 
    }

    .researcher, .developer {
        flex-basis: 100;
    }
}

.video-container {
    max-width: 600px; 
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.inquiry-container {
    text-align: center;
    margin-top: 20px;
}

.inquiry {
    margin-top: 20px;
    background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
}

.inquiry button {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.hierarchy {
    max-width: 100%; 
    max-height: 250px;
    display: block;
    margin: 0 auto; 
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #003366; 
    color: #fff;
    position: relative;
    width: 100%;
    bottom: 0;
    height: 60px;
}


@media (max-width: 1368px) {
    .logo-left {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        max-width: 230px;
    }
    

    .nav-toggle {
        display: block;
    }
    
    nav {
        display: none;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #0f3f4e; 
        position: absolute;
        top: 70px; 
        right: 0;
        width: 100%;
    }

    .researcher, .developer {
        max-width: 75%;
    }

    footer {
        padding: 0.5rem 0;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 550px) {
    .logo-left {
        display: block; 
        margin: 0; 
        max-width: 100px; 
        position: static; 
    }

    #footer {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    #footer p {
        margin: 0; 
    }

    .nav-toggle {
        display: block;
    }
    
    nav {
        display: none;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #0f3f4e; 
        position: absolute;
        top: 70px; 
        right: 0;
        width: 100%;
    }

    .nav-list {
        font-size: smaller;
    }

    .researcher, .developer {
        max-width: 50%;
    }

    footer {
        padding: 0.3rem 0;
        height: 30px;
        font-size: 0.8rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-in {
    animation: fadeIn 1s;
}

.fade-out {
    animation: fadeOut 1s;
}