

#navigationOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--menuHeight);
    background-color: var(--primary-color);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    @media (min-width: 1400px) {
        opacity: 1;
    }
}
#navigation {
    z-index: 1002;
    background-color: var(--primary-color);
    width: 100%;
    padding:.5rem 0;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-wrap:wrap;
    justify-content: start;
    align-items: center;

    & .menu-close-icon{
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        cursor: pointer;
        z-index: 1003;
    }

    & #toggleBox {
        padding:1rem;
        display: none;
        margin-left: auto;
    }

    @media (max-width: 1024px) {
        #toggleBox {
            display: block;
        }
    }

    & #menu {
        display: flex;
        list-style-type: none;
        margin: 0;
        padding: 0;

        & li {
            float: left;
        }

        & li a {
            display: block;
            font-weight: bold;
            color: white;
            text-align: center;
            margin: 14px 16px;
            text-decoration: none;
        }

        & li a::after {
            width: 10%;
            content: '';
            display: block;
            border-bottom: 2px solid #00000000;
            transition: all 0.3s;
        }
        & li a:hover::after {
            width: 100%;
            border-bottom: 2px solid #ffffff44;
        }

    }

    @media (max-width: 1024px) {
        #menu {
            display: none;
        }
    }

    #searchBox {
        margin-left: auto;
        margin-right: 2rem;
        padding:.3rem .3rem .3rem 1rem;
        background-color: var(--secondary-color);
        border-radius: 4px;
        &.away {
        padding:.2rem .3rem;
        }

        & .search-container {
            display: flex;
            align-items: center;
            gap: 0.3rem;

            & .sicon {
                position: relative;
                background-color: var(--primary-color);
                padding: 0.3rem;
                border-radius: 4px;
                &:hover {
                    transition: background-color 0.3s;
                    background-color: var(--secondary-color);
                }
                &::after {
                    content: '';
                    position: absolute;
                    bottom: -9px;
                    left:50%;
                    transform: translateX(-50%);
                    width: 10%;
                    height: 4px;
                    background-color: white;
                    border-radius: 6px;
                    transition: all 0.3s;
                    opacity: 0;
                }
                &.active {
                    background-color: var(--color-hard);
                }

                &.active::after {
                    width: 40%;
                    opacity: 1;
                }
            }
            & .sicon.transparent {
                background-color: transparent;
            }
        }

        & input[type="text"] {
            border: none;
            min-width: 300px;
            background-color: transparent;
            color: white;
            font-size: 1rem;
            outline: none;
        }
    }


}


#logo {
    float: left;

}
#logo img {
    display: block;
    width: 150px;
    height: 60px;
}




.toggle-menu {
    display: block;
    color: white;
    cursor: pointer;
    width: 25px;
    height: 20px;
    position: relative;
    margin-right:2rem;

    &:hover {
        & span:nth-child(1) {
            width: 80%;
        }
        & span:nth-child(2) {
            width: 80%;
        }
    }

    & span {
        display:block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        left:0;
        position:absolute;
        transition: all .3s;
    }
    & span:nth-child(1) {
        top:0;
    }
    & span:nth-child(2) {
        top:50%;
        transform: translateY(-50%);
    }
    & span:nth-child(3) {
        bottom:0;
    }
}


#menuContainer {
    position:relative;
    z-index:3;
    pointer-events: none;

    &:has(.is-open) {
        pointer-events: auto;
    }

    & .menu-popover {
        margin:0;
        border:0;
        padding:0;
        max-height:calc(100dvh - var(--menuHeight));
        overflow:auto;
        background-color: var(--primary-color);
        opacity:0.95;
        color:white;
    }

    & .menu-popover:not([popover]) {
        display: none;
    }

    & .menu-popover.is-open {
        display: block;
        margin-left:auto;
    }

    & .menu-popover-right {
        width: min(600px, 100dvw);
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        @media (max-width: 1400px) {
            border-bottom-right-radius: 0;
        }
    }

    & .menu-popover-full {
        left:0;
        right:0;
        width:100dvw;
        border-bottom-left-radius:1rem;
        border-bottom-right-radius:1rem;
    }

    & .menu-popover[popover]::backdrop {
        background:transparent;
    }

    & h3 {
        color:white;
        font-weight: 500;
        font-size:1.2rem;
        padding:1.5rem 2rem;
        border-bottom:1px solid #22222244;
    }
    & .close-search-settings {
        position:absolute;
        top:1rem;
        right:2rem;
        cursor: pointer;
    }

}


