:root {
  --gold: rgb(231, 181, 56); /* #f14e95 */
  --bg: rgb(0, 0, 0); /* #ffffff */
  --shadow: 0 2px 2px rgba(255, 255, 255, 0.5); /* rgb(0 0 0 / 0.5) */
}

html {
  -webkit-filter: none !important; /* Untuk browser lama (Safari lama) */
  filter: none !important; /* Untuk browser modern */
}

body {
  font-size: 1.2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Space Grotesk', sans-serif;
  min-height: 4000px;
}

button, input, textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/bg-prewed.jpg);
  background-size: cover;
  background-position: center;
  transform: translateY(0);
  will-change: transform;
}

.home-bg, .info-bg, .gallery-bg, .ucapan-bg, .gifts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/bg.jpg); /* Sesuaikan dengan gambar background */
  background-size: cover;
  background-position: center;
  z-index: -1; /* Pastikan elemen ini di belakang konten */
}

.home, .info, .gallery, .ucapan, .gifts {
  background-image: none; /* Hapus background-image dari section */
  position: relative; /* Pastikan section memiliki posisi relatif */
}

/* Gaya khusus untuk Safari iOS */
@supports (-webkit-touch-callout: none) {
  .hero::before {
    background-attachment: scroll; /* Hapus efek parallax di Safari iOS */
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden; /* Pastikan gambar tidak keluar dari container */
}

#hero {
  background-color: rgba(255, 255, 255, 0.3); /* Fallback jika backdrop-filter tidak didukung */
  backdrop-filter: blur(10px); /* Efek blur pada background */
  -webkit-backdrop-filter: blur(10px);
}

.hero h5{
  color: rgb(255, 255, 255);
  font-size: 2.5rem;
  font-style: bold;
}

.recipient-box {
  padding-top: 4rem;
  display: block !important; /* Pastikan elemen ditampilkan */
  visibility: visible !important; /* Pastikan elemen tidak disembunyikan */
  opacity: 1 !important; /* Pastikan elemen tidak transparan */
  z-index: 9999; /* Pastikan elemen di atas elemen lain */
  position: relative; /* Pastikan elemen memiliki posisi yang benar */
}

.hero h1,
.hero h4,
.hero p {
  text-shadow: var(--shadow);
}

.hero h1 {
  font-family: 'Sacramento', cursive;
  font-size: 6rem;
}

.hero h4 {
  font-size: 1.6rem;
}

.hero p {
  font-size: 1.4rem;
}

.hero p1 {
  font-size: 1.5rem;
}

.hero a {
  color: rgba(179, 145, 67, 100);
  background-color: rgb(255, 255, 255);
  box-shadow: var(--shadow);
}

.hero a:hover {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

.mynavbar {
  background-color: rgba(252, 199, 65, 0.605) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mynavbar .offcanvas {
  height: 100vh;
}

.mynavbar .navbar-brand,
.mynavbar .offcanvas-title {
  font-family: 'Sacramento', cursive;
  font-size: 3.2rem;
  font-weight: bold;
}

.mynavbar .nav-link {
  text-transform: uppercase;
}

#home,
#gallery,
#gifts {
    position: relative; /* Elemen sebagai referensi posisi bunga */
    overflow: hidden; /* Agar bunga tidak keluar dari batas elemen */
}

.bunga {
    position: absolute;
    top: -10%;
    font-size: 15px; /* Ukuran bunga */
    animation: jatuh linear infinite; /* Durasi animasi diubah menjadi 15 detik */
    pointer-events: none; /* Agar bunga tidak mengganggu interaksi klik */
}

@keyframes jatuh {
    0% { transform: translateY(-10%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.home {
  min-height: 100vh;
  margin-top: -6.4rem;
  padding-top: 13rem;
  padding-bottom: 10rem;
}

.scroll-container {
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.home .container,
.gallery .container,
.gifts .list-group-item {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.612)); /* Gradasi dari putih ke abu-abu */
  padding: 2rem; /* Padding di dalam container */
  border-radius: 15px; /* Sudut melengkung */
  box-shadow: 0 4px 8px rgba(190, 190, 190, 0.2); /* Efek shadow untuk kesan timbul */
}

.info .container {
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.253), rgba(0, 0, 0, 0.612)); /* Gradasi dari putih ke abu-abu */
  padding: 5rem; /* Padding di dalam container */
  border-radius: 180px 180px 15px 15px; /* Lengkungan hanya di atas */
  box-shadow: 0 4px 8px rgba(190, 190, 190, 0.2); /* Efek shadow untuk kesan timbul */
}


.home h2,
.gallery h2,
.ucapan h2,
.gifts h2{
  color: rgb(255, 255, 255);
  font-family: 'Nova Script';
  font-size: 5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Efek shadow pada teks */
}

.home h3 {
  font-family: 'Just Another Hand';
  color: rgba(179, 145, 67, 100);
  font-size: 22px;
  margin-top: 3rem;
  text-shadow :rgb(68, 68, 68);
}
.home h4 {
  font-family: 'Just Another Hand';
  color: rgba(179, 145, 67, 100);
  font-size: 21px;
  margin-bottom: 1rem;
  margin-top: 0.1rem;
  text-shadow: rgb(68, 68, 68 );
}


.home p{
  font-size: 1.3rem;
  color: rgb(255, 255, 255);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Efek shadow pada teks */
}

.home p1 {
  font-size: 2rem;
  color: rgb(255, 255, 255);
}

.home .couple {
  margin-top: 50px;
  margin-bottom: 10px;
}

.home .couple h3 {
  font-family: 'Arizonia';
  font-size: 2.4rem;
  color: rgba(179, 145, 67, 100);
  font-weight: bold;
}

.home .couple img {
  width: 100%;
}

.home .heart {
  width: 50px;
  height: 50px;
  background-color: rgb(255, 255, 255);
  display: flex;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(65px);
}

.home .heart i {
  margin: auto;
  color: var(--pink);
}

.home .couple p1{
  font-family: 'Space Grotesk';
  font-size: 2.5rem;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

.home .container {
  position: relative;
  z-index: 2; /* Konten utama di atas pohon */
}

.info {
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.info h2{
  border-radius: 180px 180px 0 0; /* Lengkungan hanya di atas */
  margin-top: -2rem; /* Sesuaikan margin untuk posisi yang tepat */
  margin-bottom: 0rem;;
  text-align: center; /* Teks di tengah */
  color: rgb(255, 255, 255);
  font-family: 'Nova Script';
  font-size: 5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Efek shadow pada teks */
}

.info .alamat,
.ucapan p1 {
  margin-top : 2rem;
  font-size: 1.1rem;
  color : rgba(179, 145, 67, 100);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Efek shadow pada teks */
}

.info .description {
  margin-top : 1rem;
  font-size: 1rem;
  font-weight: 300;
  color : rgb(255, 255, 255);
}

.info .card {
  background-color: rgba(0, 0, 0, 0.664) !important;
  color: rgb(255, 255, 255) !important;
  border: 1px solid rgb(173, 173, 173);
  border-radius: 20px;
}

.info .card-header {
  border-bottom: 1px solid rgb(173, 173, 173);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color : rgba(179, 145, 67, 100);
}

.info .card-body {
  font-size: 1rem;
}

.info .card-footer {
  border-top: 1px solid rgb(173, 173, 173);
  font-size: 0.9rem;
  font-weight: 300;
}

.ucapan{
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.gallery{
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.gifts{
  padding-top: 10rem;
  padding-bottom: 8rem;
}


.gifts span {
  text-transform: uppercase;
  color: rgb(0, 0, 0);
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
  margin-top: -1rem;
  text-shadow: rgba(179, 145, 67, 100);
  font-weight: bolder;
}

.gifts span1 {
  text-transform: uppercase;
  color: rgba(179, 145, 67, 100);
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  text-shadow: rgba(255, 255, 255, 0.989);
}

.gallery p,
.gifts p {
  font-size: 1rem;
  font-weight: 300;
  color : rgb(255, 255, 255);
  text-shadow: rgb(0, 0, 0);
}

.ucapan p {
  font-size: 1rem;
  font-weight: 300;
}

.timeline {
  list-style: none;
  padding: 1.4rem 0;
  margin-top: 1rem;
  position: relative;
}

.timeline::before {
  content: '';
  top: 0;
  bottom: 0;
  position: absolute;
  width: 1px;
  background-color: rgb(218, 218, 218);
  left: 50%;
}

.timeline li {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline li::before,
.timeline li::after {
  content: '';
  display: table;
}

.timeline li::after {
  clear: both;
}

.timeline li .timeline-image {
  width: 160px;
  height: 160px;
  background-color: rgb(218, 218, 218);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.timeline li .timeline-panel {
  width: 40%;
  float: left;
  border: 1px solid rgb(218, 218, 218);
  padding: 2rem;
  position: relative;
  border-radius: 8px;
  background-color: rgb(255, 255, 255);
}

.timeline li .timeline-panel::before {
  content: '';
  display: inline-block;
  position: absolute;
  border-top: 15px solid transparent;
  border-left: 15px solid rgb(218, 218, 218);
  border-right: 0 solid rgb(218, 218, 218);
  border-bottom: 15px solid transparent;
  top: 80px;
  right: -15px;
}

.timeline li .timeline-panel::after {
  content: '';
  position: absolute;
  display: inline-block;
  border-top: 14px solid transparent;
  border-left: 14px solid rgb(255, 255, 255);
  border-right: 0 solid rgb(255, 255, 255);
  border-bottom: 14px solid transparent;
  top: 81px;
  right: -13px;
}

.timeline li.timeline-inverted .timeline-panel {
  float: right;
}

.timeline li.timeline-inverted .timeline-panel::before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}

.timeline li.timeline-inverted .timeline-panel::after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -13px;
  right: auto;
}


.ucapan {
  padding-top: 10rem;
  padding-bottom: 8rem;
}

.ucapan p {
  color: rgb(0, 0, 0);
}

.ucapan form label {
  color: rgba(179, 145, 67, 100);
}

.ucapan button {
  background-color: rgb(0, 0, 0);
  color: rgba(179, 145, 67, 100);
  border: 1px solid rgb(0, 0, 0);
}

.ucapan button:hover {
  background-color: rgb(255, 255, 255);
  color: rgba(179, 145, 67, 100);
  border: 1px solid rgb(255, 255, 255);
}

/* Style untuk section komentar */
.komentar {
  padding: 2rem 0;
  background-color: rgb(255, 255, 255); /* Warna background section */
}

/* Style untuk setiap item komentar */
.komentar-item {
  background-color: rgb(255, 255, 255); /* Warna background komentar */
  border-radius: 10px; /* Sudut melengkung */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Efek shadow */
  padding: 1.5rem; /* Padding dalam komentar */
  margin-bottom: 1.5rem; /* Jarak antar komentar */
  border: 1px solid rgb(218, 218, 218); /* Garis tepi */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efek hover */
  max-height: 150px; /* Batas tinggi maksimum */
  overflow-y: auto; /* Tambahkan scroll vertikal jika konten melebihi tinggi */
}

/* Efek hover pada komentar */
.komentar-item:hover {
  transform: translateY(-5px); /* Geser ke atas saat hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Shadow lebih tebal saat hover */
}

/* Style untuk nama pengirim komentar */
.komentar-item strong {
  font-size: 1.7rem; /* Ukuran font nama */
  color: rgba(179, 145, 67, 100); /* Warna teks nama */
  display: block; /* Membuat nama berada di baris baru */
  margin-bottom: -1.5rem; /* Jarak antara nama dan tanggal */
}

/* Style untuk tanggal komentar */
.komentar-item small {
  font-size: 0.8rem; /* Ukuran font tanggal */
  color: rgb(94, 94, 94); /* Warna teks tanggal */
  display: block; /* Membuat tanggal berada di baris baru */
  margin-bottom: 1rem; /* Jarak antara tanggal dan komentar */
}

/* Style untuk isi komentar */
.komentar-item p {
  word-wrap: break-word; /* Memastikan teks berlanjut ke baris berikutnya */
  overflow-wrap: break-word; /* Alternatif modern untuk word-wrap */
  white-space: normal; /* Memastikan teks tidak tetap dalam satu baris */
  margin: 0; /* Hilangkan margin default pada paragraf */
  font-size: 1.1rem; /* Ukuran font komentar */
  color: rgb(48, 48, 48); /* Warna teks komentar */
  line-height: 1.6; /* Jarak antar baris */
  margin: 0; /* Hilangkan margin default */
}

/* Style untuk tombol pagination */
#pagination .btn {
  margin: 0 5px; /* Jarak antar tombol */
  border-radius: 5px; /* Sudut melengkung */
}

#pagination .btn.active {
  background-color: rgba(179, 145, 67, 100); /* Warna background tombol aktif */
  color: rgb(255, 255, 255); /* Warna teks tombol aktif */
  border-color: rgba(179, 145, 67, 100); /* Warna border tombol aktif */
}

#pagination .btn:hover {
  background-color: rgb(255, 255, 255); /* Warna background saat hover */
  color: rgb(255, 255, 255); /* Warna teks saat hover */
}

footer {
  padding: 3rem;
  background-color: rgba(179, 145, 67, 100);
  color: rgb(255, 255, 255);
}

footer a {
  color: rgb(255, 255, 255);
  font-weight: bold;
  text-decoration: none;
}

footer a:hover {
  color: rgb(255, 255, 255);
}

footer li {
  list-style: none;
  display: inline;
  margin: 0.5rem;
}

.copyButton {
  background-color: rgb(173, 129, 47);
  color : rgb(0, 0, 0);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.copyButton:hover {
  background-color: rgb(0, 0, 0);
  color: rgb(241, 173, 45);
}

.audio-icon-wrapper {
  display: none; /* Sembunyikan ikon audio secara default */
  width: 4rem;
  height: 4rem;
  font-size: 4rem;
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  cursor: pointer;
  color: rgb(255, 255, 255);
  opacity: 0.5;
  mix-blend-mode: difference;
  animation: rotating 4s linear infinite;
  transform-origin: center;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

.typing-container {
  text-shadow: rgba(186, 185, 185, 0.687) 0 0 10px;;
  color : rgb(255, 255, 255);
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  text-align: center;
  margin-top: 2rem;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.5rem;
  background-color: rgba(179, 145, 67, 100);
  margin-left: 5px;
  animation: blink 0.7s infinite;
}

/* Sembunyikan teks typing sebelum tombol diklik */
#typing-text {
  display: none;
}

/* Tampilkan teks typing setelah tombol diklik */
.typing-visible #typing-text {
  display: inline;
}

/* Container untuk efek mengetik */
.typing-container {
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  text-align: center;
  margin-top: 2rem;
}

/* Kursor yang berkedip */
.cursor {
  display: inline-block;
  width: 3px;
  height: 1.5rem;
  background-color: rgb(0, 0, 0);
  margin-left: 5px;
  animation: blink 0.7s infinite;
}

/* Animasi kedip kursor */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes jatuh {
  0% { transform: translateY(-10%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.bunga {
  position: absolute;
  top: -10%;
  font-size: 15px; /* Ukuran bunga */
  animation: jatuh linear infinite;
  pointer-events: none; /* Agar bunga tidak mengganggu interaksi klik */
}

/* Media Query */
/* Extra large */
@media (max-width: 1200px) {
  .home .heart {
    transform: translateX(-50%) translateY(45px);
  }
}

/* laptop */
@media (max-width: 992px) {
  html {
    font-size: 75%;
  }

  .simply-countdown > .simply-section {
    padding: 70px;
  }

  .home .heart {
    display: none;
  }

  .timeline::before {
    left: 60px;
  }

  .timeline li .timeline-image {
    left: 15px;
    margin-left: 45px;
    top: 16px;
  }

  .timeline li .timeline-panel {
    width: calc((100% - 200px));
    float: right;
  }

  .timeline li .timeline-panel::before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
  }

  .timeline li .timeline-panel::after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -13px;
    right: auto;
  }
}

/* tablet */
@media (max-width: 768px) {
  html {
    font-size: 65%;
  }

  .simply-countdown > .simply-section {
    padding: 50px;
    margin: 5px;
  }

  .mynavbar .nav-link {
    font-size: 2rem;
    text-align: center;
  }

  .sticky-top {
    overflow: hidden;
  }

  .timeline li .timeline-image {
    width: 140px;
    height: 140px;
  }
}

/* mobile phone */
@media (max-width: 576px) {
  html {
    font-size: 60%;
  }

  .mynavbar .nav-link {
    font-size: 2rem;
    text-align: center;
  }

  .sticky-top {
    overflow: hidden;
  }

  .simply-countdown > .simply-section {
    padding: 25px;
    margin: 2px;
  }

  .timeline li .timeline-image {
    width: 80px;
    height: 80px;
  }

  .timeline li .timeline-panel {
    width: 65%;
    transform: translateX(-20px);
  }

  .timeline li .timeline-panel::before {
    top: 30px;
  }

  .timeline li .timeline-panel::after {
    top: 31px;
  }
}

@supports (-webkit-touch-callout: none) {
  .home,
  .info,
  .gallery,
  .ucapan,
  .gifts {
    background-attachment: scroll; /* Ganti fixed dengan scroll */
  }
}