:root {
    --ink-color: #1a4b8c; /* Childish blue marker/crayon color */
    --crayon-red: #e63946;
    --paper-bg: #fdfdfd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fcefb4; /* Sunny room vibe */
    background-image: radial-gradient(#efcc33 1px, transparent 1px);
    background-size: 30px 30px;
    font-family: 'Short Stack', cursive;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
}

.letter-container {
    width: 95%;
    max-width: 1200px;
    padding: 40px 10px;
    position: relative;
    z-index: 1;
}

.paper-stack {
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2));
}

.paper {
    background-color: var(--paper-bg);
    background-image: url('lined-paper.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 80px 80px;
    min-height: 1000px;
    position: relative;
    transform: rotate(0.5deg);
    border: 1px solid #ddd;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

.content {
    line-height: 2.4; 
    color: var(--ink-color);
    font-size: 1.4rem;
    position: relative;
    text-transform: lowercase; /* Childish tendency to ignore caps */
}

p {
    margin-bottom: 3rem;
    text-indent: 0;
    position: relative;
    letter-spacing: 1px;
    filter: blur(0.3px);
    display: block;
}

/* Mixed case emphasis for "childish" style */
.content p b, .content p strong, .impact-text {
    text-transform: uppercase;
    color: #cc3333;
    font-size: 1.1em;
}

.wonky-text p {
    transform: rotate(-0.5deg);
}

.wonky-text p:nth-child(even) {
    transform: rotate(0.4deg);
    margin-left: 10px;
}

.header {
    margin-bottom: 60px;
    position: relative;
    text-align: center;
}

.salutation {
    font-family: 'Gochi Hand', cursive;
    font-size: 3.5rem;
    color: #e63946;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.footer {
    margin-top: 100px;
    text-align: right;
    padding-right: 60px;
    position: relative;
}

.signature {
    font-family: 'Coming Soon', cursive;
    font-size: 2.5rem;
    margin: 0;
    color: #228b22; /* Green crayon signature */
    text-transform: uppercase;
}

.name-scrawl {
    font-family: 'Gochi Hand', cursive;
    font-size: 3rem;
    margin-top: 5px;
    color: #1a4b8c;
    transform: rotate(-5deg);
}

.doodle {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.heart-top-left {
    width: 90px;
    top: -60px;
    left: 20px;
    transform: rotate(-25deg);
}

.sparkle-top-right {
    width: 70px;
    top: -40px;
    right: 40px;
    transform: rotate(20deg);
}

.sun-corner {
    width: 150px;
    top: -70px;
    left: -60px;
    transform: rotate(-10deg);
    opacity: 0.9;
}

.scribble-bottom {
    width: 300px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    opacity: 0.4;
}

.doodle-inline {
    width: 60px;
    display: block;
    margin: 40px auto;
}

.family-drawing {
    width: 320px;
    max-width: 80%;
    transform: rotate(1deg);
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.05));
}

.doodle-bottom {
    width: 100px;
    display: inline-block;
    margin-top: 10px;
    transform: rotate(15deg);
}

#sparkle-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.floating-sparkle {
    position: absolute;
    width: 15px;
    height: 15px;
    background-image: url('crayon-sparkle.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: sparkle-float 4s ease-in-out infinite;
}

@keyframes sparkle-float {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-100px) rotate(180deg); opacity: 0; }
}

@media (max-width: 600px) {
    .paper {
        padding: 40px 25px;
    }
    .salutation {
        font-size: 1.8rem;
    }
    .content {
        font-size: 1.1rem;
        line-height: 2;
    }
    .signature {
        font-size: 1.5rem;
    }
}