/* Basic page styling */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
  /* Default to light theme variables */
  --bg: #ffffff;
  --text: #111111;
  --accent: #4CAF50;
  background-color: var(--bg);
  color: var(--text);
}

.main-container {
  text-align: center;
  padding-top: 100px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 34px;
  margin-top: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider styling */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(36px);
}

/* Background change when ON */
/* Keep a legacy class (on) for compatibility, map to light theme */
body.on {
  --bg: #ffffff;
  --text: #111111;
}

/* Dark theme */
body.dark {
  --bg: #0b0b0b;
  --text: #e6e6e6;
  --accent: #6fbf73;
}

/* Apply variables */
body {
  background-color: var(--bg);
  color: var(--text);
}