/* --- Mobile Navigation --- */
.mobile-nav {
    background:var(--menu-background);
    position:fixed;
    top:0px;
    left:0;
    width:100vw;
    height:80px;
    z-index:1;
    display:flex;
    align-items:center;
}
#logo-mobile {
    position:fixed;
    left:0;
    width:100px;
    height:auto;
}
.open-nav {
    transform: scale(2.2);
}
.mobile-nav .open-nav {
    position:absolute;
    right:35px;
    height:30px;
    width:30px;
    z-index:2;
    cursor:pointer;
    opacity:0;
}
/* Making The Hamburger */
.mobile-nav .burger {
    position:absolute;
    top:0;
    right:10px;
    z-index:1;
    width:80px;
    height:80px;
    padding:1rem;
    background-color: var(--burger-background);
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Meat */
.mobile-nav .burger > div {
    position:relative;
    width:100%;
    height:2px;
    background-color:var(--burger-color);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.6s ease;
}
/* Bun Top */
.mobile-nav .burger > div:before,
.mobile-nav .burger > div:after {
    content:'';
    position:absolute;
    z-index:1;
    top:-10px;
    width:100%;
    height:2px;
    background:inherit;
}
/* Bun bottom */
.mobile-nav .burger > div:after {
    top:10px;
}

/* --- Hamburger Menu Animations --- */
/* rotate burger on click */
.mobile-nav .open-nav:checked + .burger > div {
    transform: rotate(135deg);
}
/* turn hamburger into x */
.mobile-nav .open-nav:checked + .burger > div:before,
.mobile-nav .open-nav:checked + .burger > div:after {
    top: 0;
    transform: rotate(90deg);
}
/* Fixed position of X icon when mobile menu is open */
.mobile-nav .open-nav:checked ~ .burger {
    position: fixed;
}
/* Animate mobile menu opening */
.mobile-nav .open-nav:checked ~ .nav {
    visibility: visible;
}
.mobile-nav .open-nav:checked ~ .nav > div {
    transform:scale(1);
    transition-duration:var(--menu-speed);
}
.mobile-nav .open-nav:checked ~ .nav > div > div {
    opacity: 1;
    transition:opacity 0.4s ease;
}
.mobile-nav .nav {
    position: fixed;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    visibility:hidden;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}
.mobile-nav .nav > div {
    background: var(--menu-background);
    border-radius:50%;
    width:400vw;
    height:400vw;
    display:flex;
    flex:none;
    align-items:center;
    justify-content:center;
    transform:scale(0);
    transition:all 0.4s ease-in-out;
}

.mobile-nav .nav > div > div {
    text-align:center;
    max-width:90vw;
    max-height:100vh;
    opacity:0;
    transition:opacity 0.5s ease;
}
.mobile-nav .nav > div > div > ul > li {
    list-style:none;
    color: var(--burger-color);
    font-size:1.5rem;
    padding:1rem;
}
.mobile-nav .nav > div > div > ul > li > a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s ease;
}
.mobile-nav-label {
    color:rgba(0, 0, 0, 0);
}

@media only screen and (min-width: 1024px) {
    .mobile-nav {
        display:none;
    }
}
@media only screen and (max-width: 1024px) {
    .nav > div > div > ul {
        display: block;
    }

    .nav > div > div > ul {
        display: inline;
    }
}
