@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Carme&display=swap");
@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");

body {
  opacity: 0;
  transition: opacity 0.5s ease-in 0.3s;
  margin: 0;
  background-color: #000;
  color: #eee;
  font-size: 12px;
  font-family: "Poppins";
  overflow-x: hidden;
}

body.loaded {
  opacity: 1;
}

/* carousel */
.carousel {
  height: 100vh;
  margin-top: -50px;
  overflow: hidden;
  position: relative;
  user-select: none;
}
.carousel .list .item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}
.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}
.carousel .list .item .content {
  position: absolute;
  top: 34%;
  width: 1140px;
  max-width: 80%;
  left: 45%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 10px 10px #212121;
  font-family: "Raleway", sans-serif;
}
.carousel .list .item .title,
.carousel .list .item .topic {
  font-size: 4em;
  font-weight: 600;
  line-height: 1.3em;
  text-shadow: #ff9100;
  font-family: "Carme", sans-serif;
}
.carousel .list .item .topic {
  color: #ff9100;
}

.des {
  font-size: 15px;
}

.carousel .list .item .buttons {
  position: absolute;
  display: flex;
  gap: 15px;
  bottom: -31px;
  left: 22px;
  width: 100%;
}

/* Buttons */
.home-btn-2,
.home-btn-1 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 17px;
  border: 4px solid transparent;
  font-size: 14px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 300;
  color: #fff;
  box-shadow: 0 0 0 2px #ff9100;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  height: 23px;
  font-family: "Roboto", sans-serif;
  letter-spacing: 1px;
  width: -1px;
}

.home-btn-2 .bell,
.home-btn-1 svg,
.home-btn-2 .bell-hover {
  position: absolute;
  width: 11px;
  fill: #fff;
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-btn-2 .bell,
.home-btn-1 .arr-1 {
  right: 12px;
}

.home-btn-2 .bell-hover,
.home-btn-1 .arr-2 {
  left: 9px;
  opacity: 0;
  fill: white;
}

.home-btn-2 .arr-1 {
  position: absolute;
  right: 16px;
  width: 24px;
  fill: #ff9100;
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-btn-2 .circle,
.home-btn-1 .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #ff9100;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-btn-2 .btn-text-2,
.home-btn-1 .btn-1-text {
  position: relative;
  z-index: 2;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  font-size: 85%;
}

.home-btn-2:hover,
.home-btn-1:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #fff;
  border-radius: 12px;
}

.home-btn-2:hover .arr-1,
.home-btn-1:hover .arr-1 {
  right: -25%;
}

.home-btn-2:hover .btn-text-2,
.home-btn-1:hover .btn-1-text {
  transform: translateX(12px);
}

.home-btn-2:hover .bell,
.home-btn-1:hover .arr-1 {
  opacity: 0;
}

.home-btn-2:hover .bell-hover {
  opacity: 1;
  animation: bell 0.9s both;
}
.home-btn-1:hover .arr-2 {
  opacity: 1;
}
.home-btn-2:hover .circle,
.home-btn-1:hover .circle {
  width: 220px;
  opacity: 1;
}

.home-btn-2:hover .arr-1,
.home-btn-2:hover .arr-1 {
  fill: #212121;
}

.home-btn-2:active,
.home-btn-1:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 4px #ff9100;
}

/* Bell ringing animation keyframes */
@keyframes bell {
  0%,
  100% {
    transform-origin: top;
  }
  15% {
    transform: rotateZ(10deg);
  }
  30% {
    transform: rotateZ(-10deg);
  }
  45% {
    transform: rotateZ(5deg);
  }
  60% {
    transform: rotateZ(-5deg);
  }
  75% {
    transform: rotateZ(2deg);
  }
}
/* thumbail */
.thumbnail {
  position: absolute;
  bottom: 39px;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}
.thumbnail .item {
  width: 130px;
  height: 160px;
  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: -12px;
}
.thumbnail .item .content .title {
  font-weight: 400;
}
/* arrows */
.arrows {
  position: absolute;
  top: 90%;
  right: 40%;
  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: 0.5s;
}
.arrows button:hover {
  background-color: #fff;
  color: #000;
}

/* animation */
.carousel .list .item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}
.carousel .list .item:nth-child(1) .content .title {
  animation-delay: 1.2s !important;
}
.carousel .list .item:nth-child(1) .content .topic {
  animation-delay: 1.4s !important;
}
.carousel .list .item:nth-child(1) .content .des {
  animation-delay: 1.6s !important;
}
.carousel .list .item:nth-child(1) .content .buttons {
  animation-delay: 1.8s !important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.prev .list .item img {
  z-index: 100;
}
@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}
.carousel.next .thumbnail {
  animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

/* running time */

.carousel .time {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 10px;
  background-color: #f1683a;
  left: 0;
  top: 0;
}
.carousel.next .time,
.carousel.prev .time {
  animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* prev click */

.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .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;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .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;
  }
}
