html {
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
    scroll-behavior: smooth;
    font-size: clamp(12px, 2vw, 16px);
}

p {
    font-size: clamp(10px, 6vw, 14px);
    text-align: center;
    line-height: 1.2;
    max-width: 600px;
}

h1{
    font-family: "Lavishly Yours", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(32px, 8vw, 46px);
    margin: 0;
    padding: 0;
}

h2{
    font-family: "Lavishly Yours", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(28px, 6vw, 36px);
}

h3{
    font-family: "Lavishly Yours", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(20px, 3vw, 28px);
}

body {
    margin: 0px;
    padding: 0px;
    line-height: 1.5;
    color: #22272f;
    position: relative;
    background: url('images/backlandscape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    }

.container {
    border-radius: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 32px 20px;
    background: url('images/backlandscape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
    text-align: center;
    overflow: hidden;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 20px 20px 32px 20px;
}

@media (min-width: 760px) {
    .container {
        background: url('images/backportrait.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    body {
        background: url('images/backportrait.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

/* SEMUA ISI DI DALAM container */
/* Mengatur lock screen dengan background solid dan tidak transparan */
#lockScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/backportrait.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(0);
    z-index: 9999; /* pastikan berada di atas semua konten */
}

#containeroverlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.25); /* transparan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border-radius: clamp(20px, 4vw, 30px);
    width: 94%;
    height: 94%;
    overflow: hidden;
}

/* Menyembunyikan lock screen */
#lockScreen.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

/* Menonaktifkan scroll saat lock screen aktif */
body.locked {
    overflow: hidden; /* Menonaktifkan scroll */
}

.detailtamu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Styling untuk tombol buka undangan */
.open-btn {
    margin-top: 20px;
}

.open-btn a {
    color: #fffbdf;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #3B4953;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

/* Efek hover untuk tombol */
.open-btn a:hover {
    background-color: #007BFF; /* Tambahkan background saat hover */
    color: #fffbdf; /* Mengubah warna teks saat hover */
}

#namapasangan {
    margin: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Styling untuk teks */
#namapasangan h1, #namapasangan h2 {
    text-align: center;
    margin: 12px;
}

#namapasangan h1 {
    font-size: 3.5rem;
}

#namapasangan h2 {
    font-size: 2rem;
}

.detailtamu h4 {
    text-align: center;
    margin: 0;
    font-size: 20px;
}

#sambutan {
    margin: 0px 40px 40px 40px;
}

#pasangan {
    text-align: center;
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container > *, 
.overlay > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease, transform 2s ease;
}

/* Saat aktif */
.container.show > *,
.overlay.show > *  {
    opacity: 1;
    transform: translateY(0);
}

.overlay {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.overlay.show {
    opacity: 1;
    transform: scale(1);
}

.navigasi {
    border-radius: 20px;
    bottom: 20px;
    background: rgba(28, 53, 40, 0.8);
    z-index: 9;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 7px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.icongambar {
    border-radius: 15px;
    height: 40px;
    width: 40px;
    opacity: 1;
}

.no-refresh{
    height: 40px;
    width: 40px;
}

#playPauseBtn {
        position: fixed;
        bottom: 90px;
        right: 20px;
        background: #1C352D;
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        border: none;
        cursor: pointer;
        font-size: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 8;
    }

/* Tablet dan layar besar */
@media (min-width: 520px) {
    #playPauseBtn {
        bottom: 20px;
    }
}

#player {
    display: none; /* player disembunyikan */
}


/* Animasi Flower di POJO */
.corner1 {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    animation: fall2 12s linear infinite;
    width: clamp(200px, 20vw, 360px);
    pointer-events: none;
}
.corner2 {
    position: absolute;
    z-index: 3;
    right: 0;
    top: 0;
    animation: fall 12s linear infinite;
    width: clamp(200px, 20vw, 360px);
    pointer-events: none;
}
.corner3 {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    animation: fall2 12s linear infinite;
    width: clamp(200px, 20vw, 360px);
    pointer-events: none;
}
.corner4 {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    animation: fall 12s linear infinite;
    width: clamp(200px, 20vw, 360px);
    pointer-events: none;
}
.sidekanan{
    position: absolute;
    z-index: 3;
    right: 0;
    animation: sidekanan 12s linear infinite;
    width: clamp(200px, 20vw, 360px);
    transform: translateX(50%);
    pointer-events: none;
}
.sidekiri{
    position: absolute;
    z-index: 3;
    left: 0;
    animation: sidekiri 12s linear infinite;
    width: clamp(200px, 20vw, 360px);
    transform: translateX(-50%);
    pointer-events: none;
}
@keyframes sidekiri {
  0% {
    transform: translateX(-50%) scale(1.0) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) scale(1.05) rotate(6deg);
  }
  50% {
    transform: translateX(-50%) scale(1.1) rotate(0deg);
  }
  75% {
    transform: translateX(-50%) scale(1.05) rotate(-8deg);
  }
  100% {
    transform: translateX(-50%) scale(1.0) rotate(0deg);
  }
}
@keyframes sidekanan {
  0% {
    transform: translateX(50%) scale(1.0) rotate(0deg);
  }
  25% {
    transform: translateX(50%) scale(1.05) rotate(6deg);
  }
  50% {
    transform: translateX(50%) scale(1.1) rotate(0deg);
  }
  75% {
    transform: translateX(50%) scale(1.05) rotate(-8deg);
  }
  100% {
    transform: translateX(50%) scale(1.0) rotate(0deg);
  }
}
@keyframes fall {
  0% {
    transform: scale(1.0) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(6deg);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  75% {
    transform: scale(1.05) rotate(-8deg);
  }
  100% {
    transform: scale(1.0) rotate(0deg);
  }
}
@keyframes fall2 {
  0% {
    transform: scale(1.0) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(-6deg);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  75% {
    transform: scale(1.05) rotate(5deg);
  }
  100% {
    transform: scale(1.0) rotate(0deg);
  }
}
/* ATAS ANIMASI FLOWER POJOK */

.dekorfoto{
    position: relative;
}
#hanger{  
    width: clamp(200px, 20vw, 360px);
}
 .dekorfoto #foto{
    border-radius: clamp(10px, 3vw, 18px);
    box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.12),
    0 6px 6px rgba(0, 0, 0, 0.08);
    width: clamp(200px, 20vw, 360px);
}
.dekorfoto .dekorkecil{
    width: clamp(100px, 8vw, 140px);
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-5%) translateY(15%);
}
.dekorfoto .dekorkecil2{
    width: clamp(100px, 8vw, 140px);
    height: auto;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateX(5%) translateY(15%);
}

#sambutan {
    margin: 0px 20px 40px 20px;
}


#page2 #namapasangan {
    text-align: center;
    margin: 0;
    font-size: 20px;
}

#page2 h2{
    margin: 0;
    padding: 0;
}


/* Flexbox untuk kotak countdown */
.content #namapasangan{
    padding-bottom: 20px;
}

.content #namapasangan h4{
    margin: 0;
}

.containercount {
    background: rgba(255, 255, 255, 0.25); /* transparan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px 30px;
    margin: 10px 10px 30px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Jarak antar kotak */
    font-weight: bold;
}

/* Kotak untuk setiap bagian countdown (Hari, Jam, Menit, Detik) */
.countdown-box {
    background-color: #22272f; /* Warna hitam abu */
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFF;
    transition: transform 0.3s ease-in-out;
}

#tanggalcount {
    color: white;
    font-size: clamp(14px, 3.2vw, 20px);
    font-weight: bold;
}

#days, #hours, #minutes, #seconds {
    font-size: clamp(20px, 10vw, 30px);
}

/* Efek hover pada kotak countdown */
.countdown-box:hover {
    transform: scale(1.1); /* Membesar sedikit saat hover */
    cursor: pointer;
}

/* Styling untuk unit waktu (Hari, Jam, Menit, Detik) */
.countdown-unit {
    color: #FFD700; /* Warna emas untuk unit */
}

/* Animasi untuk teks */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

h1, #countdown {
    animation: fadeIn 1.5s ease-in-out;
}

#containeracara {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.25); /* transparan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 10px 30px 10px 30px;
    width: clamp(280px, 30vw, 600px);
    border-radius: clamp(10px, 2vw, 20px);
    padding: 0px 20px 20px 20px;
}

#containeracara .tanggal {
    display: flex;
    flex-direction: row;
    gap: clamp(6px, 2vw, 12px);
}

.alamat {
    margin: 20px;
}
.alamat p {
    padding: 0;
    margin: 0;
}

#containeracara a {
    text-decoration: none;
    color: #fffbdf;
    background-color: #1C352D;
    padding: 6px 20px 6px 20px;
    border-radius: clamp(4px, 1.5vw, 8px);
}

#containeracara .tanggal div {
    font-size: clamp(12px, 2.6vw, 18px);
    background-color: #1C352D;
    color: #fffbdf;
    padding: 4px;
    width: clamp(80px, 12vw, 120px);
    border-radius: clamp(4px, 2vw, 10px);
}

#page3 {
    background: url('images/back2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#containerkisah {
    background: rgba(255, 255, 255, 0.25); /* transparan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    padding: 20px;
    border-radius: clamp(10px, 2vw, 20px);
    max-width: 600px;
}



/* setting Galeri Foto */
#page4 {
    padding-bottom: 60px;
}

#page4 h2,
#page4 p {
    margin: 0;
}
#page4 #hanger{
    width: clamp(200px, 20vw, 360px);
}

.galeri {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: clamp(26px, 6vw, 40px);
    margin-top: clamp(26px, 6vw, 40px);
}

img.slider {
    height: clamp(300px, 50vw, 500px);
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tombol */
.arrow-btn {
    position: relative;
    z-index: 8;
    background-color: #1C352D;
    color: white;
    border: none;
    font-size: clamp(12px, 2vw, 20vw);
    height: clamp(30px, 6vw, 46px);
    width: clamp(30px, 6vw, 46px);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Efek hover */
.arrow-btn:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* Efek klik */
.arrow-btn:active {
    transform: scale(0.95);
}
/* batas Seting Galeri Foto */

#page5 p {
    max-width: 600px;
}

.copy-div {
    background-image: url('images/card2.png');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px 0px 0px 0px;
    width: clamp(220px, 28vw, 460px);
    height: clamp(130px, 16vw, 230px);
    background-color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(0, 0, 0, 0.2);
    border-radius: clamp(14px, 2vw, 26px);
    padding: clamp(12px, 4vw, 26px);
    position: relative;
    cursor: pointer;
    user-select: none;          /* NON SELECT */
    -webkit-user-select: none;
    -ms-user-select: none;
}

.copy-div:active{ transform: translateY(1px) scale(.999); }
.copy-div:hover{ box-shadow: 0 6px 18px rgba(3,8,20,0.6); }


.copy-div img {
    position: absolute;
    display: block;
    width: clamp(80px, 12vw, 110px);
    height: auto;
    right: 0;
    top: 0;
    padding: clamp(4px, 1.2vw, 8px);
    border-radius: clamp(10px, 1.6vw, 18px);
    margin-bottom: clamp(16px, 2vw, 24px);
}

.copy-div .detailrekening {
    position: absolute;
    left: 14px;
    bottom: 14px;
}

.copy-div .detailrekening .text {
    font-weight: 600;
    font-family: "Crimson Text", serif;
    font-style: normal;
    font-size: clamp(12px, 2vw, 16px);
    margin-top:8px;
    line-height:1.2;
    color: white;
    word-break:break-word;
}

/* TOAST */
.toast {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translate(-50%, -100%);
    background: #1C352D;
    color: #fff;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -130%);
}

#alamatkado {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: clamp(20px, 10vw, 30px);
}

#kirimkankado {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.25); /* transparan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    border-radius: clamp(4px, 2vw, 8px);
    padding: 20px;
    margin-top: 10px;
    width: clamp(220px, 28vw, 460px);
    gap: 10px;
}

#kirimkankado h4{
    font-size: 16px;
    margin: 0;
}

#kirimkankado p {
    margin: 0;
    line-height: 1.2;
}

#page6{
    margin: 10px;
    padding-bottom: 40px;
}

#page6 h4,
#page6 p {
    max-width: 600px;
}

#page7 input,
    #page7 select,
    #page7 textarea {
      width: clamp(300px, 50vw, 600px);
      margin-top: 10px;
      padding: 10px;
      font-size: 12px;
      border-radius: 5px;
      border: 1px solid #ccc;
      box-sizing: border-box;
    }

    #page7 textarea {
      height: 100px;
      resize: none;
    }

    #page7 button {
      margin-top: 10px;
      background: #1C352D;
      border: none;
      padding: 10px 20px;
      color: white;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
      width: clamp(300px, 50vw, 600px);
    }

    #page7 button:hover {
      background: #1C5555;
    }
    
    #page7 form {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px;
    }

    .hadir {
      color: green;
      font-weight: bold;
    }

    .tidak-hadir {
      color: red;
      font-weight: bold;
    }

    .formkomentar{
      margin-bottom: clamp(26px, 4vw, 40px);
    }

    #daftarKomentar{
    position: relative;
    background-color: #F9F8F6;
    border-radius: clamp(10px, 2.2vw, 20px);
    padding: 12px;
    margin: 4px 16px clamp(26px, 6vw, 38px) 16px;
    width: clamp(300px, 50vw, 600px);
    max-height: 480px;          /* TINGGI AREA KOMENTAR */
    overflow-y: auto;           /* Scroll vertikal */
    }


.statistik-komentar {
color: black;
display: flex;
justify-content: space-evenly;
width: clamp(300px, 50vw, 600px);
gap: 15px;
font-size: 14px;

position: sticky;
top: 0;
z-index: 999;

background: #fff;
padding: 10px 12px;
margin-bottom: 15px;

border-bottom: 1px solid #ddd;
border-radius: clamp(4px, 2vw, 8px);
}

.statistik-komentar span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.statistik-komentar .hadir {
    color: green;
}

.statistik-komentar .tidak-hadir {
    color: red;
}

    #daftarKomentar.scroll-aktif {
    max-height: 480px;
    overflow-y: auto;
    }

     /* Opsional: styling scrollbar (Chrome, Edge, Opera) */
    #daftarKomentar::-webkit-scrollbar {
        width: 6px;
    }

    #daftarKomentar::-webkit-scrollbar-thumb {
        background: #bbb;
        border-radius: 10px;
    }

    #daftarKomentar::-webkit-scrollbar-thumb:hover {
        background: #888;
    }

    #daftarKomentar p {
        color: #22272f;
    }

    #daftarKomentar .komentar{
      color: #22272f;
      margin-bottom: clamp(10px, 2vw, 16px);
      padding: clamp(6px, 1.2vw, 10px);
      border-bottom: 1px solid #ccc;
      border-radius: clamp(6px, 1.2vw, 12px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    #daftarKomentar .komentar .info{
        display: flex;
        flex-direction: row;
        justify-content: left;
        gap: 8px;
        padding-right: 6px;
    }

    #daftarKomentar .komentar .info strong,
    #daftarKomentar .komentar .info span{
      font-size: clamp(12px, 1.5vw, 16px);
    }

    #daftarKomentar .komentar .info{
      margin-bottom: 4px;
    }

    #daftarKomentar .komentar p{
      text-align: left;
      font-size: clamp(13px, 1.5vw, 16px);
      padding: 0px;
      margin: 6px;
    }

    #daftarKomentar .komentar .waktu {
        display: flex;
        justify-content: left;
      font-size: clamp(11px, 1.3vw, 14px);
      margin: 0px 0px 0px 6px;
    }

#page8{
    background: url('foto/2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#page8 .profil {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.25); /* transparan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari */
    padding: 26px;
    border-radius: clamp(10px, 4vw, 20px);
}

#page8 #surah {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0px;
}

#page8 .profil img {
    border-radius: clamp(10px, 4vw, 20px);
    width: clamp(150px, 20vw, 220px);
}

#footer .icon{
    display: flex;
    gap: 10px;
}