﻿body.is-dark #nav-content {
    background: #111;
}
body.is-dark #nav-content li {
    border-bottom: 1px solid #999;
}
body.is-dark #nav-content ul li div span {
    color: #999;
}
body.is-dark #nav-content ul li a {
    color: #818181;
}
#nav-container {
    pointer-events: none;
    z-index: 2;
}

    #nav-container .bg {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100vh;
        visibility: hidden;
        opacity: 0;
        transition: .3s;
        background: #000;
    }

    #nav-container:focus-within .bg {
        visibility: visible;
        opacity: .6;
    }

.text-menu {
    font-size: 10px;
    margin-top: 4px;
    color: #fff;
}

.menu-button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 99;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    border-radius: 0;
    width: 30px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: .3s;
}

    .icon-bar + .icon-bar {
        margin-top: 5px;
    }

#nav-container:focus-within .menu-button {
    pointer-events: none;
}

#nav-container:focus-within .icon-bar:nth-of-type(1) {
    transform: translate3d(0,8px,0) rotate(45deg);
}

#nav-container:focus-within .icon-bar:nth-of-type(2) {
    opacity: 0;
}

#nav-container:focus-within .icon-bar:nth-of-type(3) {
    transform: translate3d(0,-8px,0) rotate(-45deg);
}

#nav-content {
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 80px;
    padding: 20px;
    width: 90%;
    max-width: 300px;
    position: absolute;
    top: 0;
    right: 0;
    height: 90vh;
    background: #ececec;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    transform: translateX(100%);
    transition: transform .3s;
    will-change: transform;
}

    #nav-content ul {
        /*height: 100%;*/
        display: flex;
        flex-direction: column;
    }

.container-language {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}
    .container-language span {
        font-size: 14px;
        color: dimgray;
        margin-bottom: 10px;
    }

.lang-flags {
    display: flex;
    width: 100px;
    justify-content: space-between;
    align-items: center;
}

    #nav-content li {
        list-style: none;
        border-bottom: 1px solid #ddd;
    }

        #nav-content li a {
            padding: 10px 5px;
            display: block;
            text-transform: uppercase;
            transition: .1s;
            font-size: 1.1rem;
            text-decoration: none;
        }

            #nav-content li a:hover {
                color: #111;
            }

#nav-container:focus-within #nav-content {
    transform: none;
}

a {
    transition: .2s ease-in-out;
}
