.wrapper{
    position: fixed;
    z-index: 3;
    top: 0;
    right: -100%;
    height: 100%;
    width: 100%;
    background: #000000c6;
    transition: all 0.6s ease-in-out;
}
#active:checked ~ .wrapper{
    right:0;
}
.menu-btn{
    position: absolute;
    z-index: 9;
    right: 20px;
    top: 20px;
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease-in-out;
}
.menu-btn span,
.menu-btn:before,
.menu-btn:after{
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 30%;
    width: 40%;
    border-bottom: 2px solid #fff;
    transition: transform .6s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.menu-btn:before{
    transform: translateY(-8px);
}
.menu-btn:after{
    transform: translateY(8px);
}
.close {
    z-index: 10;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: background .6s;
}
/* closing animation */
#active:checked + .menu-btn span {
    transform: scaleX(0);
}
#active:checked + .menu-btn:before {
    transform: rotate(45deg);
    border-color: #fff;
}
#active:checked + .menu-btn:after {
    transform: rotate(-45deg);
    border-color: #fff;
}
.wrapper ul{
    position: absolute;
    top: 60%;
    left: 20%;
    height: 90%;
    transform: translate(-50%, -50%);
    list-style: none;
    text-align: center;
}
.wrapper ul li{
    height: 10%;
    margin: 15px 0;
}
.wrapper ul li a{
    text-decoration: none;
    font-size: 26px;
    font-weight: 500;
    padding: 5px 30px;
    color: #fff;
    position: absolute;
    margin: 5px 30px;
    opacity: 0;
    transition: all 0.3s ease;
    transition: transform .6s cubic-bezier(0.215, 0.61, 0.355, 1);
    width: 320px;
    text-align: left;
}
.wrapper ul li a:hover{
    color: #04d9ff;
}
.wrapper ul li a:focus{
    color: #04d9ff;
}
input[type="checkbox"]{
    display: none;
}  
#active:checked ~ .wrapper ul li a{ 
    opacity: 1;
}
.wrapper ul li a{ 
    transition: opacity 1.2s, transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translateX(100px);
}
#active:checked ~ .wrapper ul li a{
    transform: none;
    transition-timing-function: ease, cubic-bezier(.1,1.3,.3,1); 
    transition-delay: .6s;
    transform: translateX(-100px);
}
@media (max-width:750px){
    .menu-btn{
        right: 15px;
    }
    .wrapper ul li a{
        font-size: 16px;
    }
}