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

#themeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 999;
    transition: 0.3s ease;
    background-color: rgba(244, 0, 69, 0.35);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

#themeToggle:hover {
    transform: scale(1.2);
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom right, #f8e9e2, #f3dcd4);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(to bottom right, #f9eee3, #f4e3d9),
        url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    background-blend-mode:soft-light;
}



body.dark {
    background: linear-gradient(to bottom right, #1a1625, #2b2238);
}


body::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:radial-gradient(circle at 52% 50%, rgba(255,210,225,0.18), transparent 65%);
}

body.dark::after {
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.25));
    background-image: url('https://www.transparenttextures.com/patterns/dark-denim-3.png');
}

body.theme-blur {
    filter: blur(2px);
    transition: filter 0.4s ease;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: sparkleTwinkle 4s infinite ease-in-out;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 240, 255, 0.9) 40%, transparent 60%);
    filter: blur(1.2px) brightness(1.4);
}

@keyframes sparkleTwinkle {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}



/* Floating romantic hearts */
.heart {
    position: absolute;
    color: rgba(255, 70, 140, 0.6);
    font-size: 28px;
    animation: floatHeartbeat 10s linear infinite;
    transition: color 0.6s ease, filter 0.6s ease;
    user-select: none;
}

@keyframes floatHeartbeat {
    0% {
        transform: translateY(40vh) scale(1);
    }

    15% {
        transform: translateY(25vh) scale(1.15);
    }

    25% {
        transform: translateY(15vh) scale(1.2);
    }

    35% {
        transform: translateY(5vh) scale(1.15);
    }

    50% {
        transform: translateY(0vh) scale(1.1);
    }

    100% {
        transform: translateY(-40vh) scale(1);
    }
}



body.dark .heart {
    filter: brightness(1.5);
}

.container {
    text-align: center;
    z-index: 5;
    animation: softPulse 6s ease-in-out infinite;
}

@keyframes softPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

h1 {
    letter-spacing: 3px;
    word-spacing: 3px;
    font-family: "Dancing Script", cursive;
    font-size: 4rem;
    color: #4a2c2a;
    text-shadow: 0 0 12px rgba(255, 150, 180, 0.25);
    margin-bottom: 0.5rem;
    transition: text-shadow 0.6s ease, color 0.6s ease;
}

.dark h1 {
    color: #f3e9e4;
    text-shadow: 0 0 18px rgba(255, 180, 200, 0.5);

}

.subtitle {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #674d4c;
    margin-bottom: 2rem;
}

.dark .subtitle {
    color: #c5b2af;
}

#btn {
    background: linear-gradient(135deg, #c31a53, #e23e77);
    padding: 1.3rem 2.4rem;
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    gap: 0.7rem;
    align-items: center;
    box-shadow: 0 6px 18px rgba(195, 26, 83, 0.35);
    transition: 0.25s ease-out;
}

.dark #btn {
    background: linear-gradient(135deg, #9c1740, #c4245c);
}

#btn:hover {
    transform: translateY(-5px) scale(1.2);
    box-shadow: 0 10px 25px rgba(195, 26, 83, 0.5);
}


#btn svg {
    stroke: white;
}

.hint {
    margin-top: 1.4rem;
    font-family: "Playfair Display", serif;
    font-size: 0.95rem;
    color: #7e6363;
}



body,
h1,
.subtitle,
#btn,
.heart,
body::after {
    transition:
        background 1.5s ease,
        color 1.5s ease,
        background-color 1.5s ease,
        text-shadow 1.5s ease,
        transform 1.5s ease,
        filter 1.5s ease;
}