@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wrapper,
.content {
  position: relative;
  width: 100%;
  z-index: 1;
}

.content {
  overflow-x: hidden;
}

.content .section {
  width: 100%;
  height: 100vh;
}

.content .section.hero {
  background-image: url(image/webp/content_3text.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh;
}

.image-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  perspective: 500px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-30%, 50%);
}

.hero-content-bot {
  position: absolute;
  left: 50%;
  top: 82%;
  transform: translate(-30%, 50%);
}

.anim-title,
.date-title {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  flex-wrap: wrap;
  font-size: 3.5rem;
  color: #fff;
  font-family: 'Forum', serif;
  font-weight: 400;
  font-style: normal;
}

.date-title {
  font-size: 5rem;
}

.title,
.date {
  overflow: hidden;
}

.title span,
.date span {
  display: block;
}

.content-text {
  max-width: 50%;
}

.section-rsvp {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url(image/webp/rsvp-desktop.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  height: 100vh;
  text-align: center;
}

.rsvp-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.rsvp-box {
  padding: 40px;
  /* background-color: rgba(0, 0, 0, 0.5); */
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  background-image: url(image/webp/rsvp-text-background-new.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.rsvp-content {
  margin-top: -30px;
}

.content-text-rsvp {
  max-width: 100%;
}

/* Apply the 'Dancing Script' font here */
.rsvp-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

.rsvp-description {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 30px;
}

.rsvp-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #25d366; /* WhatsApp Green */
  color: white;
  font-size: 18px;
  text-decoration: none;
  border-radius: 10px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  border: 2px solid #25d366; /* Softer border */
  margin-bottom: 50px;
}

.rsvp-button:hover {
  background-color: #128c7e; /* Darker green on hover */
  border: 2px solid #128c7e; /* Darker border on hover */
}

.rsvp-radio-buttons {
  margin-top: -170px;
  color: #fff;
}

.rsvp-radio-buttons input {
  margin-right: 10px;
}

.rsvp-radio-buttons label {
  font-size: 1.2rem;
  margin-right: 15px;
  cursor: pointer;
}

.section-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url(image/webp/background-content-text.webp);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  /* height: 100vh; */
  text-align: center;
  padding: 0;
}

.hero-content-text {
  transform: translate(0, 50%);
}

/* Loading spinner style */
.loading-spinner {
  border: 8px solid #f3f3f3; /* Light gray background */
  border-top: 8px solid #3498db; /* Blue spinner color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Disable button when loading */
.open-invitation-btn:disabled {
  background-color: #ddd;
  cursor: not-allowed;
}

/* Optional: style for the overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  text-align: center;
  color: white;
}

.open-invitation-btn {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #ff6f61;
  border: none;
  color: white;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 18px;
}

.open-invitation-btn:hover {
  background-color: #ff4e3b;
}

.open-invitation-btn i {
  margin-right: 10px;
}

@media screen and (max-width: 768px) {
  .date-title {
    font-size: 3rem;
  }

  .anim-title {
    font-size: 2rem;
  }

  .content-text {
    min-width: 130%;
  }

  .hero-content {
    position: absolute;
    left: 40%;
    top: 15%;
    transform: translate(-50%, 90%);
  }

  .hero-content-bot {
    position: absolute;
    left: 40%;
    top: 80%;
    transform: translate(-50%, 80%);
  }

  .content .section.hero {
    background-image: url(image/webp/content_3.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 100vh;
  }

  .section-rsvp {
    background-image: url(image/webp/rsvp-mobile-new.webp);
  }

  .rsvp-content {
    margin-top: -30px;
  }

  .rsvp-radio-buttons {
    margin-top: -150px;
    color: #fff;
  }

  .rsvp-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #25d366; /* WhatsApp Green */
    color: white;
    font-size: 14px;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    border: 2px solid #25d366; /* Softer border */
    margin-bottom: 50px;
  }
}
