:root {
    --fan-color: #e0e0e0;
    --blade-color: #4fc3f7;
    --cage-color: #b0bec5;
    --bg-color: #263238;
    --accent-color: #ff5722;
    --motor-color: #546e7a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2c3e50;
    /* Dark wall color */
    font-family: 'Roboto Mono', monospace;
    overflow: hidden;
    position: relative;
}

/* Indoor Room */
.indoor-room {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #34495e 0%, #2c3e50 100%);
    /* Indoor wall */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Window Frame */
.window {
    position: absolute;
    top: 50px;
    right: 80px;
    width: 300px;
    height: 250px;
    background: linear-gradient(to bottom, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    border: 15px solid #8b4513;
    /* Brown wood frame */
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 5;
}

.window-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #654321;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
}

/* Cross bars */
.window-frame::before,
.window-frame::after {
    content: '';
    position: absolute;
    background: #8b4513;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.window-frame::before {
    width: 8px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.window-frame::after {
    width: 100%;
    height: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.outdoor-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Hot Sun (now inside window) */
.sun {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 60px;
    animation: sun-pulse 3s infinite alternate;
    filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.8));
    z-index: 2;
}

@keyframes sun-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Heat Waves (inside window) */
.heat-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.wave {
    position: absolute;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom,
            rgba(255, 100, 0, 0.4) 0%,
            transparent 50%,
            rgba(255, 100, 0, 0.4) 100%);
    animation: heat-shimmer 4s infinite ease-in-out;
}

.w1 {
    top: 10%;
    animation-delay: 0s;
}

.w2 {
    top: 45%;
    animation-delay: -1.5s;
}

.w3 {
    top: 75%;
    animation-delay: -3s;
}

@keyframes heat-shimmer {

    0%,
    100% {
        transform: translateX(-10px) scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(10px) scaleY(1.1);
        opacity: 0.7;
    }
}

.room {
    perspective: 1000px;
    /* Enable 3D space */
    position: relative;
    z-index: 10;
}

.fan-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 500px;
    transform-style: preserve-3d;
}

/* Cool Breeze Zone (when fan is on) */
.fan-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            rgba(100, 200, 255, 0.3) 0%,
            rgba(150, 220, 255, 0.2) 40%,
            transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

body.fan-on .fan-container::before {
    opacity: 1;
    animation: cool-pulse 3s infinite alternate;
}

@keyframes cool-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* --- Fan Assembly (Head + Motor) --- */
.fan-assembly {
    position: relative;
    width: 300px;
    height: 300px;
    z-index: 10;
    transform-origin: center 150px;
    /* Pivot around the center vertical axis */
    transform-style: preserve-3d;
    /* Keep children in 3D */
    transition: transform 0.5s ease-out;
    /* For manual tilt/swing updates if needed */
}

/* Swing Animation - NOW 3D! */
.fan-assembly.oscillating {
    animation: swing 4s ease-in-out infinite alternate;
}

@keyframes swing {
    0% {
        transform: rotateY(-50deg);
    }

    100% {
        transform: rotateY(50deg);
    }
}

/* Motor Housing (The back part) */
.fan-motor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-40px);
    /* Push it back */
    width: 120px;
    height: 120px;
    background: var(--motor-color);
    border-radius: 30px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Motor Side (Fake 3D depth) */
.fan-motor::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -20px;
    width: 20px;
    height: 100px;
    background: #37474f;
    /* Darker side */
    border-radius: 0 10px 10px 0;
    transform: skewY(10deg);
    /* Fake perspective */
}

/* Fan Head (Cage & Blades) */
.fan-head {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    transform: translateZ(0px);
    /* Front plane */
    transform-style: preserve-3d;
}

/* Back Cage */
.cage-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--cage-color);
    border-radius: 50%;
    background: repeating-conic-gradient(transparent 0deg 10deg,
            rgba(255, 255, 255, 0.1) 10deg 12deg);
    transform: translateZ(-10px);
    /* Slightly behind blades */
}

/* Front Cage */
.cage-front {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--cage-color);
    border-radius: 50%;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(transparent 60%, var(--cage-color) 61%, transparent 62%);
    transform: translateZ(20px);
    /* Stick out forward */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Shadow on the floor/wall */
}

.logo {
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    border: 1px solid #ccc;
    transform: translateZ(1px);
}

/* Blades */
.blades {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    z-index: 3;
    transform-style: preserve-3d;
}

/* Spinning Animation */
.blades.spin {
    animation: spin infinite linear;
}

/* Speed Durations */
.blades.speed-1 {
    animation-duration: 0.5s;
}

.blades.speed-2 {
    animation-duration: 0.25s;
}

.blades.speed-3 {
    animation-duration: 0.1s;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.center-cap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(5px);
    z-index: 4;
    background: radial-gradient(circle at 30% 30%, #666, #111);
    /* Shiny cap */
}

.blade {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 120px;
    background: var(--blade-color);
    border-radius: 50% 50% 10% 10%;
    transform-origin: center bottom;
    opacity: 0.9;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.blade-1 {
    transform: translate(-50%, -100%) rotate(0deg) skewX(10deg);
}

.blade-2 {
    transform: translate(-50%, -100%) rotate(120deg) skewX(10deg);
}

.blade-3 {
    transform: translate(-50%, -100%) rotate(240deg) skewX(10deg);
}

/* --- Base & Neck --- */
.fan-neck {
    width: 20px;
    height: 120px;
    background: linear-gradient(90deg, #546e7a, #78909c, #546e7a);
    /* Cylinder look */
    margin-top: -60px;
    z-index: 0;
    position: relative;
}

.fan-base {
    width: 240px;
    /* Wider for new controls */
    height: 80px;
    /* Taller */
    background: linear-gradient(to bottom, #eceff1, #cfd8dc);
    border-radius: 20px 20px 5px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
    z-index: 20;
    position: relative;
}

/* --- Controls --- */
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #cfd8dc;
    cursor: pointer;
    font-weight: bold;
    color: #546e7a;
    box-shadow: 0 3px 0 #90a4ae;
    /* 3D button press feel */
    transition: all 0.1s;
}

.btn:active,
.btn.active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #90a4ae;
    background: var(--accent-color);
    color: white;
}

.swing-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #546e7a;
    margin-top: 5px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(14px);
}

.slider.round {
    border-radius: 16px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Ribbons --- */
.ribbon {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 12px;
    height: 100px;
    background: linear-gradient(to bottom, #ff5252, #ff8a80);
    transform-origin: top center;
    z-index: 6;
    opacity: 0.9;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    border-radius: 0 0 10px 10px;
    /* Default state (hanging) */
    transform: rotate(0deg) scaleY(1);
    transition: transform 0.5s ease;
}

.ribbon-1 {
    left: 42%;
    --base-delay: 0s;
}

.ribbon-2 {
    left: 58%;
    --base-delay: -0.1s;
}

/* Speed 1: Gentle Breeze */
.fan-head.speed-1 .ribbon {
    animation: flutter-1 0.5s infinite ease-in-out alternate;
    animation-delay: var(--base-delay);
}

/* Speed 2: Strong Wind */
.fan-head.speed-2 .ribbon {
    animation: flutter-2 0.2s infinite linear alternate;
    animation-delay: var(--base-delay);
}

/* Speed 3: Hurricane */
.fan-head.speed-3 .ribbon {
    animation: flutter-3 0.08s infinite linear alternate;
    animation-delay: var(--base-delay);
}

@keyframes flutter-1 {
    0% {
        transform: rotate(15deg) skewX(5deg) scaleY(0.95);
    }

    100% {
        transform: rotate(25deg) skewX(-5deg) scaleY(1);
    }
}

@keyframes flutter-2 {
    0% {
        transform: rotate(40deg) skewX(10deg) scaleY(0.9);
    }

    25% {
        transform: rotate(45deg) skewX(0deg) scaleY(0.95);
    }

    50% {
        transform: rotate(42deg) skewX(-10deg) scaleY(0.9);
    }

    75% {
        transform: rotate(48deg) skewX(5deg) scaleY(0.95);
    }

    100% {
        transform: rotate(50deg) skewX(15deg) scaleY(0.9);
    }
}

@keyframes flutter-3 {
    0% {
        transform: rotate(75deg) skewX(20deg) scaleY(0.8);
    }

    50% {
        transform: rotate(85deg) skewX(-20deg) scaleY(0.85);
    }

    100% {
        transform: rotate(80deg) skewX(10deg) scaleY(0.8);
    }
}

/* --- Controls Layout --- */
.controls-row {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
}

.extra-controls {
    justify-content: space-around;
    width: 100%;
    padding: 0 10px;
    align-items: center;
    display: flex;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    color: #546e7a;
}

/* Tilt Slider */
.tilt-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    background: #b0bec5;
    border-radius: 2px;
    outline: none;
}

.tilt-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

/* Night Mode Button */
.btn-icon {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* --- Night Mode Styles --- */
body.night-mode {
    --bg-color: #121212;
    --fan-color: #37474f;
    --blade-color: #0277bd;
    /* Darker blue */
    --cage-color: #455a64;
    --accent-color: #ff1744;
    /* Glowing red */
}

body.night-mode .fan-base,
body.night-mode .fan-motor {
    background: #263238;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

body.night-mode .btn.active {
    box-shadow: 0 0 10px var(--accent-color);
    /* LED Glow */
}

body.night-mode .logo {
    background: #333;
    color: #fff;
    border-color: #555;
}

body.night-mode .ribbon {
    filter: brightness(0.7);
}

/* --- The Dog --- */
.dog-container {
    position: absolute;
    bottom: 100px;
    left: -100px;
    /* On the sofa, far left */
    transform: scale(0.4);
    z-index: 10;
    /* Above sofa */
}

.dog {
    position: relative;
    width: 120px;
    height: 140px;
}

.dog-head {
    width: 100px;
    height: 90px;
    background: #ffcc80;
    /* Light orange */
    border-radius: 40px 40px 30px 30px;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 2;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.dog-ears .ear {
    width: 30px;
    height: 60px;
    background: #ef6c00;
    /* Dark orange */
    position: absolute;
    top: -10px;
    border-radius: 15px;
    transform-origin: top center;
    transition: transform 0.3s;
}

.ear.left {
    left: -5px;
    transform: rotate(-15deg);
}

.ear.right {
    right: -5px;
    transform: rotate(15deg);
}

.dog-face {
    position: relative;
    top: 30px;
    text-align: center;
}

.eyes .eye {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    display: inline-block;
    margin: 0 10px;
    animation: blink 4s infinite;
}

@keyframes blink {

    0%,
    96%,
    100% {
        transform: scaleY(1);
    }

    98% {
        transform: scaleY(0.1);
    }
}

.nose {
    width: 16px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    margin: 5px auto;
}

.mouth {
    width: 20px;
    height: 10px;
    border-bottom: 2px solid #333;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.tongue {
    width: 14px;
    height: 20px;
    background: #ff5252;
    border-radius: 0 0 10px 10px;
    position: absolute;
    top: 8px;
    left: 3px;
    transform-origin: top center;
    opacity: 0;
    /* Hidden when off */
    transition: opacity 0.3s;
}

.dog-body {
    width: 80px;
    height: 60px;
    background: #ffcc80;
    position: absolute;
    bottom: 0;
    left: 20px;
    border-radius: 30px 30px 0 0;
    z-index: 1;
}

/* Sweat Drops (Hot!) */
.sweat-drops {
    position: absolute;
    top: -20px;
    right: -10px;
    opacity: 0;
    transition: opacity 0.5s;
}

.drop {
    font-size: 20px;
    position: absolute;
    animation: drop 1s infinite;
}

.d1 {
    right: 0;
    animation-delay: 0s;
}

.d2 {
    right: 15px;
    top: 10px;
    animation-delay: 0.5s;
}

@keyframes drop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* --- Dog Reactions to Fan Speed --- */

/* OFF: Sweating */
body:not(.fan-on) .sweat-drops {
    opacity: 1;
}

/* ON: Happy, Ears Flapping, Tongue Out */
body.fan-on .sweat-drops {
    opacity: 0;
}

body.fan-on .tongue {
    opacity: 1;
}

/* Speed 1: Gentle Flap */
body.speed-1 .ear.left {
    animation: ear-flap 1s infinite alternate;
}

body.speed-1 .ear.right {
    animation: ear-flap 1s infinite alternate-reverse;
}

body.speed-1 .tongue {
    animation: tongue-wag 1s infinite alternate;
}

/* Speed 2: Happy Flap */
body.speed-2 .ear.left {
    animation: ear-flap 0.5s infinite alternate;
}

body.speed-2 .ear.right {
    animation: ear-flap 0.5s infinite alternate-reverse;
}

body.speed-2 .tongue {
    animation: tongue-wag 0.3s infinite alternate;
}

/* Speed 3: Crazy Flap */
body.speed-3 .ear.left {
    animation: ear-flap 0.1s infinite alternate;
    transform: rotate(-45deg);
}

body.speed-3 .ear.right {
    animation: ear-flap 0.1s infinite alternate-reverse;
    transform: rotate(45deg);
}

body.speed-3 .tongue {
    animation: tongue-wag 0.1s infinite alternate;
    height: 30px;
}

/* Tongue gets longer in wind */

@keyframes ear-flap {
    0% {
        transform: rotate(var(--r, 0deg));
    }

    100% {
        transform: rotate(calc(var(--r, 0deg) + 10deg));
    }
}

@keyframes tongue-wag {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

/* --- TV --- */
.tv {
    position: absolute;
    bottom: 130px;
    left: -350px;
    /* In front of sofa, far left */
    transform: scale(0.5);
    z-index: 6;
}

.tv-screen {
    width: 180px;
    height: 120px;
    background: #1a1a1a;
    border: 12px solid #333;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.tv-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tv-show {
    font-size: 40px;
    animation: tv-flicker 0.1s infinite;
}

@keyframes tv-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

/* TV Static (when off) */
.tv-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.1) 0px,
            transparent 2px,
            transparent 4px);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

body:not(.fan-on) .tv-static {
    opacity: 0.3;
    animation: static-noise 0.1s infinite;
}

@keyframes static-noise {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(2px);
    }
}

.tv-stand {
    width: 60px;
    height: 30px;
    background: #333;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* TV glow when fan is on */
body.fan-on .tv-screen {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.5);
}

/* --- Sofa and Girl --- */
.sofa-container {
    position: absolute;
    bottom: 100px;
    left: -250px;
    /* Far left, away from fan */
    z-index: 8;
    transform: scale(0.6);
}

/* Sofa */
.sofa {
    position: relative;
    width: 200px;
    height: 120px;
}

.sofa-back {
    width: 180px;
    height: 80px;
    background: linear-gradient(to bottom, #8b4789, #6a3568);
    border-radius: 20px 20px 0 0;
    position: absolute;
    bottom: 40px;
    left: 10px;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.sofa-seat {
    width: 200px;
    height: 50px;
    background: linear-gradient(to bottom, #9b59b6, #7d3c98);
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.sofa-arm {
    width: 30px;
    height: 90px;
    background: linear-gradient(to right, #7d3c98, #6a3568);
    border-radius: 15px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.left-arm {
    left: 0;
}

.right-arm {
    right: 0;
}

/* Girl */
.girl {
    position: absolute;
    bottom: 50px;
    left: 40px;
    /* Moved left to make room for dog */
    width: 80px;
    height: 120px;
    z-index: 9;
}

.girl-head {
    width: 50px;
    height: 50px;
    position: relative;
    margin: 0 auto;
}

.hair {
    width: 50px;
    height: 40px;
    background: #3d2817;
    /* Dark brown */
    border-radius: 25px 25px 0 0;
    position: absolute;
    top: 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Short hair style */
.hair::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 25px;
    background: #3d2817;
    border-radius: 0 15px 15px 0;
    right: -5px;
    top: 10px;
}

.hair::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 25px;
    background: #3d2817;
    border-radius: 15px 0 0 15px;
    left: -5px;
    top: 10px;
}

.face {
    width: 40px;
    height: 45px;
    background: #ffd7b5;
    /* Skin tone */
    border-radius: 20px;
    position: absolute;
    top: 15px;
    left: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.eyes {
    display: flex;
    justify-content: space-around;
    padding: 12px 8px 0;
}

.eyes .eye {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    animation: girl-blink 5s infinite;
}

@keyframes girl-blink {

    0%,
    96%,
    100% {
        transform: scaleY(1);
    }

    98% {
        transform: scaleY(0.1);
    }
}

.smile {
    width: 16px;
    height: 8px;
    border-bottom: 2px solid #ff6b9d;
    border-radius: 0 0 10px 10px;
    margin: 5px auto 0;
}

.girl-body {
    width: 60px;
    height: 50px;
    background: linear-gradient(to bottom, #ff9a9e, #fad0c4);
    border-radius: 15px 15px 5px 5px;
    margin: 5px auto 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.girl-legs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.leg {
    width: 20px;
    height: 30px;
    background: #6495ed;
    /* Blue jeans */
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Girl relaxing animation when fan is on */
body.fan-on .girl-head {
    animation: girl-relax 3s infinite ease-in-out;
}

@keyframes girl-relax {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-3deg);
    }
}