input[type=radio]:checked ~ .count label{
    background: rgba(0,161,156,1);
}

input[type=radio]:checked ~ .dir_box label{
    display: none;
}


#btn1:checked ~ .pic .box{
    margin-left: 0;
}
#btn1:checked ~ .count .btn_1{
    background:rgb(79, 137, 253);
}
#btn1:checked ~ .dir_box .btn_btn_1{
    display: flex;
}


#btn2:checked ~ .pic .box{
    margin-left: -100%;
}
#btn2:checked ~ .count .btn_2{
    background:rgb(79, 137, 253);
}
#btn2:checked ~ .dir_box .btn_btn_2{
    display: flex;
}


#btn3:checked ~ .pic .box{
    margin-left: -200%;
}
#btn3:checked ~ .count .btn_3{
    background:rgb(79, 137, 253);
}
#btn3:checked ~ .dir_box .btn_btn_3{
    display: flex;
}








#left_btn1:checked ~ .pic .box{
    margin-left: -200%;
}
#left_btn1:checked ~ .count .btn_3{
    background:rgb(79, 137, 253);
}
#left_btn1:checked ~ .pic .before_box{
    transition: right 0.8s;
    opacity:1;
    right:-100%;
}
#left_btn1:checked ~ .dir_box .btn_btn_3{
    display: flex;
}


#right_btn1:checked ~ .pic .box{
    margin-left: -100%;
}
#right_btn1:checked ~ .count .btn_2{
    background:rgb(79, 137, 253);
}
#right_btn1:checked ~ .dir_box .btn_btn_2{
    display: flex;
}





#left_btn2:checked ~ .pic .box{
    margin-left: 0;
}
#left_btn2:checked ~ .count .btn_1{
    background:rgb(79, 137, 253);
}
#left_btn2:checked ~ .dir_box .btn_btn_1{
    display: flex;
}


#right_btn2:checked ~ .pic .box{
    margin-left: -200%;
}
#right_btn2:checked ~ .count .btn_3{
    background:rgb(79, 137, 253);
}
#right_btn2:checked ~ .dir_box .btn_btn_3{
    display: flex;
}





#left_btn3:checked ~ .pic .box{
    margin-left: -100%;
}
#left_btn3:checked ~ .count .btn_2{
    background:rgb(79, 137, 253);
}
#left_btn3:checked ~ .dir_box .btn_btn_2{
    display: flex;
}


#right_btn3:checked ~ .pic .box{
    margin-left: -300%;
}
#right_btn3:checked ~ .pic .after_box{
    transition: left 0.8s;
    opacity:1;
    left:-100%;
}
#right_btn3:checked ~ .pic .box{
    margin-left: 0;
    transition: margin 0.8s 0s;
}
#right_btn3:checked ~ .count .btn_1{
    background:rgb(79, 137, 253);
}
#right_btn3:checked ~ .dir_box .btn_btn_1{
    display: flex;
}



input[type=radio]{
    display: none;
}
li{
    list-style-type: none;
}
.container{
    position: relative;
    width:100%;
    height: auto;
    overflow: hidden;
    border-radius: 35px;
}
.pic{
    width:100%;
    height:100%;
    overflow: hidden;
    border-radius: 15px;
}
.pic .box{
    position: relative;
    width:500%;
    height:100%;
    transition: margin 0.8s;
    border-radius: 15px;
}
.pic .box > img{
    float: left;
    width:calc(100% / 5);
    height:100%;
    color: white;
    border-radius: 15px;
}
.pic .before_box,
.pic .after_box{
    position: absolute;
    top:0;
    width:200%;
    height:100%;
    opacity:0;
}
.pic .after_box{
    left:0;
}
.pic .before_box{
   right: 0;
}
.pic .after_box img,.pic .before_box img{
    width:50%;
    height:100%;
    float: left;
}
.count{
    display: flex;
    align-items:center;
    justify-content:center;
    position: absolute;
    /* bottom: 0; */
    left:0;
    width:100%;
    height:10%;
    background:rgba(255,255,255,.1);
}
.count > ul{
    display: flex;
    align-items:center;
    justify-content:space-around;
    width:30%;
    height:100%;
}
.count li{
    float: left;
    width:1.2vmax;
    height:1.2vmax;
    border-radius: 50%;
}
.count li label{
    display: block;
    width:14px;
    height:14px;
    background:rgba(0,161,156,1);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.8s;
}
.count li .btn_1{
    background:rgb(79, 137, 253);
}


.dir_box{
    position: absolute;
    top:calc((100% - 100px) / 2);
    display: flex;
    width: 60px;
    height: 60px;
    background:rgba(0,161,156,0.5);
    border-radius: 50%;
    transition: all .4s ease-in-out;
}
.dir_box:hover {
    background:rgba(68, 127, 255, 0.5);
}
.left_box{
    left: 5px;
}
.right_box{
    right:5px;
}

.dir_box label{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    width: 100%;
    height: 100%;
    color: white;
    cursor: pointer;
}
.left_box label::after{
   content: "<";
}
.right_box label::after{
    content: ">";
}

.dir_box label{
    display: none;
}
.left_box .left_btn_1{
    display: flex;
}
.right_box .right_btn_1{
    display: flex;
}

img {
    object-fit: cover;
}