body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
}

.flipbook-container {
  width: 100%;
  height: 100%;
  max-width: 90vw;
  max-height: 90vh;
  perspective: 1500px;
  position: relative;
  background-color: #f0f0f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#flipbook {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.page {
  width: 100%;
  height: 100%;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transform-origin: left;
  transition: transform 0.8s ease, z-index 0.8s;
  box-sizing: border-box;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page canvas {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Menjaga rasio aspek PDF */
}

.page.flipped {
  transform: rotateY(-180deg);
  z-index: 0;
}

.arrow {
  position: absolute;
  /* top: 50%; */
  bottom: 0; /* Posisi di bawah halaman */
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #007bff;
  cursor: pointer;
  z-index: 20;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-arrow {
  left: 0; /* Posisi di sisi kiri halaman */
  margin-left: 5px;
}

.right-arrow {
  right: 0; /* Posisi di sisi kanan halaman */
  margin-right: 5px;
}

.arrow:hover {
  background-color: #007bff;
  color: #fff;
}

/* Selalu tampilkan panah pada mobile */
@media (max-width: 768px) {
  .arrow {
    display: flex;
  }
}
