@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap");
@import url(root.css);
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Lora", serif;
}
body {
  background-color: #000;
  color: #eee;
  margin: 0;
  font-size: 14px;
}

.navbar-brand-image {
  background-color: rgba(var(--white),1);
  margin-top: 20px;
  width: 100px;
  border-radius: 8px;
  box-shadow: 3px 5px 1px rgba(0, 0, 0, 0.3);
}
.carousel {
  position: relative;
  /* margin-top: -80px; */
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
Header,
.carousel .list .item {
  position: absolute;
  /* top: 0;
  left: 0;
  bottom: 0;
  right: 0; */
  inset: 0 0 0 0;
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.navbar-container {
  z-index: 10;
}
.navbar-container,
.carousel .list .item .content {
  position: absolute;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translate(-50%);
  box-sizing: border-box;
}
.carousel .list .item .content {
  position: absolute;
  top: 20%;
  padding-right: 30%;
  color: rgba(var(--white),1);
}

.carousel .list .item .content .author {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 15px;
  text-transform: uppercase;
}
.carousel .list .item .content .author,
.carousel .list .item .content .title {
  text-shadow: 2px 2px 4px rgba(var(--black),1);
}
.carousel .list .item .content .topic {
  text-shadow: 1px 1px 1px rgba(var(--white),1);
}
.carousel .list .item .content .title,
.carousel .list .item .content .topic {
  font-weight: bold;
  font-size: 5em;
  line-height: 1.3em;
}
.carousel .list .item .content .title {
  white-space: nowrap;
}

.carousel .list .item .content .topic {
  /* color: green; */
  color: rgba(var(--green),1);
}
.carousel .list .item .content .buttons {
  display: grid;
  grid-template-columns: repeat(3, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 20px;
}

.carousel .list .item .content a {
    border: none;
    background-color: rgba(var(--white),1);
    letter-spacing: 3px;
    color: rgba(var(--black),1);
    text-decoration: none;
    text-align: center;
    /* ikut parentnya grid-template-rows */
    line-height: 40px;
    text-transform: uppercase;
    font-weight: 500;
}
.carousel .list .item .content a:hover {
    background-color: rgba(var(--grey),0.3);
    color : rgba(var(--white),1);
    border: 1px solid rgba(var(--white),1);
}

/* .carousel .list .item .content a:nth-child(3) {
    background-color: rgba(var(--white), 0.2);
    color: rgba(var(--white),1);
    border: 1px solid rgba(var(--white),1);
}
.carousel .list .item .content a:nth-child(3):hover {
    background-color: rgba(var(--white),1);
    color: rgba(var(--black),1);
} */
.carousel .list .item .content a,
.carousel .list .item .content a:hover,
.carousel .list .item .content a:nth-child(3),
.carousel .list .item .content a:nth-child(3):hover {
        transition: all 0.3s ease-in-out;
}
/* thumbnail */
.thumbnail {
  position: absolute;
  bottom: 50px;
  left: 50%;
  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 {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}
.thumbnail .item .content .title {
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  color: rgba(var(--green),1);
  text-shadow: 1px 1px 1px rgba(var(--white),1);
}
/* arrows */
.arrows {
  position: absolute;
  top: 85%;
  right: 60%;
  width: 300px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee;
  border: 1px solid rgba(0, 0, 0, 0.3);
  /* border: none; */
  font-family: monospace;
  color: rgba(0, 0, 0, 0.3);
  font-weight: bold;
  font-size: large;
  cursor: pointer;
  transition: 0.5s;
  z-index: 100;
}
.arrows button:hover {
    background-color: rgba(var(--white),1);
    color: rgba(var(--grey),1);
    cursor: pointer;
}

.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .description,
.carousel .list .item:nth-child(1) .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.carousel .list .item:nth-child(1) {
  z-index: 1;
}
.carousel .list .item:nth-child(1) .author {
  animation-delay: 0.5s;
}
.carousel .list .item:nth-child(1) .title {
  animation-delay: 0.7s;
}
.carousel .list .item:nth-child(1) .topic {
  animation-delay: 0.9s;
}
.carousel .list .item:nth-child(1) .description {
  animation-delay: 1.1s;
}
.carousel .list .item:nth-child(1) .buttons {
  animation-delay: 1.2s;
}

/* EFFECT next Button */
/* transition carousel image*/
/* supaya kelihatan kalau gambar kecil keluar ke gambar besar */
.carousel.next .list .item:nth-child(1) img {
  position: absolute;
  width: 150px;
  height: 220px;
  left: 50%;
  bottom: 50px;
  border-radius: 20px;
  animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
  to {
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    border-radius: 0;
  }
}
/* transition thumbnail */
.carousel.next .thumbnail .item:nth-last-child(1) {
  width: 0;
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
@keyframes showThumbnail {
  to {
    width: 150px;
  }
}
.carousel.next .thumbnail {
  transform: translateX(150px);
  animation: transformThumbnail 0.5s linear 1 forwards;
}
@keyframes transformThumbnail {
  to {
    transform: translateX(0);
  }
}

/* EFFECT prev Button */
/* Seolah2 gambar besar masuk ke thumbnail */
.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}
.carousel.prev .list .item:nth-child(2) img {
  position: absolute;
  bottom: 0;
  left: 0;
  animation: outImage 0.5s linear 1 forwards;
}
@keyframes outImage {
  to {
    width: 150px;
    height: 220px;
    left: 50%;
    bottom: 50px;
    border-radius: 20px;
  }
}
.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}
/* arrows ketika transisi */
.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}

.carousel .list .item:nth-child(2) .author,
.carousel .list .item:nth-child(2) .title,
.carousel .list .item:nth-child(2) .topic,
.carousel .list .item:nth-child(2) .description,
.carousel .list .item:nth-child(2) .buttons {
  animation: contentOut 0.5s 1s linear 1 forwards;
}
@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

/* time */
/* ketika sendang transisi ada slider yang menunjukkan waktu di atas */
.time {
  width: 0%;
  height: 5px;
  background-color: rgba(var(--green),1);
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
}
.carousel.next .time,
.carousel.prev .time {
  width: 100%;
  animation: timeRunning 3s linear 1 forwards;
}
@keyframes timeRunning {
  to {
    width: 0;
  }
}

@media screen and (max-width: 1024px) {
  .arrows {
    right: 55%;
  }
  .carousel .list .item .content .topic {
    font-size: 36px;
  }
}

@media screen and (max-width: 768px) {
  .carousel .list .item .content {
    padding-right: 0;
  }
  .carousel .list .item .content .title,
  .carousel .list .item .content .topic {
    font-size: 30px;
  }
  .carousel .list .item .content {
    max-width: 400px;
    left: 40%;
  }
  .arrows {
    top: 60%;
    right: 65%;
    width: 100px;
  }
}
@media screen and (max-width: 468px) {
  .carousel {
    width: 100vw;
    height: 100vh;
  }
  .carousel .list .item .content {
    max-width: 325px;
    top: 22%;
    left: 45%;
  }
  .arrows {
    top: 70%;
  }
  .thumbnail {
    bottom: 150px;
    width: max-content;
    gap: 20px;
  }
  @keyframes outImage {
        to {
            width: 150px;
            height: 220px;
            left: 50%;
            bottom: 150px;
            border-radius: 20px;
        }
    }
}
@media screen and (max-width: 350px) {
  .carousel .list .item .content {
    max-width: 300px;
  }

  .carousel .list .item {
    background-color: rgb(255, 255, 255);
  }
  .carousel .list .item img {
    width: 100%;
    object-fit: cover;
  }
  .arrows {
    top: 70;
    left: 15%;
  }
}
