.slider {       
    width: 100vw;  
    height: 60vh;
    position: relative;
    overflow:hidden;
    position: relative;

}
.slider .slides .slide {
    position: absolute;
    inset: 0 0 0 0;
}
.slider .slides .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .slides .slide .content {
    position:absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: white;
    text-shadow: 0 5px 10px #0004;

}
.thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display:flex;
    gap: 20px;
}
.thumbnail .slide {
    width: 150px;
    height: 200px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.thumbnail .slide .content {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.arrows {
    position: absolute;
    top: 80%;
    right: 52%;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 20px;
    align-items: center; 
    z-index: 1;
}
.arrows button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border:none;
    background-color: rgba(241, 241, 233, 0.6);
    font-family: monospace;
    color:white;
    font-weight: bold;
    font-size: large;
    transition: 0.5s;
}
.arrows button:hover {
    background-color:aliceblue;
    color:black
}
.slider .slides .slide:nth-child(1){
    z-index: 1;
}
.slider .slides .slide:nth-child(1) h1,
.slider .slides .slide:nth-child(1) p,
.slider .slides .slide:nth-child(1) a {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
    to{
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);       

    }
}
.slider .slides .slide:nth-child(1) h1 {
    animation-delay: 1.2s;
}
.slider .slides .slide:nth-child(1) p {
    animation-delay: 1.4s;
}
.slider .slides .slide:nth-child(1) h1 {
    animation-delay: 1.6s;
}
/* effects next click*/
.slider.next .slides .slide:nth-child(1) img {
    width: 150px;
    height: 200px;
    position: absolute;
    left: 50%;
    bottom: 50px;
    animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage{
    to{
        width: 100%;
        height: 100%;
        left: 0;
        bottom: 0;
    }
}

.slider.next .thumbnail .slide:nth-last-child(1){
    width: 0;
    overflow: hidden;
    animation: showThumbnail 0.5s linear 1 forwards;
}
@keyframes showThumbnail {
    to{
        width: 150px;
    }
}
.slider.next .thumbnail {
    transform: translateX(150px);
    animation: transformThumbnail 0.5s linear 1 forwards;
}
@keyframes transformThumbnail {
    to{
        transform: translateX(0);
    }
}
.slider.prev .slides .slide:nth-child(2) {
    z-index: 2;
}
.slider.prev .slides .slide:nth-child(2) img {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outImage 0.5s linear 1 forwards;
}
@keyframes outImage {
    to{
        width: 150px;
        height: 200px;
        left: 50%;
        bottom: 50px;
    }
}
.slider.prev .thumbnail .slide:nth-child(1) {
    width: 0;
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}
.slider.prev .thumbnail .slide:nth-child(2) h1,
.slider.prev .thumbnail .slide:nth-child(2) p,
.slider.prev .thumbnail .slide:nth-child(2) a {
    animation: contentOut 1.5s linear 1 forwards;
}
@keyframes contentOut {
    to{
        transform: translateY(150px);
        filter: blur(20px);
        opacity: 0;

    }
}
.slider.next .arrows button,
.slider.prev .arrows button {
    pointer-events: none;
}

.time {
    width: 0;
    height: 3px;
    background-color:orange;
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
}
.slider.next .time,
.slider.prev .time {
    width: 100%;
    animation: timeRunning 2s linear 1 forwards;
}
@keyframes timeRunning {
    to{
        width: 0;
    }
}
@media screen and (max-width: 678px) {
    .slider .slides .slide .content {
        padding: 0;
    }

}