#menu {
    display: block;
    position: fixed;
    top: 0;
    left: -30%;
    z-index: 9999;
    width: 27%;
    background: #161a29ed;
    backdrop-filter: blur(6px);
    min-height: 100vh;
    color: var(--gold);
    box-shadow: 10px 10px 40px #000;
    padding: 20px;
    box-sizing: border-box;
    transition: all .4s;
}

#menu.active {
    left: 0;
}

#menu .logo {
    width: 200px;
    margin-bottom: 40px;
}

#menu ul {
    margin: 30px 0;
    text-align: left;
    list-style: none;
    padding-left: 30px;
}


#menu ul li a {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    padding: 6px;
}

#menu ul li a:hover {
    color: var(--red);
}

#menu #close, #modal #close {
    background: url(/img/icons//close.png) no-repeat center;
    background-size: contain;
    width: 40px;
    height: 40px;
    position: absolute;
    display: block;
    top: 10px;
    right: 6px;
    cursor: pointer;
    transition: 1s;
}


#modal {
    display: flex;
    justify-content: center;
    flex-direction: column;
    transition: 1s ease-in-out all;
    position: fixed;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 50px;
    box-sizing: border-box;
    background-color: #000000e7;
    z-index: 9998;
    transition: .6s all ease-in-out;
    top:-100vh;
}

#modal.active {top: 0;}

#modal #close {
    right: 20px;
    top: 30px;
    width: 50px;
    height: 50px;
}


/* -----======== MOBILE ========----- */
@media (orientation: portrait) {
    #menu {
        width: 100%;
        left: -100vw;
        box-shadow: 0 0 0 #000;
    }
}