@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600&family=Poppins:wght@300;400;500&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    min-height: 100vh;
    background: 
        linear-gradient(
            rgba(255, 245, 240, 0.75),
            rgba(255, 245, 240, 0.75)
        ),
        url("valentine.png") center / cover no-repeat fixed;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #3b0a0a;
    padding: 24px;
}


/* Sections */
section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    padding: 36px;
    max-width: 620px;
    width: 100%;
    margin: 22px 0;
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.18),
        inset 0 0 30px rgba(255, 255, 255, 0.7);
    animation: cinematicFade 1.4s ease forwards;
}


/* Main heading */
h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.1rem;
    margin-bottom: 12px;
    text-shadow: 0 6px 20px rgba(255, 140, 160, 0.35);
}

/* Sub heading */
h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.95;
}

/* Paragraph */
p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4b1b1b;
}

/* Button */
button {
    margin-top: 28px;
    padding: 15px 36px;
    font-size: 1rem;
    border-radius: 40px;
    border: none;
    background: linear-gradient(135deg, #ff8fab, #ff5f8f);
    color: white;
    cursor: pointer;
    box-shadow:
        0 18px 36px rgba(255, 95, 143, 0.5);
    transition: all 0.35s ease;
}

button:hover {
    transform: translateY(-4px) scale(1.06); 
    box-shadow:
        0 25px 50px rgba(255, 95, 143, 0.7);
}

/* Hover */
button:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 20px 40px rgba(255, 117, 140, 0.6);
}

/* Active */
button:active {
    transform: scale(0.96);
}

/* Cinematic fade */
@keyframes cinematicFade {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.95rem;
    }
}
/* CINEMA MODE */
#cinema {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
    z-index: 1000;
}

/* Active cinema */
#cinema.active {
    opacity: 1;
    pointer-events: auto;
}

/* Letter box */
.letter {
    background: rgba(255, 255, 255, 0.92);
    padding: 40px 45px;
    border-radius: 22px;
    text-align: center;
    max-width: 520px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

/* Lines */
.line {
    opacity: 0;
    font-size: 1.15rem;
    line-height: 2;
    color: #4b1b1b;
    animation: reveal 1s ease forwards;
}

/* Heart */
body {
    min-height: 100vh;
    background: 
        linear-gradient(
            rgba(255, 245, 240, 0.75),
            rgba(255, 245, 240, 0.75)
        ),
        url("valentine.png") center / cover no-repeat fixed;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #3b0a0a;
    padding: 24px;
}
body {
    background-size: 110%;
    animation: slowPan 30s ease-in-out infinite alternate;
}

@keyframes slowPan {
    from {
        background-position: center;
    }
    to {
        background-position: center 20%;
    }
}
section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.6s; }
section:nth-of-type(3) { animation-delay: 1s; }
/* Subtle hover lift for cinematic feel */
section {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

section:hover {
    transform: scale(1.035);
    box-shadow:
        0 45px 90px rgba(139, 120, 120, 0.22),
        inset 0 0 35px rgba(255, 255, 255, 0.75);
}
/* Cinematic page */
.cinema-body {
    background: linear-gradient(180deg, #f5ebe0, #e8d8c3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}
.cinema-body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle,
        transparent 65%,
        rgba(0, 0, 0, 0.08)
    );
    pointer-events: none;
}


.cinema-container {
    text-align: center;
    padding: 40px;
    max-width: 800px;
}

#cinemaText {
    font-family: 'Dancing Script', cursive;
    font-size: 2.6rem;
    color: #7a1f2c;
    opacity: 0;
    transition: opacity 1.5s ease;
}
/* Question section */
.hidden-question {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    margin-top: 40px;
    transition: opacity 1.5s ease;
}

.show-question {
    opacity: 1;
    visibility: visible;
}


.buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Yes button glow */
#yesBtn {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    color: white;
    border-radius: 30px;
    padding: 14px 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#yesBtn:hover {
    transform: scale(1.1);
}

/* No button */
#noBtn {
    background: #ccc;
    color: #333;
    border-radius: 30px;
    padding: 14px 30px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: 0.2s ease;
}

/* YES cinematic effect */
.cinema-yes {
    animation: yesGlow 2s ease forwards;
}

@keyframes yesGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}
#cinemaText {
    white-space: pre-line;
}




