/* --- Carousel --- */
.carousel {
  width: 100vw;
  height: 100vh;
  margin-top: -50px;
  overflow: hidden;
  position: relative;
}
.carousel .list .item {
  width: 180px;
  height: 250px;
  position: absolute;
  top: 80%;
  transform: translateY(-70%);
  left: 70%;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  background-position: center;
  background-size: cover;
  z-index: 0;
  transition: 1s;
}
/* Main items */
.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2) {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
}
/* Extra items on right */
.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); }
/* Hide items after 6th */
.carousel .list .item:nth-child(n+7) {
  left: calc(67% + 800px);
  opacity: 0;
}
/* --- Content inside active item --- */
.list .item .content {
  position: absolute;
  top: 50%;
  left: 100px;
  transform: translateY(-50%);
  width: 400px;
  text-align: left;
  color: #fff;
  display: none;
}
.list .item:nth-child(2) .content {
  display: block;
}
/* Text animations */
.content .title,
.content .name,
.content .des,
.content .btn {
  opacity: 0;
  animation: animate 1s ease-in-out 1 forwards;
}
.content .title {
  font-size: 100px;
  color: #14ff72cb;
  font-weight: bold;
  animation-delay: 0.3s;
}
.content .name {
  font-size: 100px;
  font-weight: bold;
  text-shadow: 3px 4px 4px rgba(255,255,255,0.8);
  animation-delay: 0.6s;
}
.content .des {
  font-size: 18px;
  margin: 10px 0 20px 5px;
  animation-delay: 0.9s;
}
.content .btn {
  margin-left: 5px;
  animation-delay: 1.2s;
}
.content .btn button {
  padding: 10px 20px;
  font-size: 16px;
  border: 2px solid #fff;
  background: none;
  cursor: pointer;
}
.content .btn button:nth-child(1) {
  margin-right: 15px;
  color: #fff;
}
.content .btn button:nth-child(2) {
  color: #14ff72cb;
  transition: 0.3s;
}
.content .btn button:nth-child(2):hover {
  background: #14ff72cb;
  color: #fff;
  border-color: #14ff72cb;
}
/* Animation keyframe */
@keyframes animate {
  from {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
/* --- Arrows --- */
.arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  display: flex;
  gap: 10px;
  width: 300px;
  max-width: 30%;
  align-items: center;
  z-index: 100;
}
.arrows button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #14ff72cb;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: 0.5s;
}
.arrows button:hover {
  background: #fff;
  color: #000;
}
/* --- Progress bar --- */
.carousel .timeRunning {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: #14ff72cb;
  animation: runningTime 7s linear forwards;
}
@keyframes runningTime {
  from { width: 0%; }
  to { width: 100%; }
}
/* --- Responsive --- */
@media screen and (max-width: 999px) {
  .list .item .content { left: 50px; }
  .content .title, .content .name { font-size: 70px; }
  .content .des { font-size: 16px; }
}
@media screen and (max-width: 690px) {
  .list .item .content { top: 40%; }
  .content .title, .content .name { font-size: 45px; }
  .content .btn button {
    padding: 10px 15px;
    font-size: 14px;
  }
}