@font-face {
  font-family: "RiversRegular";
  src: url("./fonts/TheRiversRegular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "RiversItalic";
  src: url("./fonts/TheRiversItalic.otf ") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "RiversRegular", sans-serif;
}

.no-scroll {
  overflow-x: hidden !important;
}

.wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow-x: auto;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.section {
  scroll-snap-align: start;
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#startSection {
  position: relative;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 9s infinite;
}

.slide:nth-child(1) {
  animation-delay: 0s;
}
.slide:nth-child(2) {
  animation-delay: 3s;
}
.slide:nth-child(3) {
  animation-delay: 6s;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

#startButton {
  position: absolute;
  font-family: "RiversRegular", sans-serif;
  bottom: 20%;
  left: 50%;
  width: 245px;
  transform: translateX(-50%);
  z-index: 1;
  padding: 10px 32px;
  font-size: 1.9rem;
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#startButton:hover {
  background: rgba(255, 255, 255, 0.1);
}

#videoSection video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#paragraphSection {
  position: relative;
  background: url("../media/paraghraph-image.jpg") center center
    no-repeat;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.7); /* fallback fill */
  color: white;
  font-size: 1.8rem;
  padding: 0 15%;
  padding-top: -10px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

#paragraphSection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* dark overlay */
  z-index: 0;
}

#paragraphSection p {
  position: relative;
  z-index: 1;
}

#rsvpSection button {
  padding: 15px 30px;
  font-size: 1.2rem;
  border: none;
  background: #e74c3c;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

#rsvpSection button:hover {
  background: #c0392b;
}

.wrapper::-webkit-scrollbar {
  display: none;
}

.wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#scrollLockWrapper.locked {
  overflow: hidden;
}

#scrollLockWrapper {
  overflow-x: auto;
  height: 100vh;
}

#detailsSection {

  background: url("../media/details-image.jpg") center/cover
    no-repeat;
  background-color: black;
  color: white;
  text-align: center;
  overflow: hidden;
}

#detailsSection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* same overlay as paragraph section */
  z-index: 0;
}

.details-content {
  position: relative;
  top: -35px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  font-size: 1.5rem;
}

#detailsButton {
  font-family: "RiversRegular", sans-serif;
  width: 250px;
  z-index: 1;
  padding: 7px 25px;
  font-size: 1.5rem;
  background: transparent;
  margin-top: 15px;
  border: 2px solid white;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#rsvpForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

.rsvp-radio label {
  margin: 5px 10px;
  font-size: 1rem;
  color: white;
}


#rsvpForm button {
  font-family: "RiversRegular", sans-serif;
  width: 300px;
  z-index: 1;
  padding: 15px 12px;
  background: transparent;
  margin-top: 15px;
  border: 2px solid white;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#rsvpSection {
  position: relative;
  background: url("../media/paraghraph-image.jpg") center/cover
    no-repeat;
  background-color: rgba(0, 0, 0, 0.9); /* fallback fill */
  color: white;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

#rsvpSection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

#rsvpSection h1,
#rsvpForm {
  position: relative;
  z-index: 1;
}

#rsvpForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
}

input[type="radio"] {
    margin-right: 5px;
  accent-color: #8D73B5; /* your desired color */
  transform: scale(1.4); /* optional: makes it bigger */
}

.rsvp-radio label {
  margin: 5px 10px;
  font-size: 1rem;
  color: white;
}

#guestCount {
  font-family: "RiversRegular", sans-serif;
  padding: 15px 12px;
  font-size: 1.3rem;
  margin-top: 25px;
  width: 300px;
  background-color: transparent;
  border-radius: 8px;
  color: white;
  border: 2px solid #fff;
  text-align: center;
  text-align-last: center; 
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  z-index: 1;
}

/* Optional: add a custom dropdown arrow */
#guestCount::after {
  content: "▼";
  position: absolute;
  right: 16px;
  pointer-events: none;
  color: white;
}

select option {
  background-color: #111;
  color: white;
}

#rsvpForm button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  color: #333;
  font-size: 1.2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-content button {
    font-family: "RiversRegular", sans-serif;
  margin-top: 20px;
  padding: 10px 20px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #c0392b;
}

.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
  animation: fadeLoop 4s ease-in-out infinite;

  animation-play-state: paused; /* controlled via JS */
}

.scroll-text,
.arrow {
  display: block;
  color: white;
  opacity: 0.8;
}

/* Arrow slightly larger */
.arrow {
  font-size: 2rem;
  margin-top: 5px;
}

.scroll-text {
  font-size: 1.2rem;
}

/* Smooth fade from 100% to 20% */
@keyframes fadeLoop {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}

.padding-top {
    position:relative;
    top:-110px;
}

#audioOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.audio-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.audio-overlay-content p {
  font-size: 1.2rem;
}

.audio-overlay-content button {
  padding: 10px 20px;
  font-size: 1rem;
  background: white;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

