:root {
    --bg-color: #fff0f6;
    --accent-pink: #ff85a1;
    --text-main: #7a3e4d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

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

.container {
    position: relative;
    z-index: 20; /* Keep text above everything */
    width: 90%;
    max-width: 400px;
    text-align: center;
}

h1 {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.time-block {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 40px 20px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(255, 133, 161, 0.2);
}

.time-block span {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-pink);
    line-height: 1;
}

.time-block p {
    margin: 15px 0 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ================================
   Rising Hearts Background
   ================================ */
.heart-background {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 1; /* Behind content, above body background */
    pointer-events: none; /* User can click through them */
}

.heart {
    position: absolute;
    bottom: -50px; /* Start below screen */
    width: 20px;
    height: 20px;
    background-color: var(--accent-pink);
    /* No transform here, it's handled in the animation now */
    animation: heartRise linear infinite;
}

/* Creating the heart shape curve */
.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-pink);
    border-radius: 50%;
}

.heart::before { top: -10px; left: 0; }
.heart::after { top: 0; left: 10px; }

@keyframes heartRise {
    0% {
        transform: translateY(0) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) rotate(-45deg) scale(1);
        opacity: 0;
    }
}

/* Individual Heart Spacing and Speed */
.heart:nth-child(1) { left: 10%; animation-duration: 7s; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-duration: 9s; animation-delay: 2s; }
.heart:nth-child(3) { left: 35%; animation-duration: 6s; animation-delay: 4s; }
.heart:nth-child(4) { left: 50%; animation-duration: 11s; animation-delay: 1s; }
.heart:nth-child(5) { left: 65%; animation-duration: 8s; animation-delay: 3s; }
.heart:nth-child(6) { left: 80%; animation-duration: 10s; animation-delay: 5s; }
.heart:nth-child(7) { left: 90%; animation-duration: 7s; animation-delay: 1.5s; }
.heart:nth-child(8) { left: 15%; animation-duration: 12s; animation-delay: 0.5s; }
.heart:nth-child(9) { left: 45%; animation-duration: 8.5s; animation-delay: 2.5s; }
.heart:nth-child(10) { left: 75%; animation-duration: 9.5s; animation-delay: 3.5s; }

.video-link-btn {
    display: inline-block;
    background: var(--accent-pink);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 5px 15px rgba(255, 133, 161, 0.4);
}

.video-link-btn:hover {
    transform: scale(1.05);
    background: #ff6b8e;
}

#password-input {
    padding: 12px;
    border-radius: 15px;
    border: 2px solid var(--accent-pink);
    background: var(--glass-bg);
    color: var(--text-main);
    text-align: center;
    font-size: 1rem;
    outline: none;
    width: 80%;
}