* {
	font-family: "Arial", sans-serif;
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-size: 16px;
	overflow-y: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	height: 100vh;
	background-color: #000000;
	color: #FFFFFF;
	--footer-height: 3em;
}

body.exit {
	background-color: #ECECEC;
	color: #000000;
}

main {
	height: calc(100vh - var(--footer-height));
	width: 100vw;
}

body:not(.game) #game,
body:not(.game) #fullscreen,
body:not(.exit) #exit {
	display: none;
}

body.game #game {
	position: relative;
	max-height: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0 auto;
	top: 50%;
	transform: translateY(-50%);
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#game-canvas {
	width: 100%;
	height: 100%;
	display: block;
}

body.exit main {
	width: 960px;
	display: flex;
	justify-content: center;
	align-items: center;
}

body.exit main > div {
	outline: 1px solid black;
	padding: 8px 16px;
}

h1 {
	text-align: center;
}

footer {
	width: 100vw;
	height: var(--footer-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 8px;
}

#fullscreen {
	display: flex;
	align-items: center;
	padding: 0 8px;
}

#fullscreen:hover {
	outline: 1px solid white;
	cursor: pointer;
}

#fullscreen svg {
	width: 36px;
	height: 36px;
	fill: #FFFFFF;
}

.progress-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

#progress-bar {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	color: #FFFFFF; /* IE support */

	width: 30em;
	height: 3em;
	border: 2px solid #FFFFFF;
	background-color: black;
}

#progress-bar::-webkit-progress-bar {
	background-color: black;
}

#progress-bar::-webkit-progress-value {
	background-color: white;	
}

#progress-bar::-moz-progress-bar {
	background-color: white;
}
