/* Shared Navigation Component */

/* Desktop Navigation */
.section--navigation {
    text-align: center;
    margin: 0;
    padding: 0;
}

.nav__column {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-right: 30px; 
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.nav__column p {
    font-weight: 800;
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: #666;
    line-height: 1.2;
}

.nav__column p a {
    color: #666;
    text-decoration: none;
}

.nav__column p a:hover {
    color: palevioletred;
}

.border {
    border-top: 1px solid #6e6e6e;
    margin: 0 30px 0 30px;
}

/* Mobile Navigation - Burger Menu */
header {
    display: none;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Burger Menu Styles */
a {
    text-decoration: none;
    color: inherit;
}

.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: white;
}

#burger-menu {
    display: none;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.menu-item {
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 70px;
    padding-right: 70px;
    border-radius: 10px;
    margin-bottom: 8px;
    color: #6e6e6e;
    text-align: center;
    font-size: x-large;
}

.blue-bg {
    background-color: #B9F5C3;
}

.green-bg {
    background-color: #E0DFC8;
}

.yellow-bg {
    background-color: #D3CAD6;
}

.orange-bg {
    background-color: #B5D9E1;
}

.purple-bg {
    background-color: #E9E5EB;
}

.pink-bg {
    background-color: #FCE7EB;
}

.menu-icon {
    position: fixed;
    top: 2%;
    right: 4%;
    cursor: pointer;
    z-index: 3;
}

#close-menu-icon {
    display: none;
    top: 2.45%;
    right: 4%;
}

.menu-open {
    display: block;
}

/* Hide content when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Adjust z-index for menu elements */
#burger-menu {
    z-index: 2;
}

#menu-icons {
    z-index: 2;
}

/* Mobile Styles */
@media screen and (max-width: 800px) {
    .section--navigation {
        display: none;
        visibility: hidden;
    }

    header {
        visibility: visible;
        display: block;
    }

    #burger-menu {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        width: 0;
        height: 0;
        overflow: hidden;
    }

    #burger-menu.menu-open {
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
    }

    body.menu-open {
        overflow: hidden;
        background-color: white;
    }

    /* Solid white overlay behind the burger menu */
    body.menu-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1; /* below #burger-menu and #menu-icons */
    }

    .menu-item {
        padding-top: 18px;
        padding-bottom: 18px;
        padding-left: 50px;
        padding-right: 50px;
        border-radius: 10px;
        margin-bottom: 8px;
        color: #6e6e6e;
        text-align: center;
        font-size: 22px;
    }

    .menu-icon {
        position: fixed;
        top: 2%;
        right: 4%;
        cursor: pointer;
        z-index: 3;
    }

    #close-menu-icon {
        display: none;
        top: 1.9%;
        right: 4%;
    }
}
