body {
	background-color: black;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: none;
	background-position: center;
}

.game {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	position: relative;
}

canvas {
	background-color: black;
	background-size: contain;
	border: 1px grey solid;
	border-radius: 12px 12px 0 0;
	width: 90vh;
	height: 90vh;
}

input {
	text-transform: uppercase;
	background-color: black;
	border: 1px grey solid;
	border-radius: 12px;
	color: #fff;
	font-family: "MS Gothic";
	font-size: 4vh;
	position: absolute;
	top: 70%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 4px;
	width: 3.1em;
	text-align: center;
	text-shadow: 0 0 8px #bbb;
}

input:focus {
	box-shadow: 0 0 12px #bbb;
	outline: none;
}

.score {
	background-color: black;
	display: flex;
	align-items: center;
	color: #fff;
	font-family: "Consolas";
	font-size: 1.2rem;
	width: 90vh;
	border: 1px grey solid;
	border-radius: 0 0 5px 5px;
	margin: -1px;
	text-indent: 12px;
	text-shadow: 0 0 8px #bbb;
}

.hscore {
	background-color: black;
	border: 1px grey solid;
	border-radius: 12px;
	width: 40vh;
	height: 94vh;
	margin: 0 6px;
	text-align: center;
	color: #fff;
	font-family: "MS Gothic";
	font-size: 3vh;
	text-shadow: 0 0 8px #bbb;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

#name {
	flex: 2;
}

#highscorelist {
	padding: 0 8% 0 0;
	font-size: 3.9vh;
	line-height: 32px;
	text-align: left;
}

#item {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

#number {
	flex: 1;
	text-align: right;
}

#value {
	flex: 1.3;
	text-align: right;
}

#score {
	margin: 0 6px;
}

#tsol {
	margin: 6px 0;
	font-size: 1.3vh;
}

a {
	text-decoration: none;
	color: white;
}

#joystick {
	position: fixed;
	left: 50%;
	bottom: 10%;
	width: 200px;
	height: 200px;
	background-color: rgba(169, 169, 169, 0.4);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	transform: translateX(-50%);
	z-index: 100;
}

#joystickBase {
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	position: absolute;
}

#joystickCircle {
	width: 50px;
	height: 50px;
	background-color: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	position: absolute;
}

@media (orientation: landscape) {
	#joystick {
		display: none;
	}
}

@media (orientation: portrait) {
	body {
		flex-direction: column;
		margin: 0;
		height: 100vh;
		overflow: hidden;
	}

	.game {
		top: 6%;
		position: absolute;
		width: 100vw;
		height: 100vw;
	}

	canvas {
		background-color: #1e1e1e;
		width: 100vw;
		height: 100vw;
	}

	.score {
		width: 80vw;
		font-size: 1rem;
		position: absolute;
		top: 0;
		padding: 10px;
		justify-content: space-between;
	}

	.hscore {
		background-color: rgba(0, 0, 0, 0.7);
		display: none;
	}

	#highscorelist {
		padding: 0 5%;
		font-size: 3vh;
	}

}