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

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.container{
    width: 100vw;
    height: 800px;
    overflow: hidden;
    position: absolute;
}

.container .slider{
    inset: 80px;
    background-color: #ccc;
    border-radius: 20px;
    position: absolute;
}

.container .slider .slide{
    position: absolute;
    width: 120px;
    height: 160px;
    background-color: red;
    border-radius: 20px;
    transition: 0.5s;
    top: 20px;
    background: var(--img);
    background-position: center;
    background-size: cover;
    box-shadow: 0 15px 20px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 20px;
}

.container .slider .slide .content{
    padding: 40px;
    max-width: 600px;
    transition: 0.25s;
    transition-delay: 0s;
    opacity: 0;
    background-color: rgba(0, 0, 0, .5);
    color: white;
    border-radius: 20px;
}

.container .slider .slide .content .imageTitle{
    font-size: 64px;
}

.container .slider .slide:nth-child(1) .content, .container .slider .slide:nth-child(2) .content{
    opacity: 1;
    transform: translateY(0px);
    transition-delay: 0.5s;
}

.container .slider .slide:nth-child(1), .container .slider .slide:nth-child(2){
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(0);
    width: 100%;
    height: 100%;
    background-size: cover;
    box-shadow: 0 15px 20px rgba(0, 0, 0, .5);
}

.container .slider .slide:nth-child(3){
    background-size: cover;
    left: calc(100% - 560px);
}

.container .slider .slide:nth-child(4){
    background-size: cover;
    left: calc(100% - 420px);
}

.container .slider .slide:nth-child(5){
    background-size: cover;
    left: calc(100% - 280px);
}

.container .slider .slide:nth-child(6){
    background-size: cover;
    left: calc(100% - 140px);
    animation: 0.4s ease 1 fadein;
    -webkit-animation: 0.4s ease 1 fadein;
}

@keyframes fadein{
    0% {opacity: 0;}
    80% {opacity: 0;}
    100% {opacity: 1;}
}

@-webkit-keyframes fadein{
    0% {opacity: 0;}
    80% {opacity: 0;}
    100% {opacity: 1;}
}

.container .buttons{
    position: absolute;
    bottom: 15px;
    gap: 20px;
}

.container .buttons span{
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: black;
    cursor: pointer;
}

.container .buttons span::before{
    content: '';
    width: 15px;
    height: 15px;
    border-top: 4px solid white;
    border-left: 4px solid white;
    transform: rotate(315deg) translate(2px, 2px);
}

.container .buttons span:nth-child(2)::before{
    transform: rotate(135deg) translate(2px, 2px);
}

.container .buttons span:active{
    opacity: 0.5;
}


