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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    background: #000;
}


/* ================= GENERAL SCREENS ================= */

.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.screen.active {
    display: flex;
}


/* ================= START SCREEN ================= */

.start-screen {
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(circle at center, #5b003c, #21001c 50%, #050005);
}

.start-content {
    position: relative;
    z-index: 10;
    padding: 30px;
}

.start-heart {
    font-size: 110px;
    animation: startHeartBeat 1s infinite;
    margin-bottom: 20px;
}

.start-content h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 15px;
}

.start-content p {
    color: #ffd6ef;
    font-size: 18px;
    margin-bottom: 30px;
}

#startBtn {
    border: none;
    border-radius: 40px;
    padding: 16px 32px;

    font-size: 18px;
    font-weight: bold;

    color: white;
    background: linear-gradient(135deg, #ff1493, #ff0066);

    cursor: pointer;

    box-shadow:
        0 0 20px rgba(255, 20, 147, 0.6);

    transition: 0.3s;
}

#startBtn:hover {
    transform: scale(1.08);
}

@keyframes startHeartBeat {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


/* ================= LOGIN SCREEN ================= */

.login-screen {
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at center, #ff4fa3, #6a003f 45%, #17000e);
}


/*
    The wrapper is animated instead of the heart itself.
    This makes the zoom animation reliable.
*/

.heart-wrapper {
    width: min(92vw, 520px);
    height: min(92vw, 520px);

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

    animation: loginZoom 1.5s ease-out forwards;
}


/* Main heart */

.big-heart {
    position: relative;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        135deg,
        #ff4f9a,
        #ff006e
    );

    border-radius: 50%;

    box-shadow:
        0 0 30px rgba(255, 0, 110, 0.8),
        0 0 80px rgba(255, 0, 110, 0.5);

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


/* Bottom point */

.big-heart::after {
    content: "";

    position: absolute;

    width: 55%;
    height: 55%;

    background: linear-gradient(
        135deg,
        #ff4f9a,
        #ff006e
    );

    left: 22%;
    bottom: -18%;

    transform: rotate(45deg);

    border-radius: 15px;

    z-index: 0;
}


/* Content */

.heart-content {
    position: relative;
    z-index: 5;

    width: 70%;

    text-align: center;
    color: white;
}

.small-heart {
    font-size: 40px;
    margin-bottom: 5px;
}

.heart-content h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.heart-content p {
    font-size: 15px;
    margin-bottom: 18px;
    color: #ffe5f4;
}

.heart-content input {
    display: block;

    width: 100%;

    padding: 13px 16px;

    margin: 10px 0;

    border: none;
    outline: none;

    border-radius: 25px;

    font-size: 15px;

    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.heart-content input::placeholder {
    color: #888;
}

#loginBtn {
    width: 100%;

    margin-top: 10px;

    padding: 13px;

    border: none;
    border-radius: 25px;

    background: white;
    color: #ff006e;

    font-weight: bold;
    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

#loginBtn:hover {
    transform: scale(1.05);
}

#loginError {
    min-height: 20px;
    margin-top: 10px;

    color: #fff;
    font-weight: bold;
}


/* RELIABLE ZOOM */

@keyframes loginZoom {

    0% {
        transform: scale(0.1);
        opacity: 0;
    }

    60% {
        transform: scale(1.08);
        opacity: 1;
    }

    80% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ================= PROPOSAL SCREEN ================= */

.question-screen {
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 30px;

    background:
        radial-gradient(
            circle at center,
            #ff72b5,
            #8c004f 45%,
            #260016
        );
}

.proposal-card {
    position: relative;
    z-index: 10;

    width: min(94vw, 600px);

    padding: 35px 25px;

    border-radius: 30px;

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

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

    backdrop-filter: blur(12px);

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.35);

    color: white;
}

.proposal-top-heart {
    font-size: 55px;

    animation: heartBeat 1s infinite;

    margin-bottom: 10px;
}

.sangeetha-text {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.special-text {
    font-size: 18px;
    color: #ffe2f1;

    margin-bottom: 25px;
}

.proposal-card h1 {
    font-size: 31px;
    line-height: 1.4;

    margin-bottom: 25px;
}


/* YES */

.yes-button {
    border: none;

    padding: 14px 35px;

    border-radius: 30px;

    background: #ff1493;

    color: white;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 0 20px rgba(255, 20, 147, 0.7);

    transition: 0.3s;
}

.yes-button:hover {
    transform: scale(1.1);
}


/* Center heart */

.click-heart-area {
    margin-top: 25px;
}

.center-heart {
    width: 100px;
    height: 100px;

    border: none;

    background: transparent;

    font-size: 90px;

    line-height: 1;

    cursor: pointer;

    filter:
        drop-shadow(0 0 15px rgba(255, 0, 100, 0.8));

    animation: heartBeat 1s infinite;

    transition: 0.2s;
}

.center-heart:active {
    transform: scale(0.8);
}

#heartHint {
    margin-top: 5px;

    font-size: 14px;

    color: #ffe4f2;
}


/* NO */

.no-button {
    margin-top: 20px;

    padding: 11px 28px;

    border: 2px solid white;

    border-radius: 25px;

    background: transparent;

    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s;
}

.no-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

#noMessage {
    min-height: 25px;

    margin-top: 12px;

    color: #fff;

    font-weight: bold;
}


@keyframes heartBeat {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}


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

.final-screen {
    justify-content: center;
    align-items: flex-start;

    text-align: center;

    padding: 45px 20px;

    background:
        radial-gradient(
            circle at top,
            #ff69b4,
            #780044 50%,
            #18000d
        );

    overflow-y: auto;
}

.final-content {
    position: relative;
    z-index: 10;

    width: min(95vw, 700px);

    color: white;

    padding-bottom: 50px;
}

.final-hearts {
    font-size: 45px;

    animation: finalHeartBeat 0.8s infinite;

    margin-bottom: 15px;
}

.final-content h1 {
    font-size: 38px;

    margin-bottom: 25px;

    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.5);
}


/* Photo */

.photo-container {
    width: min(85vw, 430px);

    margin: 0 auto 25px;

    padding: 8px;

    border-radius: 25px;

    background: linear-gradient(
        135deg,
        #fff,
        #ff9fd1,
        #fff
    );

    box-shadow:
        0 0 35px rgba(255, 255, 255, 0.5);
}

.sangeetha-photo {
    display: block;

    width: 100%;
    height: auto;

    max-height: 600px;

    object-fit: cover;

    border-radius: 18px;
}


.final-content h2 {
    font-size: 25px;

    margin-bottom: 25px;
}


/* Poem */

.poem {
    padding: 25px 20px;

    border-radius: 25px;

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

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

    backdrop-filter: blur(8px);
}

.poem p {
    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 8px;

    color: #fff0f8;
}

.poem .last-line {
    margin-top: 18px;

    font-size: 21px;

    font-weight: bold;

    color: white;
}

.forever {
    margin-top: 25px;

    font-size: 23px;

    font-weight: bold;
}


/* ================= FALLING HEARTS ================= */

#heartRain,
#cryRain {
    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 50;
}

.falling-heart,
.crying-emoji {
    position: absolute;

    top: -60px;

    user-select: none;

    pointer-events: none;
}

.falling-heart {
    animation: fallHeart linear forwards;
}

.crying-emoji {
    animation: fallCry linear forwards;
}


@keyframes fallHeart {

    from {
        transform:
            translateY(-60px)
            rotate(0deg);
        opacity: 1;
    }

    to {
        transform:
            translateY(110vh)
            rotate(360deg);
        opacity: 0;
    }
}


@keyframes fallCry {

    from {
        transform:
            translateY(-60px)
            rotate(0deg);
        opacity: 1;
    }

    to {
        transform:
            translateY(110vh)
            rotate(180deg);
        opacity: 0;
    }
}


/* ================= FINAL HEART STORM ================= */

.final-screen .falling-heart {
    font-size: 25px;
}


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

@media (max-width: 600px) {

    .start-content h1 {
        font-size: 32px;
    }

    .start-content p {
        font-size: 16px;
    }

    .start-heart {
        font-size: 90px;
    }


    .heart-wrapper {
        width: 92vw;
        height: 92vw;
    }

    .heart-content {
        width: 68%;
    }

    .heart-content h1 {
        font-size: 22px;
    }

    .heart-content p {
        font-size: 12px;
    }

    .heart-content input {
        padding: 10px 12px;
        font-size: 13px;
    }

    #loginBtn {
        padding: 10px;
        font-size: 14px;
    }


    .proposal-card {
        padding: 28px 18px;
    }

    .sangeetha-text {
        font-size: 27px;
    }

    .proposal-card h1 {
        font-size: 25px;
    }

    .center-heart {
        font-size: 75px;
    }


    .final-content h1 {
        font-size: 30px;
    }

    .final-content h2 {
        font-size: 21px;
    }

    .poem p {
        font-size: 15px;
    }

    .forever {
        font-size: 20px;
    }
}