/*Variable*/
:root {
  --height-screen: 100vh;
  --width-screen: 100vw;
  --primary-color: linear-gradient(to top, #d98c82, #f7e497);
  --primary-color-active: #ffffff;
  --primary-bg-color: linear-gradient(to top, #2e323e, #2b2f3b);
  --primary-gradient-color: linear-gradient(to top, #e5d9b9, #b19355);
}

* {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

@font-face {
  font-family: "Hamlin";
  src: url("../webfonts/Hamlin-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Hamlin", Sans-serif;
  font-weight: 400;
}

h2 {
  padding-bottom: 14vh;
  font-size: 18px;
  font-weight: 500;
}

strong {
  font-size: 26px;
  font-family: "Alice", serif;
  font-weight: 600;
  font-style: normal;
  background: var(--primary-gradient-color);
  -webkit-background-clip: text;
  color: transparent;
}

/*Modal*/
.modal-container {
  display: flex;
  color: white;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.modal-x {
  height: var(--height-screen);
}

.modal-content {
  height: var(--height-screen);
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.col-modal {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100vw;
  height: 30vh;
}

.col-modal:nth-child(1) {
}

.col-modal:nth-child(2) {
}

.col-modal:nth-child(3) {
  font-family: "Hamlin", sans-serif;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.col-modal:nth-child(3) .udw-dear {
}

.col-modal:nth-child(3) .udw-name.undangan {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.col-modal:nth-child(3) .udw-text {
  margin: 0% 5%;
}

.col-modal:nth-child(3) .udw-close-modal {
  color: black;
  margin-top: 10px;
  font-size: 14px;
}

.col-modal:nth-child(3) .button-close-modal {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  border: none;
  background-color: white;
  border-radius: 21px;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.col-modal:nth-child(3) .button-close-modal:active {
  transform: scale(0.95);
  background-color: var(--primary-color-active);
}

.col-modal:nth-child(3) .button-close-modal:hover {
  background-color: var(--primary-color);
}

.col-modal:nth-child(3) .button-close-modal:hover .fa-envelope-open {
  color: white;
}

.col-modal:nth-child(3) .fa-envelope-open {
  color: var(--primary-color);
  font-size: 16px;
  padding: 0px 2px 0px 4px;
}

/* Mengatur elemen yang tersembunyi awalnya */
.pop-up {
  opacity: 0;
  /* Elemen tidak terlihat saat halaman pertama kali dimuat */
  transform: translateY(50px);
  /* Geser elemen ke bawah */
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* Animasi untuk opacity dan transform */
}

/* Kelas untuk elemen yang sudah di-scroll ke dalam viewport */
.pop-up.visible {
  opacity: 1;
  /* Elemen menjadi terlihat */
  transform: translateY(0);
  /* Geser elemen ke posisi normal */
}

/*section*/
.main {
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  overflow-y: scroll;
  scroll-behavior: smooth;
  height: var(--height-screen);
  width: var(--width-screen);
}

.section-container {
  display: flex;
  flex-direction: column;
  height: auto;
  width: var(--width-screen);
}

.audio-button {
  position: fixed;
  right: 20px;
  bottom: 75px;
  cursor: pointer;
}

.audio-button .fa-regular {
  font-size: 2em;
  color: white;
}

#playAudio {
  width: auto;
  height: auto;
  background-color: transparent;
  border: none;
}

.footer-menu {
  display: none;
  position: fixed;
  bottom: 10px;
  width: 100%;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

.footer-menu .menu-box {
  width: 50px;
  height: 50px;
  padding: 25px;
  border: 4px solid #b7b7c9;
  background-color: #ffffff;
  border-radius: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-menu .menu-box:hover {
  transform: scale(1.1);
  border: 4px solid #9d6944;
}

.footer-menu .icon-size {
  font-size: 1.6em;
  color: #b7b7c9;
}

.footer-menu .icon-size:hover {
  transform: scale(1.1);
  color: #9d6944;
}

.section-page {
  color: #fcfcfc;
  width: 100vw;
  height: 100vh;
  text-align: center;
  overflow: hidden;
}

.section-page:nth-child(odd) {
  background-color: #252422;
  background-image: url(../images/template.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.section-page:nth-child(even) {
  background-color: #252422;
  background-image: url(../images/main_level3.png),
    url(../images/main_level4.png);
  background-repeat: no-repeat;
  background-size: 120px 120px;
  background-position: left top, right bottom;
}

/*halaman pertama*/
#pageOne {
  display: flex;
  flex-direction: column;
}

#pageOne .section-column {
  padding: 0;
  margin: 0;
  justify-content: center;
  display: flex;
  align-items: center;
  width: 100vw;
}

#pageOne .section-column:nth-child(1) {
  height: 16vh;
  font-family: "Hamlin", sans-serif;
}

#pageOne .section-column:nth-child(1) .h2-main {
  line-height: 1;
  padding: 5vh 0 0 0;
  font-size: 16px;
}

#pageOne .section-column:nth-child(2) {
  height: 40vh;
}

#pageOne .section-column:nth-child(2) .image-container {
  position: relative;
  background-image: url(../images/duduk2.jpg);
  height: 25vh;
  width: 100%;
  background-size: cover;
  overflow: hidden;
  background-position: center center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 15px 25px rgba(0, 0, 0, 0.3);
}

#pageOne .section-column:nth-child(3) {
  height: 10vh;
}

#pageOne .section-column:nth-child(3) h2 {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  margin-bottom: 6vh;
}

#pageOne .section-column:nth-child(4) {
  height: 12vh;
}

#pageOne .section-column:nth-child(4) .countdown-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: var(--width-screen);
}

#pageOne .section-column:nth-child(4) .row-time {
  font-family: "Russo One", sans-serif;
  color: #9d6944;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f6f1ee;
  margin: 0px 2px 0px 2px;
  padding: 5px 20px;
  font-size: 12px;
  border-radius: 6px;
  width: 26px;
}

#pageOne .section-column:nth-child(4) .timer-target {
  font-weight: bold;
  font-size: 21px;
}

#pageOne .section-column:nth-child(5) {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  width: var(--width-screen);
  height: 22vh;
}

#pageOne .section-column:nth-child(5) p {
  font-family: "Hamlin", sans-serif;
  padding: 5px 10px;
  line-height: 1;
  font-size: 1em;
  text-align: center;
}

/*
/*halaman kedua*/
#pageTwo {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#pageTwo p {
  line-height: 1.3em;
  font-weight: 400;
  font-family: "Hamlin", Sans-serif;
  text-align: center;
  margin: 0px 6px;
}

#pageTwo .col-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#pageTwo .col-page:nth-child(1) {
  box-sizing: border-box;
  padding-top: 10vh;
  height: 20vh;
}

#pageTwo .col-page:nth-child(1) p {
  width: 90%;
  font-size: 14px;
}

#pageTwo .col-page:nth-child(2) {
  height: 70vh;
  width: 90%;
  margin: auto;
}

#pageTwo .col-page:nth-child(2) h2 {
  padding: 0;
}

#pageTwo .col-page:nth-child(2) .h2-big {
  font-size: 48px;
}

#pageTwo .col-page:nth-child(2) strong {
  padding: 0;
  font-size: 30px;
}

#pageTwo .col-page:nth-child(2) p {
  font-size: 0.8em;
}

#pageTwo .col-page:nth-child(3) {
  height: 10vh;
}

.akad-box {
  display: flex;
  flex-direction: column;
}

.resepsi-box {
  display: flex;
  flex-direction: column;
}

#pageThree {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: var(--height-screen);
}

#pageThree .col-page {
  font-family: "Hamlin", Sans-serif;
  font-size: 15px;
  display: flex;
  flex-direction: column;
}

#pageThree .map-location-box {
  border: 1px solid yellow;
  border-radius: 10px;
  padding: 5px 10px;
  width: 40vw;
  margin: 0 auto;
  margin-top: 10px;
  font-weight: 500;
}

#pageThree .map-location-box:hover {
  background-color: red;
}

#pageThree .col-page:nth-child(1) {
  box-sizing: border-box;
  justify-content: center;
  height: 50vh;
}

#pageThree .col-page:nth-child(1) .span-gap {
  margin: 20px auto;
  font-size: 16px;
}

#pageThree .col-page:nth-child(1) h2 {
  padding: 0;
}

#pageThree .col-page:nth-child(1) strong {
  font-size: 30px;
}

#pageThree .col-page:nth-child(1) .wedding-rings {
  width: 80px;
  height: auto;
}

#pageThree .col-page:nth-child(1) .detail-date {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  margin-bottom: 20px;
}

#pageThree .col-page:nth-child(2) {
  justify-content: center;
  height: 50vh;
}

#pageThree .col-page:nth-child(2) .toast {
  width: 80px;
  height: auto;
}

#pageThree .col-page:nth-child(2) h2 {
  padding: 0;
}

#pageThree .col-page:nth-child(2) strong {
  font-size: 30px;
}

#pageThree .col-page:nth-child(2) .lokasi-resepsi {
  margin-top: 10px;
  font-family: "Hamlin", Sans-serif;
  font-weight: 400;
}

/*halaman ketiga*/
#pageFour {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  height: var(--height-screen);
}

#pageFour .col-page:nth-child(1) {
  height: 10vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pageFour .col-page:nth-child(1) .map-location-box {
  border: 1px solid yellow;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 40px auto;
  font-weight: 500;
}

#pageFour .col-page:nth-child(2) {
  display: flex;
  flex-direction: column;
  height: 85vh;
  font-family: "Hamlin", Sans-serif;
  font-weight: 400;
  font-size: 14px;
}

#pageFour .col-page:nth-child(2) .fa-solid {
  font-size: 50px;
}

#pageFour .col-page:nth-child(2) h2 {
  margin: 10px auto 0px;
  padding: 0;
}

#pageFour .col-page:nth-child(2) .map-location-box {
  border: 1px solid white;
  background-color: #9d6944;
  border-radius: 10px;
  padding: 5px 10px;
  width: 40vw;
  margin: 20px auto;
  font-weight: 500;
}

#pageFour .col-page:nth-child(2) .map-location-box:hover {
  background-color: red;
}

#pageFour .col-page:nth-child(2) .box-icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

#pageFour .col-page:nth-child(2) .box-icon .fa-solid {
  font-size: 20px;
  margin-right: 8px;
}

#pageFour .col-page:nth-child(2) .box-icon span {
  font-weight: 600;
  font-size: 16px;
}

#pageFour .col-page:nth-child(3) {
  height: 5vh;
}

#pageFour iframe {
  margin-top: 40px;
  width: 75%;
  height: 40vh;
  border: 5px solid white;
  border-radius: 10px;
}

/*section page 4*/
#pageFive {
  display: flex;
  width: var(--width-screen);
  height: var(--height-screen);
}

#pageFive .container-galery-2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#pageFive .container-galery-2 .button-galery {
  width: 30px;
  font-size: 22px;
  color: #ffffff;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

#pageFive .container-galery {
  width: var(--width-screen);
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-direction: column;
}

#pageFive .container-galery .our-galery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 12vh;
  padding: 0;
  font-size: 40px;
}

#pageFive .container-galery .galery-box {
  height: 75vh;
  width: 80vw;
  padding: 5px;
  margin: auto;
  border-radius: 20px;
}

#pageFive .container-galery .galery-highlight {
  margin-bottom: 10px;
}

#pageFive .container-galery .galery-highlight .image-highlight {
  box-sizing: border-box;
  width: 80vw;
  height: 60vh;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
}

#pageFive .container-galery .galery-highlight .image-highlight img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 1;
  transform: scale(1);
}

#pageFive .container-galery .galery-row {
  height: 10vh;
  width: 70vw;
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  margin: auto;
  scroll-snap-type: x mandatory;
}

#pageFive .container-galery .galery-item {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 20vw;
  height: 10vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  scroll-snap-align: start;
}

#pageFive .container-galery .galery-item img {
  image-rendering: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

#pageFive .container-galery .galery-item img:hover {
  transform: scale(1.1);
  border: 2px solid white;
}

#pageFive .span-bottom {
  height: 10vh;
}

/*section page 5*/
#pageSix {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#pageSix form {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#pageSix .col-page:nth-child(2) {
  color: #fcfcfc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#pageSix .col-page:nth-child(2) .tampil-gift {
  border: none;
  background-color: transparent;
  border: 1px solid #e5d9b9;
  border-radius: 5px;
  padding: 5px 10px;
  width: 50%;
  height: 30px;
  margin: 0;
  margin: 0px 5px;
}

#pageSix .col-page:nth-child(2) .tampil-gift:hover {
  background-color: white;
  color: black;
  border: 2px solid #e5d9b9;
}

#pageSix .col-page:nth-child(2) p {
  font-family: "Hamlin", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

#pageSix .col-page {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  color: green;
  padding: 10px 40px;
}

#pageSix .col-page h2 {
  padding: 10px 0;
  margin: 0;
}

#pageSix .col-page .input-text {
  border: none;
  height: 35px;
  border-radius: 5px;
  background-color: white;
  padding: 6px 12px;
}

#pageSix .col-page .input-button {
  height: 45px;
  padding: 6px 12px;
}

#pageSix .col-page .input-area {
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  color: blue;
  height: 15vh;
  background-color: white;
  resize: none;
}

#pageSix .col-page .input-button {
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  background-color: lightyellow;
  color: white;
  background-color: #b19355;
}

#pageSix .col-page .input-button:hover {
  border: 2px solid #b19355;
  background-color: transparent;
  color: #b19355;
}

#pageSix .col-page .box-komentar {
  display: none;
  margin-top: 10px;
  border: 1px solid red;
  height: 45vh;
  overflow-x: scroll;
}

#pageSix .col-page .col-komentar {
  margin: 4px 0;
  text-align: left;
  background-color: white;
  padding: 5px;
  border-radius: 5px;
}

#pageSix .col-page .col-komentar .name-user-comment {
  font-size: 16px;
  color: black;
}

#pageSix .col-page .col-komentar .date-user-comment {
  font-size: 9px;
}

#pageSix .col-page .col-komentar .text-user-commnet {
  font-family: "Hamlin", serif;
  font-weight: 500;
  font-size: 14px;
}

#pageSeven {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#pageSeven .col-page:nth-child(1) {
  height: 30vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pageSeven .col-page:nth-child(1) p {
  width: 80vw;
}

#pageSeven .col-page:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 30vh;
}

#pageSeven .col-page:nth-child(2) h2 {
  padding: 0;
  margin: 0;
}

#pageSeven .col-page:nth-child(3) {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 10vh;
  width: 90vw;
  margin: 10vh auto 0;
  gap: 5px;
}

#pageSeven .col-page:nth-child(3) .row-pigeon {
  font-size: 20px;
}

#pageSeven .col-page:nth-child(3) .row-about {
  border-bottom: 2px solid white;
  width: 30vw;
}

#pageSeven .col-page:nth-child(4) {
  height: 10vh;
}

.modal-gift {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  box-sizing: border-box;
  top: 10px;
  width: 100%;
  height: 100%;
}

.modal-gift .gift-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  width: 250px;
  height: 150px;
  border-top: 6px solid #b19355;
  border-radius: 10px;
}

.modal-gift .gift-content h6 {
  margin-top: 10px;
  color: grey;
}

/*Responsive Mobile*/
@media (max-width: 600px) {
  /*  modal*/
  .modal-container {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 10%,
        rgba(0, 0, 0, 0) 20%
      ),
      /* Vignette atas */
        linear-gradient(
          to top,
          rgba(0, 0, 0, 0.8) 10%,
          rgba(0, 0, 0, 0.4) 30%,
          rgba(0, 0, 0, 0) 50%
        ),
      /* Vignette bawah */ url(../images/fotoawal.png) center no-repeat;
    /* Gambar latar belakang */
    background-size: cover;
  }
}
/* Tombol Map seragam (dipakai di #pageThree dan #pageFour) */
a.map-location-box {
  --btn-bg: #b19355; /* dasar tema */
  --btn-fg: #1b1b1b; /* teks/ikon gelap */
  --btn-fg-contrast: #ffffff; /* teks jika hover invert */
  --btn-border: #e5d9b9; /* garis tepi */
  --btn-shadow: rgba(0, 0, 0, 0.25);

  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-decoration: none; /* hilangkan underline */
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  border-radius: 999px; /* pill */
  padding: 10px 16px;
  min-width: 200px;
  line-height: 1;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.06s ease;
  box-shadow: 0 2px 8px var(--btn-shadow);
}

/* Icon dalam tombol */
a.map-location-box i {
  font-size: 16px;
}

/* Hover: tingkatkan kontras */
a.map-location-box:hover {
  background: #d0b476;
  color: var(--btn-fg);
  border-color: #fff2c6;
}

/* Active: terasa ditekan */
a.map-location-box:active {
  transform: scale(0.98);
}

/* Focus visible untuk aksesibilitas keyboard */
a.map-location-box:focus-visible {
  outline: 3px solid #ffe08a;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 224, 138, 0.35);
}

/* Pastikan state visited tidak jadi ungu */
a.map-location-box:visited {
  color: var(--btn-fg);
}

/* Varian outline (opsional) untuk #pageThree jika ingin transparan */
#pageThree a.map-location-box.variant-outline {
  background: transparent;
  color: #e5d9b9;
  border-color: #e5d9b9;
}
#pageThree a.map-location-box.variant-outline:hover {
  background: rgba(225, 209, 153, 0.12);
  color: #ffffff;
  border-color: #fff2c6;
}
