body {
    background: #000;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', cursive;
}

.crt-container {
    position: relative;
    width: 360px;
    height: 320px;
    background: #000;
    border: 8px solid #222;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 100, 0.4); /* green CRT glow */
}

.gameboy-crt {
    position: relative;
    width: 100%;
    height: 100%;
    background: #9bbc0f; /* GameBoy green */
    border: 6px solid #0f380f;
    border-radius: 8px;
    overflow: hidden;
}

.scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.08) 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
}

.screen {
    position: relative;
    z-index: 5;
    padding: 20px;
    color: #0f380f;
    text-shadow: 0 0 4px #306230;
    text-align: center;
}

h1 {
    font-size: 18px;
    margin: 0 0 12px;
    color: #306230;
    text-shadow: 2px 2px 0 #0f380f;
}

input, button {
    font-family: inherit;
    font-size: 12px;
    background: #306230;
    color: #9bbc0f;
    border: 3px solid #0f380f;
    padding: 8px;
    margin: 6px 0;
    width: 80%;
    box-sizing: border-box;
}

button:hover {
    background: #0f380f;
    color: #9bbc0f;
}

/* Fun Pixel Animations for Weather */
#animationContainer {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.sun {
    width: 40px;
    height: 40px;
    background: #ffeb3b;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px #ffeb3b;
    animation: pulse 3s infinite;
}

.sun::before { /* Rotating rays */
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: radial-gradient(circle, #ffeb3b 20%, transparent 60%);
    animation: rotate 8s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rain-drop {
    width: 4px;
    height: 20px;
    background: linear-gradient(transparent, #2196f3);
    position: absolute;
    animation: fall 1.2s linear infinite;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 4px #2196f3;
}

.rain-splash {
    width: 12px;
    height: 6px;
    background: #2196f3;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    opacity: 0;
    animation: splash 1.5s infinite;
}

@keyframes fall {
    0% { top: -30px; opacity: 1; }
    100% { top: 140px; opacity: 0; }
}

@keyframes splash {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

.snowflake {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    animation: snow-fall 5s linear infinite;
    box-shadow: 0 0 4px white;
}

@keyframes snow-fall {
    0% { top: -20px; transform: translateX(0) rotate(0deg); opacity: 1; }
    100% { top: 140px; transform: translateX(20px) rotate(360deg); opacity: 0; }
}

.lightning {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 40px solid #ffeb3b;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    animation: flash 0.5s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0; transform: translateX(-50%) scale(0); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
    100% { opacity: 0; transform: translateX(-50%) scale(0); }
}

.fog {
    width: 200%;
    height: 100px;
    background: linear-gradient(transparent, rgba(255,255,255,0.4), transparent);
    position: absolute;
    bottom: 0;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { left: -100%; }
    100% { left: 0; }
}

.cloud {
    width: 48px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 30px;
    left: 40%;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Dancing Animals (Fun Pixel Bunnies) */
.animal {
    position: absolute;
    bottom: 10px;
    left: 70%;
    width: 32px;
    height: 48px;
    animation: dance-bob 1.5s infinite ease-in-out;
}

.animal-head {
    width: 20px;
    height: 20px;
    background: #ffcc99;
    border: 2px solid #000;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 6px;
}

.animal-body {
    width: 24px;
    height: 28px;
    background: #66ccff;
    border: 2px solid #000;
    position: absolute;
    top: 18px;
    left: 4px;
}

.animal-ear {
    width: 8px;
    height: 16px;
    background: #ffcc99;
    border: 2px solid #000;
    position: absolute;
    top: 0;
    transform: rotate(30deg);
}

.left-ear { left: -6px; transform: rotate(-30deg); }
.right-ear { right: -6px; transform: rotate(30deg); }

/* Reactions for dancing animals */
.waving .left-ear, .waving .right-ear {
    animation: wave 1s infinite alternate;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(45deg); }
}

.umbrella {
    width: 40px;
    height: 20px;
    background: #ff0000;
    border-radius: 50% 50% 0 0;
    position: absolute;
    top: -10px;
    left: -4px;
    border: 2px solid #000;
}

.shivering {
    animation: shiver 0.5s infinite;
}

@keyframes shiver {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.scared .animal-head {
    background: #ffff99;
}

.scared .left-ear, .scared .right-ear {
    top: 10px;
}

.peeking {
    animation: peek 3s infinite;
}

@keyframes peek {
    0% { transform: translateX(-20px); }
    50% { transform: translateX(0); }
    100% { transform: translateX(-20px); }
}
