/* <===================TYPOGRAPHY & FONTS===================> */

@import url('https://fonts.googleapis.com/css2?family=Cinzel&family=Quicksand&display=swap');

/* <===================CSS VARIABLES===================> */

:root{
    --h1-size: 7rem;
    --h2-size: 2.1rem;
    --h3-size: 1.7rem;
    --text-size: 1.3rem;
    --horizontal-margin-spacing:6rem;
    --grey-color-light: rgba(232,230,230,.6);
    --grey-color: rgba(232,230,230,1);
}

/* <===================UNIVERSAL CSS===================> */

*{
    box-sizing: border-box;
    margin: 0;
    font-family: 'Cinzel', serif;
    color: #212121;
}
html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}
.hz-margin{
    padding: 0 var(--horizontal-margin-spacing);
}
h1{
    font-size: var(--h1-size);
    font-weight: 500;
    line-height: var(--h1-size);
}
h2{
    font-size: var(--h2-size);
    font-weight: bold;
}
h3{
    font-size: var(--h3-size);
    font-weight: 500;
}
.reveal{
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
  }
  
  .reveal.active{
    transform: translateY(0);
    opacity: 1;
  }
.text{
    font-family: 'Quicksand', sans-serif;
    font-size: var(--text-size);
    line-height: 1.3rem;
}
.huge-btn{
    display: block;
    font-size: 1rem;
    background: transparent;
    border: 1px solid #212121;
    padding: 25px 50px;
    border-radius: 50px;
    width: fit-content;
    margin: 30px 0;
}
.huge-btn:hover{
    color: grey;
    border-color: grey;
}
.v-reposition-container{
    position: absolute;
    left: 0;
    width: 100vw;
}
.h-reposition-container{
    width: 100vw;
    position: relative;
    top: 100vh;
}
/* <===================NAVBAR===================> */

nav{
    background: #fff; /* adjust to match your design */
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
/* label.logo{
    font-size: 35px;
    line-height: 80px;
    padding: 0 0 0 30px;
    font-weight: bold;
} */
nav .logo {
  color: #333;
  font-size: 24px;
  font-weight: bold;
  z-index: 11;
  /* margin-right: 20px; */
}

nav ul{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li{
    margin: 0 15px;
}
nav ul li a{
    text-decoration: none;
  font-size: 18px;
  color: #333;
  transition: 0.3s;
   z-index: 11;
}
a:hover{
    color: orange;
    transition: .5s;
}
.checkbtn{
    font-size: 30px;
    float: right;
    line-height: 80px;
    margin-left: 20px;
    cursor: pointer;
    display: none;
}
nav .checkbtn {
  font-size: 30px;
  color: #333;
  display: none;
  cursor: pointer;
}

#check {
  display: none;
}
@media (max-width:1000px){
    label.logo{
        font-size: 20px;
    }
    nav ul li a{
        font-size: 10px;
    }
    html{
        font-size: 10px;
    }
}
@media (max-width:570px){
    .checkbtn{
        display: block;
    }
    ul{
        position: fixed;
        width: 100%;
        height: 100vh;
        backdrop-filter: blur(5px);
        top: 80px;
        font-weight: bold;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }
    nav ul li{
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    nav li ul a{
        font-size: 20px;
    }
    a:hover, a.active{
        background: none;
        color: grey;
    }
    #check:checked ~ ul{
        left: 0;
    }
}

/* <===================HOME===================> */

.container-out{
    margin-top: 10vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.home-img{
    background-image: url("media/home.jpg");
    background-size: cover;
}
.home-img-sm{
    display: none;
    width: 100%;
    margin: 20px 0 0 0;
    height: 70vh;
}
#home-img-lg{
    display: block;
    height: 110vh;
    width: 50vw;
    background-position-x: center;
    
}
@media (max-width:1000px){
    .container-out{
        flex-direction: column;
    }
    .home-img-sm{
        display: block;
    }
    #home-img-lg{
        display: none;
    }
}

/* <===================TIMELINE===================> */

.timeline{
    display: block;
    background-color: var(--grey-color-light);
    float: left;
    position: relative;
    top: -30vh;
    width: 100%;
    backdrop-filter: blur(4px);
    padding: 8vh var(--horizontal-margin-spacing);
}
.timeline-container{
    display: flex;
    flex-direction: row;
    margin: 8vh 0;
}
.timeline-img{
    background-image: url("media/hand.jpg");
    height: 70vh;
    width: 30vw;
    background-position: center;
    background-size: cover;
}
.timings{
    margin: 30px;
}
.timeline-container .text{
    padding: 1rem 0 1rem 4rem;
}
@media (max-width:1000px){
    .timeline{
        background-color: var(--grey-color);
        float: none;
        position: relative;
        top: 0;
        width: 100%;
        backdrop-filter: blur(0);
        height: fit-content;
    }
    .timeline-container{
        flex-direction: column;
    }
    .timeline-img{
        height: 50vh;
        width: 100%;
    }
}

/* <===================STORY===================> */

#story{
    padding-top: 10vh;
    display: flex;
    flex-direction: row;
    margin: 10vh 0;
}
#story h3{
    width: 40vw;
}
#story p{
    width: 40vw;
    text-align: justify;
    font-size: var(--h3-size);
    line-height: var(--h3-size);
}
@media (max-width:1000px){
    .h-reposition-container{
        position: relative;
        top: 0;
    }
    #story{
        flex-direction: column;
    }
    #story h3{
        width: 100%;
        margin: 5px 0;
        font-size: var(--h3-size);
    }
    #story p{
        width: 100%;
        margin: 5px 0;
        font-size: var(--text-size);
        line-height: var(--text-size);
    }
}

/* <===================GALLERY===================> */

.gallery{
    display: flex;
    padding: 20vh 0;
    justify-content: center;
    align-items: center;
}
.gallery-img{
    width: 30vw;
    height: 30vw;
    margin: 10px;
    background-size: cover;
    background-position: center;
}
.gallery-img:nth-child(1){
    background-image: url("media/box1.jpg");
    background-position-x: right;
}
.gallery-img:nth-child(2){
    background-image: url("media/box2.jpg");
}
.gallery-img:nth-child(3){
    background-position-y: top;
    background-image: url("media/box3.jpg");
}
@media (max-width:1000px){
    .gallery{
        flex-direction: column;
        padding: 0;
    }
    .gallery-img{
        width: 100vw;
        height: 90vw;
        margin: 2px 0;
    }
    .gallery-img:nth-child(2){
        position: relative;
        left: -(var(--horizontal-margin-spacing));
    }
}

/* <===================QUOTE===================> */
.quote{
    margin: 10vh 0;
}
.quote h1{
    width: 55vw;
    font-size: 4rem;
    text-align: center;
    margin: auto;
}
.author{
    text-align: center;
    margin: 20px 0 10vh 0;
}
@media (max-width:1570px){
    .quote h1{
        font-size: 2rem;
        line-height: 2rem;
    }
}

/* <===================HANDS===================> */

.hands{
    height: 120vh;
    width: 100%;
    background-image: url("media/full.jpg");
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

    /* <===================STAY===================> */
    #stay{
        background-color: var(--grey-color);
        padding: 10vh var(--horizontal-margin-spacing);
        width: 100%;
}
.stay-container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 20vh 0;
}
.stay-item .text{
    margin: 20px 0;
}
.links{
    cursor: pointer;
    text-decoration: underline;
}
@media (max-width:1000px){
    .stay-container{
        flex-direction: column;
        margin: 10px 0;
    }
    .stay-item{
        margin: 2vh 0;
    }
}

/* <===================REGISTRY===================> */

#registry{
    padding: 20vh var(--horizontal-margin-spacing) 0 var(--horizontal-margin-spacing); 
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.registry-container{
    display: block;
    width: 30vw;
}
.registry-container .text{
    text-align: justify;
    margin: 20px 0;
}
.registry-img{
    display: block;
    height: 100vh;
    width: 40vw;
    background-image: url("media/last.jpg");
    background-size: cover;
    background-position-y: bottom;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
}
.registry-img-sm{
    display: none;
}
.registry-img-lg{
    display: block;
}
@media (max-width:1000px){
    #registry{
        flex-direction: column;
    }
    .registry-img{
        width: 100%;
        height: 50vh;
    }
    .registry-img-sm{
        margin-top: 10vh;
        display: block;
    }
    .registry-img-lg{
        display: none;
    }
    .registry-container{
        width: 100%;
    }
    #registry button{
        margin-inline: auto;
    }
}


/* <===================PARTING MESSAGE===================> */
.parting-message h1{
    margin-top: 10vh;
    text-align: center;
}
.parting-message button{
    margin:  10vh auto;
}

/* <===================FOOTER===================> */

footer{
    margin-top: 20vh;
    height: fit-content;
    width: 100%;
    background-color: var(--grey-color);
    padding: 10vh 30px;
}
footer h2{
    font-size: 2Srem;
    font-weight: normal;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  z-index: 1000;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.modal.hidden {
  display: none;
}
.modal-content {
  position: relative;
  z-index: 12;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  animation: fadeIn 0.3s ease;
}
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent; /* or rgba(0,0,0,0) */
  z-index: 10;
}
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}
input, select, button {
  display: block;
  width: 100%;
  margin: 1rem 0;
  padding: 0.75rem;
  font-size: 1rem;
}
.message {
  margin-top: 1rem;
  font-size: 1rem;
  /* color: #333; */
}
.hidden {
  display: none;
}
.message {
  margin-top: 1rem;
  margin-bottom: 1rem;
  /* font-size: 1rem; */
  /* color: #333; */
  text-align: center;
  line-height: 1.6;
}
.mb-4 {
  margin-bottom: 1rem; /* or 16px */
}
.plus-label {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #444;
}
.disclaimer {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.5rem;
  text-align: left;
}
.disclaimer {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.disclaimer.left-align {
  text-align: left;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #555;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

.success-text {
  color: green;
  font-weight: bold;
  text-align: center;
}

.error-text {
  color: red;
  font-weight: bold;
  text-align: center;
}

.rsvp-status {
  display: none;
  flex-direction: column;
  align-items: center;
}

/* Modal styles for Entourage */
.entourage-modal-content {
  max-width: 750px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  background-color: #FFFAF6;
  border-radius: 8px;
  box-shadow: 0 0 15px rgb(0 0 0 / 0.25);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  position: relative;
  z-index: 1001;  /* Higher z-index than overlay */
}

/* Overlay shared with other modals */
#entourageOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 1000;
  cursor: pointer;
}

/* Close button */
#closeEntourageModal {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #444;
  font-weight: 700;
}

/* Container */
.entourage-container {
  margin: 0 auto;
  max-width: 700px;
}

.centered-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: #222;
}

/* Rows with left/right names */
.row {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  border-bottom: 1px dotted #ccc;
}

.bold-row {
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: none;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.left-name,
.right-name {
  width: 45%;
}

.left-name {
  text-align: left;
}

.right-name {
  text-align: right;
}

/* Single centered names */
.single-centered {
  text-align: center;
  margin: 0.4rem 0;
  font-weight: 500;
  font-size: 1.05rem;
}

.attire-modal {
  background: #fffaf6;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 700px;
  width: 90%;
  max-height: 80vh; /* allows vertical scroll if needed */
  overflow-y: auto;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;

  /* max-width: 750px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 15px rgb(0 0 0 / 0.25);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  position: relative;
  z-index: 1001;  */
}

.attire-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.attire-title span {
  font-weight: normal;
  font-size: 1.2rem;
  display: block;
  color: #8b6b4a;
}

.attire-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
}

.attire-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.attire-section h3 {
  margin-top: 0.8rem;
  font-size: 1.2rem;
  color: #5a4633;
}

.attire-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.attire-section li {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.attire-img {
  max-width: 180px;
  height: auto;
  margin: 1rem 0;
  border-radius: 12px;
  object-fit: cover;
}

.attire-divider {
  width: 2px;
  background-color: #ddd;
  margin: 0 1rem;
}

.attire-note {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
}

.attire-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.attire-content {
  position: relative;
  max-width: 750px;
  width: 90%;
  background: #fffaf6;
  border-radius: 1rem;
  padding: 2rem;
  z-index: 1001;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.attire-flex {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.attire-section {
  flex: 1 1 45%;
  text-align: center;
}

.attire-colors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.color-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.attire-img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.attire-divider {
  width: 2px;
  background-color: #ccc;
  margin: 0 1rem;
}

.attire-note {
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
  color: #555;
}

#boyAttireList li.active {
  font-weight: bold;
}

#girlAttireList li.active {
  font-weight: bold;
}

/* Venue Modal Content */
.venue-content {
  position: relative;
  background: #FFFAF6;;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.venue-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.venue-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.venue-qr-container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.venue-note {
  font-size: 0.95rem;
  color: #555;
}

/* Responsive: stack vertically on phones */
@media (max-width: 768px) {
  .attire-flex {
    flex-direction: column;
    gap: 1.5rem;
  }

  .attire-divider {
    display: none; /* hide divider on portrait/phone */
  }

  .attire-section {
    width: 100%;
    align-items: center;
  }

  .attire-img {
    max-width: 140px; /* smaller on mobile */
  }

  nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
  }

  nav ul li {
    margin: 20px 0;
  }

  nav .checkbtn {
    display: block;

    z-index: 11;
  }

  #check:checked ~ ul {
    left: 0;
  }
}

.attire-line span {
  font-weight: normal;
  transition: font-weight 0.2s;
}

.attire-line span.bold {
  font-weight: bold;
  color: #222; /* optional for emphasis */
}

.venue-illustration {
  text-align: center;
  margin-bottom: 1rem;
}

.venue-illustration img {
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.illustration-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* animation */
.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.fade-out2 {
  animation: fadeOut2 0.3s ease forwards;
}

@keyframes fadeOut2 {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* animation */
.fade-out3 {
  animation: fadeOut3 0.3s ease forwards;
}

@keyframes fadeOut3 {
  from {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateX(20px);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in2 {
  animation: fadeIn2 0.3s ease forwards;
}

@keyframes fadeIn2 {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in3 {
  animation: fadeIn3 0.3s ease forwards;
}

@keyframes fadeIn3 {
  from {
    opacity: 0;
    transform: scale(0.95) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}