* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #e0e5ec;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #000000;
    /* Default Text Color */
    transition: background-color 1.5s ease, color 1.5s ease;
}

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

#main-title {
    position: fixed;
    top: 40px;
    left: 40px;
    margin: 0;
    font-family: 'Helvetica', sans-serif;
    font-weight: 900;
    /* Boldest weight */
    font-size: 9rem;
    /* Very large */
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #000000;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to canvas */
    text-transform: uppercase;
    transition: color 1.5s ease;
}

#weather-info {
    position: fixed;
    top: 450px;
    left: 45px;
    z-index: 10;
    font-family: 'Helvetica', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #000000;
    line-height: 1.4;
    pointer-events: none;
    text-transform: uppercase;
    transition: color 1.5s ease;
}

#recommendation-panel {
    position: fixed;
    top: 600px;
    /* Adjust based on weather-info height */
    left: 45px;
    z-index: 10;
    font-family: 'Courier New', Courier, monospace;
    /* Monospace for typing feel */
    font-size: 0.9rem;
    font-weight: bold;
    color: #73d412;
    /* Fixed Lime Green */
    line-height: 1.4;
    pointer-events: none;
    text-transform: uppercase;
    max-width: 300px;
    transition: color 1.5s ease;
    min-height: 60px;
    /* Reserve space */
}

/* Blinking cursor effect */
#recommendation-panel::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


#data-panel {
    position: fixed;
    bottom: 40px;
    left: 40px;
    font-family: 'Helvetica', sans-serif;
    /* Changed to Helvetica */
    font-size: 0.85rem;
    color: #000000;
    pointer-events: bold;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    text-transform: uppercase;
    /* Maintain tech feel with uppercase */
    letter-spacing: 0.05em;
    transition: color 1.5s ease;
}

#theme-toggle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    font-family: 'Helvetica', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #000000;
    background: transparent;
    border: 1px solid currentColor;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 1.5s ease, border-color 1.5s ease;
}

#theme-toggle:hover {
    opacity: 0.7;
}

.data-row span {
    font-weight: bold;
    margin-left: 10px;
}

.windy-text {
    display: inline-block;
}

.windy-text span {
    display: inline-block;
    animation: wind-wave 3s ease-in-out infinite;
    transform-origin: center bottom;
    backface-visibility: hidden;
    /* Smoother rendering */
    will-change: transform, opacity;
}

@keyframes wind-wave {
    0% {
        transform: rotate(0deg) skewX(0deg);
        opacity: 1;
        filter: blur(0px);
    }

    20% {
        transform: rotate(5deg) skewX(-5deg) translateY(-2px);
        opacity: 0.9;
    }

    40% {
        transform: rotate(-3deg) skewX(3deg) scaleY(1.05);
        opacity: 1;
    }

    60% {
        transform: rotate(2deg) skewX(-2deg);
        opacity: 0.85;
        filter: blur(0.5px);
    }

    80% {
        transform: rotate(-1deg) translateY(1px);
        opacity: 0.95;
    }

    100% {
        transform: rotate(0deg) skewX(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    #main-title {
        font-size: 4.5rem;
        top: 20px;
        left: 20px;
        letter-spacing: -0.02em;
        /* White outline for visibility against tree */
        text-shadow:
            -2px -2px 0 #fff,
            2px -2px 0 #fff,
            -2px 2px 0 #fff,
            2px 2px 0 #fff;
    }

    #weather-info {
        top: auto;
        bottom: 30px;
        /* Bottom-left */
        left: 20px;
        right: auto;
        text-align: left;
        font-size: 0.85rem;
    }

    #theme-toggle {
        top: auto;
        bottom: 30px;
        /* Bottom-right */
        right: 20px;
        left: auto;
        font-size: 0.75rem;
        padding: 8px 15px;
    }

    #recommendation-panel {
        display: none;
    }

    #data-panel {
        display: none;
        /* Hide FPS and all data rows on mobile */
    }
}