body {
  font-family: sans-serif;
  text-align: center;
  background: #f0f0f0;
  margin: 0;
  padding: 0;
}

h1 {
  margin-top: 20px;
  font-size: 24px;
}

canvas {
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-top: 20px;
  max-width: 90vw;
  height: auto;
}

.controls {
  margin-top: 20px;
  font-size: 18px;
}

input[type="number"] {
  width: 60px;
  font-size: 16px;
  text-align: center;
}

button {
  margin-top: 10px;
  font-size: 16px;
  padding: 6px 12px;
  border: none;
  background-color: #3498db;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

@media (max-width: 600px) {
  h1 {
    font-size: 20px;
  }

  .controls {
    font-size: 16px;
  }

  input[type="number"] {
    width: 50px;
    font-size: 14px;
  }

  button {
    font-size: 14px;
    padding: 5px 10px;
  }
}

.time-display {
  font-size: 28px;
  font-weight: bold;
  margin-top: 15px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
    color: #fff;
  }

  canvas {
    background-color: #222;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
  }

  .controls {
    color: #fff;
  }

  input[type="number"] {
    background-color: #333;
    color: #fff;
    border: 1px solid #666;
  }

  button {
    background-color: #555;
    color: #fff;
  }

  button:hover {
    background-color: #777;
  }

  .time-display {
    color: #fff;
  }
}
