/* MENU */
.menu {
    position: fixed;
    top: 2em;
    right: 0;
    text-align: center;
    font-family: Clarity City;
    font-size: .9em;
    width: 60vw;
    gap: 1em;
    place-content: space-evenly;
    display: flex;
    z-index: 4;
    background-color: var(--white);
    padding: 1.5em;
    transition: top 0.3s ease;
    border-radius: 3px;
}

.menu__hamburger {
    display: none;
}

.menu a {
    text-decoration: unset;
    color: var(--green);
}

.menu--mobile {
    width: 100%;
    height: 100%;
    margin-top: 2em;
    display: flex;
    flex-direction: column;
}

/* Tablet */
@media only screen and (min-width: 960px) and (max-width: 1200px) {
    .menu {
        position: fixed;
        top: 0;
        width: 600px;
        bottom: unset;
        flex-wrap: wrap;
    }
}

/* Mobile */
@media only screen and (max-width: 960px) {
    .menu {
        display: none;
    }

    .menu.menu--mobile {
        display: flex;
    }

    .menu__hamburger {
        display: block;
        cursor: pointer;
        right: 1.5em;
        top: 1.06em;
        position: fixed;
        border: 0;
        background: none;
        padding: 0;
        z-index: 20;
    }

    .menu__hamburger span {
        display: block;
        width: 2.5em;
        height: 2.3px;
        background: var(--dark);
        margin-top: 8px;
        border-radius: 5px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .menu__hamburger span:first-child {
        margin-top: 0;
    }

    .menu__hamburger.is-open span:first-child {
        transform: translateY(10.3px) rotate(45deg);
    }

    .menu__hamburger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu__hamburger.is-open span:last-child {
        transform: translateY(-10.3px) rotate(-45deg);
    }

    .menu__link:hover {
        width: 35vw;
        justify-content: end;
    }

    .langtoggle {
        right: -3em;
    }

    .menu__container {
        display: none;
        flex-direction: column;
        margin: auto;
        align-items: self-start;
        background-color: #fff;
        width: calc(100vw - 4em);
        top: 4em;
        position: fixed;
        right: 0;
        bottom: 0;
        border-left: 4em solid var(--sand);
    }
}