@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

.font-judul {
  font-family: "Dancing Script", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Ballet:opsz@16..72&family=Dancing+Script:wght@400..700&display=swap');

.font-judul2 {
  font-family: "Dancing Script", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

::-webkit-scrollbar {
  width: 4px;
  height: 2px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@keyframes lambai1 {
  0% {
    transform: rotateZ(-1deg);
  }

  50% {
    transform: rotateZ(5deg);
  }

  100% {
    transform: rotateZ(-1deg);
  }
}

.img-daun {
  animation: lambai1 6s ease-in-out infinite;
  /* Adjusted the duration to 2s and added ease-in-out for smoother movement */
  transform-origin: bottom;
  /* Set the origin of the transformation to the bottom */
}

@keyframes lambai2 {
  0% {
    transform: rotateZ(-1deg);
  }

  50% {
    transform: rotateZ(5deg);
  }

  100% {
    transform: rotateZ(-1deg);
  }
}

.img-daun2 {
  animation: lambai2 6s ease-in-out infinite;
  /* Adjusted the duration to 2s and added ease-in-out for smoother movement */
  transform-origin: bottom;
  /* Set the origin of the transformation to the bottom */
}


@keyframes lambai3 {
  0% {
    transform: rotateZ(-1deg);
  }

  50% {
    transform: rotateZ(5deg);
  }

  100% {
    transform: rotateZ(-1deg);
  }
}

.img-daun3 {
  animation: lambai3 8s ease-in-out infinite;
  /* Adjusted the duration to 2s and added ease-in-out for smoother movement */
  transform-origin: bottom;
  /* Set the origin of the transformation to the bottom */
}


@keyframes lambai4 {
  0% {
    transform: rotateZ(-1deg);
  }

  50% {
    transform: rotateZ(5deg);
  }

  100% {
    transform: rotateZ(-1deg);
  }
}

.img-daun4 {
  animation: lambai4 10s ease-in-out infinite;
  /* Adjusted the duration to 2s and added ease-in-out for smoother movement */
  transform-origin: bottom;
  /* Set the origin of the transformation to the bottom */
}

.img-daun-atas {
  animation: lambai4 10s ease-in-out infinite;
  /* Adjusted the duration to 2s and added ease-in-out for smoother movement */
  transform-origin: top;
  /* Set the origin of the transformation to the bottom */
}



@keyframes swipeUp {
  0% {
    transform: translateY(400px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.wipe-up {
  animation: swipeUp 2s ease-in-out forwards;
}

@keyframes swipeUp2 {
  0% {
    transform: translateY(300px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.wipe-up2 {
  animation: swipeUp2 3s ease-in-out forwards;
}

@keyframes swipeUp3 {
  0% {
    transform: translateY(300px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.wipe-up3 {
  animation: swipeUp3 4s ease-in-out forwards;
}

@keyframes scale-down {
  0% {
    transform: scale(2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.scale-down {
  animation: scale-down 3s ease-in-out forwards;
}



@keyframes swipeLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.swipe-left {
  animation: swipeLeft 2s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes swipeRight {
  0% {
    transform: translateX(-100px);
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.swipe-right {
  animation: swipeRight 2s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes swipeDown {
  0% {
    transform: rotate(180deg) translateY(50px);
    opacity: 0;
  }

  100% {
    transform: rotate(180deg) translateY(0);
    opacity: 1;
  }
}

.swipe-down {
  animation: swipeDown 2s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

/* Overlay styling */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Hide body scroll when overlay is active */
body.overlay-active {
  overflow: hidden;
}


.slide-up {
  animation: slideUp 1s forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

.hidden {
  overflow: hidden;
  transition: opacity 3s ease-in-out;
}

@keyframes scrollAnimation {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#scroll-animate {
  animation: scrollAnimation 2s infinite;
}

#expandable-box {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px; 
  overflow: hidden; 
  transition: transform 0.2 ease-in-out, height 0.5s ease-in-out; 
}

#expandable-box.expanded { 
  height: 300px;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
}


.hidden {
  display: none;
  transition: opacity 3s ease-in-out;
}
