@font-face {
  font-family: "High Spirited";
  src: url("../img/High Spirited.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Luxurious Roman";
  src: url("../img/LuxuriousRoman-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
/* Base Styles */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", sans-serif;
  overflow: hidden;
  background: black;
}
.carousel {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: relative;
  z-index: 10;
}
.slide {
  position: relative;
  z-index: 12;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  overflow: hidden;
  text-align: center;
  padding: 0 20px;
  flex-direction: column;
}
.slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Start Slide Button */
#start {
  font-family: "Luxurious Roman", serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#start-button {
  width: 120px;
  height: 120px;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Luxurious Roman", serif;
  font-size: 18px;
  color: white;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
#start-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hide Burger Menu on First Slide */
#start ~ .burger {
  display: none;
}

/* Home Slide */
#home {
  font-family: "High Spirited", cursive;
  font-size: 72px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  white-space: pre-line;
  color: white;
  -webkit-text-stroke: 0.2px white;
  text-shadow:
    -0.2px -0.2px 0 white,
    0.2px -0.2px 0 white,
    -0.2px 0.2px 0 white,
    0.2px 0.2px 0 white;
}
#home br {
  line-height: 1;
  margin: 0;
  padding: 0;
}
#home span.married {
  font-family: "Luxurious Roman", serif;
  font-size: 24px;
  margin-top: 10px;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
#countdown {
  font-family: "Luxurious Roman", serif;
  font-size: 32px;
  margin-top: 40px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
/* Background Slideshow */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.background img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  animation: fadeAnimation 45s ease-in-out infinite;
  animation-fill-mode: forwards;
}
.background img:nth-child(1) {
  animation-delay: 0s;
}
.background img:nth-child(2) {
  animation-delay: 5s;
}
.background img:nth-child(3) {
  animation-delay: 10s;
}
.background img:nth-child(4) {
  animation-delay: 15s;
}
.background img:nth-child(5) {
  animation-delay: 20s;
}
.background img:nth-child(6) {
  animation-delay: 25s;
}
.background img:nth-child(7) {
  animation-delay: 30s;
}
.background img:nth-child(8) {
  animation-delay: 35s;
}
.background img:nth-child(9) {
  animation-delay: 40s;
}
@keyframes fadeAnimation {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  15% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}
/* Burger Menu */
.burger {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 4px;
  background-color: transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.burger span {
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.4s ease;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}
.burger span:nth-child(1) {
  transform: translateY(-8px);
}
.burger span:nth-child(2) {
  transform: translateY(0);
}
.burger span:nth-child(3) {
  transform: translateY(8px);
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg);
}
/* Mobile Menu */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
}
.menu.open {
  transform: translateY(0);
}
.menu a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  margin: 20px 0;
  user-select: none;
}
/* Music Toggle Button */
#music-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1002;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: background-color 0.3s ease;
}
#music-icon {
  fill: white;
  width: 24px;
  height: 24px;
}
audio {
  display: none;
}
/* Swipe Down Text */
.swipe-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Luxurious Roman", serif;
  font-size: 18px;
  color: white;
  opacity: 0.7;
  animation: bounceText 2s infinite;
}
@keyframes bounceText {
  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(10px) translateX(-50%);
  }
}
/* Location Slide */
#location {
  font-family: "Luxurious Roman", serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}
.ceremony-title {
  font-size: 40px;
  margin-bottom: 30px;
}
.location-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.location-block + .location-block {
  margin-top: 30px;
}
.location-block img.icon {
  width: 48px;
  height: auto;
}
.location-name {
  font-size: 20px;
  margin: 10px 0;
  text-align: center;
}
.map-button {
  font-family: "Luxurious Roman", serif;
  font-size: 20px;
  color: white;
  background: none;
  border: 2px solid white;
  border-radius: 8px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.map-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
/* Custom Invitation Slide Styles */
#invitation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: "Luxurious Roman", serif;
}
.quote {
  font-size: 16px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}
.verse {
  font-size: 16px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}
.families {
  font-family: "High Spirited", cursive;
  font-size: 42px;
  color: white;
  text-align: center;
  -webkit-text-stroke: 0.2px white;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.invite {
  font-family: "Luxurious Roman", serif;
  font-size: 24px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}
.names {
  font-family: "High Spirited", cursive;
  font-size: 52px;
  color: white;
  text-align: center;
  -webkit-text-stroke: 0.2px white;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.5);
}
/* Gift Registry Slide */
#registry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Luxurious Roman", serif;
  padding: 0 20px;
}
.registry-text {
  font-size: 16px;
  color: white;
  text-align: center;
  max-width: 600px;
  margin-bottom: 20px;
}
.whish-code {
  font-size: 24px;
  color: white;
  text-align: center;
}
/* RSVP Slide Styles */
#rsvp h2 {
  font-family: "Luxurious Roman", serif;
  font-size: 36px;
  margin-bottom: 10px;
}
#inviteeList {
  max-width: 400px;
  width: 90%;
  margin: auto;
}
#inviteeList div {
  margin-bottom: 15px;
  text-align: center;
}
#inviteeList p {
  font-family: "Luxurious Roman", serif;
  font-size: 20px;
  color: white;
  margin-bottom: 8px;
}
#inviteeList button {
  margin: 0 5px;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-family: "Luxurious Roman", serif;
}
.accept-btn {
  background-color: #b8a67c;
  color: white;
}
.decline-btn {
  background-color: #555;
  color: white;
}
.update-message {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  max-width: 400px;
  width: 80%;
  font-family: "Luxurious Roman", serif;
  margin-bottom: 200px;
}
