/* Cherry Branch & WebGL Depthmap Light Overlay Styling */
:root {
    --mouse-x: 50vw;
    --mouse-y: 50vh;
}

body {
    background-color: #000000;
    margin: 0;
    padding: 0;
    overflow: hidden;
    user-select: none;
}

.image-box {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

.image-box.visible {
    opacity: 1;
}

#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
}

.main-img {
    height: 100vh;
    width: auto;
    max-width: none;
    z-index: 1;
    display: none; /* WebGL canvas used by default; displayed on WebGL fallback */
}

/* Romantic Cursive Prompt Overlay */
#romantic-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Great Vibes', cursive, sans-serif;
    font-size: 3.8rem;
    color: #ffc5d0;
    text-shadow: 0 0 15px rgba(255, 197, 208, 0.9), 0 0 35px rgba(255, 140, 40, 0.6);
    pointer-events: none;
    z-index: 20;
    text-align: center;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out, visibility 1.2s;
}

#romantic-prompt.show {
    opacity: 1;
}

#romantic-prompt.fade-out {
    opacity: 0;
    transform: translate(-50%, -60%);
    visibility: hidden;
}

/* CSS Mouse Light Glow Overlay */
.light-overlay {
    display: none;
}

/* Interactive Candle Flame Container */
.candle-container {
    position: absolute;
    width: 24px;
    height: 38px;
    transform: translate(-50%, -100%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* Glowing Candle Flame Graphic */
.candle-flame {
    position: relative;
    width: 14px;
    height: 22px;
    margin: 0 auto;
    background: radial-gradient(ellipse at 50% 85%, #ffffff 0%, #ffe680 30%, #ff8c00 70%, rgba(255, 68, 0, 0) 100%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.95)) drop-shadow(0 0 22px rgba(255, 200, 50, 0.7));
    transform-origin: center bottom;
    animation: flameFlicker 0.16s infinite alternate ease-in-out;
}

/* Flame Blue Base */
.candle-flame::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #4da6ff 0%, transparent 80%);
    border-radius: 50%;
}

/* Candle Wick */
.candle-wick {
    width: 2px;
    height: 6px;
    background: #332211;
    margin: 0 auto;
    border-radius: 1px;
}

@keyframes flameFlicker {
    0% {
        transform: scale(0.92, 1.08) rotate(-2deg);
        opacity: 0.92;
    }
    50% {
        transform: scale(1.08, 0.92) rotate(2deg);
        opacity: 1.0;
    }
    100% {
        transform: scale(0.96, 1.04) rotate(-1deg);
        opacity: 0.95;
    }
}
