:root {
	--bg1: #0f0f0f;
	--bg2: #1f1f1f;
	--bg3: #2f2f2f;
	--bg4: #3f3f3f;

	--fg1: #efefef;
	--fg2: #7f7f7f;
}

html {
	height: 100vh;
}

* {
	color: var(--fg1);
}

body {
	display: flex;
	flex-direction: column;
	background-color: var(--bg1);
	height: 100%;
	margin: 0;
	padding: 24px;
	gap: 24px;
	box-sizing: border-box;
}

main {
	display: flex;
	height: 100%;
	gap: 24px;
	box-sizing: border-box;
}

main > * {
	flex: 1 1 0;
}

#editor {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

button {
	padding: 12px;
	cursor: pointer;
	background-color: #005f00;
	border: 1px solid #00ff00;
	font-size: 150%;
	font-weight: bold;
}

button:hover {
	background-color: #006f00;
}

button:active {
	background-color: #007f00;
}

textarea {
	background-color: var(--bg2);
	border: 1px solid var(--fg2);
	padding: 24px;
	font-size: 200%;
	resize: none;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

textarea:focus {
	outline: none !important;
	border: 1px solid var(--fg1);
}

canvas {
	border: 1px solid var(--fg2);
	max-width: 100%;
}

#error {
	font-size: 250%;
	font-weight: bold;
	font-family: monospace;
}

#error-red {
	color: #ff3f3f;
}
