/* Wii Tanks Game Stylesheet */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #87CEEB 0%, #E0F6FF 100%);
  overflow: hidden;
}

canvas {
  border: none;
  display: block;
}

/* Game Controls HUD */
#game-controls {
  background: rgba(0, 0, 0, 0.75) !important;
  border: 3px solid #444 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px);
  font-size: 13px !important;
}

#game-controls h3 {
  background: linear-gradient(135deg, #3366cc, #1a4d99);
  padding: 8px 12px !important;
  border-radius: 6px;
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: 0.5px;
}

#game-controls button {
  background: linear-gradient(135deg, #3366cc, #1a4d99) !important;
  border: 2px solid #0a2540 !important;
  border-radius: 6px !important;
  color: #fff !important;
  padding: 6px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-weight: bold !important;
}

#game-controls button:hover {
  background: linear-gradient(135deg, #4477dd, #2a5daa) !important;
  box-shadow: 0 4px 12px rgba(51, 102, 204, 0.4) !important;
  transform: scale(1.05) !important;
}

.control-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 10px 0 !important;
  padding: 8px 10px !important;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border-left: 3px solid #3366cc;
}

.control-row label {
  width: 160px !important;
  display: inline-block !important;
  color: #ddd !important;
  font-weight: 500;
}

.control-row output {
  width: 50px !important;
  display: inline-block !important;
  text-align: right !important;
  color: #a8d0ff !important;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.control-row input[type=range] {
  flex: 1 !important;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1a4d99, #3366cc);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.control-row input[type=range]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8d0ff, #d0e9ff);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #0a2540;
  transition: all 0.2s ease;
}

.control-row input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(168, 208, 255, 0.5);
}

.control-row input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a8d0ff, #d0e9ff);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #0a2540;
  transition: all 0.2s ease;
}

.control-row input[type=checkbox] {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  accent-color: #3366cc !important;
  transform: scale(1.3) !important;
}

#stageLabel {
  font-weight: 700 !important;
  color: #a8d0ff !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#controlsBody {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

#controlsBody::-webkit-scrollbar {
  width: 6px;
}

#controlsBody::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

#controlsBody::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3366cc, #1a4d99);
  border-radius: 3px;
}

/* Tip text */
#game-controls > div > div:last-child {
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px !important;
  color: #aaa !important;
  font-style: italic;
}

/* Legacy CSS */
div.answerbox {
  border: 2px solid blue;
  margin: 5px;
  padding: 5px;
  border-radius: 5px;
}

div.notebox {
  border: 2px solid darkred;
  margin: 5px;
  padding: 5px;
  border-radius: 5px;
  width: 600px;
}

.box-container {
  width: min-content;
}

.box-label {
  font-style: italic;
  text-align: center;
}

.box-tile {
  flex-basis: min-content;
}