:root {
	--border: #000000;
	--border-size: 1px;
	--text: #ffffff;
	--btn: #292929;
	--btn-hover: #3d3c3c;
	--btn-active: #3f3f3f;
	--textarea: #313131;
	--field-name: #335769;
	--field-value: #336963;
	--field-bitmask: #1d2727;
	--spacer: #54713e;
	--spacer-filled: #903737;
	--spacer-highlight: #96d372;
}

html, body {
	width: 100%;
	height: 100%;
	margin: 0px;
	color: var(--text);
	font-family: sans-serif;
	background: #23241f;
}

input, label {
	user-select: none;
}
input:focus {
	outline: none;
}

a {color: lightblue;}
a:visited {color: #719aa6;}

.bit-table {
	background: black;
	font-size: 20pt;
}
.bit-table, .bit-table th, .bit-table tr {
	border: var(--border-size) solid white;
	border-collapse: collapse;
	font-weight: normal;
	overflow: hidden;
}
.bit {
	user-select: none;
}
.field-name {
	font-style: italic;
	background: var(--field-name);
	font-family: auto;
}
.field-value {
	font-family: monospace;
	font-size: 15pt;
	background: var(--field-value);
}
.bitmask {
	background: #1d2727;
	font-size: 10pt;
	font-family: monospace;
}
.field-value-desc {
	display: block;
	overflow-wrap: anywhere;
	color: yellow;
	font-style: italic;
}
.spacer {
	padding: 20px;
	cursor: pointer;
	user-select: none;
	background: var(--spacer)
}
.spacer-filled {
	background: var(--spacer-filled);
}
.spacer-highlight {
	background: var(--spacer-highlight);
}


textarea {
	flex: 1;
	width: 100%;
	resize: none;
	outline: none;	
	font-size: 14pt;
	box-sizing: border-box;
	border: none;
	tab-size: 4;
	color: var(--text);
	padding: .5em;
	background: var(--textarea);
}

.form {
	flex: 2;
	margin: 10px;
	border: var(--border-size) solid white;
	padding: 10px;
	background: black;
	display: flex;
	flex-flow: column;
	gap: 0.5em;
}
.form-settings-top {
	
}

.app {
	display: flex;
	flex-flow: column;
	height: 100%;
}
.app-vertical {
	display: flex;
	flex-flow: row;
	height: 100%;
}

#reg-value {
	font-size: 15pt;
}

#bitbox {
	overflow: auto;
	flex: 2;
	display: flex;
	padding: 10px;
}
#bitbox table {
	flex: 1;
}

.app-vertical #bitbox {
	overflow-y: scroll;
}
.app-vertical .bit-table {
	table-layout: fixed;
}
.app-vertical .bit-checkbox {
	width: 50px;
}
.app-vertical .bit {
	width: 50px;
}

.bottom-legend-about-box {
	display: flex;
	flex: 1;
}
.app-vertical .bottom-legend-about-box {
	flex-flow: column;
	flex: none;
}

#legend {
	max-width: 300px;
	align-self: flex-start;
	background: #333333;
}
#legend, #legend tr, #legend th {
	border: var(--border-size) solid white;
	border-collapse: collapse;
	margin: 10px;
	padding: 5px;
}

.legend-box {
	border: var(--border-size) solid white;
	display: inline-block;
	padding: 15px;
}

#instructions {
	margin: 10px;
	flex: 1;
}
.app-vertical #instructions {
	max-width: 400px;
}
