/* ============================= */
/* Menübutton                    */
/* ============================= */

#menuButton{
    position:fixed;
    top: 8%;
    right:40px;
    transform:translateY(-50%);
    width:64px;
    height:64px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.15);
    box-shadow: 0 0 15px rgba(80,140,255,.20), inset 0 0 12px rgba(255,255,255,.05);
    transition:.35s;
    z-index:1000;
    animation: menuGlow 30s ease-in-out infinite;
}

#menuButton:hover{
    transform:translateY(-50%) scale(1.08);
    box-shadow: 0 0 35px rgba(110,170,255,.45), 0 0 55px rgba(170,90,255,.25);
}

#menuButton span{
    position:absolute;
    left:18px;
    width:28px;
    height:2px;
    background:white;
    border-radius:10px;
    transition:.35s;
}

#menuButton span:nth-child(1){top:22px;}
#menuButton span:nth-child(2){top:31px;}
#menuButton span:nth-child(3){top:40px;}

#menuButton.open span:nth-child(1){
    transform:rotate(45deg);
    top:31px;
}

#menuButton.open span:nth-child(2){
    opacity:0;
}

#menuButton.open span:nth-child(3){
    transform:rotate(-45deg);
    top:31px;
}

/* ============================= */
/* Overlay                       */
/* ============================= */

#menuOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    transition:.4s;
    z-index:900;
}

#menuOverlay.show{
    opacity:1;
    visibility:visible;
}

/* ============================= */
/* Menü                          */
/* ============================= */

#sideMenu{
    position:fixed;
    top:0;
    right:0;
    width:400px;
    max-width:100%;
    height:100%;
    background:rgba(10,12,20,.55);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    border-left:1px solid rgba(255,255,255,.10);
    transform:translateX(100%);
    transition:transform .55s cubic-bezier(.19,1,.22,1);
    z-index:950;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow: -25px 0 70px rgba(0,0,0,.45), -1px 0 0 rgba(255,255,255,.08), -8px 0 30px rgba(80,140,255,.08);
}

#sideMenu.open{
    transform:translateX(0);
}

#sideMenu nav{
    display:flex;
    flex-direction:column;
    gap:35px;
}

#sideMenu a{
    color: #9fd0ff;
    text-decoration:none;
    font-family:Exo2;
    font-size:38px;
    letter-spacing:3px;
    transition:.3s;
    position:relative;
}

#sideMenu a::before{
    content:"";
    position:absolute;
    left:-25px;
    top:50%;
    width:0;
    height:2px;
    background:#7db9ff;
    transition:.3s;
}

#sideMenu a:hover{
    color:#dceeff;
    text-shadow: 0 0 10px #5daeff, 0 0 20px #935dff;
}

#sideMenu a:hover::before{
    width:18px;
}

/* ============================= */
/* Mobil                         */
/* ============================= */

@media(max-width:800px){

    #menuButton{
        right:20px;
    }

    #sideMenu{
        width:100%;
    }

    #sideMenu a{
        font-size:30px;
    }

}



@keyframes menuGlow{

    0%{
        box-shadow:
            0 0 18px rgba(255,120,40,.22),
            0 0 40px rgba(255,120,40,.14),
            0 0 70px rgba(255,120,40,.08),
            inset 0 0 12px rgba(255,255,255,.08);
    }

    14%{
        box-shadow:
            0 0 22px rgba(255,60,60,.24),
            0 0 48px rgba(255,60,60,.16),
            0 0 80px rgba(255,60,60,.08),
            inset 0 0 12px rgba(255,255,255,.08);
    }

    28%{
        box-shadow:
            0 0 24px rgba(170,90,255,.26),
            0 0 54px rgba(170,90,255,.18),
            0 0 90px rgba(170,90,255,.09),
            inset 0 0 12px rgba(255,255,255,.08);
    }

    42%{
        box-shadow:
            0 0 24px rgba(90,150,255,.28),
            0 0 56px rgba(90,150,255,.18),
            0 0 95px rgba(90,150,255,.10),
            inset 0 0 12px rgba(255,255,255,.08);
    }

    57%{
        box-shadow:
            0 0 24px rgba(70,235,255,.26),
            0 0 56px rgba(70,235,255,.18),
            0 0 95px rgba(70,235,255,.10),
            inset 0 0 12px rgba(255,255,255,.08);
    }

    71%{
        box-shadow:
            0 0 24px rgba(70,255,170,.24),
            0 0 54px rgba(70,255,170,.18),
            0 0 90px rgba(70,255,170,.09),
            inset 0 0 12px rgba(255,255,255,.08);
    }

    85%{
        box-shadow:
            0 0 22px rgba(255,220,60,.24),
            0 0 48px rgba(255,220,60,.16),
            0 0 80px rgba(255,220,60,.08),
            inset 0 0 12px rgba(255,255,255,.08);
    }

    100%{
        box-shadow:
            0 0 18px rgba(255,120,40,.22),
            0 0 40px rgba(255,120,40,.14),
            0 0 70px rgba(255,120,40,.08),
            inset 0 0 12px rgba(255,255,255,.08);
    }

}