#menu__toggle {
    opacity: 0;
    top: -500px;
    position: relative;
    height: 0;
    width: 0;
}

#menu__toggle:checked ~ .menu__btn .span-mid {
    background-color: #333;
    transform: rotate(45deg);
    width: 3.7vw;
}
#menu__toggle:checked ~ .menu__btn .span-before {
    top: 50%;
    background-color: #333;
    transform: rotate(45deg);
    width: 3.7vw;
}
#menu__toggle:checked ~ .menu__btn .span-after {
    top: 50%;
    background-color: #333;
    transform: rotate(-45deg);
    width: 3.7vw;
}
#menu__toggle:checked ~ .menu__box {
    visibility: visible;
    right: 0;
}

.menu__btn {
    display: block;
    width: 40px;
    height: 2.7vw;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.span-before,
.span-mid,
.span-after {
    display: block;
    width: 4.7vw;
    height: 3px;
    position: absolute;
    background-color: #ffffff;
    transition-duration: 0.25s;
}
.span-before {
    top: 0;
}
.span-mid {
    top: 50%;
}
.span-after {
    top: 100%;
}
#close {
    opacity: 0;
    transition: 0.2s;
}
.close-btn span {
    background-color: #333;
}
.close-btn .span-before {
    top: 50%;
    transform: rotate(45deg);
}
.close-btn .span-mid {
    transform: rotate(45deg);
}
.close-btn .span-after {
    top: 50%;
    transform: rotate(-45deg);
}
.menu__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    visibility: hidden;
    top: 0;
    right: -100%;
    width: 200px;
    height: 100%;
    margin: 0;
    padding: 110px 0;
    list-style: none;
    text-align: right;
    background-color: #eceff1;
    box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.2);
    transition-duration: 0.25s;
    z-index: 1;
}

.menu__item {
    display: block;
    padding: 12px 24px;
    color: #333;
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition-duration: 0.25s;
}

.menu__item:hover {
    background-color: #cfd8dc;
}
.menu__box li {
    width: 100%;
    border-bottom: 1px solid rgba(51, 51, 51, 0.453);
}
@media screen and (max-width: 960px) {
    .menu__box {
        width: 30vw;
    }
}
@media screen and (max-width: 750px) {
    .menu__box {
        width: 50vw;
    }
}
@media screen and (max-width: 670px) {
    .menu__box {
        padding: 80px 0;
    }
}
@media screen and (max-width: 450px) {
    .menu__box {
        width: 100vw;
    }
}
