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


body {

    min-height: 100vh;

    font-family: Arial, sans-serif;

    background:
        linear-gradient(
            135deg,
            #ffdce9,
            #eadcff,
            #dceeff
        );

    color: #4c3b4c;

    overflow-x: hidden;
}


#intro-page .intro-video {
        transform: rotate(-90deg);
    display: block;
    width: 100%;
    aspect-ratio: 3/ 3;
    object-fit: cover;
    aspect-ratio: 4px;
    object-position: center;

}


/* =========================
   PAGES
========================= */

.page {

    min-height: 100vh;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 25px;

}


.page.active {

    display: flex;

    animation: appear 0.7s ease;

}


@keyframes appear {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* =========================
   CARD
========================= */

.card {

    width: 100%;

    max-width: 600px;

    padding: 45px 35px;

    text-align: center;

    background:
        rgba(255,255,255,0.72);

    border-radius: 35px;

    border:
        1px solid
        rgba(255,255,255,0.8);

    box-shadow:
        0 25px 70px
        rgba(100,60,100,0.18);

    backdrop-filter: blur(15px);

}



/* =========================
   TEXT
========================= */

.small {

    color: #806580;

    font-size: 16px;

    margin-bottom: 8px;

}


h1 {

    font-size: 52px;

    color: #d75691;

    margin-bottom: 8px;

}


h2 {

    font-size: 32px;

    color: #ce5b90;

    margin-bottom: 20px;

}


.subtitle {

    font-size: 18px;

    line-height: 1.7;

    margin: 20px 0 30px;

}


.choose {

    font-size: 17px;

    margin-bottom: 20px;

    color: #795c79;

}


.emoji {

    font-size: 65px;

    margin-bottom: 15px;

    animation: float 2.5s infinite ease-in-out;

}


@keyframes float {

    0%,100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-10px);

    }

}



/* =========================
   NORMAL BUTTON
========================= */

button {

    border: none;

    padding: 14px 25px;

    border-radius: 50px;

    background: #df649b;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;

    box-shadow:
        0 8px 20px
        rgba(200,70,130,0.18);

}


button:hover {

    transform:
        translateY(-3px)
        scale(1.04);

    background: #ca4f87;

}


button:active {

    transform: scale(0.96);

}



/* =========================
   THREE CHOICES
========================= */

.choice-buttons {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;

}


.choice-buttons button {

    min-height: 110px;

    padding: 18px 10px;

    font-size: 35px;

}


.choice-buttons span {

    display: block;

    margin-top: 8px;

    font-size: 15px;

}



/* =========================
   LETTER
========================= */

.letter {

    text-align: left;

    padding: 25px;

    margin: 25px 0;

    border-radius: 22px;

    background:
        rgba(255,240,247,0.8);

    line-height: 1.8;

}


.letter p {

    margin-bottom: 15px;

}


.signature {

    text-align: right;

    color: #c65387;

    font-weight: bold;

}



/* =========================
   BOTTOM BUTTONS
========================= */

.bottom-buttons {

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

}


.back-button {

    background: transparent;

    color: #c65387;

    box-shadow: none;

}



/* =========================
   MEMORIES
========================= */


/* =========================
   PHOTO MEMORIES
========================= */

.photo-frame {

    width: 100%;

    max-width: 400px;

    margin: 25px auto 18px;

    padding: 12px;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 15px 35px
        rgba(100,60,100,0.20);

    transform: rotate(-2deg);

    transition: 0.4s ease;

}


.photo-frame:hover {

    transform: rotate(0deg) scale(1.02);

}


.photo-frame img {

    display: block;

    width: 100%;

    height: 350px;

    object-fit: cover;

    border-radius: 6px;

}


#memoryTitle {

    color: #c65387;

    font-size: 20px;

    margin-top: 15px;

}


#memoryCaption {

    font-size: 14px;

    line-height: 1.6;

    margin: 5px auto 10px;

    max-width: 450px;

}


.photo-number {

    font-size: 13px;

    color: #9a7792;

    margin: 10px 0;

}


.photo-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

}


.photo-buttons button:first-child {

    width: 50px;

    height: 50px;

    padding: 0;

    font-size: 22px;

}


@media (max-width: 600px) {

    .photo-frame img {

        height: 280px;

    }

}


/* =========================
   GIFT
========================= */

.gift-emoji {

    font-size: 80px;

}


.gift-message {

    margin: 25px 0;

    padding: 20px;

    border-radius: 20px;

    background:
        rgba(255,235,245,0.8);

    color: #c34f82;

    line-height: 1.7;

    min-height: 0;

}


.hidden {

    display: none;

}



/* =========================
   FINAL
========================= */

.final-card {

    padding: 45px 30px;

}


.final-card h1 {

    font-size: 45px;

    margin: 0;

}


.final-card h2 {

    font-size: 40px;

    margin-top: 5px;

}


.confetti {

    font-size: 25px;

    letter-spacing: 5px;

}


.cake {

    font-size: 85px;

    margin: 15px 0;

    animation:
        cake 2s infinite ease-in-out;

}


@keyframes cake {

    0%,100% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.08);

    }

}


.final-message {

    font-size: 18px;

    line-height: 1.7;

    margin: 20px 0;

}


.final-wishes {

    padding: 20px;

    border-radius: 20px;

    background:
        rgba(255,235,245,0.8);

    font-size: 18px;

    line-height: 2;

    margin-bottom: 20px;

}


.last-line {

    color: #c65387;

    font-weight: bold;

    margin-bottom: 25px;

}



/* =========================
   FLOATING HEARTS
========================= */

.floating {

    position: fixed;

    bottom: -50px;

    font-size: 30px;

    opacity: 0.3;

    pointer-events: none;

    animation:
        floatUp 8s linear infinite;

}


.floating:nth-child(1) {

    left: 10%;

    animation-delay: 0s;

}


.floating:nth-child(2) {

    left: 30%;

    animation-delay: 2s;

}


.floating:nth-child(3) {

    left: 55%;

    animation-delay: 4s;

}


.floating:nth-child(4) {

    left: 75%;

    animation-delay: 1s;

}


.floating:nth-child(5) {

    left: 90%;

    animation-delay: 3s;

}


@keyframes floatUp {

    0% {

        transform:
            translateY(0)
            rotate(0);

        opacity: 0;

    }

    20% {

        opacity: 0.4;

    }

    100% {

        transform:
            translateY(-110vh)
            rotate(360deg);

        opacity: 0;

    }

}



/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .card {

        padding:
            35px 20px;

    }


    h1 {

        font-size: 40px;

    }


    h2 {

        font-size: 27px;

    }


    .choice-buttons {

        grid-template-columns: 1fr;

    }


    .choice-buttons button {

        min-height: 80px;

    }


    .memory-grid {

        grid-template-columns: 1fr;

    }


    .final-card h1 {

        font-size: 34px;

    }


    .final-card h2 {

        font-size: 34px;

    }

}

