html, body, iframe {
	display: block;
	margin: 0px;
	padding: 0px;
}

@media (prefers-color-scheme: dark) {
	body {
		color: white;
		background: black;
		font-weight: 350;
	}
	.error span {
		font-weight: 650;
	}
	a {
		color: lightblue;
	}
	a:visited {
		opacity: lightskyblue;
	}

	span.copy {
		border-color: white;
	}
	span.copy:after {
		filter: invert(100%);
	}
}

@media (prefers-color-scheme: light) {
	span.copy {
		border-color: black;
	}
}

iframe {
	border: none;
	overflow: scroll;
	width: 100vw;
	height: 100vh;
	resize: both;
}

.request-local-access {
	text-align: center;
	display: block;
	margin: 20vh auto 0;
	padding: 20vh 15px;
	background-color: #8080FF80;
	border-radius: 10px;
	max-width: 75vw;
	line-height: 200%;
}

.error {
	text-align: center;
	display: block;
	margin: 20vh auto 0;
	padding: 15px;
	background-color: #FF000080;
	border-radius: 10px;
	max-width: 50vw;
	line-height: 200%;
}

.error span {
	font-weight: bold;
}

span.copy {
	position: relative;
	border-style: inset;
	border-width: 1px;
	border-radius: 3px;
	padding: 3px;
	cursor: pointer;
	font-family: monospace;
}

span.copy:after {
	content: ' ';
	background: url('./copy.svg') no-repeat right;
	background-size: .9em;
	width: 1.2em;
	height: .9em;
	display: inline-block;
	vertical-align: baseline;
}

span.copy span.feedback {
	display: none;
	position: absolute;
	right: 0;
	bottom: 2em;
	line-height: 100%;
	padding: 9px;
	border-radius: 6px;

	background: #000;
	color: white;
}

span.copy span.feedback::after {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	top: 100%;
	right: 12px;
	border: 6px solid transparent;
	border-bottom: none;

	border-top-color: #000;
}
