@font-face {
  font-family: 'CPMono';
  src: url('../fonts/CPMono_07_plain.otf') format('opentype');
}

html, body {
  font-size: 22px;
  margin: 0;
  padding: 0;
  font-family: 'CPMono', sans-serif;
  background: #fff;
}

canvas { display: block; }

button, input, select, div {
  font-family: 'CPMono', sans-serif;
  font-size: 22px;
}

/* ── BUTTONS ── */
button {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 8px 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.15s ease, color 0.15s ease;
}

button:hover {
  background-color: #000;
  color: #fff;
}

button:active {
  background-color: #333;
  color: #fff;
}

/* ── TEXT INPUTS / SELECT ── */
input, select {
  background-color: #fff;
  color: #000;
  border: 1px solid #bbb;
  font-family: 'CPMono', sans-serif;
  font-size: 17px;
  outline: none;
  transition: border 0.15s ease;
}

input:focus, select:focus { border-color: #000; }
input:hover, select:hover { border-color: #000; }

/* ── COLOR PICKER ── */
input[type="color"] {
  padding: 2px;
  width: 60px;
  height: 30px;
  border: 1px solid #bbb;
  background-color: #fff;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch { border-radius: 2px; }
input[type="color"]::-moz-color-swatch    { border-radius: 2px; }

/* ── RANGE SLIDER ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
  height: 20px;
  cursor: pointer;
  padding: 0;
  border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: #000;
  border-radius: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  background: #000;
  border-radius: 50%;
  margin-top: -6px;
}

input[type="range"]::-moz-range-track {
  height: 1px;
  background: #000;
  border-radius: 0;
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: #000;
  border-radius: 50%;
  border: none;
}

/* ── CHECKBOX ── */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #000;
  background-color: #fff;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  border-radius: 3px;
  transition: background 0.15s ease;
  margin-left: -5px;
  margin-right: 5px;
}

/* checked reads as a single black dot centered in the box, which keeps its
   own fill either way */
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000;
}

input[type="checkbox"]:hover { border-color: #000; }

/* ── LABEL ── */
label {
  color: #000;
  font-family: 'CPMono', sans-serif;
  margin-left: 5px;
  cursor: pointer;
}
