#navigation {
    width: 90vw;
    margin: 0 auto;
    padding: 1.8rem 0 0;

    a {
        color: var(--text);
        text-decoration: none;
        font-size: 0.9rem;
    }

}

@media screen and (min-width: 700px) {
    #navigation {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 4rem 0 0;
    }
}

.h-line-nav {
    width: 90vw;
}

#global-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Find a better way to do this */
.overflow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    visibility: hidden;
    overflow: hidden;
}

@media screen and (min-width: 700px) {
    .overflow-wrapper {
        display: none;
    }
}


#mobile-menu-items {
    box-sizing: border-box;
    visibility: hidden;

    display: flex;
    flex-direction: column;
    row-gap: 0.8rem;
    
    position: absolute;
    inset-inline-start: 100vw;
    inset-block-start: calc(1rem + 1.8rem + 1.14rem);

    z-index: 1;
    width: 100vw;
    height: calc(100vh - (1.8rem + 1.14rem));

    background: var(--background);

    padding: 1rem 5vw;

    a {
        font-size: 1.8rem;
    }

    transition: 0.7s;
}

@media screen and (min-width: 700px) {
    #mobile-menu-items {
        display: none;
    }
}

/* MENU ANIMATION */

#mobile-menu-items.active {
    visibility: visible;
    inset-inline-start: 0;
}

#menu-items {
    display: none;
}

@media screen and (min-width: 700px) {
    #menu-items {
        display: flex;
        flex-direction: row;
        column-gap: 3vw;

        a {
            font-size: 0.9rem;
        }
    }
}

#menu-home a {
    font-weight: 700;
}

/* MENU ICON */

#menu-button {
    display: flex;
    max-width: 1.2rem;
}

@media screen and (min-width: 700px) {
    #menu-button {
        display: none;
    }
}

#menu-toggle {
    width: 1.2rem;
    height: 1rem;
    
    padding: 0;
    border: 0;
    border-radius: 0;
}

.hamburger-icon {
    width: 100%;
    height: 100%;
    display: inline-block;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 1.2rem;
    height: 2px;
    position: absolute;
    display: block;
    background-color: var(--text);
}

.hamburger-inner {
    top: calc(1.8rem + 0.6rem);
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    transition: 0.1s;
}

.hamburger-inner::before {
    top: -0.4rem;
}
.hamburger-inner::after {
    top: 0.4rem;
}

/* HAMBURGER ANIMATIONS */

#menu-toggle.active .hamburger-inner {
    background-color: transparent;
}

#menu-toggle.active .hamburger-inner::before {
    top: 0;
    rotate: -45deg;
}

#menu-toggle.active .hamburger-inner::after {
    top: 0;
    rotate: 45deg;
}

/* Prevent nav overflow */
@media screen and (max-width: 200px) {
    #nav-date {
        display: none;
    }

    .bar {
        display: none;
    }
}