
html, body, #canvas {
	margin: 0;
	padding: 0;
	border: 0;
}

body {
	color: white;
	background-color: black;
	overflow: hidden;
	touch-action: none;
}

#canvas {
	display: block;
}

#canvas:focus {
	outline: none;
}

#status, #status-splash, #status-progress {
	position: absolute;
	left: 0;
	right: 0;
}

#status, #status-splash {
	top: 0;
	bottom: 0;
}

#status {
	background-color: #0d0d12;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	visibility: hidden;
}

#status-splash {
	max-height: 100%;
	max-width: 100%;
	margin: auto;
}

#status-splash.show-image--false {
	display: none;
}

#status-splash.fullsize--true {
	height: 100%;
	width: 100%;
	object-fit: contain;
}

#status-splash.use-filter--false {
	image-rendering: pixelated;
}

#status-progress, #status-notice {
	display: none;
}

#status-progress {
	bottom: 10%;
	width: 50%;
	margin: 0 auto;
}

#status-notice {
	background-color: #5b3943;
	border-radius: 0.5rem;
	border: 1px solid #9b3943;
	color: #e0e0e0;
	font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
	line-height: 1.3;
	margin: 0 2rem;
	overflow: hidden;
	padding: 1rem;
	text-align: center;
	z-index: 1;
}
		

/* pko-exit: notice after the game quits and the browser hint (tools/web/csp_shell.py) */
#pko-note {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(10% + 1.6rem);
	margin: 0 auto;
	width: max-content;
	max-width: 90%;
	padding: 0.5rem 1rem;
	border-radius: 0.4rem;
	background-color: rgba(13, 13, 18, 0.78);
	color: #ececf4;
	font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
	font-size: 0.9rem;
	line-height: 1.4;
	text-align: center;
	white-space: pre-line;
}

#pko-note.pko-show {
	display: block;
}

#pko-exit {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	background-color: rgba(13, 13, 18, 0.88);
	align-items: center;
	justify-content: center;
}

#pko-exit.pko-show {
	display: flex;
}

#pko-exit-box {
	max-width: 28rem;
	margin: 0 1rem;
	padding: 1.5rem 2rem;
	border: 1px solid #5b6b99;
	border-radius: 0.5rem;
	background-color: #14161f;
	color: #e0e0e0;
	font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
	line-height: 1.4;
	text-align: center;
}

#pko-exit-title {
	margin: 0 0 0.75rem;
	font-size: 1.3rem;
	font-weight: bold;
}

#pko-exit-box p {
	margin: 0.4rem 0;
}

#pko-exit-box .pko-exit-en {
	color: #9a9aa8;
	font-size: 0.85rem;
}

#pko-exit-again {
	margin-top: 1rem;
	padding: 0.55rem 1.4rem;
	border: 1px solid #7c8cc4;
	border-radius: 0.3rem;
	background-color: #2a3358;
	color: #ffffff;
	font-size: 1rem;
	cursor: pointer;
}

#pko-exit-again:hover, #pko-exit-again:focus {
	background-color: #3a4678;
}
