body {
  background-color: #111;
  color: #fff;
  font-family: monospace;
  text-align: center;
  padding: 40px;
}

.altimeter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.altimeter {
  position: relative;
  width: 175px;
  height: 175px;
  margin-bottom: 20px;
}

.altimeter-face {
  width: 100%;
  height: 100%;
  z-index: 1;
  position: relative;
}

.needle {
  position: absolute;
  width: 10px;
  height: 65px;
  top: 26px;
  left: 83px;
  transform-origin: bottom center;
  transform: rotate(0deg);
  z-index: 3;
}

.altimeter-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}
.hidden {
  display: none;
}
.subscale-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -120px;
  gap: 6px;
	z-index: 10;
	position: relative;
}

#subscaleSlider {
  position: absolute;
	top: 35%;
  left:  -35%;
  width: 120px;
	transform: rotate(-90deg);
}

#subscaleValueDisplay {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  background-color: #444;
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

#subscaleHoverDisplay {
  position: absolute;
  left: -32%; /* move left of slider */
  top: 50%; /* will be adjusted by JS when moving */
  transform: translateY(-50%);
  background-color: #444;
  color: lime;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  user-select: none;
  pointer-events: none;
  z-index: 20;
  display: none; /* hide by default */
}
