@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Oleo+Script+Swash+Caps:wght@400;700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Crete+Round:ital@0;1&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

:root {
  --primary: #4a5568;       
  --fontpink: #5c6b8a;      
  --fontwhite: #fff;
  --borderpink: #b0c4de;    
  --fontoleo: "Oleo Script Swash Caps", system-ui;
  --fontsans: "Open Sans", sans-serif;
  --fontplay: "Playfair Display", serif;
  --fontcrete: "Crete Round", serif;
  --fontRobto: "Roboto", sans-serif;
  --fontQuicksand: "Quicksand", sans-serif;
}

::-webkit-scrollbar { width: 15px; }
::-webkit-scrollbar-thumb { background: var(--borderpink); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--fontpink); }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: white;
  background-image: linear-gradient(0deg, rgb(176, 196, 222), white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  scrollbar-color: #b0c4de white;
  overflow-x: hidden; 
}

/* ========================================== */
/* TRIK BACKGROUND TANPA BUG DI MOBILE        */
/* ========================================== */
#halaman-utama {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Ini lapisan background yang menutupi seluruh layar */
#halaman-utama::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: url('https://cdn.phototourl.com/anon/2026-11-20-6ce6a51d-4ffd-4d5a-958d-3d5b6bed0301.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Menghilangkan background gradient bawaan body saat halaman utama muncul */
body:has(#halaman-utama[style*="display: flex"]) {
  background-image: none !important; 
  background-color: #eaf2f8 !important; 
}

/* ========================================== */
/* STYLING TEKS & KONTEN                      */
/* ========================================== */
.heading {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 30px;
  padding-top: 20px;
}

.gambaratas {
  max-width: 100%;
  width: 400px; 
  height: auto;
  object-fit: contain;
  margin: 10px 0;
}

.mempelai,
.tags {
  font-family: "Great Vibes", cursive;
  font-size: 4em;
  color: var(--fontpink);
  text-align: center;
  text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff, 0px 4px 10px rgba(0,0,0,0.2);
}

.tanggal {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--fontpink);
  font-size: 2em;
  margin-bottom: 1em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}

.savedate {
  text-decoration: none;
  background-color: var(--fontpink);
  color: var(--fontwhite);
  border: none;
  font-size: 1.2em;
  padding: 10px 20px;
  border-radius: 1em;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.savedate:hover { background-color: #4a5568; }
button:hover { cursor: pointer; }

.pesan {
  margin: 1em;
  text-align: center;
  color: var(--fontpink);
  font-family: "Oleo Script Swash Caps", system-ui;
  font-size: 1.5em;
  max-width: 40em;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 15px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.data-mempelai {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.calon {
  width: 100%;
  max-width: 25em;
  border: 3px solid var(--borderpink);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0px 15px 28px -12px rgba(0, 0, 0, 0.35);
  padding: 40px 25px;
  margin: 15px;
  border-radius: 15px;
  text-align: center;
}

.nama-mempelai {
  font-family: var(--fontoleo);
  font-size: 1.5em;
  color: var(--fontpink);
}

.subtags {
  font-family: var(--fontsans);
  font-size: 1.2em;
  color: #54595f;
}

.subtags span { font-weight: 500; }

.foto-mempelai {
  width: 100%;
  max-width: 15em; 
  height: auto;
  border-radius: 10px; 
}

.ourspecial {
  text-align: center;
  font-family: var(--fontplay);
  color: #54595f;
  text-transform: uppercase;
  font-size: 1.5em;
  letter-spacing: 0.3em;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
}

.wedevent {
  border: 6px solid var(--borderpink);
  background-color: rgba(255, 255, 255, 0.9); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0px 15px 28px -12px rgba(0, 0, 0, 0.35);
  padding: 40px 15px;
  border-radius: 15px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 800px; 
}

.maps { width: 90%; }

.wedbox {
  margin-top: 1em;
  width: 80%;
  max-width: 300px;
  background-color: #e6eef5; 
  border-top: 5px solid var(--borderpink);
  border-bottom: 5px solid var(--borderpink);
  border-radius: 10px;
  padding: 1em;
}

.wedbox i {
  border: 3px solid var(--fontpink);
  border-radius: 50%;
  padding: 20px;
  color: var(--fontpink);
  font-size: 4em;
}

.wedbox p { color: var(--fontpink); }

#countdown {
  text-align: center;
  margin-top: 1em;
  margin-bottom: 2em;
}

#countdown ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
}

#countdown ul li {
  background-color: var(--fontpink);
  color: var(--fontwhite);
  border-radius: 10px;
  text-transform: uppercase;
  font-family: var(--fontsans);
  padding: 1em;
}
#countdown ul li span { font-size: 3rem; display: block; }

.locmaps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  padding: 20px 0;
}

.flymap {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  margin: 1em 0;
  border-radius: 10px;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.aya {
  color: rgb(80, 80, 80);
  margin: 20px 10px;
  font-family: var(--fontRobto);
  font-size: 1.4em;
  max-width: 30em;
  word-spacing: 5px;
  letter-spacing: 1px;
}

/* ========================================== */
/* BAGIAN OPENING (HALAMAN DEPAN)             */
/* ========================================== */
.opening {
  height: 100vh;
  width: 100%;
  background-image: linear-gradient(0deg, rgba(176, 196, 222, 0.7), rgba(255, 255, 255, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.slide-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  z-index: -2;
}

.background {
  width: 100%;
  height: 100%;
  display: flex;
  animation: slideBackground 30s linear infinite;
}

.slide {
  width: 50%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes slideBackground {
  0% { transform: translateX(0); }
  50% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

#tombol-buka {
  border: none;
  color: var(--fontwhite);
  background-color: var(--fontpink);
  font-family: var(--fontsans);
  font-size: 1.2em;
  padding: 10px 20px;
  border-radius: 1.5em;
  margin-top: 1em;
  transition: background-color 0.3s ease;
}

#tombol-buka:hover { background-color: #4a5568; }

.penutup {
  color: rgb(80, 80, 80);
  font-family: var(--fontcrete);
  font-size: 23px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.konfirmasi {
  display: flex;
  font-family: var(--fontRobto);
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 10px;
}

.konfirmasi label {
  font-size: 1em;
  margin: 5px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.konfirm-text {
  width: 100%;
  font-size: 1em;
  padding: 12px;
  border: 1px solid var(--borderpink);
  border-radius: 10px;
  background-color: white;
  margin-bottom: 10px;
}

.konfirm-text:focus {
  outline: var(--borderpink);
  border: 2px solid var(--fontpink);
}

.komfon {
  color: #54595f;
  font-family: var(--fontQuicksand);
  font-size: 16px;
  margin: 10px 0;
}

.btnwish {
  margin: 10px 0;
  color: var(--fontwhite);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1.2em;
  font-family: var(--fontQuicksand);
  font-weight: bold;
  background-color: var(--fontpink);
  width: 100%;
}

.wishbox {
  display: flex;
  flex-direction: column;
  margin-top: 1em;
  align-items: start;
  width: 100%;
}

.wish {
  display: flex;
  flex-direction: row;
  text-align: left;
  margin-bottom: 15px;
  width: 100%;
}

.imgcom {
  width: 40px;
  height: 40px;
  border: 2px solid var(--borderpink);
  border-radius: 50%;
  margin-right: 10px;
}

.wishcom {
  padding: 10px;
  background-color: var(--fontwhite);
  border: 1px solid var(--borderpink);
  border-radius: 10px;
  flex: 1;
}

.wish-nama {
  font-family: var(--fontQuicksand);
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 4px;
}

.wish-nama i {
  background-color: #d0e1f9; 
  color: var(--fontpink);
  padding: 3px;
  border-radius: 5px;
}

.wish-pesan {
  font-family: var(--fontQuicksand);
  font-size: 14px;
  word-wrap: break-word;
}

.play-pause-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--fontpink);
  opacity: 0.8;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
}

.fa-play { margin-left: 3px; }
.fa-pause { margin-left: 0; }

.tanggal-kom {
  margin-top: 5px;
  text-align: right;
  font-size: 11px;
  color: #888;
}

/* ========================================== */
/* GALERI & PEMBAYARAN                        */
/* ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px;
  width: 100%;
  padding: 10px;
}

.gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid var(--borderpink);
  transition: transform 0.3s ease;
}

.gallery-img:hover { transform: scale(1.05); }

.gift-box {
  background-color: white;
  border: 2px solid var(--borderpink);
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.qr-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
}

/* ========================================== */
/* MEDIA QUERIES (RESPONSIVE MOBILE)          */
/* ========================================== */
@media all and (max-width: 768px) {
  .tags { font-size: 3em; }
  .subtags, .savedate, .konfirm-text { font-size: 1em; }
  #countdown ul li span { font-size: 2rem; }
  .aya { font-size: 1em; }
  .penutup { font-size: 18px; }
  .pesan { font-size: 1.1em; }
  
  .mempelai { font-size: 3.5em; }
  
  .heading {
    padding: 10px;
  }
}

@media all and (min-width: 769px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-img { height: 200px; }
}