@font-face {
  font-family: roboto;
  src: url(../Share_Tech_Mono/ShareTechMono-Regular.ttf);
}
* {
  font-family: roboto;
}
html,
body {
  margin: 0;
  padding: 0;
  background-color: black;
}
/* Without this the canvas is inline, and its line-height descender adds a few
   pixels below it - enough to raise a scrollbar on a page sized to the window. */
canvas {
  display: block;
}

/* Buttons were solid #eee blocks 230px wide - the brightest thing on the page,
   pulling the eye off the score. Ghost styling puts them back in the
   background where a transport control belongs. */
button {
  box-sizing: border-box;
  white-space: nowrap;
  height: 40px;
  padding: 0 18px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e8e8ec;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
button:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
button:active {
  background-color: rgba(255, 255, 255, 0.16);
}

/* Native selects render as bright OS chrome against the dark canvas. */
select {
  box-sizing: border-box;
  height: 26px;
  padding: 0 6px;
  background-color: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: #e8e8ec;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
select:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* p5 builds the radio as inline labels; without nowrap the last option drops
   onto a second line and overlaps whatever is beneath it. The colour is set
   from JS to whichever wave is selected. */
div:has(input[type="radio"]) {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.04em;
}
input[type="radio"] {
  accent-color: currentColor;
  margin: 0 5px 0 10px;
  vertical-align: middle;
  cursor: pointer;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  height: 1px;
  width: 64px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  background: #dddde2;
  border-radius: 50%;
  cursor: pointer;
}
