@font-face {
	font-family: "DejaVu Sans Mono";
	src: url("/assets/fonts/dejavu-mono-eu.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@media (max-width: 620px) {
	html { font-size: 70%; }
}

h1 {
	margin: 0;
}
h2 {
	margin: 0;
}
h3 {
	margin: 0;
}
a {
	color: white;
}

/*accessibility*/
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; }
}

button { 
	appearance: none;
	-webkit-appearance: none;

	margin: 0;
	padding: 0;
	border: 0;
	background: none;

	font: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	color: white;

	vertical-align: baseline;
	text-decoration: underline;
	cursor: pointer;
}
button::-moz-focus-inner {
	padding: 0;
	border: 0;
}
button:focus-visible {
	outline: 2px solid rgba(255,255,255, 1);
}

textarea {
	color: white;
	background-color: black;
	border: 1px solid white;
}
textarea:focus-visible {
	outline: 2px solid rgba(255,255,255, 1);
}

input[type="checkbox"], input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;

	box-sizing: border-box;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0.5rem;
	border: 2px solid white;
	background: black;

	display: inline-grid;
	place-content: center;
	vertical-align: middle;
	cursor: pointer;
}
input[type="radio"] {
	border-radius: 50%;
}

input[type="checkbox"]::before, input[type="radio"]::before {
	content: "";
	visibility: hidden;
}
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
	visibility: visible;
}
input[type="checkbox"]::before {
	width: 1rem;
	height: 0.25rem;
	border-left: 2px solid white;
	border-bottom: 2px solid white;
	transform: translateY(-0.05rem) rotate(-45deg);
}
input[type="radio"]::before {
	width: .75rem;
	height: .75rem;
	border-radius: 50%;
	background: white;
}

input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
	outline: 2px solid rgba(255,255,255, 1);
}

p {
	margin-bottom: 0;
	margin-top: 5px;
}
ol {
	margin: 0 0 0 0;
}

body {
	position: relative;
	font: 1.3rem/1.7 "DejaVu Sans Mono", monospace;
	color: white;
	background-color: black;
	min-height: 100dvh;
	width: 100dvw;
	margin: 0;
	
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bg, .bg-cover {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.bg {
  z-index: -1;
}
.bg-cover {
  z-index: 10;
}

a:focus-visible {
  outline: 2px solid rgba(255,255,255, 1);
}

*::selection {
  color: rgba(0, 0, 0, 1);
  background-color: rgba(255,255,255, 1);
}

td {
	vertical-align: top;
	padding-right: 0.5rem;
}
td.l {
	text-align: start;
}
td.r {
	text-align: end;
}
td.c {
	/* padding: 0px 10px; */
	text-align: center;
}

pre {
	white-space: pre-wrap;
	word-break: break-all;
	font-size: 1rem;
	max-height: 10rem;
	overflow-y: auto;
	border: 1px solid rgb(255,255,255);
}

.message {
	z-index: 10;	

	padding: 5px;
	margin: 10px 10px;
}

.compact {
	line-height: 1.3;
}

.ps {
	font-style: italic;
	font-size: 1rem;
}

.anim {
	position: absolute;
	transform-style: preserve-3d;
}
