
/* style.css */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Applying the gradient to both html and body for maximum certainty */
    background: linear-gradient(135deg, #ffdde1, #ee9ca7) !important;
}

body {
    font-family: sans-serif;
    color: #333;
}

#animation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.vine {
    fill: none;
    stroke: #4a7c59;
    stroke-width: 4;
    stroke-linecap: round;
}

.design-mode {
    cursor: crosshair;
}

/* --- Flower and Control Styles --- */
.outer-petals path { fill: #FF8C8C; }
.inner-petals path { fill: #FF7D7D; }
.corner-leaves path { fill: #FF6E6E; }
.center-pieces path { fill: #E15555; }
.center-pieces circle:nth-of-type(-n+4) { fill: #B4E66E; }
.center-pieces circle:last-of-type { fill: #E15555; }

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

#controls button {
    background-color: #ffffff;
    color: #1a0033;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
    margin-right: 10px;
}

#controls button:hover {
    background-color: #f0abfc;
}

/* --- Export UI Styles --- */
#export-container {
    position: absolute;
    top: 80px;
    left: 20px;
    width: calc(100% - 60px);
    max-width: 500px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 10px 20px;
    z-index: 100;
}

#export-container h3, #export-container p, #export-container ol {
    margin: 10px 0;
}

#export-code {
    width: 100%;
    height: 150px;
    background: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: scroll;
}
/* --- Styling for New Flower Variety --- */

/* Purple Petunia Styles */
.petunia-petal-main { fill: #FF8CFF; }
.petunia-petal-inner { fill: #DC64ED; }
.petunia-stamen { fill: #B93CDC; }
.petunia-center-1 { fill: #9B32B4; }
.petunia-center-2 { fill: #B93CDC; }

/* Pink Nymph Styles */
.nymph-leaf-back { fill: #F2C5EE; }
.nymph-leaf-mid { fill: #F4D7FC; }
.nymph-petal-1 { fill: #EFAEDD; }
.nymph-petal-2 { fill: #ED9ED2; }
.nymph-petal-3 { fill: #E986C0; }
.nymph-petal-4 { fill: #E671B1; }
.nymph-center-1 { fill: #FFF04B; }
.nymph-center-2 { fill: #FFCD28; }

/* Yellow Mimosa Styles */
.mimosa-star-back { fill: #FFE164; }
.mimosa-star-front { fill: #FFF578; }
.mimosa-dots-1 { fill: #FFE632; }
.mimosa-dots-2 { fill: #FFDC2D; }
.mimosa-cross { fill: #FFF064; }
.mimosa-dots-3 { fill: #FFDC2D; }
.mimosa-center { fill: #FFB446; } 

.birthday-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 170px;
    font-weight: bold;
    fill: url(#text-gradient);
} 

/* This styles the invisible stencil used for the reveal effect */
.text-stencil {
    font-family: 'Great Vibes', cursive;
    font-size: 130px;
    font-weight: normal;
    fill: none;
    stroke: black;
    stroke-width: 6;
}
#stencil-source {
    font-family: 'Great Vibes', cursive;
    font-size: 130px;
    font-weight: normal;
    fill: none;
    stroke: black; /* The stroke is needed for measurement */
    stroke-width: 5;
    opacity: 0; /* This makes it fully transparent and invisible */
    pointer-events: none; /* Ensures it can't be accidentally clicked */
}