
body {
  margin: 0;
  padding: 12px;
  font-family: sans-serif;
  background: #111;
  color: #eee;
  touch-action: manipulation;
}

canvas {
  border: 1px solid #555;
  display: block;
  margin: 12px auto;
  image-rendering: pixelated;
  touch-action: none;
}

#controls {
  text-align: center;
}

input[type=range] {
  width: 75%;
}

#hiddenInput {
  position: absolute;
  opacity: 0; 
  width: 1px;
  height: 1px;
  font-size: 16px;
  border: none;
  background: transparent;
  color: transparent;
  z-index: 10;
}

#computeBtn {
  padding: 8px 16px;
}
  
html, body {
  overflow-x: hidden;
  touch-action: manipulation;
}

#sliderWrapper {
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#sliderContainer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

#angleSlider {
  -webkit-appearance: none;
  width: 100%;
  flex: 1;
  height: 8px;
  background: #444;
  border-radius: 4px;
  outline: none;
  transition: background 0.2s;
  min-width: 0;
  touch-action: none;
}

#angleSlider:hover {
  background: #666;
}

#angleSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #4caf50;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#angleSlider::-webkit-slider-thumb:hover {
  background: #81c784;
  transform: scale(1.1);
}

#angleSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #4caf50;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#angleSlider::-moz-range-thumb:hover {
  background: #81c784;
  transform: scale(1.1);
}

#angleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}


#angleLabel {
  min-width: 90px;
  font-size: 1.25em;
  color: #eee;
  white-space: nowrap;
}

#backHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

#backText {
  color: #eee;
  font-size: 1.25em;
}

#backBtn {
  font-size: 16px;
  padding: 8px 16px;
}