html,
body {
	margin: 0;
	width: 100vw;
	height: 100vh;
}

/* =============== General styling =============== */

* {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	text-shadow: 0px 0px 6px #efea;
	color: #efe;
	font-size: 16px;
}

small {
	font-size: 12px;
}

body {
	background: #121;
}

button:hover,
select:hover {
	background: #454;
	transition: all .25s ease-out;
}

textarea,
button,
select,
input {
	background: #232;
	border: solid 1px #787;
	border-radius: 8px;
	corner-shape: squircle;
	transition: all .5s ease-in;
}

/* =============== Top bar =============== */
.top-bar {
	position: fixed;
	top: 0;
	left: 0;

	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 1;

	width: 100%;
	height: calc(5% - 6px);

	background: #464;
	padding-top: 4px;
	border-bottom: solid 1px #898;
	border-radius: 0px 0px 8px 8px;
	z-index: 1;
}

.top-bar .title {
	position: fixed;
	left: 16px;
}

.top-bar button,
.top-bar select {
	background: #0000;
	border: dashed 1px #aba;
	border-top: none;
	border-bottom: none;
	border-radius: 0 !important;
}

.top-bar button:hover,
.top-bar select:hover {
	background: #fff1;
	border: solid 1px #aca;
	border-top: none;
	border-bottom: none;
	border-radius: 0 !important;
}

/* =============== UI sides =============== */

.left-side,
.right-side {
	position: fixed;
	display: flex;
	flex-direction: column;
	bottom: 0;
	width: 50%;
	height: 95%;
	text-align: center;
	overflow-y: auto;
	overflow-x: hidden;
}

.left-side {
	left: 0;
}

.right-side {
	right: 0;
}

/* =============== Left UI =============== */
#language-select {
	min-height: 24px;
}

#code-input {
	height: 100%;
	font-family: monospace;
	resize: none;
}

#compile-btn {
	min-height: 32px;
}

/* =============== Right UI =============== */

#memory-view,
#storage-view,
#instruction-view {
	font-family: monospace;
	background: #010;
	padding: 4px;
	border: solid 2px #787;
	border-radius: calc(infinity * 1px);
}

#register-view * {
	font-family: monospace;
}
