* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #fff;
}

ul {
  text-decoration: none;
  list-style: none;
}
body {
  color: #fff;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.container {
  width: 1128px;
  max-width: 80%;
  background-color: #eb7119;
  position: relative;
  margin: 0 auto;
  z-index: 1;
}
.container .lists {
  display: flex;
  gap: 2rem;
  position: absolute;
  top: 1rem;
}
.container .lists .item-link {
  font-size: 0.875rem;
}
.carousel {
  overflow: hidden;
  position: relative;
  height: 100vh;
  width: 100vw;
}
.carousel .lists .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .lists .item {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
.carousel .lists .item .list-details {
  position: absolute;
  width: 1128px;
  max-width: 80%;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 30%;
}

.carousel .lists .item .list-details .author {
  text-shadow: 1px 2px 8px black;
  letter-spacing: 2px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 600;
}
.carousel .lists .item .list-details .heading {
  font-size: 4.2rem;
  font-weight: 600;
}
.carousel .lists .item .list-details .topic {
  font-size: 4.1rem;
  font-weight: 900;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: #eb7119;
}
.carousel .lists .item .list-details .description {
  font-size: medium !important;
}
.thumbnail {
  position: absolute;
  z-index: 100;
  bottom: 50px;
  left: 50%;
  width: max-content;
  display: flex;
  gap: 1rem;
}

.thumbnail .item {
  width: 150px;
  height: 200px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.thumbnail .item .item-content {
  position: absolute;
  bottom: 10%;
  left: 10%;
}
.thumbnail .item .item-content .name {
  font-size: medium;
}
.thumbnail .item .item-content .family {
  font-size: small;
}
.arrows {
  z-index: 1;
  /* background-color: #eb7119; */
  position: absolute;
  bottom: 20%;
  left: 30%;
  gap: 1rem;
  display: flex;
}
.arrows button {
  display: flex;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: medium;
  align-items: center;
  cursor: pointer;
  color: white;
  font-weight: 400;
  background-color: #eee4;
  transition: 0.3s ease;

  &:hover {
    background-color: white;
    color: black;
    opacity: 0.8;
  }
}

.carousel .lists .item:nth-child(1) {
  z-index: 1;
}
.carousel .lists .item:nth-child(1) .author,
.carousel .lists .item:nth-child(1) .heading,
.carousel .lists .item:nth-child(1) .topic,
.carousel .lists .item:nth-child(1) .description {
  transform: translateY(150px);
  filter: blur(20px);
  opacity: 0;
  animation: showDetails 0.6s 0.8s forwards ease;
}

@keyframes showDetails {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.carousel .lists .item:nth-child(1) .heading {
  animation-delay: 1.2s;
}

.carousel .lists .item:nth-child(1) .topic {
  animation-delay: 1.3s;
}

.carousel.next .lists .item:nth-child(1) img {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 150px;
  background-color: #eb7119;
  height: 200px;
  border-radius: 10px;
  animation: showImage 0.8s forwards;
}

@keyframes showImage {
  to {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;

    border-radius: 10px;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
  width: 0;
  overflow: hidden;
  animation: transformThumbnail 0.5s linear forwards;
}

@keyframes transformThumbnail {
  to {
    width: 150px;
  }
}

.carousel.next .thumbnail {
  transform: translateX(150px);
  animation: shiftThumbnailsLeft 0.5s linear forwards;
}

@keyframes shiftThumbnailsLeft {
  to {
    transform: translateX(0);
  }
}

.carousel.prev .lists .item:nth-child(2) .author,
.carousel.prev .lists .item:nth-child(2) .heading,
.carousel.prev .lists .item:nth-child(2) .topic,
.carousel.prev .lists .item:nth-child(2) .description {
  animation: hideContent 0.7s linear forwards;
}

@keyframes hideContent {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

.carousel.prev .lists .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .lists .item:nth-child(2) img {
  position: absolute;
  bottom: 0;
  left: 0;
  animation: downscaleHeight 0.8s linear forwards;
}

@keyframes downscaleHeight {
  to {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: 150px;
    height: 200px;
    border-radius: 10px;
    object-position: 60% 50%;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  width: 0;
  overflow: hidden;
  opacity: 0;
  animation: transformThumbnail 0.5s linear forwards;
}

@keyframes shiftThumbnailsRight {
  to {
    transform: translateX(150px);
  }
}

.carousel.next button,
.carousel.prev button {
  pointer-events: none;
}

.time {
  position: absolute;
  height: 3px;
  top: 0;
  background-color: #eb7119;
  z-index: 1;
  width: 0%;
}
@keyframes timeRunning {
  to {
    width: 0%;
  }
}
.carousel.next .time,
.carousel.prev .time {
  width: 100%;
  animation: timeRunning 2500ms linear forwards;
}

@media screen and (max-width: 723px) {
  .carousel .lists .item .list-details {
    padding-right: 0;
  }
  .carousel .lists .item .list-details .author {
    font-size: x-small;
  }
  .carousel .lists .item .list-details .heading {
    font-size: 3.2rem;
  }
  .carousel .lists .item .list-details .topic {
    font-size: 3.1rem;
  }
  .arrows {
    z-index: 1;
    /* background-color: #eb7119; */
    position: absolute;
    bottom: 20%;
    left: 10%;
    gap: 1rem;
    display: flex;
  }
}
