:root {
    --primary-color: #d16b8a;
    --bg-color: #fce4ec;
    --text-color: #4a4a4a;
    --sad-gray: #8d858c;
    --white: #ffffff;
    --heart-color: #e91e63;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1, h2 {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-color);
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

.container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(209, 107, 138, 0.2);
    max-width: 700px;
    width: 90%;
    margin: 40px 0;
    display: none;
}

.container.active {
    display: block;
}

.intro {
    background-color: #faf5f7;
    border-left: 4px solid var(--sad-gray);
    padding: 15px;
    font-style: italic;
    margin-bottom: 25px;
    color: var(--sad-gray);
    font-size: 0.95rem;
}

.intro p {
    margin: 5px 0;
}

.love {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 15px !important;
}

.question {
    margin-bottom: 25px;
}

.question > label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 10px;
}

.options label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.inline-text {
    border: none;
    border-bottom: 1px solid var(--primary-color);
    background: transparent;
    margin-left: 10px;
    outline: none;
    font-family: 'Lora', serif;
    font-style: italic;
    flex-grow: 1;
}

.full-text, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    background-color: #faf5f7;
}

.full-text:focus, textarea:focus {
    border-color: var(--primary-color);
}

button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Lora', serif;
    display: block;
    margin: 30px auto 0;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #b05572;
}

#login-container {
    text-align: center;
}

#access-code {
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    outline: none;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
    height: 20px;
}

/* Hearts rating system */
.hearts-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.hearts-rating input {
    display: none;
}

.hearts-rating label {
    font-size: 2.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 5px;
}

.hearts-rating input:checked ~ label,
.hearts-rating label:hover,
.hearts-rating label:hover ~ label {
    color: var(--heart-color);
}

/* Floating Background Hearts */
.heart {
    position: fixed;
    color: rgba(233, 30, 99, 0.3); /* Subtle pink/red */
    z-index: -1; /* Behind all content */
    pointer-events: none; /* User can click through them */
    user-select: none;
}

.heart.up {
    bottom: -50px;
    animation: floatUp linear forwards;
}

.heart.down {
    top: -50px;
    animation: floatDown linear forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatDown {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(-360deg);
        opacity: 0;
    }
}

/* Explosion Effect */
.explosion-particle {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 9999;
    animation: explode 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes explode {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(var(--rot));
        opacity: 0;
    }
}

.date-explosion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    text-shadow: 2px 2px 0px #fff, -2px -2px 0px #fff, 0 0 20px #ffeb3b, 0 0 40px #ffeb3b;
    pointer-events: none;
    z-index: 10000;
    animation: dateExplode 4s ease-out forwards;
    white-space: nowrap;
    text-align: center;
}

@keyframes dateExplode {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -150vh) scale(2);
        opacity: 0;
    }
}
