/* Look of the picture boards. Recreated: the original stylesheet was not in the videos. */
:root {
  /* the colours of PhysikPlay: they differ in brightness too, so they also work for colour-blind students */
  --a: #56b4f5; --b: #ff6b5e; --c: #c792ff; --k: #e7edef; --accent: #aac8fb;
  --a-soft: #56b4f533; --b-soft: #ff6b5e33; --c-soft: #c792ff33; --k-soft: #e7edef1f;
  --ink: #f0f4f5; --line: #6d7f88; --paper: #10171b; --grid: #1f2c33;
  --soft: #a3b3ba; --card: #19242a; --track: #43545d;
}
@media (prefers-color-scheme: light) { :root:not([data-colours=dark]) { --a: #1565c0; --b: #b9523a; --c: #7b1fa2; --k: #181c1f; --accent: #22416c; --a-soft: #1565c033; --b-soft: #b9523a33; --c-soft: #7b1fa233; --k-soft: #181c1f1f;
  --ink: #181c1f; --line: #747780; --paper: #f4f7fb; --grid: #e5e8ec; --soft: #43474f; --card: #ffffff; --track: #c4c6d0; } }
html[data-colours=light] { --a: #1565c0; --b: #b9523a; --c: #7b1fa2; --k: #181c1f; --accent: #22416c; --a-soft: #1565c033; --b-soft: #b9523a33; --c-soft: #7b1fa233; --k-soft: #181c1f1f;
  --ink: #181c1f; --line: #747780; --paper: #f4f7fb; --grid: #e5e8ec; --soft: #43474f; --card: #ffffff; --track: #c4c6d0; }
.board { position: relative; width: 100%; height: 100%; }
.board svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; font-family: system-ui, sans-serif; }
svg.held { cursor: grabbing; }
svg.near { cursor: grab; }

/* colours, used on lines, text and fills alike */
.c-a { --hue: var(--a); --soft: var(--a-soft); }
.c-b { --hue: var(--b); --soft: var(--b-soft); }
.c-c { --hue: var(--c); --soft: var(--c-soft); }
.c-k, .c-undefined { --hue: var(--k); --soft: var(--k-soft); }

/* handles */
.knob { cursor: grab; outline: none; --hue: var(--accent); }
.knob .halo { fill: var(--accent); opacity: 0.16; transition: opacity 0.15s; }
.knob .dot { fill: var(--paper); stroke: var(--accent); stroke-width: 3; }
.knob .arrows { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.knob:hover .halo, .knob:focus .halo, .knob.held .halo { opacity: 0.32; }
.knob:focus-visible .dot { stroke-width: 5; }
.locked .knobs { display: none; }

/* text */
text { fill: var(--ink); }
.mark { font-size: 19px; font-weight: 650; fill: var(--hue, var(--ink)); }
.letter { font-size: 18px; font-weight: 600; fill: var(--ink); }
.tick { font-size: 14px; fill: var(--soft); }
.tick.large { font-size: 20px; fill: var(--ink); }
.note { font-size: 17px; fill: var(--soft); }
.digit { font-size: 30px; font-family: ui-monospace, Menlo, monospace; fill: var(--hue, var(--ink)); }
.small { font-size: 15px; font-family: ui-monospace, monospace; fill: var(--hue, var(--ink)); }

/* lines */
.base { stroke: var(--ink); stroke-width: 2.5; }
.base.thin, .thin { stroke-width: 1.5; }
.grid { stroke: var(--grid); stroke-width: 1; }
.grid.axis { stroke: var(--soft); stroke-width: 1.5; }
.guide { stroke: var(--grid); stroke-dasharray: 3 4; }
.notch { stroke: var(--ink); stroke-width: 1.4; }
.notch.main, .notch.hour { stroke-width: 2.4; }
.notch.zero { stroke-width: 3; }
.arm, .edge, .frame, .clock, .dial, .round { stroke: var(--ink); stroke-width: 2.5; fill: none; }
.dial, .round, .clock { fill: var(--paper); }
.line { stroke: var(--hue, var(--a)); stroke-width: 3; }
.side { stroke: var(--hue); stroke-width: 4; stroke-linecap: round; }
.side.soft { opacity: 0.55; }
.dashed, .level { stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 5; fill: none; }
.level { stroke: var(--c); }
.link { stroke: var(--a); stroke-width: 1.2; opacity: 0.6; }
.cut { stroke: var(--ink); stroke-width: 1.2; opacity: 0.6; }
.cut.whole { stroke-width: 2.6; opacity: 1; }
.cut.faint { opacity: 0.25; }
.block-cut { stroke: rgba(0, 0, 0, 0.25); stroke-width: 1; }
.path { fill: none; stroke: var(--hue, var(--a)); stroke-width: 3; }
.ray { stroke: var(--a); stroke-width: 7; opacity: 0.6; stroke-linecap: round; }
.bound { fill: var(--paper); stroke: var(--a); stroke-width: 3; }
.bound.closed { fill: var(--a); }
.jump { fill: none; stroke: var(--hue); stroke-width: 2.5; }
.tip { fill: none; stroke: var(--hue); stroke-width: 2.5; stroke-linecap: round; }
.brace { fill: none; stroke: var(--ink); stroke-width: 2; }
.wedge { fill: var(--a-soft); } .wedge-edge { stroke: var(--a); stroke-width: 1.5; }
.gap { stroke: var(--c); stroke-width: 3; stroke-dasharray: 2 5; }
.axis3 { stroke: var(--soft); stroke-width: 1.8; fill: none; }
.hand-short { stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
.hand-long { stroke: var(--b); stroke-width: 5; stroke-linecap: round; }
.square { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.right { fill: var(--ink); }

/* areas */
.area { fill: var(--a-soft); opacity: 0.8; }
.region-a, .region-b, .region-c { fill: var(--soft); opacity: 0.85; }
.region-a { --soft: var(--a-soft); } .region-b { --soft: var(--b-soft); } .region-c { --soft: var(--c-soft); }
.arc { fill: var(--soft); stroke: var(--hue); stroke-width: 2; }
.fill { fill: var(--hue); opacity: 0.85; }
.fill.soft { opacity: 0.35; }
.both { fill: var(--c); opacity: 0.55; }
.bar, .back { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.patch { fill: var(--b-soft); stroke: var(--b); stroke-width: 1.5; opacity: 0.8; }
.patch-a { fill: var(--a-soft); stroke: var(--a); } .patch-b { fill: var(--b-soft); stroke: var(--b); }
.patch-c { fill: var(--c-soft); stroke: var(--c); } .patch-k { fill: var(--k-soft); stroke: var(--k); }
.hole { fill: var(--paper); stroke: var(--ink); stroke-dasharray: 5 4; }
.slice { fill: var(--a-soft); stroke: var(--a); stroke-width: 1; } .slice.odd { fill: var(--b-soft); stroke: var(--b); }
.tile { fill: var(--a-soft); stroke: var(--a); } .tile.odd { fill: var(--b-soft); stroke: var(--b); }
.column { fill: var(--k-soft); stroke: var(--k); } .column.on { fill: var(--a); stroke: var(--a); }
.face { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.face.front { fill: #56b4f540; } .face.side { fill: #56b4f528; } .face.top { fill: #56b4f560; }
.strip { fill: var(--soft); stroke: var(--hue); stroke-width: 2; }
.field { fill: var(--card); stroke: var(--line); }
.place { fill: none; stroke: var(--track); stroke-width: 1.5; }
.counter { fill: var(--hue); }
.counter.gone { fill: none; stroke: var(--hue); stroke-dasharray: 3 3; }
.group { fill: none; stroke: var(--line); stroke-dasharray: 4 4; }
.dot-k, .dot-c { fill: var(--k); } .dot-c { fill: var(--b); } .dot-empty { fill: none; stroke: var(--b); stroke-dasharray: 3 3; }
.plate { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.block { fill: var(--soft); stroke: var(--hue); stroke-width: 1.5; }
.box { fill: #ffad3333; stroke: #ffad33; stroke-width: 2; }
.ball { fill: var(--hue); }
.stand { fill: var(--track); } .beam { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; } .pan { stroke: var(--ink); stroke-width: 4; }
.spot { fill: var(--ink); }
.spot.c-a, .spot.c-b, .spot.c-c { fill: var(--hue); }
.coin { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1.5; }
.coin.copper { fill: #c97a45; } .coin.gold { fill: #e3b341; } .coin.silver { fill: #c8ccd2; }
.coin.silver-gold { fill: #c8ccd2; } .coin.gold-silver { fill: #e3b341; }

rect.note { fill: #3fcf9e33; stroke: #3fcf9e; }

/* Graphs worked out in JavaScript (plot shape) */
.thin-path { stroke-width: 2; stroke-dasharray: 7 6; opacity: 0.8; }
.spot.c-a { fill: var(--a); } .spot.c-b { fill: var(--b); } .spot.c-c { fill: var(--c); } .spot.c-k { fill: var(--k); }
