body.menuVisible, body.dialogueVisible
{
    overflow-y: hidden;
}

#lockeButton, #lockeLogo
{
    position: fixed;
    top: 0;
    padding: 20px;
    width: 100px;
    height: 20px;
    cursor: pointer;
    z-index: 997;
}

#lockeButton
{
    pointer-events: auto;
    background: black;
    color: white;
    z-index: 997;

    transition: background-color .2s ease-in-out,
                color .2s ease-in-out;
}

#lockeButton:hover
{
    background-color: white;
    color: black;
}

#lockeLogo
{
    pointer-events: none;
    color: white;
    z-index: 999;
    visibility: hidden;

    transition: opacity .2s ease-in-out,
                color .5s cubic-bezier(0.16, 1, 0.3, 1);
}

#menuCover
{
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: #77777778;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 996;
    pointer-events: none;
    opacity: 0;

    transition: opacity .5s cubic-bezier(0.16, 1, 0.3, 1);

    svg
    {
        color: white;
        margin-top: 420px;
        margin-left: calc((100vw - 30px) / 2);
        margin-right: calc((100vw - 30px) / 2);

        transition: opacity .2s ease-in-out;
    }
}

#topLevelMenu
{
    position: fixed;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

#menuDesktop
{
    position: fixed;
    top: 0;
    background: white;
    z-index: 998;

    width: 1000px;
    padding: 0 var(--common_padding_horizontal);
    height: 0;

    pointer-events: none;

    transition: height .5s cubic-bezier(0.16, 1, 0.3, 1);

    overflow: hidden;

    div.grid
    {
        margin-top: 80px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 50px;
        grid-row-gap: 0;

        h1
        {
            font-family: var(--font-header);
            font-size: 13px;
            font-weight: 400;
            letter-spacing: 5px;
            text-transform: uppercase;
            color: #999;
            margin-bottom: 20px;
        }

        a { text-decoration: none; }

        ul
        {
            padding: 0;
        }

        li
        {
            text-decoration: none;
            list-style: none;
            font-family: var(--font-body);
            font-size: 17px;
            color: #555;
            margin-bottom: 10px;

            transition: opacity .2s ease-in-out;

            a { color: #555; }
        }

        li.primary
        {
            font-family: var(--font-header);
            font-weight: 500;
            font-size: 28px;
            color: black;

            a { color: black; }
        }

        li:hover
        {
            opacity: .5;
        }
    }

    svg
    {
        display: none;
        position: fixed;
    }
}

#menuMobile
{
    visibility: hidden !important;
}

#topLevelMenu.visible
{
    #menuCover
    {
        pointer-events: auto;
        opacity: 1;
        cursor: pointer;
    }

    #menuCover:hover
    {
        svg
        {
            opacity: 50%;
        }
    }

    #menuDesktop
    {
        pointer-events: auto;
        height: 400px;
    }

    #lockeButton
    {
        pointer-events: auto;
        background-color: white;
        color: black;
    }

    #lockeLogo
    {
        pointer-events: auto;
        visibility: visible;
        color: black;
    }

    #lockeLogo:hover
    {
        color: black;
        opacity: .5;
    }
}

/* BREAKPOINT */

@media only screen and (max-width: 1099px)
{
    #menuDesktop
    {
        width: calc(100vw - 80px);
        padding: 0 40px;

        div.grid
        {
            margin-top: 80px;
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: repeat(3, 1fr);
            grid-column-gap: 0px;
            grid-row-gap: 50px;

            ul
            {
                padding: 0;
            }
        }

        svg
        {
            pointer-events: none;
            top: 24px;
            right: 30px;

            transition: opacity .2s ease-in-out;
        }

        svg:hover
        {
            cursor: pointer;
            opacity: .5;
        }
    }

    #topLevelMenu.visible
    {
        #menuDesktop
        {
            overflow-y: scroll;
            height: 100vh;

            svg
            {
                display: revert;
                pointer-events: auto;
            }
        }
    }
}