html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* Ensures padding and borders are included in element dimensions */
}

/* Main body setup */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #D3D3D3;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Hamburger Button */
.hamburger {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 9999;
    background: none;
    border: none;
    cursor: pointer;
    color: #D4AF37;
    font-size: 24px;
    padding: 10px;
}

/* Hamburger lines */
.hamburger div {
    width: 30px;
    height: 4px;
    background-color: #D4AF37;
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 4px 0;
}

/* Hamburger active state */
.hamburger.active div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    z-index: 500;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.dropdown.show {
    transform: translateY(0);
}

/* Make 'Home' look distinct */
.dropdown a[href="/"] {
    color: white;
    font-weight: bold;
    padding: 15px 20px;
    width: 90%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

/* Make 'Headwords' Look like others */
.dropdown a[href="/headwords.html"] {
    color: white;
    font-size: 18px;
    padding: 15px 20px;
    width: 90%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

/* Research */
.dropdown a[href="/research.php"] {
    color: white;
    font-size: 18px;
    padding: 15px 20px;
    width: 90%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

/* Dropdown items */
.dropdown .menu-item {
    color: white;
    font-size: 18px;
    padding: 15px 20px;
    width: 90%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Dropdown hover */
.dropdown .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

/* Submenu styles */
.submenu {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin-top: 5px;
    gap: 5px;
}

.submenu.show {
    display: flex;
}

.submenu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.submenu a:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Sticky Banner */
.banner {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    background-color: #003366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    z-index: 100;
    text-align: center;
    box-sizing: border-box;
}

.banner h1 {
    font-size: 18px;
    margin: 0;
    line-height: 1.5;
    font-family: Garamond, serif;
    color: #D4AF37;
}

/* Email Icon */
.email-icon {
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50);
    max-width: calc(100% - 20px);
}

/* Email Popup */
.email-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.email-popup.active {
    display: flex;
}

.email-form {
    background-color: #F5F5DC;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.email-form h2 {
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
    color: #003366;
}

.email-form input,
.email-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.email-form button {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.email-form button:hover {
    background-color: #002244;
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #003366;
}

/* Search Bar Container 
.search-bar-container {
    position: relative;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box; /* Ensure proper box sizing 
}


 Search Bar 
#search-bar {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
*/
