:root {
	--background-color: #1d1d1d;
	--textarea-background-color: #212121;
	--text-color: white;
	--terminal-background-color: black;
	--terminal-text-color: lime;
	--screen-background-color: black;
	--doc-background-color: #0c0c0c;
	--doc-text-color: white;
	--doc-overlay-color: #000000fa;
}

* {
	padding: 0px;
	margin: 0px;
}

body, html {
	width: 100%;
	height: 100%;
	background-color: var(--background-color);
}

textarea {
	resize: none;
	color: var(--text-color);
	background-color: var(--textarea-background-color);
	outline: none;
	border: none;
	box-sizing: border-box;
	padding: 4px;
	font-family: "Roboto Mono", monospace;
}

::-webkit-scrollbar {
	width: 0px;
}

#memory::selection {
	background: 0;
}

#input::selection, #history::selection {
	color: var(--terminal-background-color);
	background-color: var(--terminal-text-color);
}

/* Sides */
#left {
	left: 0px;
}

#right {
	right: 0px;
}

.side {
	width: 50%;
	height: 100%;
	box-sizing: border-box;
	position: fixed;
	top: 0px;
	padding: 5px;
}

/* memory */
#memory {
	width: 100%;
	height: 890px;
	font-size: 12px;
	overflow: hidden;
}

/* registers */
#registers {
	display: flex;
}

.register {
	width: 100%;
	margin: 0px 5px;
}

.register:first-child {
	margin-left: 0px;
}

.register:last-child {
	margin-right: 0px;
}

/* right side */
#screen {
	width: 100%;
	background-color: var(--screen-background-color);
}

#terminal {
	padding: 0px;
	margin: 0px;
	width: calc(50% - 10px);
	height: 400px;
	position: fixed;
}

#terminal textarea {
	font-family: "Roboto Mono", monospace;
	background: var(--terminal-background-color);
	color: var(--terminal-text-color);
	width: 100%;
}

#terminal #history {
	height: calc(100% - 22px);
}

#terminal #input {
	height: 22px;
	padding: 2px;
	position: absolute;
	bottom: 0px;
	left: 0px;
}

/* Documentation */
#documentation {
	position: fixed;
	top: 0px;
	left: 0px;
	background: var(--doc-background-color);
	font-family: sans-serif;
	width: calc(100% - 80px);
	height: calc(100% - 80px);
	padding: 10px;
	margin: 40px;
	box-sizing: border-box;
	z-index: 2;
	color: var(--doc-text-color);
	overflow: scroll;
	line-height: 1.5em;
	font-size: 22px;
}

#docbox::before {
	position: fixed;
	top: 0px;
	left: 0px;
	content: "";
	width: 100%;
	height: 100%;
	background: var(--doc-overlay-color);
	z-index: 1;
}

#docbox {
	transition: opacity 0.1s ease;
}
