/* COPY THIS INTO THE CSS SECTION OF WP CODER */

@import url('https://fonts.googleapis.com/css?family=Dosis:800|Lobster|Pacifico');

body {
    margin: 0;
    padding: 0;
    background: transparent;
    overflow-x: hidden; 
}

/* MAIN CONTAINER */
.valentine-container {
    display: flex;
    flex-direction: row; 
    flex-wrap: nowrap; 
    align-items: center;
    justify-content: center;
    
    background: white;
    border: 3px solid #FCE3E9;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    padding: 6px 50px; 
    
    width: fit-content;
    max-width: 1400px;
    margin: 50px auto; 
    box-sizing: border-box;
    
    position: relative;
    overflow: visible !important; 
    z-index: 1;
}

/* CLIPPER for Background Hearts */
.bg-clipper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

#bg-hearts-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.floating-heart {
    position: absolute;
    color: #FCE3E9;
    opacity: 0;
    animation: floatUp 4s linear forwards;
}

@keyframes floatUp {
    0% { transform: translateY(100%) scale(0.5); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-20%) scale(1); opacity: 0; }
}

/* TEXT STYLING */
.valentine-text {
    font-family: 'Dosis', sans-serif;
    font-weight: 800;
    font-size: 3.6em;
    color: #FFB3C3;
    letter-spacing: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

/* HEART WRAPPER */
.heart-wrapper {
    width: 120px; 
    height: 0px; 
    position: relative;
    flex-shrink: 0;
    margin: 0 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* THE CANVAS - VISUALS ONLY */
#myLove {
    display: block;
    width: 480px; /* Huge visual area for explosions */
    height: 480px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* CRITICAL FIX: Make canvas click-through so it doesn't block header */
    pointer-events: none; 
}

/* THE TRIGGER - INTERACTION ONLY */
#myLoveTrigger {
    position: absolute;
    width: 160px;  /* Restricted Hitbox Size */
    height: 160px; /* Restricted Hitbox Size */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    
    /* Move the cursor here */
    cursor: crosshair;
    pointer-events: auto; /* Enable clicks only here */
    
    /* Debugging: Uncomment background to see the hitbox */
    /* background: rgba(255, 0, 0, 0.2); */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .valentine-container {
        flex-direction: row !important; 
        flex-wrap: nowrap !important;
        padding: 15px 5px !important;
        width: 95% !important;
        gap: 0;
        margin: 20px auto;
        min-width: 0; 
    }

    .heart-wrapper {
        width: 60px;
        height: 0px; 
        margin: 0 10px; 
    }
    
    #myLove {
        width: 250px; 
        height: 250px;
    }
    
    /* Adjust trigger size for mobile */
    #myLoveTrigger {
        width: 100px;
        height: 100px;
    }

    .valentine-text {
        font-size: 7vw !important; 
        letter-spacing: 1px;
        flex-shrink: 1;
    }
}