/* Base styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  text-align: center;
  position: relative;
  margin: 0;
}

/* Launcher container */
.container {
  display: inline-block;
  background-color: white;
  padding: 20px 30px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Headings */
h1 {
  margin-bottom: 20px;
}

/* Difficulty buttons */
.toolbar {
  margin-bottom: 20px;
}
.difficulty {
  background-color: #eee;
  border: 1px solid #ccc;
  margin: 0 5px;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}
.difficulty:hover {
  background-color: #ddd;
}

/* Form layout */
.config-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.config-form label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  gap: 0;
}
input[type="number"] {
  width: 100px;
  padding: 5px;
  font-size: 1em;
  text-align: center;
}

/* Go button */
.go-button {
  margin-top: 20px;
  padding: 10px 24px;
  background-color: gray;
  color: fcba03;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: #fcba03
}
.go-button:hover {
  background-color: #45a049;
}
.go-button:active {
  transform: scale(0.97);
}

/* Go-back button (same as game page) */
.go-back-button {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #ddd;
  border: 1px solid #aaa;
  padding: 6px 12px;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.go-back-button:hover {
  background-color: #ccc;
}
.go-back-button:active {
  transform: scale(0.95);
}

/* Theme switch container */
.theme-switch {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 24px;
}

/* Hidden checkbox */
.theme-switch input {
  display: none;
}

/* Slider (pill) */
.theme-switch .slider {
  flex: none;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  position: relative;
  transition: background-color 0.2s ease;
}
.theme-switch .slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.theme-switch input:checked + .slider {
  background-color: #666;
}
.theme-switch input:checked + .slider::before {
  transform: translateX(26px);
}

/* Sun & Moon icons */
.theme-switch::before {
  content: "☀️";
  font-size: 1.2rem;
  margin-right: 8px;
}
.theme-switch::after {
  content: "🌙";
  font-size: 1.2rem;
  margin-left: 8px;
}

/* Dark mode overrides (identical to game page) */
body.dark-mode {
  background-color: #2c2a2a;
  color: #fcba03;
}
body.dark-mode .container {
  background-color: #333;
  border-color: #555;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
body.dark-mode h1,
body.dark-mode .difficulty,
body.dark-mode .config-form label,
body.dark-mode input[type="number"] {
  color: #fcba03;
}
body.dark-mode .difficulty {
  background-color: #555;
  border-color: #555;
}
body.dark-mode .difficulty:hover {
  background-color: #555;
}
body.dark-mode .go-button {
}
body.dark-mode .go-button:hover {
  background-color: #444;
}
body.dark-mode .go-back-button {
  background-color: #333;
  border-color: #555;
  color: #fcba03;
}
body.dark-mode .go-back-button:hover {
  background-color: #444;
}
body.dark-mode input[type=number]{
  color:gray;
}