* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
    color: #333;
}

header {
    background-color: #1E2948;
    padding: 1rem;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

button {
    outline: none;
}

.header-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    max-width: vw;
    margin: 0 auto;
    background-color: #1E2948;
}

.header-image-button {
    display: none;
}

nav {
    position: sticky;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    background-color: #1E2948; 
}

.menu-btn {
    display: none;
    background-color: #1E2948;
    color: white;
    padding: 2em;
    font-size: 1.25rem;
    width: 100%;
    border: none;
    cursor: pointer;
    user-select: none;
    outline: none;
}

#headerImage {
    max-width: vw; 
    height: 150px; 
    background-color: #1E2948;
}

nav.desktop-nav a {
    color: #E4E7FB;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1em;
    padding: 0.3rem 0.6em;
    user-select: none;
    transition: color 0.3s ease;
}

nav.desktop-nav a:hover,
nav.desktop-nav a:focus {
    color: #E4E7FB;
    font-size: bolder;
    border-bottom: 1px solid #E4E7FB;
    outline: none;
}
nav.desktop-nav a:active{
    font-size: bolder;
    border-bottom: 1px solid #E4E7FB;
}
.gear-btn, .gear-btn button {
    outline-color: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 12px 16px;
    z-index: 1100;
    font-size: 1.1em;
    font-weight: 500;
    background-color: rgba(30, 41, 72, 0.8);
    color: #E4E7FB;
}

.gear-btn:hover,
.gear-btn:focus {
    color: #E4E7FB;
    font-size: bolder;
    border-bottom: 1px solid #E4E7FB;
    outline: none;
}

.menu-btn:focus,
.menu-btn:hover {
    outline: none;
}

.menu-content {
    display: none;
    background-color: #f1f1f1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 8px;
    overflow-y: auto; 
    width: 100%;
    padding-bottom: 16px;
}

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

.menu-content a {
    display: block;
    padding: 12px;
    font-size: 1rem;
    color: #171e36;
    text-decoration: none;
}

.menu-content a:hover,
.menu-content a:focus {
    background-color: #ddd;
    outline: none;
}

.gear-btn {
    position: relative;
    z-index: 10;
}

#button .gear-btn {
    position: absolute;
}

.gear-content {
    position: absolute;
    top: 100%;
    width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f1f1f1;
    border-radius: 4px;
    display: none;
    flex-direction: column;
    z-index: 9;
    margin-top: 4px;
    margin-right: 150px;
}

.gear-content.show {
    display: flex;  
}

.gear-content a {
    padding: 12px 16px;
    text-decoration: none;
    font-size: 1rem;
    user-select: none;
}
.gear-content a
.gear-content a {
    padding: 12px 16px;
    text-decoration: none;
    font-size: 1rem;
    user-select: none;
}
.gear-content a:hover,
.gear-content a:focus {
    background-color: #e0eaff;
    outline: none;
}
p {
    color: #171e36;
}
@media (max-width: 1100px) {
    nav.desktop-nav {
        display: none;
    }
    .menu-btn {
        display: block;
        padding: 0;
        background-color: transparent;
        border: none;
        cursor: pointer;
        text-align: center;
        width: 100vw; 
        height: 50px;
    }
    #headerImage {
        display: none;
    }
    #header-image-button {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
    }
    .menu-content {
        height: auto; 
        max-height: none; 
        overflow-y: visible; 
        padding-bottom: 16px;
    }
}

