.navigation {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 40px;
    padding: 0 0 0 20px;
    box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
    background-color: #ffd200;
}

.navigation__current {
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
    color: #333;
    font-weight: bold;
    cursor: default;
}

.checkbox,
.hamburger {
    display: block;
    height: 32px;
    width: 32px;
    padding: 5px 2px;
    position: absolute;
    top: 3px;
    right: 15px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.checkbox {
    z-index: 5;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.hamburger__line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: #0e2431;
    transform-origin: left;
    margin-left: 6px;
}

.hamburger__line--1 {
    transition: transform 0.4s ease-in-out;
}

.hamburger__line--2 {
    transition: transform 0.2s ease-in-out;
}

.hamburger__line--3 {
    transition: transform 0.4s ease-in-out;
}

.checkbox:checked ~ .navigation__inner {
    transform: translateX(0);
}

.checkbox:checked ~ .hamburger .hamburger__line.hamburger__line--1 {
    transform: rotate(45deg);
}

.checkbox:checked ~ .hamburger .hamburger__line.hamburger__line--2 {
    transform: scaleY(0);
}

.checkbox:checked ~ .hamburger .hamburger__line.hamburger__line--3 {
    transform: rotate(-45deg);
}

.navigation__inner {
    background-color: #fff;
    height: 100vh;
    left: 0;
    position: absolute;
    top: 40px;
    transform: translateX(-150%);
    transition: transform 0.5s ease-in-out;
    width: 100%;
    z-index: 3;
}

.navigation__list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

.navigation__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33%;
    height: 100px;
    background-color: #fff;
}

.navigation__item--active {
    /* display: none; */
}

.navigation__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    height: 100%;
    width: 100%;
    text-decoration: none;
    outline: none;
    text-align: center;
}

.navigation__link:link,
.navigation__link:visited {
    color: #343434;
}

.navigation__link:hover,
.navigation__link:active,
.navigation__link:focus {
    background-color: #297ec62e;
}

.navigation__item--active .navigation__link {
    background-color: #ffd200;
    color: #333;
    font-weight: bold;
    cursor: default;
}

.navigation__item--active .navigation__link:visited {
    color: grey;
}

.navigation__item--active .navigation__link:hover,
.navigation__item--active .navigation__link:active,
.navigation__item--active .navigation__link:focus {
    background-color: #ffd200;
}

@media (min-width: 64em) {
    .navigation {
        padding: 20px 10px 0 0;
        width: 25%;
        font-size: 0.875rem;
        box-shadow: none;
        background-color: #fff;
    }

    .navigation__inner {
        position: relative;
        transform: translateX(0);
        top: 0;
        transition: none;
    }

    .navigation__current,
    .checkbox,
    .hamburger {
        display: none;
    }

    .navigation__item--active {
        display: block;
    }

    .navigation__item {
        display: block;
        width: 100%;
        height: auto;
    }

    .navigation__link {
        justify-content: flex-start;
        text-align: left;
        padding: 7px 4px 7px 20px;
    }
}
