.slider{
    border-radius: 2%;
    overflow: hidden;
}

.slides{
    width: 800%;
    height: 100%;
    display: flex;
}

.slides input{
    display: none;
}

.slide{
    width: 12.5%;
    transition: 2s;
}

.slide img{
    width: 100%;
}

/* css for manual slide navigation */

.navigation-manual{
    position: absolute;
    width: 100%;
    margin-top: 70%;
    display: flex;
    justify-content: center;
}

.manual-btn{
    border: 1% solid #40D3DC;
    padding: 1%;
    border-radius: 2%;
    cursor: pointer;
    transition: 1s;
}

.manual-btn:not(:last-child){
    margin-right: 5%;
}

.manual-btn:hover{
    background: #40D3DC;
}

#radio1:checked ~ .first{
    margin-left: 0;
}

#radio2:checked ~ .first{
    margin-left: -12.5%;
}

#radio3:checked ~ .first{
    margin-left: -25%;
}

#radio4:checked ~ .first{
    margin-left: -37.5%;
}

#radio5:checked ~ .first{
    margin-left: -50%;
}

#radio6:checked ~ .first{
    margin-left: -62.5%;
}

/* css for automatic navigation */

.navigation-auto{
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 70%;
}

.navigation-auto div{
    border: 1% solid #40D3DC;
    padding: 1%;
    border-radius: 2%;
    transition: 1s;
}

.navigation-auto div:not(:last-child){
    margin-right: 5%;
}

#radio1:checked ~ .navigation-auto .auto-btn1{
    background: #40D3DC;
}

#radio2:checked ~ .navigation-auto .auto-btn2{
    background: #40D3DC;
}

#radio3:checked ~ .navigation-auto .auto-btn3{
    background: #40D3DC;
}

#radio4:checked ~ .navigation-auto .auto-btn4{
    background: #40D3DC;
}

#radio5:checked ~ .navigation-auto .auto-btn5{
    background: #40D3DC;
}

#radio6:checked ~ .navigation-auto .auto-btn6{
    background: #40D3DC;
}
