:root {
  --taupe: #9d9692;
  --white: #ffffff;
  --accent: #b4756f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background: #f1ebf3;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PHONE FRAME */
.phone-frame {
  width: 390px;
  height: 100dvh; /* 🔥 key fix */
  max-width: 100vw;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(25, 23, 22, 0.462), rgba(49, 45, 43, 0.505)),
    url("images/Background3.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* GLOBAL BACKGROUND ZOOM */
.global-flowers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(47, 43, 41, 0.497), rgba(38, 35, 33, 0.492)),
    url("images/Background3.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bgZoom 12s ease-in-out infinite;
}

.flower-layer {
  display: none;
}

@keyframes bgZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* START SCREEN */
.start-screen {
  position: absolute;
  inset: 0;
  z-index: 100;
  background:
    linear-gradient(rgba(90, 82, 78, 0.636), rgba(90, 82, 78, 0.575)),
    url("images/Start.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bgZoom 12s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.start-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-screen::before,
.start-screen::after {
  display: none;
}

.start-button {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  cursor: pointer;
}

.tap-text {
  margin-top: 18px;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
}

.names-image {
  width: 120%;
  max-width: 280px;
  height: auto;
  margin-bottom: 20px;
}

/* SLIDER */
.slides {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.7s ease;
  touch-action: pan-y;
  will-change: transform;
}

.slide {
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* PAGE CONTENT */
.cover-content,
.invite-content,
.card {
  width: 100%;
  height: 100%;
  padding: 92px 30px 110px;
  color: var(--white);
  background: transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gift-content {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* THIS is the fix */

  text-align: center;
  padding: 60px 30px; /* reduced = better centering */

  color: white;
}

/* NAME PAGE */
.main-names {
  font-family: 'Great Vibes', cursive;
  font-size: 4.2rem;
  line-height: 1.1;
  font-weight: 400;
  color: white;
  text-align: center;
  letter-spacing: 0.5px;
}

.top-invite-text {
  font-size: 1.05rem;
  line-height: 1.15;
  font-style: italic;
  font-weight: 700;
}

.cover-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 3.7rem;
  line-height: 1.12;
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.cover-names span {
  font-size: 2.2rem;
}

.cover-subtitle {
  margin-top: 20px;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
}

.tiny-line {
  width: 48px;
  height: 1px;
  border-top: 1px dotted var(--accent);
  margin-top: 70px;
}

/* INVITE PAGE */
.invite-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 58px 28px 118px;
}

.invite-content > * {
  margin-bottom: 0;
}

.quote,
.joy,
.request,
.date-text,
.parents {
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
}

.quote {
  max-width: 305px;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 400;
  font-style: italic!important;
  margin-top:0px;
}

.quote span {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 0.95rem;
}

.joy {
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 400;
}

.parents {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.parents > div {
  width: 125px;
}

.small {
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 700;
}

.name {
  font-size: 1.05rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.request {
  max-width: 300px;
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 700;   /* not too heavy */
}

.small-names {
  margin: 6px 0 4px;
  max-width: 150px!important;
   display: block;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.date-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 4px 0 8px;
}

.top-invite-text,
.quote,
.joy,
.request,
.date-text,
.parents,
.small,
.name {
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  text-align: center;
}

/* COUNTDOWN */
.soft-countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.soft-countdown div {
  min-width: 38px;
  text-align: center;
}

.soft-countdown span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.soft-countdown small {
  display: block;
  margin-top: 15px;
  font-family: "Inter", sans-serif;
    font-size: 0.5rem;
  letter-spacing: 0.30em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.8;
}

/* CEREMONY / PARTY CLEAN STYLE */
.event-page {
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 95px 30px 105px;
}

.event-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.45rem;
  line-height: 0.95;
  font-style: italic;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  margin-top: -5px;
}

.event-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 500;
  color: white;
  margin-bottom: 34px;
}

.event-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.event-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.event-icon {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 1.5;
  opacity: 0.95;
}

.event-text {
  font-family: "Cormorant Garamond", serif;
  color: white;
  font-size: 1.05rem;
  line-height: 1.28;
  font-style: italic;
  font-weight: 500;
  max-width: 290px;
  margin: 0;
}

.event-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
  align-items: center;
}

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

.event-note {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.82rem;
  line-height: 1;
  font-style: italic;
  color: white;
  margin-bottom: 7px;
  opacity: 0.85;
}

.event-buttons .btn-outline {
  margin-top: 0;
  padding: 6px 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.88rem;
  font-weight: 600;
}

.mini-polaroid {
  width: 180px;
  background: white;
  padding: 8px;
  border-radius: 3px;
  margin-top: -4px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transform: rotate(-3deg);
}

.mini-polaroid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.btn-outline {
  margin-top: 14px;
  padding: 8px 18px;
  border: 2px solid var(--white);
  border-radius: 7px;
  background: transparent;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* POLAROID */
.polaroid {
  width: 250px;
  background: var(--white);
  padding: 14px 14px 20px;
  border-radius: 3px;
  transform: rotate(-11deg);
  box-shadow: 0 10px 20px rgba(40, 30, 26, 0.12);
}

.polaroid img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.polaroid p {
  margin-top: 12px;
  color: #352d2a;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 600;
}

/* RSVP */
.rsvp-form {
  width: 100%;
  max-width: 270px;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 11px 14px;
  font: inherit;
  color: #5b4740;
  background: rgba(255, 255, 255, 0.92);
}

.rsvp-form textarea {
  height: 95px;
  resize: none;
}

.rsvp-form .btn-rsvp {
  width: 100%;
}

.btn-rsvp {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: #68686842;
  color: white;

  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;

  text-decoration: none;
  cursor: pointer;
}


.guest-limit-note {
  max-width: 275px;
  color: white;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  line-height: 1.25;
  font-style: italic;
  margin: 8px 0 10px;
  opacity: 0.95;
}

/* SWIPE LEFT ON EVERY SLIDE */
.slide::after {
  content: "Swipe Left";
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: bold;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
  z-index: 5;
}

.swipe-invite {
  display: none;
}

.slide .swipe-arrow,
.slide::before {
  content: "‹";
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08);
font-size: 1.8rem;
    font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 5;
}

/* CONTROLS */
.slide-indicators {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 30;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.dot.active {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: white;
}

.music-btn {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 31;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 1.45rem;
  cursor: pointer;
}
.invite-content > * {
  margin-bottom: 10px;
}
.manual-note {
  margin-top: 12px;
  max-width: 260px;
  color: white;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  line-height: 1.3;
  opacity: 0.9;
}
.names-image {
  width: 80%;
  max-width: 280px;
  height: auto;
  margin-bottom: 20px;

  /* ✨ subtle glow */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));

  /* 🎬 animation */
  opacity: 0;
  transform: scale(0.96);
  animation:
    fadeGlowIn 1.2s ease forwards,
    floatSoft 6s ease-in-out infinite 1.2s;
}

/* animation keyframes */
@keyframes fadeGlowIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
  }
}
/* GIFT PAGE */
.gift-content {
  width: 100%;
  height: 100%;
  padding: 125px 30px 105px;
  color: white;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  line-height: 1;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 28px;
}

.gift-text {
  max-width: 300px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  line-height: 1.28;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 8px;
}

.wish-link:hover {
  opacity: 0.8;
}

.gift-image {
  width: 300px;
  max-width: 100%;
  opacity: 0.9;
}
.wish-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted rgba(255,255,255,0.6);
  margin-right: 6px;
}

.wish-number {
  cursor: pointer;
  font-weight: 600;
}

.wish-number:active {
  opacity: 0.7;
}

.wish-hint {
  font-size: 0.75rem;
  opacity: 0.8;
  font-style: italic;
  margin-top: 6px;
  height: 14px;
}
.ceremony-page,
.party-page {
  padding-top: 35px !important;
}

.ceremony-page > *,
.party-page > * {
  transform: translateY(-25px);
}