/* Resetting default browser styles */
* {
    margin: 0;
    padding: 0;
/*    box-sizing: border-box;*/
}

/* Ensuring the body and html take full height */
body, html {
    height: 100%;
    width: 100%;
}

/* Container for centering content on the page */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
/*    height: 100%;*/
    width: 100%;
/*    background-image: url('../images/galeri1.jpeg'); /* Ganti dengan gambar latar belakang */*/
    background-size: cover;
    background-position: center;
    overflow: hidden;
     min-height: 100vh; 
}

/* Centering content in the container */
.content {
    text-align: center;
    background-image: url('../images/bg.png'); /* Ganti dengan gambar latar belakang untuk content */
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 0px;
    width: 375px;  /* Ukuran seperti HP */
    height: 667px; /* Ukuran layar HP */
    overflow: hidden; /* Membuat bagian yang keluar dari kontainer terpotong */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
/*    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Optional: menambahkan bayangan pada konten */*/
}

/* === AREA TEKS UTAMA === */
.content h1 {
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  color: #000000 ;
  text-align: center;
  letter-spacing: 0.5px;
/*  text-shadow: 0 2px 8px rgba(0,0,0,0.15);*/
  margin-top: 450px;
   position: relative;
  z-index: 7; /* angka tinggi = di atas layer lain */

}

.content h2 {
  font-family: "Tangerine", cursive;
  font-size: 3rem;
  color: #000000 ;
  text-align: center;
  letter-spacing: 0.5px;
/*  text-shadow: 0 2px 8px rgba(0,0,0,0.15);*/
/*  margin-top: 400px;*/
   position: relative;
  z-index: 10; /* angka tinggi = di atas layer lain */

}

.content h3 {
    font-family: "Lexend", sans-serif;
    color: #696969;
    text-align: center;
    font-size: 1rem;
/*    margin-bottom: 10px;*/

}

.content p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #666;
  text-align: center;
}

/* === FORM UNDANGAN === */
.form-undangan {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto; /* posisi form turun ke bawah dalam .content */
  padding-bottom: 130px; /* atur jarak bawah di sini */
  padding-top: 15px;
}

/* INPUT STYLING */
.form-undangan input[type="text"] {
  width: 80%;
  max-width: 350px;
  padding: 12px 15px;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  background: transparent;
  color: #333;
  text-align: center;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-undangan input[type="text"]:focus {
  border-color: #d4a373;
  box-shadow: 0 0 8px rgba(212, 163, 115, 0.4);
}


/* === BUTTON BUKA UNDANGAN === */
.btn-buka {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  padding: 12px 28px;
  background-color: #b3598a; /* gold pastel */
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
/*  box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);*/
}

.btn-sm {
    text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  margin: 5px;
  padding: 2px 5px;
  background-color: #b3598a; /* gold pastel */
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
/*  box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);*/
}

.btn-sm:hover {
 background-color: #a93373;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgb(179 89 138);
}

.btn-sm i {
  font-size: 1.1rem;
}

.btn-buka:hover {
  background-color: #a93373;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgb(179 89 138);
}

.btn-buka i {
  font-size: 1.1rem;
}

.btn-normal {
    position: relative;
    z-index: 9;
    text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 25px;
  padding: 12px 25px;
  background-color: #b3598a; /* gold pastel */
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
/*  box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);*/
}

.btn-normal:hover {
 background-color: #a93373;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgb(179 89 138);
}

.btn-normal i {
  font-size: 1.1rem;
}



/* Menghindari jarak antar container */
.container > * {
    margin: 0;
}

/* Styling for the event section */
#eventSection {
    background-image: url('../images/bg.png'); /* Ganti dengan gambar latar belakang untuk content */
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    width: 375px;  /* Ukuran seperti HP */
    height: auto;
/*    height: 667px; /* Ukuran layar HP */*/
    overflow: hidden; /* Membuat bagian yang keluar dari kontainer terpotong */
    position: relative;
    display: flex;
    flex-direction: column;
    
/*    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Optional: menambahkan bayangan pada konten */*/
}

#quotesSection {
    background-image: url('../images/bg3.png'); /* Ganti dengan gambar latar belakang untuk content */
    background-size: cover;
    background-position: center;
    border-radius: 0px;
    width: 375px;  /* Ukuran seperti HP */
    height: auto; /* Ukuran layar HP */
    overflow: hidden; /* Membuat bagian yang keluar dari kontainer terpotong */
    position: relative;
    display: flex;
    flex-direction: column;
    
/*    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Optional: menambahkan bayangan pada konten */*/
}

#welcome-art {
    text-align: center;
    justify-content: center;
    padding: 20px;
}

#eventSection h2 {
    color: #333;
}

#eventSection .nantin {
  font-family: "Tangerine", cursive;
  font-size: 3rem;
  color: #000000 ;
/*  text-align: center;*/
  letter-spacing: 0.5px;
/*  text-shadow: 0 2px 8px rgba(0,0,0,0.15);*/
  margin-top: 10px;
   position: relative;
  z-index: 10; /* angka tinggi = di atas layer lain */

}

#eventSection .judul {
  font-family: "Tangerine", cursive;
  font-size: 2rem;
  color: #b31c6d ;
/*  text-align: center;*/
  letter-spacing: 0.5px;
/*  text-shadow: 0 2px 8px rgba(0,0,0,0.15);*/
  margin-top: 10px;
   position: relative;
  z-index: 10; /* angka tinggi = di atas layer lain */

}


/* ============================
   ANIMASI DAUN MASUK KE TENGAH
   ============================ */

.daun {
    position: absolute;
    width: 250px;
    opacity: 0;
    z-index: 5;
    animation-fill-mode: forwards;
    pointer-events: none;
/*     box-shadow: 0 6px 14px rgb(179 89 138);*/
}

/* Daun kiri */
.daun-kiri {
    top: 50%;
    left: -230px;
    animation: fadeInDaunLeft 2s ease-out forwards;
    animation-delay: 0.5s;
}

/* Daun kanan */
.daun-kanan {
    top: 50%;
    right: -230px;
    animation: fadeInDaunRight 2s ease-out forwards;
    animation-delay: 0.7s;
}

/* Animasi masuk kiri */
@keyframes fadeInDaunLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(220px);
    }
}

/* Animasi masuk kanan */
@keyframes fadeInDaunRight {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(-220px);
    }
}

.textlogo {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%); /* pusatkan elemen */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: auto;
/*   position: relative;*/
  z-index: 10; /* angka tinggi = di atas layer lain */



}


/* ======================================
   ANIMASI BUNGA MASUK DARI BAWAH KE ATAS
   ====================================== */

.bunga-bawah {
    position: absolute;
    bottom: -150px;           /* mulai di luar area content */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;             /* sesuaikan ukuran bunga */
    opacity: 0;
    z-index: 4;
     animation: bungaNaik 2.5s ease-out forwards, bungaMelambai 2s ease-in-out 2.5s infinite alternate;
     pointer-events: none;
}

/* Keyframes: bunga naik halus ke posisi bawah content */
@keyframes bungaNaik {
    0% {
        bottom: -150px;
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -5px) scale(1.02);
    }
    100% {
        bottom: 0;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes bungaMelambai {
    from { transform: translate(-50%, 0) scale(1); }
    to { transform: translate(-50%, -5px) scale(1.02); }
}


/* ======================================
   ANIMASI KUPU MASUK DARI SISI KANAN & KIRI
   ====================================== */

.kupu {
    position: absolute;
    width: 40px;
    opacity: 0;
    z-index: 6;
    animation-fill-mode: forwards;
    pointer-events: none;
}

/* Kupu kiri: masuk dari kiri, lalu melayang */
.kupu-kiri {
    bottom: 20px;
    left: -80px;
    transform: rotate(15deg);
    animation:
        kupuKiriTerbang 4s ease-out forwards,
        kupuMelayangKiri 3s ease-in-out 4s infinite alternate;
}

/* Kupu kanan: masuk dari kanan, lalu melayang */
.kupu-kanan {
    bottom: 40px;
    right: -80px;
    transform: rotate(-15deg);
    animation:
        kupuKananTerbang 4s ease-out forwards,
        kupuMelayangKanan 3s ease-in-out 4s infinite alternate;
}

/* Animasi melayang lembut kupu kiri */
@keyframes kupuMelayangKiri {
    from { transform: translateY(-2px) rotate(-3deg) scale(1); }
    to { transform: translateY(4px) rotate(3deg) scale(1.05); }
}

/* Animasi melayang lembut kupu kanan */
@keyframes kupuMelayangKanan {
    from { transform: translateY(2px) rotate(3deg) scale(1); }
    to { transform: translateY(-4px) rotate(-3deg) scale(1.05); }
}


/* Keyframes kupu kiri */
@keyframes kupuKiriTerbang {
    0% {
        left: -80px;
        bottom: 10px;
        opacity: 0;
        transform: rotate(15deg) scale(0.9);
    }
    40% {
        opacity: 1;
        transform: translateY(-20px) rotate(5deg) scale(1);
    }
    80% {
        transform: translateY(10px) rotate(-5deg);
    }
    100% {
        left: calc(50% - 100px);
        bottom: 90px;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Keyframes kupu kanan */
@keyframes kupuKananTerbang {
    0% {
        right: -80px;
        bottom: 20px;
        opacity: 0;
        transform: rotate(-15deg) scale(0.9);
    }
    40% {
        opacity: 1;
        transform: translateY(-30px) rotate(-5deg) scale(1);
    }
    80% {
        transform: translateY(10px) rotate(5deg);
    }
    100% {
        right: calc(50% - 100px);
        bottom: 100px;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/*KEY FRAME BURUNG*/
@keyframes kepakSayap {
  0%   { background-image: url('../images/burung1.png'); }
  33%  { background-image: url('../images/burung2.png'); }
  66%  { background-image: url('../images/burung3.png'); }
  100% { background-image: url('../images/burung1.png'); }
}

#burung-container {
  position: absolute;   /* ganti dari fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;          /* penuh area content */
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.burung {
  position: absolute;
  top: 0;
  width: 10px;
  will-change: transform;
  pointer-events: none;
}

.burung img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================
   FOTO HEADER MENEMPEL DI ATAS CONTENT
   ============================= */
.foto-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* tinggi area foto */
    overflow: hidden;
    z-index: 3; /* pastikan berada di bawah teks */
    align-items: center;
  justify-content: center;
  pointer-events: none;
}

.foto-header img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Efek gradasi lembut ke bawah */
/*.foto-header .gradasi {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}*/

/* Supaya konten di bawah tidak ketimpa foto */

.isi {
  display: none; /* sembunyikan dulu */
  opacity: 0;
  transition: opacity 0.8s ease;
}

.isi.show {
  display: block; /* tampilkan */
  opacity: 1;
}

/* Tombol Floating Musik */
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff4081;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
  opacity: 1;
  transition: all 0.4s ease;
}

.music-btn:hover {
  background: #e73370;
  transform: scale(1.1);
}

/* Saat disembunyikan */
.music-btn.hidden {
   opacity: 0;
  transform: scale(0);
  pointer-events: none;
  visibility: hidden;
/*  display: none !important;*/
}


/*MODAL QR CODE*/

/* === Floating Button QR === */
.qr-btn {
  position: fixed;
  bottom: 90px; /* sedikit di atas tombol musik */
  right: 20px;
  background: #6a1b9a;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
  opacity: 1;
  transition: all 0.4s ease;
}

/* hidden state */
.qr-btn.hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  visibility: hidden;
}

/* === Modal QR === */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Modal hidden */
.qr-modal.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.qr-modal-content {
  background: #fff;
  border-radius: 15px;
  padding: 25px 30px;
  text-align: center;
  width: 85%;
  max-width: 350px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  animation: fadeInModal 0.4s ease;
}

.qr-modal-content h3 {
  font-family: 'Lexend', sans-serif;
  color: #333;
  margin-bottom: 15px;
}

.qr-image {
  width: 200px;
  height: 200px;
  margin-bottom: 10px;
}

.close-modal {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.artdaun {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;        /* penuh layar */
  height: 100vh;       /* penuh tinggi layar */
  object-fit: cover;
  z-index: 20;         /* di atas konten */
  transition: all 0.5s ease;
}

.artdaun-kiri {
  left: 0;
  transform: translateX(0);
}

.artdaun-kanan {
  right: 0;
  transform: translateX(0);
}

.bunga {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%); /* 100% = benar-benar di luar layar bawah */
  opacity: 0;
  width: 100%;
  height: auto;
  z-index: 5;
}



.ornamen-kanan {
  position: absolute;
  right: 0px; /* mulai di luar layar kanan */
  bottom: 0px; /* sesuaikan posisinya */
  opacity: 0;
  width: 100%;
  height: auto;
  z-index: 4; /* di depan daun, di bawah teks */
}

.ornamen-tengah {
  position: absolute;
  right: 0px; /* mulai di luar layar kanan */
  bottom: 0px; /* sesuaikan posisinya */
  opacity: 0;
  width: 100%;
  height: auto;
  z-index: 3; /* di depan daun, di bawah teks */
}

.ornamen-atas {
  position: absolute;
  top: 0px; /* mulai di luar layar */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}

.teks-animasi {
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  color: #000000 ;
  text-align: center;
  letter-spacing: 0.5px;
  position: absolute;
  top: 10%;     /* ubah posisi di sini */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;      /* disembunyikan dulu */
/*  text-shadow: 0 2px 5px rgba(0,0,0,0.3);*/
  z-index: 6;
}

.usertag {
  position: absolute;
  bottom: 75%;     /* ubah posisi di sini */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;      /* disembunyikan dulu */
  z-index: 6;
  width: 100px;
}



.merpati {
  position: absolute;
  width: 100px;
  opacity: 0;
  z-index: 7; /* pastikan di depan background */
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Posisi default (bisa diubah sesuka kamu) */
.merpati-kiri {
  top: 15%;
  left: 0px; /* mulai di luar layar */
  animation: melayangKiri 5s ease-in-out infinite;
}

.merpati-kanan {
  top: 25%;
  right: 0px; /* mulai di luar layar */
  animation: melayangKanan 5s ease-in-out infinite;
}

/* Animasi keyframe untuk gerakan burung kiri */
@keyframes melayangKiri {
    0% {
    top: -0px;  /* Mulai di luar layar atas */
    opacity: 1;
  }
  50% {
    top: 3%;  /* Masuk ke dalam layar dan naik sedikit */
    opacity: 1;
  }
  100% {
    top: -0px;  /* Kembali keluar layar atas */
    opacity: 1;
  }
}

/* Animasi keyframe untuk gerakan burung kanan */
@keyframes melayangKanan {
    0% {
    top: 25%;  /* Mulai di posisi awal */
  }
  50% {
    top: 20%;  /* Sedikit turun */
  }
  100% {
    top: 25%;  /* Kembali ke posisi awal */
  }
}



.animated-gif {
  position: absolute;  /* Menempatkan gambar dengan posisi absolut */
  top: 50%;            /* Sesuaikan posisi atas gambar */
  left: 50%;           /* Sesuaikan posisi kiri gambar */
  transform: translateX(-50%); /* Pusatkan gambar secara horizontal */
  width: 100%;        /* Sesuaikan ukuran gambar GIF */
  height: auto;        /* Menjaga rasio aspek gambar */
  z-index: 10;         /* Pastikan GIF berada di atas elemen lainnya */
}

section {
/*    padding: 5px;*/
    opacity: 0;
/*    transform: translateX(200px); /* Mulai dari luar layar */*/
}

section p,h2{
    padding-left: 5px;
    padding-Right: 5px;
}

.konten {
/*    margin: 50px 0;*/
/*    background-color: #f9f9f9;*/
    font-family: "EB Garamond", serif;
    font-size: 0.8rem;
    color: #000000 ;
/*    position: relative;*/

}

/* Animasi FadeInDown */
@keyframes fadeInDown {
    0% {
        opacity: 0; /* Gambar tidak terlihat di awal */
        transform: translateY(-100%); /* Mulai di luar layar di atas */
    }
    100% {
        opacity: 1; /* Gambar sepenuhnya terlihat */
        transform: translateY(0); /* Bergerak ke posisi normal */
    }
}

/* Gaya umum untuk gambar bunga */
.flower-image {
    position: absolute; /* Gambar diatur secara absolut */
    top: 0; /* Mulai dari bagian atas layar */
    left: 0; /* Memastikan gambar berada di kiri */
    width: 100%; /* Lebar gambar sesuai dengan lebar layar */
    height: auto; /* Tinggi gambar sesuai dengan tinggi layar */
/*    object-fit: cover; /* Menjaga gambar tetap proporsional dan menutupi seluruh area */*/
    opacity: 0; /* Gambar dimulai dengan transparan */
    transform: translateY(-100%); /* Gambar mulai dari luar layar */
}

/* Terapkan animasi untuk gambar bunga */
.animate__fadeInDown {
    animation: fadeInDown 2s ease-out forwards; /* Durasi 2 detik, ease-out */
}




@keyframes fadeInModal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#section1 {
    margin-top: 50px;
}

#section2 {
    margin-top: 0px;
}

#section4 {
    position: absolute; /* Memungkinkan section 4 berada di atas section lainnya */
    top: 0; /* Posisikan section4 di bagian atas kontainer */
    Right: 0;
    width: 100%; /* Lebar penuh */
    height: auto; /* Tinggi penuh */
}

#section5 {
    position: absolute; /* Memungkinkan section 4 berada di atas section lainnya */
    top: 0; /* Posisikan section4 di bagian atas kontainer */
    Right: 0;
    width: 100%; /* Lebar penuh */
    height: auto; /* Tinggi penuh */
    z-index: 9; /* Menempatkan section 4 di atas */
}



.art-kanan {
    position: absolute; /* Foto ditempatkan secara absolut */
    Right: 0; /* Foto ditempatkan di sisi kanan layar */
    width: 30%; /* Lebar foto */
    height: auto; /* Menjaga rasio gambar */
    top: 0; /* Menyusun foto pertama 50px dari atas */
    z-index: 5;
/*    object-fit: cover; /* Menutupi area dengan gambar */*/
}

.art-kiri {
    position: absolute; /* Foto ditempatkan secara absolut */
    Left: 0; /* Foto ditempatkan di sisi kanan layar */
    width: 30%; /* Lebar foto */
    height: auto; /* Menjaga rasio gambar */
    top: 100px; /* Menyusun foto pertama 50px dari atas */
    z-index: 5;
/*    object-fit: cover; /* Menutupi area dengan gambar */*/
}


/* Foto dengan posisi absolute */
.fotomantencew {
    position: absolute; /* Foto ditempatkan secara absolut */
    Right: 0; /* Foto ditempatkan di sisi kanan layar */
    width: 45%; /* Lebar foto */
    height: auto; /* Menjaga rasio gambar */
/*    object-fit: cover; /* Menutupi area dengan gambar */*/
}

/* Foto pertama - menumpuk di bagian atas */
.mantencew1 {
    top: 150px; /* Menyusun foto pertama 50px dari atas */
    z-index: 9; /* Menempatkan foto pertama di atas foto kedua */
}

/* Foto kedua - menumpuk di bagian bawah */
.mantencew2 {
    top: 320px; /* Menyusun foto kedua 200px dari atas */
    z-index: 10; /* Menempatkan foto kedua di bawah foto pertama */
}



#section6 {
    position: absolute; /* Memungkinkan section 4 berada di atas section lainnya */
    top: 0; /* Posisikan section4 di bagian atas kontainer */
    left: 0;
    width: 100%; /* Lebar penuh */
    height: auto; /* Tinggi penuh */
}

#section7 {
    position: absolute; /* Memungkinkan section 4 berada di atas section lainnya */
    top: 0; /* Posisikan section4 di bagian atas kontainer */
    left: 0;
    width: 100%; /* Lebar penuh */
    height: auto; /* Tinggi penuh */
    z-index: 9; /* Menempatkan section 4 di atas */
}

/* Foto dengan posisi absolute */
.fotomantencow {
    position: absolute; /* Foto ditempatkan secara absolut */
    left: 0; /* Foto ditempatkan di sisi kanan layar */
    width: 45%; /* Lebar foto */
    height: auto; /* Menjaga rasio gambar */
}

/* Foto pertama - menumpuk di bagian atas */
.mantencow1 {
    top: 450px; /* Menyusun foto pertama 50px dari atas */
    z-index: 9; /* Menempatkan foto pertama di atas foto kedua */
}

/* Foto kedua - menumpuk di bagian bawah */
.mantencow2 {
    top: 600px; /* Menyusun foto kedua 200px dari atas */
    z-index: 10; /* Menempatkan foto kedua di bawah foto pertama */
}

#section8 {
    position: absolute; /* Memungkinkan section 4 berada di atas section lainnya */
    bottom: 230px;
    padding-right: 20px;
    Right: 0;
    width: 100%; /* Lebar penuh */
    height: auto; /* Tinggi penuh */
    text-align: right;
}

#section9 {
    position: absolute; /* Memungkinkan section 4 berada di atas section lainnya */
    bottom: 100px; /* Posisikan section4 di bagian atas kontainer */
    padding-right: 15px;
    Right: 0;
    width: 100%; /* Lebar penuh */
    height: auto; /* Tinggi penuh */
    z-index: 9; /* Menempatkan section 4 di atas */
    text-align: right;
}

#section14,#section16 {
    position: absolute; /* Memungkinkan section 4 berada di atas section lainnya */
/*    top: 10px;*/
    bottom: 0; /* Posisikan section4 di bagian atas kontainer */
/*    padding-right: 15px;*/
    Right: 0;
    width: 100%; /* Lebar penuh */
    height: auto; /* Tinggi penuh */
    z-index: 5; /* Menempatkan section 4 di atas */
/*    text-align: right;*/
}

/* Foto dengan posisi absolute */
.fotosavedate {
    position: absolute; /* Foto ditempatkan secara absolut */
    Right: -30px; /* Foto ditempatkan di sisi kanan layar */
    width: 60%; /* Lebar foto */
    height: auto; /* Menjaga rasio gambar */
    bottom: 0;
    z-index: 7;
}

.art-flower {
    position: absolute; /* Gambar diatur secara absolut */
    bottom: 0; /* Mulai dari bagian atas layar */
    left: 0; /* Memastikan gambar berada di kiri */
    width: 100%; /* Lebar gambar sesuai dengan lebar layar */
    height: auto; /* Tinggi gambar sesuai dengan tinggi layar */
    z-index: 7;
}




/* Kontainer utama */
.content-box {
    position: relative;
    padding-top: 15px;
    text-align: center;
/*    padding-bottom: 120px;*/
/*    padding: 40px;*/
    background-color: #ffffff4a;
    border: 3px solid rgb(207 99 157);  /* Garis kontur dengan ketebalan 5px dan warna hitam */
    border-radius: 40px;
    z-index: 8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    margin: 30px;  
     overflow: hidden;
}


.content-box .art-quotes {
/*    position: absolute;*/
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    object-fit: cover;
    z-index: 1;
}

.content-box .art-quotes2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    object-fit: cover;
    z-index: 1;
}

.closing-box {
    position: relative;
    padding-top: 15px;
    text-align: center;
/*    padding-bottom: 120px;*/
/*    padding: 40px;*/
    background-color: #ffffff4a;
    border: 3px solid rgb(255 255 255);  /* Garis kontur dengan ketebalan 5px dan warna hitam */
    border-radius: 20px;
    z-index: 8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    margin: 30px;  
     overflow: hidden;
}

.galeri-box {
/*    justify-content: center;*/
/*left: 50%;
right: 50%;*/
    padding-top: 5px;
/*    width: 250px;*/
    text-align: center;
    padding: 10px;
    background-color: #ffffff4a;
    border: 3px solid rgb(207 99 157);  /* Garis kontur dengan ketebalan 5px dan warna hitam */
    border-radius: 20px;
    z-index: 9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    margin: 15px;  
}

/* Kontainer utama */
.save-the-date {
    text-align: center;
    padding: 50px;
    background-color: #ffffffa8;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    margin:25px;
    border: 3px solid rgb(207 99 157);
}

/* Judul Halaman */
.save-the-date h2 {
    font-family: "Tangerine", cursive;
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

/* Grid 2x2 untuk countdown */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Membuat 2 kolom yang lebar sama */
    grid-template-rows: repeat(2, 1fr); /* Membuat 2 baris yang tinggi sama */
    gap: 20px; /* Jarak antar elemen */
    max-width: 500px;
    margin: 0 auto; /* Memusatkan grid */
}

/* Setiap item countdown */
.countdown-item {
    background-color: #696969; /* Warna latar belakang tombol */
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Bayangan halus */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efek transisi */
}

/* Gaya untuk angka countdown */
.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

/* Gaya untuk label (Hari, Jam, Menit, Detik) */
.countdown-label {
    font-size: 1.2rem;
    color: white;
    margin-top: 10px;
}

/* Efek hover pada setiap item countdown */
.countdown-item:hover {
    transform: translateY(-5px); /* Tombol terangkat */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Bayangan lebih besar */
}

/* Responsif untuk layar kecil */
.textname {
    text-align: center;
    justify-content: center;

}

/* Gaya umum untuk halaman */
.page {
    height: 100vh; /* Setiap halaman memiliki tinggi penuh layar */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    opacity: 0; /* Mulai dengan elemen tersembunyi */
    transition: opacity 0.5s ease-out; /* Efek transisi */
    transform: translateY(100px); /* Mulai dari bawah untuk animasi muncul */
}

/* Animasi masuk */
.page.show {
    opacity: 1; /* Tampilkan elemen saat ada class 'show' */
    transform: translateY(0); /* Elemen kembali ke posisi normal */
}

/* Styling untuk konten */

/* Styling untuk Galeri Foto */
.gallery {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 kolom */
  gap: 20px;
  width: 100%;
  max-width: 800px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.photo-item:hover {
  transform: scale(1.05);
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
}

/* Modal Styling */
.modal {
  display: none; /* Modal tidak terlihat secara default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;  /* Modal mulai dengan transparansi */
  transform: scale(0.8); /* Modal lebih kecil saat awal */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Fade-in dan scale-up */
}

.modal.show {
  display: flex;
  opacity: 1;
  transform: scale(1); /* Modal akan diperbesar */
}

.modal-content {
  position: relative;
  background-color: #fff;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  border-radius: 10px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ff0000;
}

/* Tombol navigasi di modal */
.modal-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.nav-button {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Animasi untuk transisi gambar ke modal */
.gallery-image.selected {
  transform: scale(1.2); /* Membesarkan gambar sedikit */
  opacity: 0; /* Menghilangkan gambar */
}

#rsvpSection {
  background: linear-gradient(180deg, #fff7f9 0%, #ffeef5 100%);
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.rsvp-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 35px;
  padding: 50px 40px; /* ✅ padding diperlebar */
  width: auto;
  max-width: 95%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 182, 193, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* ✅ jarak antar elemen di dalam box */
  margin: 20px;
}

.rsvp-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* ✅ jarak antar field lebih proporsional */
}

.form-group {
  width: 100%;
  text-align: left;
}

label {
  font-size: 14px;
  color: #6b4a4a;
  display: block;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d8a5b3;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  color: #4a3b3b;
  background-color: rgba(255, 255, 255, 0.95);
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* ✅ supaya padding dihitung di dalam lebar */
}

textarea {
  resize: none;
  min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #c2607e;
  box-shadow: 0 0 8px rgba(210, 90, 130, 0.2);
}

.btn-submit {
  background: linear-gradient(90deg, #d67ba8, #c2607e);
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(210, 90, 130, 0.3);
}

.rsvp-title{
      font-family: "Tangerine", cursive;
  font-size: 2rem;
  color: #b31c6d ;
  letter-spacing: 0.5px;
  margin-top: 10px;
   position: relative;
}

.status-info {
  display: block;
  font-size: 12px;
  color: #c8688a;
  font-family: 'Poppins', sans-serif;
  margin-top: 6px;
  transition: color 0.3s ease;
}

.status-info.success {
  color: #4CAF50; /* hijau */
}

.status-info.warning {
  color: #f44336; /* merah */
}




.rsvp-messages {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 30px;
  width: auto;
  max-width: 380px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  border: 2px solid rgba(255, 182, 193, 0.5);
  text-align: center;
  margin: 20px;
}

.rsvp-messages h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #b15d82;
  margin-bottom: 20px;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.message-list {
    margin-top: 10px;
  max-height: 300px; /* ✅ tinggi tetap */
  overflow-y: auto;  /* ✅ bisa scroll */
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 10px; /* biar scrollbar tidak menutupi teks */
  scroll-behavior: smooth;
}

/* Scrollbar yang halus dan elegan */
.message-list::-webkit-scrollbar {
  width: 6px;
}
.message-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e4a7b8, #c2607e);
  border-radius: 10px;
}
.message-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
}

.message-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 15px 18px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 182, 193, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(210, 90, 130, 0.15);
}

.message-item h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #944d6a;
  font-weight: 600;
}

.message-item p {
  margin: 0;
  font-size: 13px;
  color: #5e4a4a;
  line-height: 1.5;
}

.modalkonfirm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.4s ease;
}

#warningModal .modalkonfirm-content {
  background: #fff;
  border: 2px solid #b15d82;
  color: #b15d82;
}

.modalkonfirm-content {
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  background: #fff;
  padding: 25px 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  animation: popIn 0.3s ease;
  margin: 20px;
  border: 2px solid #b15d82;
  color: #b15d82;

}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}




.footer-logo {
  position: absolute;
  bottom: 15px;              /* Menempel di bagian bawah halaman */
  left: 50%;                 /* Pusat horizontal */
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;                /* Sedikit lebih terang saat hover */
}

.footer-logo img {
  width: 70px;               /* Ukuran logo */
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.footer-logo:hover img {
  transform: scale(1.05);    /* Efek lembut saat hover */
}

.footer-logo p {
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  color: #a25d7c;
  opacity: 0.9;
  margin: 0;
  letter-spacing: 0.3px;
}

img.decorative {
  pointer-events: none;
}




/* Responsiveness for mobile devices */
@media only screen and (max-width: 768px) {
    .content {
        width: 100%;
        height: 100%;
        padding: 15px;
    }
     #eventSection {
           width: 100%;
    min-height: 100svh;
    margin: 0;
    padding: 30px 0px;
    }
    #quotesSection {
           width: 100%;
/*    min-height: 100svh;*/
    margin: 0;
    padding: 30px 0px;
    }

    /* Make sure it stays full screen on mobile */
    .container {
        height: 100%;
        width: 100%;
    }
}

@media only screen and (min-width: 769px) {
    /* Keep the container centered */
    .container {
        max-width: 100%;
    }

    /* Keep the content fixed to mobile view dimensions */
    .content {
        width: 375px; /* Mobile width */
        height: 667px; /* Mobile height */
    }
    #eventSection  {
        width: 375px; /* Mobile width */
        height: 667px; /* Mobile height */
    }
    #quotesSection  {
        width: 375px; /* Mobile width */
        height: auto; /* Mobile height */
    }
}
