.cover-section .cover-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 0 3rem;
  transition: opacity 2s ease;
}

@media (max-width: 991px) {
  .cover-section .cover-wrapper {
    padding: 4rem 0 8rem;
    align-items: center;
  }
}

@media (max-width: 400px) and (max-height: 690px) {
  .cover-section .cover-wrapper {
    transform: scale(0.75);
  }
}

.cover-section .cover-wrapper .cover-content {
  text-align: center;
  position: relative;
  background-color: transparent;
  border-radius: 12px;
  color: var(--color-dark);
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .cover-section .cover-wrapper .cover-content {
    width: 70%;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .cover-section .cover-wrapper .cover-content {
    width: 100%;
  }
}

@media (max-height: 667px) {
  .cover-section .cover-wrapper .cover-content {
    align-items: flex-start;
  }
}

.cover-section .cover-wrapper .cover-content .cover-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  width: 100%;
}

.cover-section .cover-wrapper .cover-content .cover-body::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse, #fff 0%, #fff 40%, transparent 100%);
  content: "";
  border-radius: var(--border-radius);
}

@media (max-width: 991px) {
  .cover-section .cover-wrapper .cover-content .cover-body {
    width: 100%;
    flex-direction: column;
    padding: 1rem;
  }
}

.cover-section .cover-wrapper .cover-content .cover-body .greeting-wrapper {
  position: relative;
}

@media (max-width: 767px) {
  .cover-section .cover-wrapper .cover-content .cover-body .greeting-wrapper {
    font-size: 14px;
  }
}

.cover-section .cover-wrapper .cover-content .cover-body .greeting-wrapper h6 {
  font-weight: 700;
}

.cover-section .cover-wrapper .cover-content .cover-body h6 {
  font-weight: 600;
}

.cover-section .cover-wrapper .cover-content .cover-body .image-wrapper {
  position: relative;
  width: 200px;
  height: auto;
  aspect-ratio: 3/4;
  border-radius: 500px;
  border: 1px solid #ecdcc2;
  padding: 5px;
}

@media (max-width: 991px) {
  .cover-section .cover-wrapper .cover-content .cover-body .image-wrapper {
    width: 50%;
    margin: 0 auto 3rem;
  }
}

@media (max-width: 767px) {
  .cover-section .cover-wrapper .cover-content .cover-body .image-wrapper {
    width: 70%;
    height: 100%;
    margin: 0 auto 1rem;
  }
}

@media (max-width: 375px) {
  .cover-section .cover-wrapper .cover-content .cover-body .image-wrapper {
    width: 60%;
  }
}

.cover-section .cover-wrapper .cover-content .cover-body .image-wrapper .cover-background {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 500px;
  position: relative;
}

.cover-section .cover-wrapper .cover-content .cover-body .cover-description {
  padding: 0 1.5rem;
  text-align: center;
}

@media (max-width: 767px) {
  .cover-section .cover-wrapper .cover-content .cover-body .cover-description {
    padding: 0 0 1rem;
  }
}

.cover-section .cover-wrapper .cover-content .cover-body .cover-description * {
  position: relative;
}

.cover-section .cover-wrapper .cover-content .elements-widget {
  width: 100%;
}

/* kartu */
#kartu {
  display: none;
  transition: all 0.3s ease-in-out;
}

#kartu.show {
  display: flex;
  opacity: 1;
  justify-content: center;
}

.tabs-gift.expanded-margin {
  margin-bottom: 20px;
}

.kartu {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 350px; /* Ukuran kotak card */
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kartu.show {
  opacity: 1;
}

/* Styling untuk logo di dalam kartu */
.kartu img {
  width: 50px; /* Ukuran gambar logo */
  height: 50px;
  margin-bottom: 10px;
}

/* Button styling */
.tombol {
  cursor: pointer;
  padding: 8px 16px;
  background-color: gold;
  color: black;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-top: 10px;
  width: auto; /* Agar tidak melebar full */
}

.tombol:hover {
  background-color: #d4af37;
}

  /* Style untuk Guestbook form */
  .guestbook_form_wrapper {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .guestbook_form_wrapper .form-control {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .guestbook_form_wrapper button {
    background-color: #5C6BC0;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .guestbook_form_wrapper button:hover {
    background-color: #3949ab;
  }

  /* Style untuk bagian Guestbook Wishes */
  .wishes_display_wrapper {
    max-height: 400px; /* Sesuaikan tinggi kotak sesuai dengan yang diinginkan */
    overflow-y: auto; /* Menambahkan scroll vertikal jika konten lebih panjang */
    margin-top: 40px;
    padding: 20px;
    background-color: #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .wishes_display_wrapper h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }

  /* Daftar komentar (wishes) */
  .wishes_list_wrapper {
    max-height: 400px;  /* Tentukan tinggi maksimal area scrollable */
    overflow-y: auto;   /* Agar bisa digulir vertikal */
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .wish_item {
    background-color: #fafafa;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
  }

  .wish_item strong {
    font-size: 18px;
    color: #5C6BC0;
  }

  .wish_item p {
    font-size: 14px;
    color: #555;
  }

  .wish_item strong {
    font-size: 14px;
    color: #000000;
  }

  /* Animasi untuk item wish */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* Responsif untuk ukuran layar kecil */
  @media (max-width: 768px) {
    .guestbook_form_wrapper {
      padding: 15px;
    }

    .wishes_display_wrapper {
      padding: 15px;
    }

    .wishes_display_wrapper h3 {
      font-size: 20px;
    }

    .wish_item {
      padding: 10px;
    }

    .guestbook_form_wrapper button {
      font-size: 14px;
      padding: 10px 16px;
    }
  }

  .book-section {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.flipbook-container {
  position: relative;
  width: 700px;
  height: 500px;
  perspective: 1500px; /* Menambahkan perspektif untuk efek 3D */
}

.book {
    width: 100%;
    height: 100%;
    display: flex;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.halaman {
    width: 50%;
    height: 100%;
    position: absolute;
    background: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transform-origin: center left;
    transition: transform 1s ease-in-out;
    backface-visibility: hidden;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.halaman-kiri {
    left: 0;
    border-right: 2px solid #c2a477; /* Warna emas lembut */
}

.halaman-kanan {
    right: 0;
}

.halaman img {
    width: 90%;
    height: auto;
    border-radius: 10px;
}

.halaman h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.halaman p {
    text-align: center;
    font-size: 16px;
}

/* Tombol Navigasi */
.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Agar tidak mengganggu interaksi lain */
}

.btnpage {
    width: 40px;
    height: 40px;
    background-color: rgba(127, 111, 44, 0.7); /* Warna dasar tombol */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* Supaya tombol bisa ditekan */
}

/* Efek Hover */
.btnpage:hover {
    background-color: rgba(77, 66, 23, 0.7); /* Warna dasar tombol */
    transform: scale(1.1);
}

/* Tombol "Sebelumnya" di kiri */
.btnpage:first-child {
    position:relative;
    left: -60px;
}

/* Tombol "Selanjutnya" di kanan */
.btnpage:last-child {
    position:relative;
    right: -60px;
}

/* Responsif untuk layar lebih kecil */
@media (max-width: 768px) {
  .flipbook-container {
      height: 340px; /* Lebih kecil untuk tablet atau layar lebih kecil */
  }
  
  .book {
      width: 100%; /* Lebih kecil untuk tablet */
  }

  .halaman h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.halaman p {
  text-align: center;
  font-size: 12px;
}

.halaman-kiri {
  left: 0;
  border-right: 2px solid #c2a477; /* Warna emas lembut */
  display: flex;
  justify-content: center; /* Menempatkan gambar di tengah */
  align-items: center; /* Menjaga gambar tetap berada di tengah secara vertikal */
  overflow: hidden; /* Mencegah gambar meluap keluar halaman */
}

.halaman img {
  width: 230%; /* Membuat gambar menyesuaikan lebar halaman */
  height: auto; /* Menjaga rasio aspek gambar */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Tambahkan bayangan jika perlu */
}
  
  .btnpage {
      width: 40px;
      height: 40px;
      font-size: 18px;
  }

  .btnpage:first-child {
    position:relative;  
    left: 80px;
      top: 200px;
  }

  .btnpage:last-child {
    position:relative;  
    right: 80px;
      top: 200px;
  }

  /* gift*/
  #kartu.show {
    display:block;
    opacity: 1;
    justify-content: center;
  }
  .kartu {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 300px; /* Ukuran kotak card */
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  

}

