/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif; /* Default to Inter */
}

/* Full-screen layout */
html,
body {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Inter", sans-serif; /* Default to Inter */
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #5e5e5e;
  scroll-behavior: smooth;
}

button {
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 4px;
  font-family: "Nunito", sans-serif;
}

button span {
  font-family: "Nunito Sans", sans-serif;
}

h1 {
  color: #95a682;
  font-family: "Bodoni Moda", serif;
  font-size: px;
  font-weight: 400;
  line-height: 40px;
}

p,
i {
  font-size: 14px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
}

/* Bride and Groom */
#bridegroom {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 18px;
}

/* Event */
#event {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  background: #32372b99;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
  padding: 64px 40px;
}

#gift {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding: 64px 18px;
  background: #32372b99;
}

/* Love Story */
#lovestory {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 64px 20px;
  background-color: white;
  gap: 32px;
}

#rsvp {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 18px;
  background-color: #f5f5f5;
}

#savedate {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  height: 375px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #32372b99;
}

#thanks {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  background: #32372b99;
  color: white !important;
}

/* Invitation (Hidden Initially) */
.container {
  width: 100%;
  min-height: 100vh;
  max-width: 480px;
  background-size: cover;
  text-align: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.container-bridegroom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.container-event {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 0;
}

.container-event .leaf-corner {
  opacity: 50%;
  width: 58px;
  height: 64px;
}

.container-event .leaf-top-left,
.container-event .leaf-top-right,
.container-event .leaf-bottom-left,
.container-event .leaf-bottom-right,
.card-gift .shape-top-right {
  border-top-right-radius: 25px;
  z-index: 0;
}

.card-lovestory {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Align items to the top */
  justify-items: center;
  height: 100%;
  width: 100%;
  text-align: center;
}

.card-lovestory img {
  width: 24px;
  height: 24px;
  background-color: #95a682;
  padding: 4px;
}

.card-message {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 5 equal columns */
  background-color: white;
  border: 1px solid #ebebeb;
  padding: 10px 12px;
  border-radius: 8px;
}

.carousel {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel .image-wedding {
  position: absolute;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel .image-wedding.active {
  opacity: 1;
  position: relative;
}

.carousel-event-left {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 172px;
  border-top-right-radius: 100px;
  overflow: hidden;
  background-color: white;
}

.carousel-event-right {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 172px;
  border-top-left-radius: 100px;
  overflow: hidden;
  background-color: white;
}

.carousel-event-left.image-event {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: fit;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-event-right.image-event {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: fit;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#carousel-image-savedate.image-wedding {
  background: #32372b99;
  background-size: cover;
}

.container-lovestories {
  width: 100%;
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0px 4px 4px 0px #00000014;
  border: 1px solid #ffffff;
  z-index: 10;
}

.container-lovestory {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Space between columns */
}

.container-wedding {
  display: flex;
  flex-direction: column;
}

.container-wedding p {
  color: white;
}

.container-wedding i {
  font-size: 8px;
  font-weight: 400;
  margin-top: 8px;
  color: white;
}

.content-bridegroom {
  width: 75%;
  display: flex;
  flex-direction: column;
}

.container-rsvp {
  width: 100%;
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0px 4px 4px 0px #00000014;
  border: 1px solid #ffffff;
  z-index: 10;
}

.container-thanks {
  width: 100%;
  /* height: 100%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 16px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0px 4px 4px 0px #00000014;
  border: 1px solid #ffffff;
  z-index: 10;
}

.card-gift {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: white;
  text-align: left;
  justify-items: start;
  justify-content: start;
  gap: 8px;
  margin-top: 16px;
  align-items: start; /* Align items to the start */
}

.content-countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 4 equal columns */
  gap: 5px; /* Space between columns */
  align-items: center;
  justify-items: center;
  margin-top: 16px;
}

.content-countdown-cover {
  display: flex;
  width: 100%;
  gap: 5px; /* Space between columns */
  align-items: center;
  justify-items: center;
  margin-top: 16px;
}

.content-gift {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
  padding: 24px;
}

.content-gift p,
.copy-gift p {
  color: #95a682;
}

.content-lovestory {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  grid-column: span 8; /* Spans 8 columns */
  background-color: white;
  padding: 20px 16px;
  gap: 16px;
  text-align: center;
}

.content-lovestory img {
  height: 156px;
  width: 100%;
  object-fit: cover; /* Crops while keeping the image centered */
}

.container-messages {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 240px;
  overflow-y: auto;
}

.content-message {
  display: flex;
  flex-direction: column;
  grid-column: span 5; /* Spans 4 columns */
  justify-content: start;
  align-items: left;
  justify-items: right;
  text-align: left;
  gap: 8px;
}

.content-moments {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  gap: 8px; /* Space between columns */
}

.copy-gift {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eaede6;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 600;
}

/* Cover Page */
.cover {
  position: fixed;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background-size: cover;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 20;
}

/* Add CSS for the fade-out animation */
.fade-out {
  animation: fadeOut 1.2s forwards;
}

/* Add CSS for the fade-in animation */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}

.fade-in.visible {
  opacity: 0.8;
}

.font-bodoni {
  font-family: "Bodoni Moda", serif;
}

.font-inter {
  font-family: "Inter", sans-serif;
}

.font-palanquin {
  font-family: "Palanquin", sans-serif;
}

.font-raleway {
  font-family: "Raleway", sans-serif;
}

.font-tangerine {
  font-family: "Tangerine", cursive;
}

/* Footer */
.footer {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: #95a682;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding: 24px;
}

/* Footer Navigation */
.footer-nav {
  position: fixed;
  bottom: 0;
  margin-bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 400px;
  width: auto;
  display: flex;
  justify-content: center;
  padding: 8px;
  gap: 6px;
  z-index: 10;
  background: #33333366;
  box-shadow: 0px 0px 8px 0px #0000001f;
  border-radius: 4px;
}

.form-rsvp {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.header-container h1:first-child {
  margin-left: -32px;
  font-weight: 400;
  font-size: 32px;
  color: #5e5e5e;
  font-style: italic;
  font-family: "Bodoni Moda", serif;
}

.header-container h1:last-child {
  margin-top: 0;
  margin-left: 32px;
  font-weight: 400;
  font-size: 40px;
  color: #95a682;
  font-family: "Tangerine", cursive;
}

.header-quote {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.header-quote > * + * {
  border-left: 1px solid currentColor;
  padding-left: 16px; /* Adjust padding as needed */
  margin-left: 16px; /* Adjust margin as needed */
}

/* Hide invitation initially */
.hidden {
  display: none;
}

.image-bridegroom {
  width: 200px;
  height: 260px;
  object-fit: cover; /* Crops while keeping the image centered */
}

.image-full {
  width: 100%;
  height: 222px;
  object-fit: cover; /* Crops while keeping the image centered */
  grid-column: span 2;
}

.image-gift {
  height: 16px;
  width: auto;
  object-fit: contain;
  margin-bottom: 24px;
}

.image-half {
  width: 100%;
  height: 230px;
  object-fit: cover; /* Crops while keeping the image centered */
}

.image-wedding {
  width: 50%;
  aspect-ratio: 1 / 1; /* Ensures it's always a square */
  height: auto;
  object-fit: cover; /* Crops while keeping the image centered */
  border: 4px solid #ffffff;
  box-shadow: 0px 4px 4px 0px #00000014;
}

.image-cover {
  height: 280px;
  width: 204px;
  border: 4px solid #95a682;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
}

.initial-profile {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--random-color);
}

.initial-profile p {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* Input field spans both columns */
.input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #eaede6;
  background-color: transparent;
  color: #5e5e5e;
  outline: none;
  box-shadow: none;
}

.invitation {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent; /* Make it transparent */
  z-index: 2; /* Ensure content is above background */
}

.label-attendance {
  font-size: 10px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  color: #195e6a;
  background-color: #cbeef4;
  padding: 2px 6px;
  border-radius: 32px;
}

.moments {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: white;
  padding: 40px 20px 64px 20px;
}

/* Navigation Buttons */
.nav-button {
  width: 32px;
  height: 32px;
  background-color: #95a682;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icons */
.nav-button img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.nav-button:hover img {
  transform: scale(1.2);
}

.primary-button {
  margin-top: 16px;
  padding: 4px 10px;
  color: white;
  background: #95a682;
  font-size: 10px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: 0.3s;
  gap: 8px;
}

.primary-button:hover {
  background: #95a682a2;
  border: 1px solid #95a682;
}

.progress-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  padding: 6px 16px;
  color: white;
}

.progress-countdown p:first-child {
  font-size: 16px;
  font-weight: 700;
}

.progress-countdown p:last-child {
  font-size: 12px;
  font-weight: 400;
}

.progress-lovestory {
  width: 2px;
  height: 100%;
  background-color: #eaede6;
}

.quote {
  position: relative;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f5f5f5;
}

.quote p {
  color: white;
}

.ring-wedding {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the ring over the cover */
  width: 50%; /* Adjust to match cover size */
  aspect-ratio: 1 / 1; /* Ensures it's always a square */
  height: auto;
  z-index: 2; /* Ensures the ring is on top */
}

.secondary-button {
  padding: 4px 10px;
  border: 1px solid #95a682;
  color: #95a682;
  background: white;
  font-size: 10px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: 0.3s;
  gap: 8px;
}

.secondary-border-button {
  padding: 4px 10px;
  border: 1px solid #95a682;
  color: #95a682;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: 0.3s;
  gap: 8px;
}

.secondary-button:hover,
.secondary-border-button:hover {
  background: #f8fff0;
  border: 1px solid white;
}

.shape-top-right {
  position: absolute;
  width: 120px; /* Adjust leaf size */
  height: 120px;
  background: url("assets/ornament/shape.svg") no-repeat center center;
  background-size: contain;
  z-index: 0;
  top: 0;
  right: 0;
  transform-origin: right top;
}

/* Add CSS for the slide-in animations */
.slide-in-right {
  opacity: 0;
  transition: transform 0.4s ease-in, opacity 0.8s ease-in;
  transform: translateX(100%);
}

.slide-in-right.visible {
  transform: translateX(0);
  opacity: 1;
}

.slide-in-left {
  opacity: 0;
  transition: transform 0.4s ease-in, opacity 0.8s ease-in;
  transform: translateX(-100%);
}

.slide-in-left.visible {
  transform: translateX(0);
  opacity: 1;
}

.slide-in-right-delayed {
  opacity: 0;
  transition: transform 0.4s ease-in, opacity 0.8s ease-in;
  transform: translateX(100%);
}

.slide-in-right-delayed.visible {
  transform: translateX(0);
  opacity: 1;
}

/* Add CSS for the slide-up animation */
.slide-up {
  animation: slideUp 1s forwards;
  z-index: 2;
  position: relative;
}

.social-media {
  display: flex;
  justify-items: center;
  align-items: center;
  gap: 4px;
}

.social-media img {
  width: 14px;
  height: 14px;
}

.text-wedding {
  font-family: "Palanquin", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: white;
}

.wedding {
  margin: 24px 0 16px 0;
  position: relative;
  display: inline-block; /* Makes the container fit the images */
}

.white-button {
  padding: 4px 10px;
  color: #95a682;
  background: #ffffff;
  font-size: 10px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: 0.3s;
  gap: 8px;
}

.white-border-button {
  padding: 4px 10px;
  color: white;
  background: transparent;
  border: 1px solid white;
  font-size: 10px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: 0.3s;
  gap: 8px;
}

.white-button:hover,
.white-border-button:hover {
  background: #95a682;
  border: 1px solid white;
}

.button-cover {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: "Palanquin", sans-serif;
}

#invitation,
#bridegroom,
#lovestory,
#moments,
#rsvp,
#thanks {
  background-size: contain;
  z-index: 20;
}

.image-full-cover {
  position: relative;
  height: 100vh;
  width: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  border: 0;
  overflow: hidden;
  z-index: 0;
}

.content-cover {
  margin-top: 25vh;
  z-index: 10;
}

/* Slideshow styles */
.slideshow-container {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

.slideshow-image-container {
  position: relative;
  width: 100%;
}

.slideshow-main-image {
  height: 390px;
  width: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out; /* Add transition for smooth image change */
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: rgba(59, 88, 81, 0.7);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 5;
  user-select: none; /* Disable text selection */
}

.slideshow-nav:hover {
  background-color: rgba(59, 88, 81, 0.9);
}

.slideshow-nav.prev {
  left: 10px;
}

.slideshow-nav.next {
  right: 10px;
}

.slideshow-thumbnails {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #eaede6 #eef5f2;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  filter: brightness(0.5); /* Darker brightness for inactive thumbnails */
  flex-shrink: 0;
}

.thumbnail.active {
  opacity: 1;
  border: 2px solid #95a682;
  filter: brightness(1); /* Normal brightness for active thumbnails */
}

/* For webkit browsers */
.slideshow-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.slideshow-thumbnails::-webkit-scrollbar-track {
  background: #eef5f2;
}

.slideshow-thumbnails::-webkit-scrollbar-thumb {
  background-color: #eaede6;
  border-radius: 2px;
}

/* Fixed background styles */
.fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* Place behind all content */
  overflow: hidden;
}

.fixed-background .carousel,
.fixed-background .image-wedding {
  width: 100%;
  height: 100%;
}

/* Ensure the container has proper spacing to display content correctly */
#container {
  position: relative;
  z-index: 1; /* Above the fixed background */
}

/* Add a background color with some opacity to content sections for better readability */
.bridegroom,
.event,
.gift,
.thanks {
  background-color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2; /* Ensure content is above background */
}

/* Special styling for invitation section to allow background to show through */
.invitation {
  background-color: transparent; /* Make it transparent */
  position: relative;
  z-index: 2; /* Ensure content is above background */
}

/* Add a semi-transparent gradient overlay for text readability if needed */
.invitation .container-cover,
.invitation .container-time {
  color: white;
}

.container-savedate .container-time .content-countdown {
  margin-top: 0;
  gap: 24px;
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right-delayed {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.3s;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animated state - this class is added by JS */
.fade-in.visible,
.slide-in-right.visible,
.slide-in-right-delayed.visible,
.slide-in-left.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Animation Classes */
.fade-slide-out {
  animation: fadeSlideOut 0.5s ease forwards;
}

.fade-slide-in {
  animation: fadeSlideIn 0.8s ease forwards;
}

@keyframes fadeSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10%);
  }
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(5%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .fade-in,
  .slide-in-right,
  .slide-in-right-delayed,
  .slide-in-left {
    /* More gentle animations for mobile */
    transform: translateY(15px);
    transition-duration: 0.6s;
  }

  .slide-in-right,
  .slide-in-right-delayed {
    transform: translateX(15px);
  }

  .slide-in-left {
    transform: translateX(-15px);
  }
}

/* Background leaf ornament */
.background-leaf {
  position: absolute;
  top: 0;
  right: 0;
  height: 287px;
  max-width: 372px;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none; /* Makes the image non-interactive */
}

.quote,
.rsvp {
  position: relative; /* Ensure the parent containers have relative positioning */
}

/* Add these classes to your existing style.css file */

/* Container styles */
.carousel-container {
  z-index: -1;
}

.cover-gradient {
  display: flex;
  flex-direction: column;
  z-index: 10;
  margin-top: -60vh;
  background: linear-gradient(
    180.03deg,
    rgba(149, 166, 130, 0) 24.4%,
    rgba(149, 166, 130, 0.8) 99.98%
  );
  width: 100%;
  height: 60vh;
  gap: 12px;
}

.invitation-gradient {
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  z-index: 10;
  background: linear-gradient(
    180.03deg,
    rgba(51, 51, 51, 0) 0.01%,
    rgba(51, 51, 51, 0.5) 99.98%
  );
  width: 100%;
  height: 60vh;
}

.fixed-carousel {
  overflow-x: hidden;
  width: 100%;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
}

/* Typography styles */
.title-large {
  color: white;
  margin-top: 16px;
  font-size: 32px;
  font-weight: 700;
}

.title-medium {
  color: white;
  margin-top: 16px;
  font-size: 32px;
  font-weight: 700;
  font-family: Bodoni Moda;
  line-height: Display Small/Line Height;
}

.title-small {
  font-size: 64px;
  font-weight: 500;
}

.subtitle {
  font-size: 12px;
  font-weight: 400;
  color: #5e5e5e;
  line-height: 20px;
}

.quote-text {
  font-size: 14px;
  font-weight: 700;
  color: #5e5e5e;
}

.paragraph-text {
  font-size: 12px;
  margin: 24px 0;
  line-height: 20px;
}

/* Layout styles */
.button-container {
  display: flex;
  justify-items: center;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bridegroom-container-left {
  display: flex;
  justify-items: start;
  width: 100%;
}

.bridegroom-content-left {
  text-align: start;
  justify-content: start;
  justify-items: start;
  align-self: start;
}

.bridegroom-container-right {
  display: flex;
  justify-items: end;
  justify-content: end;
  width: 100%;
}

.bridegroom-content-right {
  text-align: end;
  justify-content: end;
  justify-items: end;
  align-items: end;
}

.bridegroom-background {
  height: 260px;
  width: 200px;
  background-color: #95a6821a;
  margin-top: -240px;
  z-index: -1;
  gap: 16px;
}

.bridegroom-background-left {
  margin-left: 20px;
}

.bridegroom-background-right {
  margin-right: 20px;
}

.bridegroom-name {
  font-size: 24px;
}

.bridegroom-subtitle {
  font-weight: 600;
  color: #333333;
}

.bridegroom-text {
  font-weight: 400;
}

/* Event styles */
.event-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.event-title-container {
  background-color: #95a682;
  font-size: 16px;
  padding: 24px 12px;
  height: 312px;
  display: flex;
  text-align: center;
}

.event-title-left {
  transform: rotate(180deg);
  color: white;
  white-space: nowrap;
  writing-mode: vertical-lr;
}

.event-title-right {
  color: white;
  white-space: nowrap;
  writing-mode: vertical-lr;
}

.event-content-container {
  color: #95a682;
  font-size: 16px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px 16px;
  text-align: left;
  background-color: white;
  gap: 16px;
}

.event-date-container {
  display: flex;
  justify-items: center;
  justify-content: start;
  align-items: center;
  text-align: left;
  width: 100%;
  color: #5e5e5e;
  gap: 16px;
}

.event-day {
  font-weight: 500;
  font-size: 54px;
}

.event-month-year {
  font-weight: 400;
  font-size: 20px;
}

.event-time-container {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  justify-content: start;
  align-items: center;
}

.event-location-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.event-location-address {
  font-size: 12px;
}

/* Savedate styles */
.savedate-image {
  background-size: auto;
  background-position: center center;
  filter: brightness(0.6);
}

.savedate-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.savedate-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
}

/* Gift section styles */
.gift-container {
  display: flex;
  justify-items: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.gift-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 0;
}

.gift-title {
  font: 19px;
  font-weight: 600;
  color: #95a682;
  letter-spacing: 5%;
}

.gift-address-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5%;
}

.gift-address-text {
  font-size: 10px;
}

/* RSVP section styles */
.rsvp-thank-you {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.qr-code-container {
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
}

/* Footer styles */
.footer-text {
  font-size: 16px;
  font-weight: 600;
}

.footer-social {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  gap: 24px;
  justify-items: center;
  align-items: center;
}

.footer-contact {
  font-size: 14px;
  font-weight: 500;
}

/* Utility styles */
.spacer-large {
  height: 40vh;
}

.full-width {
  width: 100%;
  height: 100%;
}

.text-center {
  text-align: center;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mt-0 {
  margin-top: 0;
}

.mt-16 {
  margin-top: 16px;
}

.image-event {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

/* Event carousel styling with slide animations */
.carousel-event-left,
.carousel-event-right {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 172px;
  overflow: hidden;
  background-color: white;
}

.carousel-event-left {
  border-top-right-radius: 100px;
}

.carousel-event-right {
  border-top-left-radius: 100px;
}

.image-event {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, opacity 1s ease;
}

.image-event.active {
  opacity: 1;
  z-index: 1;
  transform: translateX(0);
}

.image-event:not(.active) {
  opacity: 0;
  z-index: 0;
}

/* Animation classes for sliding effect */
.image-event.slide-in {
  opacity: 1;
  z-index: 2;
}

.image-event.slide-out {
  opacity: 0;
  z-index: 1;
}

/* Make sure carousel-event-left slides from right to left */
.carousel-event-left .image-event:not(.active):not(.slide-in) {
  transform: translateX(100%);
}

/* Make sure carousel-event-right slides from left to right */
.carousel-event-right .image-event:not(.active):not(.slide-in) {
  transform: translateX(-100%);
}
