/* THEME */
body.light {
  background: #f4f4f4;
  color: #000;
}

body.dark {
  background: #111;
  color: #fff;
}

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  transition: background 0.4s, color 0.4s;
}

/* CONTAINER */
.container {
  text-align: center;
}

/* WINDMILL */
.windmill {
  width: 200px;
  height: 200px;
  position: relative;
  margin: 30px auto;
  animation: spin 5s linear infinite;
}

.center {
  width: 20px;
  height: 20px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* BLADES */
.blade {
  width: 10px;
  height: 90px;
  background: currentColor;
  position: absolute;
  top: 10px;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 5px;
}

.b1 { transform: translateX(-50%) rotate(0deg); }
.b2 { transform: translateX(-50%) rotate(90deg); }
.b3 { transform: translateX(-50%) rotate(180deg); }
.b4 { transform: translateX(-50%) rotate(270deg); }

/* CONTROLS */
.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="range"] {
  width: 200px;
}

button {
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  font-weight: bold;
}

/* ANIMATION */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
