@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Roboto', sans-serif;
    background: #333;
    color: white;
    overflow: hidden;
}
.slider{
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.slide{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.slide.current{
    opacity: 1;
}
.slide:first-child{
    background: url(images/img-1.jpg) no-repeat center center/cover;
}
.slide:nth-child(2){
    background: url(images/img-2.jpg) no-repeat center center/cover;
}
.slide:nth-child(3){
    background: url(images/img-3.jpg) no-repeat center center/cover;
}
.slide:nth-child(4){
    background: url(images/img-4.jpg) no-repeat center center/cover;
}
.slide:nth-child(5){
    background: url(images/img-5.jpg) no-repeat center center/cover;
}
.slide:nth-child(6){
    background: url(images/img-6.jpg) no-repeat center center/cover;
}
.slide .content{
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: #ffffff78;
    padding: 20px;
    color: black;
    border-radius: 10px;
    width: 45%;
    opacity: 0;
}
.slide.current .content{
    opacity: 1;
    top: 50%;
    transition: top 0.7s ease 0.3s;
}
.slide .content h2{
    margin-bottom: 10px;
}
/*responsive content*/
@media (max-width:576px){
    .slide .content{
        width: 65%;
        top: 73%;
    }
    .slide.current .content{
        top: 70%;
    }
}

.buttons #next{
    position: absolute;
    top: 50%;
    right: 15px;
}
.buttons #prev{
    position: absolute;
    top: 50%;
    left: 15px;
}
.buttons .button i {
    border: none;
    outline: none;
    color: white;
    font-size: 30px;
    transition: all 0.4s ease;
    border: 1px solid white;
    border-radius: 50%;
    padding: 0px 3px;
}
.buttons .button i:hover{
    background: white;
    color: black;
    cursor: pointer;
}