.nav {
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: auto;
    height: 90px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.nav_bt {
    z-index: -1000;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
}
.nav_cont {
    position: relative;
    width: 90px;
    height: 100%;
    transition-duration:1s ;
    transition-timing-function: cubic-bezier(0.49, -0.3, 0.68, 1.23);
}

.nav_bt:checked ~ .nav_cont {
    transition: width 1s cubic-bezier(0.48, 0.43, 0.29, 1.3);
    width: 390px;
}

.nav_list {
    position: relative;
    width: 420px;
    height: 100%;
    padding-left: 20px;
    padding-right: 90px;
    list-style-type: none;
    font-size: 0;
    display: flex;
    align-items: center;
}

.nav_item {
    display: inline-block;
    width: 70px;
    text-align: center;
    color: #6C7784;
    font-size: 14px;
    line-height: 90px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.nav_item:hover {
    color: #e32875;
}
.nav_text {
    display: block;
    height: 100%;
    transform: rotateY(-70deg);
    opacity: 0;
    transition-property: opacity , transform;
    transition-duration: 0.7s ; 
    transition-timing-function: ease,cubic-bezier(0.48, 0.43, 0.7, 2.5);
}

.nav_bt:checked ~ .nav_cont .nav_text {
    transform: rotateY(0);
    opacity: 1;
    transition-property: opacity , transform;
    transition-duration: 0.2s , 0.7s ; 
    transition-timing-function: ease , cubic-bezier(0.48, 0.43, 0.7, 2.5);
    
}

.nav_item:nth-child(1) .nav_text {
    transition-delay: 0.3s;
}

.nav_item:nth-child(2) .nav_text {
    transition-delay: 0.2s;
}

.nav_item:nth-child(3) .nav_text {
    transition-delay: 0.1s;
}

.nav_item:nth-child(4) .nav_text {
    transition-delay: 0.0s;
}
.nav_ico {
    position: absolute;
    right: 0;
    top: 0;
    width: 90px;
    height: 90px;
    padding: 36px 31px;
    cursor: pointer;
    background: #fff;
    box-sizing: border-box;
}

.nav_ico:before {
    margin-bottom: 10px;
}

.nav_ico:hover:before,
.nav_ico:hover:after {
    background: #2c303a;
}

.nav_ico::before,.nav_ico::after{
    content: "";
    display: block;
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background:#e32875;
    transform-origin: 50% 50%;
    transition-property: background , transform;
    transition-duration: 0.3s , 1s;
    transition-timing-function: ease , cubic-bezier(0.48, 0.43, 0.29, 1.3);
}

.nav_bt:checked ~ .nav_ico:before {
    transform: translateY(7px) rotate(-225deg);
}

.nav_bt:checked ~ .nav_ico:after {
    transform: translateY(-7px) rotate(225deg);
}

 /*youtube animation */
@keyframes youtube{
0% {
    transform: scaleX(1);
}
50% {
    transform: scaleX(.95);
}

100% {
    transform: scaleX(1);
}}

@media screen and (max-width:468px){
   .nav_list {
    position: relative;
    width: 420px;
    height: 100%;
    padding-left: 0px;
    padding-right: 90px;
    list-style-type: none;
    font-size: 0;
    display: flex;
    align-items: center;
}
    .nav_bt:checked ~ .nav_cont {
    transition: width 1s cubic-bezier(0.48, 0.43, 0.29, 1.3);
    width: 360px;
}
}


