body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  background: #fffef0;
  font-family: Helvetica, Arial, sans-serif;
}

#gameTitle {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#gameCanvas {
  border: 2px solid #333;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Modern Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}

input[type="range"]:hover {
  opacity: 1;
  transform: scaleY(1.2);
}

input[type="range"]:active {
  transform: scaleY(1.3);
}

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(102, 126, 234, 0.1);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(102, 126, 234, 0.15);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(102, 126, 234, 0.2);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #667eea;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(102, 126, 234, 0.1);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(102, 126, 234, 0.15);
}

input[type="range"]::-moz-range-thumb:active {
  transform: scale(1.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(102, 126, 234, 0.2);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
}

/* Label styling for better appearance */
label {
  color: #333;
  font-weight: 500;
}

#perceptsPanel label {
  color: #555;
  transition: color 0.2s;
}

#perceptsPanel label:hover {
  color: #667eea;
}

#instructionTextContainer {
  width: 1000px;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  /* Align with canvas: canvas is 1000px, side panel is 200px + 20px margin = 220px
     Total container width is 1220px, so offset by half the difference: (1220 - 1000) / 2 = 110px to the left */
  position: relative;
  left: -110px;
}

#instructionText, #instructionText2, #instructionText3, #instructionText4 {
  text-align: left;
  color: #666;
  font-size: 16px;
  margin-top: 15px;
  font-style: normal;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

#instructionText {
  font-weight: bold;
}

#instructionText2, #instructionText3, #instructionText4 {
  margin-top: 5px;
} 