*,
*::before,
*::after {
  box-sizing: border-box;
}

.left {
    display: none;
}

/* DESKTOP */
@media (min-width: 500px) {

  .wrapper {
    display: flex;
    justify-content: flex-end;
    height: 100vh;
  }

  .left {
    display: flex;
    width: 70%;
    max-width: 70%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #111;
    color: white;
    text-align: center;
    padding: 40px;
  }

  .left h1 {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .right {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    width: 30%;
    min-width: 350px;
    height: 100vh;
    outline: none;
    }

    .right::-webkit-scrollbar {
    display: none;
    }

    .right {
        scrollbar-width: none;
    }

  .right .overlay {
    position: absolute !important; /* paksa override fixed */
    inset: 0; /* lebih aman dari width/height */
  }
}

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(12px, 6vw, 14px);
  text-align: center;
  line-height: 1.2;
}

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: 0;
  padding: 0;
  background-color: floralwhite;
  color: #22272f;
}

#loadingText{
position:absolute;
top:30px;
font-size:14px;
padding:4px 8px;
border-radius:4px;
opacity:0.8;
background-color:goldenrod;
color:white;

transform:translateY(0);
transition:opacity .6s ease, transform .6s ease, background-color .4s ease;
}

/* status siap */
#loadingText.loading-ready{
background-color: seagreen;
}

.loading-hide{
opacity:0;
transform:translateY(-25px);
pointer-events:none;
}

/* ===========================
    ANIMATION
============================== */
/* ANIMATION BASE */
.animate {
    opacity: 0;
    z-index: 10;
    transform: scale(0.95);
    transition: all 3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* SHOW */
.animate.show {
    opacity: 1;
    transform: scale(1);
}

/* VARIASI */
.from-left {
    transform: translateX(-60px);
}
.from-right {
    transform: translateX(60px);
}
.from-top {
    transform: translateY(-60px);
}
.from-bottom {
    transform: translateY(60px);
}
.zoom-in {
    transform: scale(0.2);
}

/* DELAY */
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }
.delay-3 { transition-delay: 0.8s; }
.delay-4 { transition-delay: 1.0s; }
.delay-5 { transition-delay: 1.1s; }

/* ===========================
    LOCKSCREEN
============================== */

.overlay > * {
    opacity: 0;
    transition: opacity 2s ease, transform 2s ease;
}

/* Saat aktif */
.overlay.show > *  {
    opacity: 1;
}

/* sebelum dibuka → semua konten disembunyikan */
body:not(.opened) .container * {
    opacity: 0;
}

/* setelah klik */
body.opened #lockScreen {
    opacity: 0;
    pointer-events: none;
}

/* Menyembunyikan lock screen */
#lockScreen.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

/* Menonaktifkan scroll saat lock screen aktif */
body.locked {
    overflow: hidden; /* Menonaktifkan scroll */
}

#lockScreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #22272f;
  color: white;
  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 */
  overflow: hidden;
}

#transisi {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.parent {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.div1 {
  position: relative;
  grid-area: 1 / 1 / 3 / 2;
  margin-bottom: 40px;
  z-index: 100;
}

.div2 {
  position: relative;
  grid-area: 3 / 1 / 4 / 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#headliner {
  width: clamp(220px, 8vw, 320px);
}

.div1 h1 {
  font-size: 48px;
}

#detailtamu {
  font-size: 16px;
  line-height: 0;
  margin-bottom: 10px;
}

.open-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  background-color: gray;
  cursor: pointer;
  border-radius: 10px;
}

.box {
  font-weight: 600;
  font-size: 14px;
}

.leaf {
  position: absolute;
  height: 300px;
  width: 300px;
  z-index: 1;
  pointer-events: none;
}

#kananbawah {
  background-image: url('/katalog/undangan/minimalis/midnightleaf/images/pojokcenter.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(50%) translateY(50%);
  opacity: 0.09;
  bottom: 0;
  right: 0;
  animation: sidekanan 6s linear infinite;
}

#kananbawah2 {
  background-image: url('/katalog/undangan/minimalis/midnightleaf/images/leafcenter.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateX(50%) translateY(50%);
  opacity: 0.5;
  bottom: 0;
  right: 0;
  animation: sidekanan2 6s linear infinite;
}

#kiribawah {
  background-image: url('/katalog/undangan/minimalis/midnightleaf/images/pojokcenter2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.09;
  transform: translateX(-50%) translateY(50%);
  bottom: 0;
  left: 0;
  animation: sidekiri 6s linear infinite;
}

#kiribawah2 {
  background-image: url('/katalog/undangan/minimalis/midnightleaf/images/leafcenter2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  transform: translateX(-50%) translateY(50%);
  bottom: 0;
  left: 0;
  animation: sidekiri2 6s linear infinite;
}

@keyframes sidekiri {
  0% {
    transform: translateX(-50%) translateY(50%) scale(1.0) rotate(16deg);
  }
  25% {
    transform: translateX(-50%) translateY(50%) scale(1.05) rotate(19deg);
  }
  50% {
    transform: translateX(-50%) translateY(50%) scale(1.1) rotate(15deg);
  }
  75% {
    transform: translateX(-50%) translateY(50%) scale(1.05) rotate(11deg);
  }
  100% {
    transform: translateX(-50%) translateY(50%) scale(1.0) rotate(16deg);
  }
}

@keyframes sidekiri2 {
  0% {
    transform: translateX(-50%) translateY(50%) scale(1.0) rotate(-20deg);
  }
  20% {
    transform: translateX(-50%) translateY(50%) scale(1.05) rotate(-15deg);
  }
  40% {
    transform: translateX(-50%) translateY(50%) scale(1.0) rotate(-7deg);
  }
  60% {
    transform: translateX(-50%) translateY(50%) scale(1.05) rotate(-9deg);
  }
  80% {
    transform: translateX(-50%) translateY(50%) scale(1.05) rotate(-13deg);
  }
  100% {
    transform: translateX(-50%) translateY(50%) scale(1.0) rotate(-20deg);
  }
}

@keyframes sidekanan {
  0% {
    transform: translateX(50%) translateY(50%) scale(1.0) rotate(-16deg);
  }
  25% {
    transform: translateX(50%) translateY(50%) scale(1.05) rotate(-20deg);
  }
  40% {
    transform: translateX(50%) translateY(50%) scale(1.1) rotate(-14deg);
  }
  65% {
    transform: translateX(50%) translateY(50%) scale(1.05) rotate(-12deg);
  }
  100% {
    transform: translateX(50%) translateY(50%) scale(1.0) rotate(-16deg);
  }
}

@keyframes sidekanan2 {
  0% {
    transform: translateX(50%) translateY(50%) scale(1.0) rotate(20deg);
  }
  20% {
    transform: translateX(50%) translateY(50%) scale(1.05) rotate(15deg);
  }
  40% {
    transform: translateX(50%) translateY(50%) scale(1.0) rotate(7deg);
  }
  60% {
    transform: translateX(50%) translateY(50%) scale(1.05) rotate(9deg);
  }
  80% {
    transform: translateX(50%) translateY(50%) scale(1.05) rotate(13deg);
  }
  100% {
    transform: translateX(50%) translateY(50%) scale(1.0) rotate(20deg);
  }
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 600px;
  overflow: hidden;
  z-index: 2;
  text-align: center;
}


/* ===================
  PAGE 1
======================*/
.minicontainer {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  color: #22272f;
}

#sambutan {
  padding: 0px 30px 30px 30px;
  margin-bottom: 20px;
}

#pasangan {
  margin: 0;
  padding: 0;
}

.profil {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #22272f;
  color: floralwhite;
  width: 85%;
  min-height: 400px;
  margin: 0;
  padding: 20px;
  border-radius: 0px 40px 40px 0px;
}

.profil img {
  width: 180px;
  border-radius: 30px;
  margin-bottom: 20px;
}


/* ===================
  PAGE 2
======================*/

#lovestory {
  background-color: #22272f;
  color: floralwhite;
}

#containerkisah {
  padding: 30px;
  border-radius: clamp(10px, 2vw, 20px);
  max-width: 600px;
}


/* ===================
  PAGE 3
======================*/
/* setting Galeri Foto */
#galerimempelai {
  background-color: #22272f;
  color: floralwhite;
}

#galerimempelai p {
  margin: 0px 40px;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 15px;
}

.gallery img {
  flex: 1 1 120px;
  max-width: calc(33.333% - 10px);
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  z-index: 100;
}

/* Lightbox fullscreen */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 0; /* default */
}

#lightbox img {
  max-width: 95%;
  max-height: 95%;
}


/* ===================
  PAGE 4
======================*/
/* Flexbox untuk kotak countdown */
#detailacara {
  padding-bottom: 40px;
}

.content #namapasangan{
  padding-bottom: 20px;
}

.content #namapasangan h4{
  margin: 0;
}

#containeracara {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: floralwhite;
  color: #22272f;
  width: 100%;
}

.judulacara {
  background-color: floralwhite;
  color: #22272f;
  font-size: 36px;
  font-weight: bold;
  margin-top: 30px;
}

.wrapperacara {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #22272f;
  color: floralwhite;
  padding: 30px 20px;
  width: 100%;
  z-index: 3;
}

#containeracara .tanggal {
  background-color: floralwhite;
  color: #22272f;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 12px;
  z-index: 20;
  margin: 0;
  gap: 0;
}

#dateday {
  font-size: 20px;
  margin: 0;
  padding: 0;
}

#date {
  font-weight: bold;
  font-size: 60px;
  margin: 0;
  padding: 0;
}

#dateyear {
  font-size: 14px;
  margin: 0;
  padding: 0;
}

#timeday {
  white-space: nowrap;
  font-size: 14px;
  margin-top: 20px;
  border-radius: 6px;
  padding: 6px;
  background-color: #22272f;
  color: floralwhite;
}

.alamat p {
  padding: 0;
  margin: 0;
}

.linklokasi {
  margin-top: 30px;
}

#containeracara a {
  text-decoration: none;
  color: #22272f;
  background-color: floralwhite;
  padding: 6px 20px 6px 20px;
  border-radius: clamp(4px, 1.5vw, 8px);
}


/* ===================
  PAGE 5
======================*/
#amplopdigital {
  background-color: #22272f;
  color: floralwhite;
  padding: 20px;
}

#amplopdigital p {
  max-width: 600px;
}

#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;
    border: 1px solid #fffbdf;
    border-radius: clamp(4px, 2vw, 8px);
    padding: 10px;
    margin-top: 10px;
    width: clamp(220px, 10vw, 280px);
    gap: 10px;
}

#kirimkankado h4{
    font-size: 16px;
    margin: 0;
}

#kirimkankado p {
    margin: 0;
    line-height: 1.2;
}

/* ===================
  PAGE 6
======================*/
#kirimucapan {
  background-color: #22272f;
  color: floralwhite;
}

#invitation {
  background-color: #22272f;
  color: floralwhite;
  padding: 20px 0px;
}

#livestreaming {
  background-color: #22272f;
  color: floralwhite;
  padding: 0px 20px;
}

/* ===================
  PAGE 7
======================*/
#quotes {
  background-color: #22272f;
}

#quotes .profil {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.5); /* putih 50% transparan */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari */
  padding: 26px;
  border-radius: clamp(10px, 4vw, 20px);
  z-index: 10;
}

#quotes .profil img {
  border-radius: clamp(10px, 4vw, 20px);
  width: clamp(150px, 10vw, 200px);
}

/* ===================
  FOOTER
======================*/
#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #22272f;
    color: floralwhite;
    padding: 20px 20px 40px 20px;
    }

#footer .icon{
    font-size: 20px;
    display: flex;
    gap: 20px;
}

#footer .icon i {
    color: floralwhite;
}