.container,
#itinerary,
#venue {
  max-width: 500px;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to bottom right, #fff6f0, #ffe3e3);
  margin: 0;
  padding: 0;
}

.carousel {
  width: 100vw;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.slides {
  height: 100%;
  width: 100%;
}

.slide {
  width: 100vw;
  height: 70vh;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.container {
  margin: 2em auto;
  z-index: 3;
  position: relative;
  background: white;
  padding: 2em;
  border-radius: 15px;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 0.2em;
  color: #d96b6b;
}

p {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #333;
}

label {
  display: block;
  margin-top: 1em;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 0.4em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #d96b6b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  margin-top: 1.5em;
  cursor: pointer;
}

button:hover {
  background-color: #c75858;
}

audio {
  display: none;
}

.heart-selection {
  display: flex;
  justify-content: center;
  gap: 3em;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

.heart-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heart-selection input[type="radio"] {
  display: none;
}

.heart {
  font-size: 3em;
  cursor: pointer;
  transition: transform 0.5s, color 0.6s;
  font-family: Arial, sans-serif;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.heart::before {
  content: '♥';        /* Use only the filled heart shape */
  color: #ddd;         /* Default unselected color */
}

.heart-caption {
  font-size: 0.9em;
  margin-top: 0.4em;
  color: #555;
}

.heart:focus {
  outline: none;
  box-shadow: none;
}

input[type="radio"]:focus + .heart {
  outline: none;
  box-shadow: none;
}

/* When selected: scale + color change */
input#attending-yes:checked + label.heart::before {
  color: #e0667d; /* pink for 'Yes' */
}

input#attending-no:checked + label.heart::before {
  color: #0e0c0c; /* muted maroon for 'No' */
}

input#attending-yes:checked + label.heart,
input#attending-no:checked + label.heart {
  transform: scale(1.5);
}

/* Splash screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to bottom right, #fff0f0, #ffeaea);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
  font-family: 'Great Vibes', cursive;
  color: #d96b6b;
  text-align: center;
  cursor: pointer;
}

#splash-screen * {
  pointer-events: none;
}

.splash-content h1 {
  font-size: 3em;
  animation: fadeIn 1.2s ease-in-out;
}

.splash-content p {
  font-size: 1.2em;
  margin-top: 1em;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel {
    height: 70vh; /* keep height defined */
  }

  .slide {
    position: absolute;
    width: 100vw;
    height: 70vh;
    object-fit: cover;
  }
}


.hero {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: 1;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, 
  rgba(255, 255, 255, 1) 0%, 
  rgba(255, 255, 255, 0.4) 20%, 
  rgba(255, 255, 255, 0) 100%);
  z-index: 2; /* must be above the image, but below the text */
  pointer-events: none;
}

.hero .carousel,
.hero .slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body {
  margin: 0;
  padding: 0;
  /* Prevent background from scrolling behind */
  background: #fff6f0;
}

body::before {
  content: "";
  display: block;
  height: 91vh; /* Same height as hero */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .carousel {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero .slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .hashtag {
  position: absolute;
  top: 3vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'Kaushan Script', cursive;
  font-size: 3em;
  color: #d96b6b;
}

/* Responsive hashtag */
@media (max-width: 768px) {
  .hero .hashtag {
    font-size: 2em;
  }
}

#venue h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 0.4em;
  color: #d96b6b;
}

#venue p {
  text-align: center;
  color: #444;
  margin-bottom: 1em;
  padding: 0 1em;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin: 2em auto !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.venue-details {
  text-align: center;
  font-size: 1em;
  color: #555;
  margin: 1.5em 0 1em;
  line-height: 1.6;
}

.map-link {
  display: inline-block;
  margin-top: 0.5em;
  color: #d96b6b;
  text-decoration: none;
  font-weight: 600;
}

.map-link:hover {
  text-decoration: underline;
}

.scroll-indicator {
  position: absolute;
  top: 85vh;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em; /* space between text and arrow */
}

.scroll-text {
  font-family: "Zain", sans-serif;
  font-weight: 200;
  font-size: 1.3em;
  color: #ffffff;
  animation: subtleBounce 1.6s ease-in-out infinite;
}

.scroll-indicator img {
  width: 80px;
  height: auto;
  animation: subtleBounce 1.6s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.bouncing {
  animation: subtleBounce 1.8s ease-in-out infinite;
}

/* Bouncing animation for form/venue until scroll */
.container.bouncing {
  animation: subtleBounce 1.6s ease-in-out infinite;
}

@keyframes subtleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

#itinerary,
#venue {
  background: #fffdfb;
  margin: 2em auto;
  padding: 2em;
  border-radius: 15px;
  max-width: 500px; /* Match RSVP */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  box-sizing: border-box; /* ✅ This is crucial */
}

#itinerary h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 0.2em;
  color: #d96b6b;
}

.itinerary-date {
  text-align: center;
  color: #d96b6b;
  font-weight: bold;
  margin-bottom: 1.5em;
}

.timeline {
  position: relative;
  width: 100%;
  margin: 3em auto;
  padding: 1em 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: #d96b6b;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center; /* back to center */
  position: relative;
  margin: 2.5em 0;
  min-height: 60px; /* optional: forces equal row height */
}

.timeline-item .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px; /* SAME as .icon height */
}

.timeline-item.left .content {
  order: 1;
  width: 48%;
  text-align: right;
  padding-right: 2em;
  margin-right: 1em;  /* pushes text away from the timeline */
  position: relative;
}

.timeline-item.right .content {
  order: 2;
  width: 48%;
  text-align: left;
  padding-left: 2em;
  margin-left: 1em;  /* pushes text away from the timeline */
  position: relative;
}

.timeline-item .icon img {
  width: 150px;
  height: auto;
}

.timeline-item.left .icon {
  order: 2;
  width: 48%; 
  padding-left: 0;
  text-align: center;
}

.timeline-item.right .icon {
  order: 1;
  width: 48%;
  padding-right: 0;
  text-align: center;
}

/* Connectors */
.timeline-item.left .content::after,
.timeline-item.right .content::after {
  content: '';
  position: absolute;
  top: 50;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: #d96b6b;
}

.timeline-item.left .content::after {
  right: 0;
  width: 10%; /* roughly reaches timeline from text edge */
}

.timeline-item.right .content::after {
  left: 0;
  width: 10%; /* same here */
}

.timeline-item h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 1.5em;  /* slightly larger for elegance */
  color: #d96b6b;
  margin-bottom: 0.2em;
}


.timeline-item p {
  margin: 0.2em 0 0;
  white-space: normal;
  color: #555;
  text-align: inherit;
  font-size: 0.92em;
  word-break: keep-all;
  white-space: normal;
  line-height: 1.3;
}

.splash-logo {
  width: 200px;  /* or try 150px if you want it more prominent */
  height: auto;
  margin-bottom: 0.5em;
  animation: fadeIn 1s ease-in-out;
}