/* Shared styles for the projected lessons. The projector shows black as "no light",
   so pages are black and anything not drawn stays dark on the table. */

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #eee;
  overflow: hidden;
  font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.pm-surface canvas,
canvas.pm-table {
  display: block;
}

.pm-hud {
  position: fixed;
  left: 12px;
  top: 10px;
  white-space: pre;
  font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
  color: #9ef;
  text-shadow: 0 0 3px #000;
  z-index: 1500;
  pointer-events: none;
}

.pm-hud[hidden],
.pm-panel[hidden],
.pm-help[hidden] {
  display: none;
}

.pm-help {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 40, 40, 0.85);
  color: #0ff;
  font-size: 13px;
  z-index: 1001;
  white-space: nowrap;
}

.pm-panel {
  position: fixed;
  z-index: 2000;
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px;
  color: #eee;
}

.pm-panel p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #aaa;
}

.pm-panel canvas {
  display: block;
  width: 100%;
  height: auto;
}

.pm-calibrate {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(50vw, 640px);
}

.pm-calibrate p {
  margin: 0 0 8px;
  color: #f9f;
  font-size: 14px;
}

.pm-debug {
  right: 12px;
  bottom: 12px;
  width: 320px;
}
