@import url("fonts.css");

body { margin: 0; background: #111; color: #eee; font: 15px/1.5 -apple-system, "Helvetica Neue", Arial, sans-serif; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
h1 { margin: 0 0 4px; font-size: 22px; }
h2 { margin: 18px 0 8px; font-size: 16px; color: #ccc; }
h3 { margin: 10px 0 4px; font-size: 14px; font-weight: 600; color: #aaa; }
.note { color: #999; margin: 6px 0; }

.stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.stage #bg, .stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* its own stacking context, so the layers' z-index stays under the preview canvases */
.stage #bg { z-index: 0; }
.stage video { object-fit: cover; opacity: 0; transition: opacity ease-in-out; }
.stage video.on { opacity: 1; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.choices button, .choices label { background: #222; color: #eee; border: 1px solid #444; border-radius: 6px; padding: 7px 12px; font: inherit; cursor: pointer; }
.choices button.on, .choices label:has(input:checked) { background: #2d5a8a; border-color: #4f8ad0; }
.choices input { margin-right: 6px; }
.switch { display: block; margin: 6px 0; }
.pictures button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; width: 190px; }
.pictures img { width: 176px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
#songBackgrounds { border-collapse: collapse; }
#songBackgrounds td { padding: 4px 8px 4px 0; vertical-align: middle; }
#songBackgrounds td.n { color: #999; text-align: right; }
#songBackgrounds .choices { margin: 0; }
#songBackgrounds .pictures button { width: auto; padding: 4px; font-size: 12px; }
#songBackgrounds .pictures img { width: 96px; }
#shoutList td { padding: 4px 10px 4px 0; vertical-align: top; }
#shoutList td.lines { color: #aaa; font-size: 13px; }

button { background: #222; color: #eee; border: 1px solid #555; border-radius: 6px; padding: 5px 10px; font: inherit; cursor: pointer; }
pre { background: #1b1b1b; border: 1px solid #333; border-radius: 6px; padding: 10px; overflow: auto; }
a { color: #8ab4f8; margin-left: 12px; }
