
@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');
.carous{
    margin: 0;
    background-color: #000;
    color: #eee;
    font-family: Poppins;
    font-size: 12px;
    height: 60vh;
}

/* carousell */
.carousell{
    height: 60vh;
    margin-top: 0px;
    width: auto;
    overflow: hidden;
    position: relative;
    background-color: #000;
   display: flex;

}
.carousell .listt .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
    
}
.carousell .listt .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousell .listt .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
    margin-bottom: 10%;
}
.carousell .listt .item .author{
    font-weight: bold;
    letter-spacing: 10px;
    font-size: 12px;
}
.carousell .listt .item .title,
.carousell .listt .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousell .listt .item .topic{
    color: #f1683a;
    line-height: 55px;
}
.carousell .listt .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousell .listt .item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousell .listt .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

.rise {
  opacity: 0;
  animation: rise 0.8s ease-in-out forwards;
}

.rise.subheading {
  animation: rise 1.2s ease-in-out forwards 0.5s;
}

@keyframes rise {
  0% {
    transform: translateY(2rem);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.fade-up {
  opacity: 0;
  animation: 0.8s ease-in-out forwards;
  animation-name: card-appear;
  animation-timeline: view(block);
  animation-range: entry -30% cover 45%;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.22,1,.36,1);
}

/* stronger animation */
@keyframes card-appear {

  0%{
    opacity:0;
    transform: translateY(80px) scale(.92);
    filter: blur(6px);
  }

  60%{
    opacity:1;
    filter: blur(0);
  }

  100%{
    opacity:1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.fade-up.faded {
  opacity: 1;
  transform: none;
}

/* thumbail */
.thumbnail{
    position: relative;
    bottom: 0px;
    left: 70%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousell .listt .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousell .listt .item:nth-child(1) .content .author,
.carousell .listt .item:nth-child(1) .content .title,
.carousell .listt .item:nth-child(1) .content .topic,
.carousell .listt .item:nth-child(1) .content .des,
.carousell .listt .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousell .listt .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousell .listt .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousell .listt .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousell .listt .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousell.next .listt .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}


@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousell.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousell .ime{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousell.next .time,
.carousell.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousell.prev .listt .item:nth-child(2){
    z-index: 2;
}

.carousell.prev .listt .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousell.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousell.next .arrows button,
.carousell.prev .arrows button{
    pointer-events: none;
}
.carousell.prev .listt .item:nth-child(2) .content .author,
.carousell.prev .listt .item:nth-child(2) .content .title,
.carousell.prev .listt .item:nth-child(2) .content .topic,
.carousell.prev .listt .item:nth-child(2) .content .des,
.carousell.prev .listt .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
     .carous .carousell {
        display: block;
    }
    .carousell .listt .item .content{
        padding-right: 0;
    }
    .carousell .listt .item .content .title{
        font-size: 30px;
    }
    
}