/* 1) Allow the body to scroll vertically if needed.
   2) Keep margin:0 and overflow-x hidden to avoid horizontal scroll bars. */
   html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevent scrolling */
}
   body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    /* overflow-x: hidden; hide horizontal scroll */
    /* overflow-y: auto; allow vertical scroll if slide content is too tall */
    color: white;
    background-image: url('background.jpg'); 
    background-size: cover;       
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    
    /* Position the background */
    background-position: center;  
 }

 .background-override{
    color: black;
    background-image: url('background.jpg'); 
    background-size: cover;       
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    
    /* Position the background */
    background-position: left;  
 }

  
  .background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }

  .background-no-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
  }
  
  /* Container that holds all slides side by side for horizontal swipe */
  .container {
    width: 100vw;
    height: 100vh;
    display: flex;
    /* overflow hidden ensures horizontal slides won't scroll side to side */
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  
  .slide {
    position: relative;
    min-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .slide-special {
    padding-top: 30% !important;
    justify-content: start !important;
  }
  
  .slide h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .slide p {
    font-size: 1.2rem;
    text-align: center;
    margin: 0 auto;
  }
  
  .slide button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1.1rem;
    background: black;
    color: white;
    border: none;
    border-radius: 30px;
    transition: 0.3s;
  }
  
  .slide button:hover {
    background: gray;
    color: white;
  }
  
  .content-wrapper {
    max-width: 500px;
    text-align: center;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .start-button {
    font-size: 30px;
    transition: 0.3s;
    border-bottom: 2px solid white;
    background: transparent;
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  h1,
  h2 {
    font-family: "Caveat", cursive;
  }
  
  p {
    font-family: "Playfair Display", serif;
  }
  
  .location-link {
    font-size: 16px;
    color: white;
    text-decoration: underline;
    font-weight: bold;
  }
  
  /* Music button: bottom-left corner */
  .music-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 50%;
  }
  
  .music-button i {
    pointer-events: none;
  }
  
  /* Swipe indicator: placed at the bottom of each slide */
  .swipe-indicator {
    position: absolute;
    bottom: 180px !important;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    opacity: 0.8;
  }
  
  .swipe-indicator i {
    font-size: 20px;
  }
  
  /* -------------------------------------------------------------------------- */
  .modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers elements horizontally */
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
  }
  
  #guest-count {
    display: none;
  }
  
  #confirm-button {
    display: none;
    margin: 20px auto; /* centers the button */
    padding: 12px 20px;
    font-size: 1.2rem;
    background: #000; /* change color if needed */
    color: white;
    border: none;
    border-radius: 5px;
    transition: 0.3s;
  }
  
  #rsvp-confirm-modal {
    display: none; /* Hidden by default */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#rsvp-confirm-modal .modal-content {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
}

#rsvp-confirm-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
}
.guest-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#guest-number {
    width: 50px;
    height: 40px;
    font-size: 18px;
    text-align: center;
    border: 2px solid black;
    border-radius: 5px;
    background: white;
    color: black;
    outline: none;
}

.guest-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.guest-btn:hover {
    background: gray;
}

/* Fullscreen Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Keep background video visible */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Loading Content */
.loading-content {
    text-align: center;
    font-size: 18px;
}

/* Three Dots Animation */
.dots-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.dots-loader div {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    animation: dotsFade 1.4s infinite ease-in-out both;
}

.dots-loader div:nth-child(1) { animation-delay: 0s; }
.dots-loader div:nth-child(2) { animation-delay: 0.2s; }
.dots-loader div:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotsFade {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.countdown-container {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 88%;
    animation: fadeIn 1.5s ease;
  }
  
  .countdown-title {
    font-family: "Caveat", cursive;
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .countdown {
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .countdown div {
    min-width: 40px;
    text-align: center;
  }
  
  @keyframes fadeIn {
    0%   {opacity: 0; transform: translateY(10px);}
    100% {opacity: 1; transform: translateY(0);}
  }
  
  .calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
  }
  
  .calendar-container h2 {
    font-family: "Caveat", cursive;
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 40px);
    justify-content: center; /* centers the grid horizontally */
    text-align: center;
    margin-top: 10px;
  }
  
  .day-of-week {
    font-weight: bold;
    color: white;
  }
  
  .calendar-grid div {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .heart-day {
    position: relative;
    width: 40px;
    height: 40px;
    /* Ensures the day # “19” text can be centered within the heart */
  }
  
  .heart-day span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: white;
    z-index: 10;
  }
  
  /* The actual heart shape created with two pseudo-elements */
  .heart-day::before,
  .heart-day::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 32px;
    background: red; /* or your preferred color #e63946, #ff4141, etc. */
    border-radius: 10px 10px 0 0;
  }
  
  .heart-day::before {
    top: -6px;
    left: 13px;        /* halfway across the .heart-day container */
    transform: rotate(-43deg);
    transform-origin: bottom right;
  }
  
  .heart-day::after {
    top: -6px;
    left: 5px;
    transform: rotate(44deg);
    transform-origin: bottom left;
  }
  
  .parents-row {
    display: flex;               /* horizontal layout */
    justify-content: center;     /* centers all items horizontally */
    align-items: center;         /* vertically centers them within the row */
    gap: 1rem;                   /* space between columns */
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-size: large;
    font-weight: bold;
  }
  
  .parents-column {
    font-size: 18px;
    display: flex;
    flex-direction: column;      /* stack the two name lines */
    text-align: center;
    line-height: 1.5;
  }
  
  .ampersand {
    font-size: 2rem;             /* enlarge the & if you like */
  }
  
  #sticky-countdown {
    display: none;
    position: fixed;
    top: 4%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8); /* Light translucent background */
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c7469; /* A stylish pink/purple color */
    font-family: "Caveat", cursive;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensures it's above other elements */
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    white-space: nowrap;
}

#tap-to-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('Background.jpg'); 
    background-size: cover;       
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-position: center; 

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2000; /* Ensure it's above everything */
    transition: opacity 0.5s ease-in-out;
}

.overlay-content {
    color: black;
    font-size: 2rem;
    font-family: "Caveat", cursive;
    background: rgba(255, 255, 255, 0.4); /* Soft glow */
    padding: 20px 40px;
    height: 100%;
    width: 100%;
    align-content: center;
    border-radius: 20px;
    box-shadow: 0px 4px 15px rgba(241, 241, 241, 0.5);
    animation: fadeIn 1.0s ease-in-out;
}

.animated-arrow {
    font-size: 2rem;
    margin-top: 10px;
    animation: bounce 1.5s infinite;
}

/* Bounce animation for the arrow */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Fade in effect */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


.heart {
  position: fixed;
  bottom: 40px;
  font-size: 24px;
  color: pink;
  opacity: 0.8;
  animation: fly 2.5s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes fly {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-100px) scale(1.3) rotate(20deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-220px) scale(0.8) rotate(-20deg);
    opacity: 0;
  }
}
