* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f8f1f7;
  color: #333;
  padding: 2rem;
  overflow-y: auto;
}

.container {
  max-width: 600px;
  margin: auto;
  margin-bottom: 1.5rem;
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h1, h2 {
  text-align: center;
  color: #333;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #dd84d6;
}

.carousel-container {
  width: 100%;
  max-width: 600px;
  margin: 0.4rem auto 2rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #fae7f8;
  padding: 1rem 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel {
  position: relative;
  width: 100%;
  min-height: 3rem;
  padding: 1rem 1rem;
  box-sizing: border-box;
}

.carousel-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  font-size: 1.5rem;
  color: #444;
  text-align: center;
  pointer-events: none;
}

.carousel-message.active {
  opacity: 1;
  pointer-events: auto;
}

.signature {
  display: block;
  margin-top: 0.3rem;
  color: #000000;
  font-style: italic;
  font-size: 1.2rem;
}

#timer {
  font-size: 1.4rem;
  color: #555;
  font-family: monospace;
  text-align: center;
  margin: 1rem auto;
  width: 100%;
}

.centered-image {
  display: block;
  margin: 0.1rem auto;
  width: 50%;
  height: auto;
}

.countdown-message {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #d23669;
  margin-top: 0.5rem;
}

/* ==== SLIDESHOW CSS ==== */

.slideshow-container {
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
  background: #fff;
  user-select: none;
  cursor: grab;
  position: relative;
  padding-bottom: 80px; /* Space below for controls */
}

.slides {
  display: flex;
  gap: 16px;
  padding: 1rem;
  scroll-behavior: smooth;
  overflow-x: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.slides::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.slide {
  flex: 0 0 auto;
  width: 220px;
  height: 293px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  background: #f7f4f9;
  display: block;
  will-change: transform;
  transform-origin: center center;
  margin-right: 16px; /* default gap */
}

.slide:last-child {
  margin-right: 0; /* no gap on last slide */
}

.slide.focused {
  transform: scale(1.12);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
  cursor: pointer;
}

/* For mobile touch drag cursor */
.slides:active {
  cursor: grabbing;
}

/* Controls container under carousel */
.carousel-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  user-select: none;
  pointer-events: auto;
  background: rgba(255 255 255 / 0.8);
  border-radius: 12px;
}

/* Slider input */
.carousel-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #e0c9ff;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-slider:hover {
  background: #d3b3ff;
}

/* Track styling */
.carousel-slider::-webkit-slider-runnable-track {
  height: 10px;
  background: #e0c9ff;
  border-radius: 5px;
}

.carousel-slider::-moz-range-track {
  height: 10px;
  background: #e0c9ff;
  border-radius: 5px;
}

/* Thumb styling (circle) */
.carousel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9c4eff;
  border: 2px solid white;
  margin-top: -7px; /* center the thumb */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s;
}

.carousel-slider::-webkit-slider-thumb:active {
  transform: scale(1.2);
  background: #822aff;
}

.carousel-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #9c4eff;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s;
}

.carousel-slider::-moz-range-thumb:active {
  transform: scale(1.2);
  background: #822aff;
}

/* Video and single image containers */
.video-container {
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.single-image-container {
  width: 100%;
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.single-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.thank-you-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: #fae7f8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 1.25rem;
  color: #7a2f6f;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
}

.thank-you-container p {
  margin: 0.3rem 0;
}

#scrollTopBtn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #7a2f6f;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #5a1f4d;
}
.spacer {
  flex-shrink: 0;
  height: 100%;
}
.cake-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 1rem;
  user-select: none;
  cursor: pointer;
}

/* Each candle stack */
.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  user-select: none;
  width: 40px;
}

/* Flame styling */
.flame {
  width: 30px;
  height: 50px;
  background: radial-gradient(circle at 50% 30%, #ffdd55, #ff9900 70%, transparent 90%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow:
    0 0 10px 3px #ffcc33,
    0 0 20px 7px #ffbb22;
  transition: opacity 0.4s ease;
  margin-bottom: 0.4rem;
  touch-action: manipulation;
  cursor: pointer;
}

/* Candle base styling - simple rectangular candle */
.candle-base {
  width: 40px;
  height: 60px;
  background: #ff38d0;
  border-radius: 8px;
  user-select: none;
  cursor: default;
  transition: background-color 0.4s ease, filter 0.4s ease;
}

/* Candle blown out state */
.candle.blowout .flame {
  opacity: 0;
  box-shadow: none;
  animation: none;
}

.candle.blowout .candle-base {
  background: #888;
  filter: grayscale(50%);
  cursor: pointer;
}
.blowout-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000; /* bright pink/red color */
  font-family: 'Segoe UI', sans-serif;
  
  margin-bottom: 1rem;
  color: #dd84d6;

}

/* Show the message when active */
.blowout-message.active {
  opacity: 1;
}
.rounded-image {
  border-radius: 10px; /* adjust radius as you like */
  overflow: hidden;    /* ensures corners are clipped */
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* optional subtle shadow */
  margin-top: 1rem;
  margin-bottom: auto;
  padding: 1rem;
  background-color: #d0bdd6;
}

/* Darkened effect when candle is blown out */
#candle-container.darkened {
  background-color: #1a1a1a;
  color: #f0f0f0;
  transition: background-color 0.6s ease, color 0.6s ease;
}

#candle-container.darkened .blowout-message {
  color: #f0b3ff;
}