/* ansi-dungeon.css - Complete styling for ANSI Dungeon port */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
	background-color: black;
	color: #bbb;
	font-family: 'Courier New', monospace;
}

body {
	height: 100%;
	overflow: hidden;
}

#text-mode-holder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000000;
	display: flex;
	align-items: center;
	justify-content: center;
}

#game-container {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: black;
}

#loading-message {
	color: white;
	font-size: 16px;
	text-align: center;
	text-shadow: 0px 0px 2px white,
	0px 0px 1px white;
	padding: 20px;
	background-color: rgba(50, 50, 50, 0.75);
	/* radial gradient in top-left corner, fading to transparent black */
	background: radial-gradient(
		circle at top left,
		rgba(50, 50, 50, 0.9 ),
		rgba(40, 40, 40, 0.8 ) 60%,
		rgba(30, 30, 30, 0.75)
	);
	border: 2px solid white;
	padding: 20px;
	margin: 20px;
	border-radius: 5px;
}

.controls {
	position: fixed;
	bottom: 0px;
	left: 0px;
	/* radial gradient in top-left corner, fading to transparent black */
	background: radial-gradient(
		circle at top left,
		rgba(0, 60, 0, 0.9 ),   /* dark green with transparency */
		rgba(0, 10, 0, 0.8 ) 60%,
		rgba(0, 0,  0, 0.75)      /* black with transparency */
	);
	padding: 8px;
	border: 1px solid #333;
	border-radius: 5px;
	font-size: 12px;
	max-width: 300px;
	color: #bbb;
	text-shadow: 0px 0px 1px #bbb,
				 0px 0px 1px black,
				 0px 0px 2px black,
				 0px 0px 3px black;
}

.controls hr {
	border: 1px solid #040;
	margin: 5px 0;
}

.controls h4 {
	color: #0f0;
	text-shadow: 0px 0px 1px #0f0,
				 0px 0px 1px #0f0,
				 0px 0px 1px black,
				 0px 0px 2px black,
				 0px 0px 3px black;
	margin-bottom: 10px;
	font-size: 14px;
}

.controls-key {
	line-height: 1.6;
}

.controls-key strong {
	color: #0f0;
	text-shadow: 0px 0px 1px #0f0,
				 0px 0px 1px #0f0,
				 0px 0px 1px black,
				 0px 0px 2px black,
				 0px 0px 3px black;
}

.controls-key em > strong {
	color: #aaa;
	text-shadow: 0px 0px 1px #aaa,
				 0px 0px 1px black,
				 0px 0px 2px black,
				 0px 0px 3px black;
}

.error {
	color: #f22;
	text-shadow: 0px 0px 2px #f30,
				 0px 0px 1px #f30;
	padding: 20px;
	background-color: rgba(0, 0,  0, 0.75);
	/* radial gradient in top-left corner, fading to transparent black */
	background: radial-gradient(
		circle at top left,
		rgba(60, 0, 0, 0.9 ),
		rgba(50, 0, 0, 0.8 ) 60%,
		rgba(40, 0,  0, 0.75)
	);
	border: 2px solid #f30;
	padding: 20px;
	margin: 20px;
	border-radius: 5px;
}

.error h2 {
	margin-bottom: 10px;
}

.error ul {
	list-style: none;
	margin-top: 10px;
}

.error li {
	margin: 5px 0;
}

canvas {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

@media (max-width: 768px) {
	.controls {
		font-size: 10px;
		padding: 5px;
		max-width: 250px;
	}
}
