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

body {
	color: #333;
	margin: 0;
	padding: 8px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: light) {
    html.os-default, html.os-default > body {
    	color-scheme: light;
        background-color: #FFFFFF;
        color: #000;
    }
}
@media (prefers-color-scheme: dark) {
    html.os-default, html.os-default > body {
        color-scheme: dark;
        background-color: #2e2e2e;
        color: #FFF;
    }
}
html.light, html.light > body {
    color-scheme: light;
    background-color: #FFFFFF;
    color: #000;
}
html.dark, html.dark > body {
    color-scheme: dark;
    background-color: #2e2e2e;
    color: #FFF;
}
a, a:visited, html.light a, html.light a:visited {
	color: rgb(0,100,200);
	text-decoration: none;
}
@media (prefers-color-scheme: light) {
	a, a:visited {
		color: rgb(0,100,200);
		text-decoration: none;
	}
}
@media (prefers-color-scheme: dark) {
	a, a:visited {
		color: #4baffb;
	}
}
html.dark a, html.dark a:visited {
	color: #4baffb;
}

a:hover {
	text-decoration: underline;
}


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 {
	color: #333;
	background-color: #f4f4f4;
	outline: none;
}

button:disabled {
	color: #999;
}

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

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