html, body {
  margin: 0;
  padding: 0;
  font-family: 'Dancing Script', cursive;
  background-color: #ffffff;
  overflow-x: hidden; /* Allow vertical scroll only */
  overflow-y: auto;
  min-height: 100vh;     /* Use min-height instead of fixed height */
}

/* Layout wrapper */
.page-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;    
}

/* Image section container */
picture {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 80vh;
  overflow: hidden;
}

/* Image fade-in */
.fade-in-image {
  opacity: 0;
  transition: opacity 1s ease;
}
.fade-in-image.visible {
  opacity: 1;
}

/* The image itself */
.invitation {
  max-width: 100%;      /* Ensures image doesn't overflow horizontally */
  max-height: 100%;     /* Keeps height constrained within the container */
  width: 100%;          /* Scales image to fit the container width */
  height: auto;         /* Maintains aspect ratio */
  object-fit: contain;  /* Ensures image scales without cropping */
  display: block;
  margin: 0 auto;
}


/* RSVP Button section */
.rsvp-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  background-color: #ffffff;

  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.rsvp-container.animate {
  opacity: 1;
  transform: translateY(0);
}

.rsvp-button {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  background-color: #a67c00;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 40px;
  border: 2px solid #a67c00;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
}

.rsvp-button:hover {
  background-color: transparent;
  color: #a67c00;
}

@media (max-width: 768px) {
  .rsvp-button {
    font-size: 1.4rem;
    padding: 12px 28px;
  }
}
