:root {
	--background: white;
	--canvas-background: white;
	--color: #333;
	--subtle-color: #444;
	--button-background: initial;
	--button-color: #333;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]),
	:root[data-theme='auto'] {
		--background: #333;
		--canvas-background: #666;
		--color: white;
		--subtle-color: #bbb;
		--button-background: #666;
		--button-color: white;
	}
}

:root[data-theme='dark'] {
	--background: #333;
	--canvas-background: #555;
	--color: white;
	--subtle-color: #bbb;
	--button-background: #666;
	--button-color: white;
}

* {
	position: relative;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

	background-color: var(--background);
	color: var(--color);
	transition: background 500ms ease-in-out, color 200ms ease;
}

a {
	color: rgb(0, 100, 200);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:visited {
	color: rgb(0, 80, 160);
}

label {
	display: block;
}

input,
button,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	-webkit-padding: 0.4em 0;
	padding: 0.4em;
	margin: 0 0 0.5em 0;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 2px;
}

input:disabled {
	color: #ccc;
}

button {
	background: var(--button-background);
	color: var(--button-color);
}

/* button:disabled {
	color: #999;
}

button:not(:disabled):active {
	background-color: #ddd;
}

button:focus {
	border-color: #666;
} */

.flow > * {
	margin-top: 16px;
}

.flow > :first-child {
	margin-top: 0;
}

.hr-flow > * + * {
	margin-left: 8px;
}

.flex {
	display: flex;
}

.bold {
	font-weight: bold;
}

.select-none {
	user-select: none;
}

.text-center {
	text-align: center;
}

.m-0 {
	margin: 0;
}
