textarea {
	width: 100%;
	height: 10em;
	font-family: monospace;
	font-weight: bold;
	resize: vertical;
}

textarea:focus {
	background: var(--bg) !important;
}

.red-select::selection {
	background: var(--clr-1);
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.slider {
	padding: 0.3em 1em;
	width: 40%;
}

input[type="range"] {
	-webkit-appearance: none;
	width: 100%;
	height: 8px;
	background: #0008;
	outline: none;
	transition: background 0.2s;
}

input[type="range"]:hover {
	background: #fff2;
}

input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 16px;
	height: 16px;
	background: var(--clr-1);
	opacity: 0.8;
	transition: opacity 0.2s, filter 0.2s;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb:hover {
	opacity: 1;
	filter: drop-shadow(0 0 5px #fff8);
}

input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: var(--clr-1);
	opacity: 0.8;
	transition: opacity 0.2s, filter 0.2s;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}
input[type="range"]::-moz-range-thumb:hover {
	opacity: 1;
	filter: drop-shadow(0 0 5px #fff8);
}

.buttons button:nth-of-type(2) {
	margin-left: auto;
}

.info {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

code {
	display: inline-block;
	padding: 0 0.2em;
	background: #333;
	border-radius: 0.2em;
	font-weight: bold;
}

.memlength {
	margin-right: 0.3em;
}

.ptr {
	font: inherit;
	position: relative;
	background: var(--clr-1);
	border-radius: 0.2em;
}

.ptr::before {
	content: "";
	position: absolute;
	width: 0.4em;
	height: 0.4em;
	border-left: 0.1em solid #fff;
	border-bottom: 0.1em solid #fff;
	bottom: -0.8em;
	left: 50%;
	transform: translateX(-50%) rotate(135deg);
}

.step:first-of-type {
	margin-right: 0.5em;
	margin-left: auto;
}

pre {
	white-space: pre-wrap;
	word-wrap: break-word;
}

.awaiting {
	position: fixed;
	bottom: 0;
	background: #fff2;
	padding: 0.5em 1em;
	border-radius: 0.5em 0.5em 0 0;
}

.awaiting button {
	padding: 0.2em 0.4em;
	margin-left: 0.5em;
}
