/* =========================================
   GLOBAL STYLES
   ========================================= */

* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
    background: #f4eeee;
}

body {
    margin: 0;
    padding: 0;
    background: #f4eeee;
    color: #28304a;
    font-family: "Cormorant Garamond", serif;
}

.events-screen {
    touch-action: pan-y;
    overscroll-behavior: contain;
}
/* =========================================
   FULL-SCREEN INVITATION CONTAINER
   ========================================= */

.invitation {
    position: relative;
    width: min(100vw, calc(100dvh * 536 / 832));
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 536 / 832;
    background: #f8f1e8;
    box-shadow: 0 0 40px #5d4b3b18;
}


/* =========================================
   SCREEN BASE STYLES
   ========================================= */

.screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    aspect-ratio: auto;
    display: none;
    opacity: 0;
    background: #f7eee4;
    transition: opacity 1.5s ease-in-out;
}

/* Currently visible screen */
.screen.active {
    display: block;
    opacity: 1;
    z-index: 2;
}

/* Previous screen remains underneath */
.screen.leaving {
    display: block;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

/* Incoming screen starts transparent */
.screen.active.entering {
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

/* Incoming screen fades in */
.screen.active.entering.show {
    opacity: 1;
}

/* Previous screen fades out */
.screen.leaving.fade-out {
    opacity: 0;
}


/* =========================================
   VIDEO AND BACKGROUND IMAGES
   ========================================= */

.full-video,
.screen-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero {
    background: #f9f0e6;
}

.hero .full-video {
    object-fit: cover;
}

.quote-screen .screen-image,
.gallery-screen .screen-image,
.action-screen .screen-image {
    object-fit: cover;
}


/* =========================================
   HERO SCREEN
   ========================================= */

.monogram {
    position: absolute;
    top: 5.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 27%;
    height: auto;
    filter: drop-shadow(0 2px 3px #8b5e4030);
}

.hero-names {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 19%;
    text-align: center;
    color: #182b50;
}

.hero-names h1 {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-size: clamp(38px, 10vw, 62px);
    line-height: 1;
    margin: 0;
    text-shadow: 0 1px 1px #fff8;
}

.hero-names h1 span,
.invitation-name span {
    font-family: "Cormorant Garamond", serif;
    font-size: .68em;
}

.hero-names p {
    font-family: Marcellus, serif;
    font-size: clamp(10px, 2.4vw, 13px);
    letter-spacing: .23em;
    margin: 8px 0 0;
}

.scroll-note {
    display: none;
}


/* =========================================
   HERO FEATHER ANIMATION
   ========================================= */

.feather-animation {
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease-in-out,
        visibility 2s ease-in-out;
}

.feather-animation.hidden-permanently {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* =========================================
   INVITATION SCREEN
   ========================================= */

.invitation-screen {
    background: #fbf6eb;
}

.invitation-screen .screen-image {
    object-fit: cover;
}

.invitation-content {
    position: absolute;
    inset: 0;
    text-align: center;
    color: #28304a;
}

/* Invitation monogram */

.invitation-content .invitation-monogram {
    position: absolute;
    top: 5.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 27%;
    height: auto;
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

/* Shri Ganeshaya */

.invitation-content .ganeshaya {
    position: absolute;
    top: 39.5%;
    width: 100%;
    margin: 0;
    font: 600 18px "Cormorant Garamond", serif;
    letter-spacing: .12em;
    color: #81434b;
}

/* Together with their families */

.invitation-content .families {
    position: absolute;
    top: 45%;
    width: 100%;
    margin: 0;
    font: 600 13px Marcellus, serif;
    letter-spacing: .18em;
    color: #42566b;
}

/* Couple names */

.invitation-content h1.invitation-name {
    position: absolute;
    top: 51%;
    left: 5%;
    right: 5%;
    margin: 0;
    transform: none;
    font: 400 clamp(38px, 9vw, 53px)/1.2 "Great Vibes", cursive;
    color: #152b4d;
    white-space: nowrap;
    text-shadow: 0 1px 0 #fff8;
    z-index: 2;
}

/* Invitation message */

.invitation-content .invitation-message {
    position: absolute;
    top: 61.5%;
    left: 5%;
    right: 5%;
    margin: 0;
    font: italic 17px/1.5 "Cormorant Garamond", serif;
    color: #35465b;
}

/* Wedding date */

.invitation-content .wedding-date {
    position: absolute;
    top: 69%;
    width: 100%;
    margin: 0;
    font: 700 17px Marcellus, serif;
    letter-spacing: .14em;
    color: #283c54;
}

/* Wedding venue */

.invitation-content .wedding-venue {
    position: absolute;
    top: 72.5%;
    width: 100%;
    margin: 0;
    font: 600 13px Marcellus, serif;
    letter-spacing: .13em;
    color: #715c48;
}


/* =========================================
   SAVE THE DATE SCREEN
   ========================================= */

.save-screen {
    color: #182b50;
    text-align: center;
}

.save-screen .full-video {
    object-fit: cover;
}

.save-title {
    position: absolute;
    top: 17%;
    left: 0;
    right: 0;
    font: clamp(34px, 8vw, 48px)/1 "Great Vibes", cursive;
    color: #172747;
}

.feather {
    position: absolute;
    top: 26%;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    background: transparent;
    font-size: clamp(24px, 6vw, 34px);
    cursor: pointer;
    filter: drop-shadow(0 2px 2px #3c2a1b55);
    padding: 8px;
}

.tap-copy {
    position: absolute;
    top: 14%;
    left: 0;
    right: 0;
    color: #a78339;
    font: 9px Marcellus, serif;
    letter-spacing: .25em;
}


/* =========================================
   WEDDING COUNTDOWN
   ========================================= */

.countdown {
    position: absolute;
    top: 17%;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.countdown[hidden] {
    display: none;
}

.countdown div {
    min-width: 19%;
    padding: 8px 3px;
    background: #fff9;
    border: 1px solid #c8ad73;
    border-radius: 3px;
}

.countdown b {
    display: block;
    font: 600 24px Marcellus, serif;
    color: #243858;
}

.countdown small {
    display: block;
    font: 8px Marcellus, serif;
    letter-spacing: .12em;
    color: #816b48;
}

.save-date {
    position: absolute;
    top: 15%;
    left: 0;
    right: 0;
    font: 10px Marcellus, serif;
    letter-spacing: .28em;
    color: #273957;
}


/* =========================================
   PHOTO GALLERY
   ========================================= */

.gallery-screen .screen-image {
    object-fit: cover;
}


/* =========================================
   WEDDING EVENTS
   ========================================= */

.events-screen {
    background: #e9eded;
}

.event-slide {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    height: 94%;
    width: auto;
    aspect-ratio: 424 / 673;

    max-width: 96%;
}

.event-slide img {
    transition: opacity .2s ease;
}

.event-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 1px solid #d2bd79;
    background: #fffdf2ed;
    color: #6b4b2d;
    font: 27px/1 Georgia, serif;
    cursor: pointer;
    box-shadow: 0 2px 5px #0001;
}

.event-arrow.prev {
    left: 3%;
}

.event-arrow.next {
    right: 3%;
}


/* =========================================
   LOCATION AND RSVP SCREEN
   ========================================= */

.action-screen .screen-image {
    object-fit: cover;
}

.action-screen .hotspot {
    position: absolute;
    left: 20%;
    width: 60%;
    height: 8.8%;
    border-radius: 40px;
}

.action-screen .location {
    top: 74.5%;
}

.action-screen .rsvp {
    top: 87%;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
    padding: 16px;
    text-align: center;
    color: #765f55;
    background: #f7eee4;
    font: 12px Marcellus, serif;
}


/* =========================================
   FULL-SCREEN DISPLAY
   ========================================= */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (min-width: 700px) {
    .invitation {
        border-radius: 2px;
        box-shadow: 0 12px 60px #46332922;
    }
}

/* Radha Krishna video-to-image transition */

.quote-screen .full-video {
    z-index: 1;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.quote-screen .full-video.video-finished {
    opacity: 0;
}

.quote-screen .quote-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    transition: opacity 1s ease-in-out,
        visibility 1s ease-in-out;
}

.quote-screen .quote-poster.visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   SAVE THE DATE SCREEN
   ========================================= */

.save-screen {
    position: relative;
    overflow: hidden;
    color: #182b50;
    text-align: center;
}

.save-screen .full-video {
    object-fit: cover;
}

/* Heading */
.save-screen .save-title {
    position: absolute;
    top: 5%;
    left: 3%;
    width: 94%;
    text-align: center;
    z-index: 3;

    font: clamp(32px, 8vw, 48px)/1.15 "Great Vibes", cursive;
    color: #172747;

    animation: saveTitleReveal 1.2s ease both;
}

@keyframes saveTitleReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Feather */
.save-screen .feather {
    position: absolute;
    top: 14%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;

    border: 0;
    background: transparent;
    padding: 5px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;

    animation: featherFloat 2s ease-in-out infinite;
}

@keyframes featherFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}

.save-screen .feather.feather-disabled {
    opacity: 0.4;
    pointer-events: none;
    animation: none;
}

/* Tap instruction */
.save-screen .tap-copy {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    z-index: 3;

    color: #a78339;
    font: 9px Marcellus, serif;
    letter-spacing: 2px;

    transition: opacity 0.6s ease;
}

.save-screen .tap-copy.fade-out {
    opacity: 0;
}

/* =========================================
   WEDDING COUNTDOWN
   ========================================= */

.save-screen .countdown {
    position: absolute;
    top: 24.5%;
    left: 50%;
    transform: translateX(-50%);

    width: min(92%, 390px);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    z-index: 5;
}

.save-screen .countdown[hidden] {
    display: none;
}

/* Number boxes */
.save-screen .countdown>div {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 252, 246, 0.94);
    border: 1px solid #d9bd82;
    border-radius: 15px;

    box-shadow: 0 3px 10px rgba(80, 54, 30, 0.08);
}

/* Numbers */
.save-screen .countdown b {
    color: #15365b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 6vw, 30px);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Labels */
.save-screen .countdown small {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;

    text-align: center;
    color: #85512f;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    letter-spacing: 1.3px;
    white-space: nowrap;
}

/* Colon separators */
.save-screen .countdown>div:not(:last-child)::after {
    content: ":";
    position: absolute;
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);

    color: #c59a42;
    font-family: Georgia, serif;
    font-size: 20px;
}

/* Seconds box */
.save-screen .countdown>div:last-child {
    background: rgba(255, 246, 248, 0.95);
    border-color: #e3a9b9;
}

.save-screen .countdown>div:last-child small {
    color: #b34e69;
}

/* Wedding date */
.save-screen .save-date {
    position: absolute;
    top: 36%;
    left: 0;
    width: 100%;
    z-index: 5;

    color: #15365b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
}

/* Countdown entrance */
.save-screen .countdown.reveal-countdown {
    animation: countdownReveal 0.9s ease-out both;
}

@keyframes countdownReveal {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}



/* ==========================================
   PATRIKA — CRAFTY ART MATCH
   ========================================== */

.events-screen {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #d9eeee,
        #e9e8e5 55%,
        #f7dfe2
    );
}

.patrika-scroll-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
}

.patrika-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(96vw, 450px);
    max-width: 96vw;
    height: clamp(540px, 86vh, 760px);
    max-height: calc(100vh - 56px);
    margin: 0 auto;
    position: relative;
}

.patrika-bg-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    filter: drop-shadow(0 16px 36px #4a121a59);
    user-select: none;
    pointer-events: none;
}

.patrika-content-stage {
    position: absolute;
    inset: 20% 17% 18%;
    z-index: 15;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 1.6vh, 15px);
    padding: 0 4px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

.patrika-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    text-align: center;
}

.patrika-top-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #b8860b;
    font-size: 10px;
    line-height: 1;
}

.ornament-dot {
    font-size: 8px;
}

.event-title {
    color: #3b0d14;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px #fffffff2;
    margin: 0;
    font-family: Cinzel, serif;
    font-size: clamp(1.02rem, 2.6vw, 1.32rem);
    font-weight: 700;
    line-height: 1.15;
}

.event-subtitle {
    color: #5c3c28;
    max-width: 92%;
    margin: 1px 0 2px;
    font-family: Cinzel, serif;
    font-size: clamp(.54rem, 1.1vw, .66rem);
    font-style: italic;
    line-height: 1.2;
}

.patrika-ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: 5px;
    color: #b8860b;
    font-size: 9px;
}

.divider-line {
    height: 1px;
    flex: 1;
    background: #c5a45c;
}

.patrika-details-clean {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 1.3vh, 11px);
    width: 100%;
}

.patrika-clean-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 2px;
}

.clean-label {
    letter-spacing: .16em;
    color: #8b5a2b;
    margin-bottom: 1px;
    font-family: Cinzel, serif;
    font-size: clamp(.46rem, .95vw, .54rem);
    font-weight: 800;
    line-height: 1;
}

.clean-value {
    color: #2b0b10;
    word-break: normal;
    max-width: 95%;
    font-family: Cinzel, serif;
    font-size: clamp(.7rem, 1.45vw, .86rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.clean-dress {
    color: #8b3d20;
}

.patrika-bottom-counter {
    color: rgb(184, 134, 11);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-family: Cinzel, serif;
    font-size: clamp(.48rem, .95vw, .56rem);
}

.patrika-nav-btn {
    color: #58111a;
    cursor: pointer;
    z-index: 25;
    backdrop-filter: blur(6px);
    background: #ffffffe0;
    border: 1.5px solid #d4af37e6;
    border-radius: 50%;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(30px, 7vw, 38px);
    height: clamp(30px, 7vw, 38px);
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 700;
    transition: all .25s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 14px #0000002e;
}

.patrika-nav-prev {
    left: 2px;
}

.patrika-nav-next {
    right: 2px;
}

.patrika-nav-btn.nav-disabled {
    opacity: .22;
    cursor: not-allowed;
    pointer-events: none;
}

.patrika-text-fade-in {
    opacity: 1;
    animation: .3s cubic-bezier(.2, .9, .3, 1) forwards patrikaContentIn;
}

@keyframes patrikaContentIn {
    from {
        opacity: 0;
        transform: scale(.97) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 480px) {
    .patrika-image-box {
        width: min(96vw, 450px);
        height: min(86vh, 760px);
    }
}


/* ==========================================
   FULL SCREEN CALENDAR + BOTTOM ACTIONS
   ========================================== */

.action-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    background: #17251a;
}

.action-background {
  position: absolute;
  top: -35px;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  object-fit: fill;
  object-position: center;
  z-index: 1;
}
.map-card {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  transform: none;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px 10px;
  background: rgba(255, 249, 235, 0.97);
  border-top: 1px solid #d4af78;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -3px 14px #0004;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 85px;
  border: 0;
  border-radius: 6px;
}

.directions-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
  padding: 9px;
  background: #713b25;
  color: #fff8e9;
  border-radius: 6px;
  font-family: Marcellus, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-decoration: none;
}