*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    line-height: 1.8;
    font-family: 'Lato', sans-serif;
    background-color: #111;
}

.slider{
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.slides{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out .2s;
}
.slides.current{
    opacity: 1;
}

.slides:first-child{
    background: url(/images/image1.jpg) no-repeat center top/cover;
}
.slides:nth-child(2){
    background: url(/images/image2.jpg) no-repeat center top/cover;
}
.slides:nth-child(3) {
    background: url(/images/image3.jpg) no-repeat center bottom/cover;
}
.slides:nth-child(4) {
    background: url(/images/image4.jpg) no-repeat center top/cover;
}
.slides:nth-child(5) {
    background: url(/images/img5.jpg) no-repeat center center/cover;
}
.slides:nth-child(6) {
    background: url(/images/img6.jpg) no-repeat center center/cover;
}
.slides:nth-child(7) {
    background: url(/images/irises.jpg) no-repeat center top/cover;
}
.slides:nth-child(8) {
    background: url(/images/girl\ before\ a\ mirror.jpg) no-repeat center top/cover;
}

.slides::after{
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(48, 45, 45, 0.4);
    position: absolute;
    mix-blend-mode: luminosity;
}

.content {
    position: absolute;
    bottom:2px;
    /* left: 190px; */
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
    border-radius: 10px;
    color: #111; 
    z-index: 4;
    left: -800px;
    opacity: 0;
   
}
.slides.current .content {
    opacity: 1;
    transform: translateX(800px);
    transition: all .7s ease-in .3s;
}

.buttons button{
    cursor: pointer;
} 

.buttons button#next{
    position: absolute;
    padding: 8px 10px;
    border-radius: 50%;
     
    outline: none;
    top: 50%;
    right: 15px;
    
}
.buttons button#prev{
    position: absolute;
    padding: 8px 10px;
    outline: none;
    border-radius: 50%;
    
    left: 15px;
    top: 50%;
   
}

.buttons button{
    background-color:transparent;
    border: 1px solid #fff;
    color: #fff;
}

.buttons button:hover{
    background: #fff;
    color: #111;
}

@media (max-width: 700px){
     .content{
        width: 100%;
        bottom: -300px;
        left: 0;
    }
    .slides.current .content{
        transform: translateY(-300px);
    }
}
