/* General Page Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
header {
    background-color: #00274C; /* Michigan Blue */
    color: white;
    padding: 10px;
    text-align: center;
}

header h1 {
    color: white;
}

/* Navigation Bar */
nav {
    background-color: #00274C; /* Ensure nav is fully blue */
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
    position: relative;
}

/* Navigation Links */
nav ul li a {
    color: white !important;  /* Ensure white text */
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}

nav ul li a:hover {
    background-color: #0056b3; /* Lighter blue on hover */
}

/* Dropdown Styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #00274C; /* Same blue background */
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white !important;  /* Ensure white text in dropdown */
    padding: 12px 16px;
    display: block;
}

.dropdown-content a:hover {
    background-color: #0056b3;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
main {
    padding: 20px;
    text-align: center;
    max-width: 95%;
    margin: auto;
    flex: 1;
}

/* Footer Styling */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: auto;
}
/* Make the nav bar flexible */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* Hide menu toggle button by default */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Make nav bar responsive */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show toggle button */
    }

    #menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #00274C;
        position: absolute;
        top: 50px;
        left: 0;
        z-index: 1000;
        padding: 10px;
    }

    #menu.show {
        display: flex;
    }

    nav ul {
        display: block;
        text-align: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    /* Ensure dropdown menu is tap-friendly */
    .dropdown-content {
        position: relative;
        display: none;
        background: #00274C;
        width: 100%;
        box-shadow: none;
    }

    .dropdown.show .dropdown-content {
        display: block;
    }
}

/* Ensure "Lab Members" text is white and non-clickable */
.dropdown-toggle {
    color: white !important; /* Forces white text */
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    cursor: default; /* Prevents it from acting like a clickable link */
}

/* Keep the dropdown content hidden by default */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #00274C;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Ensure dropdown links are white */
.dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
}

/* Hover effect for dropdown items */
.dropdown-content a:hover {
    background-color: #0056b3;
}

/* Display dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Research Vision */
.research-vision {
    text-align: center;
    margin-bottom: 40px;
}

.research-vision h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Lab Photos Section */
.research-photos {
    text-align: center;
    margin-bottom: 40px;
}

.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.photo-gallery img {
    width: 30%;
    max-width: 250px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Research Themes Section */
.research-themes {
    text-align: center;
    margin-bottom: 40px;
}

.research-themes h2 {
    margin-bottom: 20px;
}

/* Theme Layout */
.theme {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.theme img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.theme-text {
    text-align: left;
}

.theme h3 {
    margin-bottom: 5px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .photo-gallery img {
        width: 45%;
    }

    .theme {
        flex-direction: column;
        text-align: center;
    }

    .theme img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
