.carousel {
  width: 50%;
  height: 40rem;
  overflow: hidden;
  position: relative;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.carousel .list .item {
  width: 180px;
  height: 250px;
  position: absolute;
  top: 90%;
  transform: translateY(-70%);
  left: 70%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 100;
  transition: 1s;
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  border-radius: 0;
  width: 60%;
  height: 100%;
}

.carousel .list .item:nth-child(3) {
  left: 40%;
}

.carousel .list .item:nth-child(4) {
  left: calc(40% + 200px);
}

.carousel .list .item:nth-child(5) {
  left: calc(40% + 400px);
}

.carousel .list .item:nth-child(6) {
  left: calc(40% + 600px);
}

.carousel .list .item:nth-child(n + 7) {
  left: calc(40% + 800px);
  opacity: 0;
}

@keyframes animate {
  from {
    opacity: 0;
    transform: translate(0, 100px);
    filter: blur(33px);
  }

  to {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
  }
}

/* Carousel */

@media (max-width: 999px) {
  .carousel {
    width: 80%;
  }

  .carousel .list .item:nth-child(1),
  .carousel .list .item:nth-child(2) {
    width: 80%;
  }
}

@media (max-width: 600px) {
  .carousel {
    width: 100%;
    height: 30rem;
  }


  .carousel .list .item:nth-child(3) {
    left: 67%;
  }

  .carousel .list .item:nth-child(4) {
    left: calc(67% + 200px);
  }

  .carousel .list .item:nth-child(5) {
    left: calc(67% + 400px);
  }

  .carousel .list .item:nth-child(6) {
    left: calc(67% + 600px);
  }

  .carousel .list .item:nth-child(n + 7) {
    left: calc(67% + 800px);
    opacity: 0;
  }
}

@media (max-width: 500px) {
    .carousel .list .item:nth-child(1),
    .carousel .list .item:nth-child(2) {
      width: 100%;
    }
  }



/* next prev 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: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  color: #0d0000;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: monospace;
  font-weight: bold;
  transition: 0.5s;
  cursor: pointer;
}

.arrows button:hover {
  background: #0d0000;
  color: #fff;
}

/* time running */
.carousel .timeRunning {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 4px;
  background-color: #ff0000;
  left: 0;
  top: 0;
  animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
