html,
body {
  background-color: #fff5f8;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}
.glass-card {
  background: #ffffff;
  border: 1px solid #fcd4e3;
  box-shadow: 0 4px 20px -2px rgba(227, 114, 151, 0.05);
}

#sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-open {
  transform: translateX(0);
}
.sidebar-closed {
  transform: translateX(-100%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade {
  animation: fadeIn 0.4s ease-out forwards;
}

.page-section {
  display: none;
}
.page-active {
  display: block;
}

.marquee-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  display: flex;
  /* Background transparan agar mengikuti background parent (#fefffa) */
  background: transparent !important;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10vw;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #fefffa, transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #fefffa, transparent);
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  min-width: 200%; /* Memaksa duplikasi menutupi layar ultrawide/zoom out */
}
.marquee-content:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.book-cover {
  display: inline-block;
  width: 70px;
  height: 105px;
  margin: 0 6px;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.2s;
  cursor: pointer;
  background-color: #fcd4e3;
}
.book-cover:hover {
  transform: scale(1.08) translateY(-4px);
}
@media (min-width: 640px) {
  .book-cover {
    width: 110px;
    height: 165px;
    margin: 0 12px;
  }
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-content.active {
  max-height: 1200px;
}
.accordion-inner {
  overflow: hidden;
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-icon.rotate-180 {
  transform: rotate(180deg);
}

#leaves-container {
  position: absolute;
  top: 0;
  bottom: -60px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
}
@media (min-width: 640px) {
  #leaves-container {
    bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }
}
.leaf {
  position: absolute;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fcd4e3" stroke="%23e37297" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z"/><path d="M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translate(0, -20px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translate(0, 100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes footerFall {
  0% {
    transform: translate(0, -50px) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  80% {
    transform: translate(0, 40px) rotate(180deg);
    opacity: 0.7;
  }
  100% {
    transform: translate(0, 40px) rotate(180deg);
    opacity: 0;
  }
}
.footer-leaf-anim {
  animation: footerFall linear infinite;
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #fff5f8;
  border-radius: 8px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #fcd4e3;
  border-radius: 8px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #e37297;
}
.disabled-btn {
  background-color: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

.scallop-border {
  background-image: radial-gradient(
    circle at 50% 0,
    #fff5f8 70%,
    transparent 71%
  );
  background-size: 36px 18px;
  background-repeat: repeat-x;
  height: 18px;
}
@media (min-width: 640px) {
  .scallop-border {
    background-size: 84px 42px;
    height: 42px;
  }
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #fff5f8;
}

::-webkit-scrollbar-thumb {
  background-color: #fcd4e3;
  border-radius: 10px;
  border: 3px solid #fff5f8;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e37297;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #fcd4e3 #fff5f8;
}