body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f5f5;
  /* font-family: Arial, sans-serif; */
  font-family: 'Fredoka', sans-serif;
  margin: 0;
  padding: 7px;
}

#flipbook {
  width: 90vw; /* lebar menyesuaikan layar */
  max-width: 800px; /* batas di desktop */
  margin-bottom: 15px;
}

.page {
  width: 100%;
  height: 100%;
  background-image: url("../images/halaman.jpg");
  background-size: cover; /* gambar memenuhi halaman */
  background-position: center; /* fokus di tengah */
  background-repeat: no-repeat;
  padding: 20px;
  font-size: 1rem;
  box-sizing: border-box;
  color: #000;
}

/* khusus cover */
.cover {
  background-image: url("../images/cover.jpg"); /* ganti dengan file cover */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page {
  /* font-family: "Times New Roman", serif; */
  font-family: 'Fredoka', sans-serif;
  font-size: 10pt;
  line-height: 1;
  text-align: justify;
  padding: 10px 50px;
}
.page h1,
.page h2 {
  text-align: center;
}

.footer {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.8rem;
  color: #333;
  opacity: 0.8;
}

.controls {
  display: flex;
  gap: 10px;
}

button {
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
}

.penutup {
  margin-top: 10px;
  text-align: right;
}








.toc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  display: flex;
  align-items: baseline;
  font-size: 11pt;
  margin: 3px 0;
}

.toc li span:first-child {
  flex: 1; /* isi ruang di kiri */
  position: relative;
}

/* pastikan teks kiri tetap terlihat di atas titik */
.toc li span:first-child {

  padding-right: 4px;
}

.page-number {
  padding-left: 6px;
}

/* indentasi untuk sub-bab */
.toc li.sub { padding-left: 20px; }
.toc li.sub2 { padding-left: 40px; }
