* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12pt;
	height: 100%;
	color: #222;
	line-height: 1.3em;
}

/*body::after {
	background-color: rgba(0,0,0,0.25);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	content: "";
	z-index: 10;
}*/

.mono {
	font-family: 'Courier New', Courier, monospace;
}

.pointer {
	cursor: pointer;
}

h1, h2, h3, h4, h5 {
	margin: 0;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0.75em;
	padding-bottom: 0.25em;
	line-height: 1.5em;
}

.fullheight {
	height: 100%;
}

.fullwidth {
	width: 100%;
}

.centered {
	place-content: center;
	text-align: center;
}

.padded{
	padding-left: 10px;
	padding-right: 10px;
}

.cDesc {
	padding-bottom: 0.5em;
}

.grid-c1 {grid-area: c1;}
.grid-c2 {grid-area: c2;}
.grid-c3 {grid-area: c3;}
.grid-c4 {grid-area: c4;}

.grid-123 {
	display: grid;
	grid: "c1 c2 c3";
	gap: 0;
}

.grid-124 {
	display: grid;
	grid: "c1 c2 c4";
	gap: 0;
}

.grid-1234 {
	display: grid;
	grid: "c1 c2 c3 c4";
	gap: 0;
}

.grid-1223 {
	display: grid;
	grid: "c1 c2 c2 c3";
	gap: 0;
}

@media screen and (max-width: 1023px) {
	.grid-123  {grid: "c1 c2" "c3 c4";}
	.grid-124  {grid: "c1 c4" "c2 c3";}
	.grid-1223 {grid: "c1 c2 c2 c3";}
	.grid-1234 {grid: "c1 c2" "c3 c4";}
}

@media screen and (max-width: 699px) {
	.grid-123  {grid: "c1" "c2" "c3";}
	.grid-124  {grid: "c4" "c1" "c2";}
	.grid-1223 {grid: "c1" "c2" "c3";}
	.grid-1234 {grid: "c1" "c2" "c3" "c4";}
}

.flex-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.flex-header {
	display: none;
	height: 10px;
	background-color: black;
}
.flex-main {
	flex-grow: 1;
}
.flex-footer {
	font-size: 7pt;
	text-align: right;
	padding: 0.25em 0.5em;
}

button, input[type="button"] {
	font-size: 100%;
	border-radius: 0.5em;
	padding: 0.25em 0.5em;
	background-color: #ccc;
	color: #222;
	border: 1px solid #222;
	cursor: pointer;
}

button[disabled], input[disabled] {
	background-color: #eee;
	color: #888;
	border-color: #888;
	cursor: not-allowed;
}

button:not([disabled]):hover, input[type="button"]:not([disabled]):hover {
	background-color: #ddd;
	border-color: #444;
}

.cInput {
	display: inline-block;
	position: relative;
	padding-left: 1.5em;
	margin-left: 0.125em;
	margin-bottom: 0.25em;
	cursor: pointer;
	font-size: 100%;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	font-size: 12pt;
}

.cInput input {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	cursor: pointer;
	width: 0;
	height: 0;
	font-size: 12pt;
}

.cCheckmark {
	position: absolute;
	top: 0.2em;
	left: 0;
	width: 1em;
	height: 1em;
	background-color: #ddd;
}

.cInput input[type="checkbox"] ~ .cCheckmark {
	border-radius: 20%;
}

.cInput input[type="radio"] ~ .cCheckmark {
	border-radius: 50%;
}

.cInput:hover input:not(:disabled) ~ .cCheckmark {
	background-color: #bbb;
}

.cInput:hover input:checked:not(:disabled) ~ .cCheckmark {
	background-color: hsl(200,100%,40%);
}

.cInput input:checked:not(:disabled) ~ .cCheckmark {
	background-color: hsl(200,100%,50%);
}

.cInput input:checked:disabled ~ .cCheckmark {
	background-color: #888;
}

.cCheckmark::after {
	content: "";
	position: absolute;
	display: none;
}

.cInput input:checked ~ .cCheckmark::after {
	display: block;
}

.cInput input[type="checkbox"] ~ .cCheckmark::after {
	left: 0.275em;
	top: 0.075em;
	width: 0.25em;
	height: 0.5em;
	border: solid white;
	border-width: 0 0.2em 0.2em 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	transform: rotate(45deg);
}

.cInput input[type="radio"] ~ .cCheckmark::after {
	top: 0.3em;
	left: 0.3em;
	width: 0.4em;
	height: 0.4em;
	border-radius: 50%;
	background-color: white;
}

.cRange {
	width: 100%;
}

.cRange input {
	-webkit-appearance: none;
	width: 100%;
	height: 0.75em;
	background-color: #ddd;
	border-radius: 0.375em;
	width: 100%;
}

.cRange:hover input {
	background-color: #bbb;
}

.cRange input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background-color: hsl(200,100%,50%);
	cursor: pointer;
}

.cRange input::-moz-range-thumb {
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background-color: hsl(200,100%,50%);
	cursor: pointer;
}

.cRange input::-webkit-slider-thumb:hover{
	background-color: hsl(200,100%,40%);
}

.cRange input::-moz-range-thumb:hover{
	background-color: hsl(200,100%,40%);
}

input[type="number"] {
	font-size: 100%;
	padding: 0.125em;
	border-radius: 0.25em;
	border: 0.5px solid;
	border-color: #444;
}

input:out-of-range {
	border-color: red;
	background-color: hsl(0,100%,90%);
}

a:link, a:visited {
	text-decoration: none;
	color: hsl(200, 100%, 33%);
}

a:hover {
	color: hsl(200, 100%, 50%);
}

table.zebra, table.zebra td, table.zebra th {
	border: none;
	border-collapse: collapse;
	padding: 0.25em 1em !important;
	text-align: center;
	empty-cells: show;
}

table.zebra tr:nth-child(odd) {
	background-color: #eee;
}

table.zebra tr:first-child {
	background-color: hsl(200, 100%, 75%);
}

table.zebra2, table.zebra2 td, table.zebra2 th {
	border: none;
	border-collapse: collapse;
	padding: 0.25em 1em !important;
	text-align: center;
	empty-cells: show;
}

table.zebra2 tr:nth-child(even) {
	background-color: #eee;
}

table.zebra2 tr:first-child {
	background-color: hsl(200, 100%, 75%);
}

table.zebra2 tr:nth-child(2) {
	background-color: hsl(200, 100%, 75%) !important;
}

table.border {
	border-collapse: collapse;
	empty-cells: show;
	border: none;
}

table.border td, table.border th {
	border-collapse: collapse;
	border-width: 1px;
	border-style: solid;
	border-color: inherit;
	padding: 0.5em;
}

table.border tr:first-child td, table.border tr:first-child th {border-top: none;}
table.border tr:last-child td , table.border tr:last-child th  {border-bottom: none;}
table.border td:first-child   , table.border th:first-child    {border-left: none;}
table.border td:last-child    , table.border th:last-child     {border-right: none;}

table.stats tr:first-child td, table.stats tr:first-child th {border-bottom-width: 2px;}
table.stats tr:last-child td , table.stats tr:last-child th  {border-top-width: 2px;}
table.stats td:first-child   , table.stats th:first-child    {border-right-width: 2px;}
table.stats td:last-child    , table.stats th:last-child     {border-left-width: 2px;}

input#sharedCode {
	border: 1px solid #222;
	border-radius: 0.25em;
	padding: 0.25em;
	font-size: 14pt;
	font-family: 'Courier New', Courier, monospace;
	text-align: center;
}

#navHeader a {
	font-variant-emoji: text;
}

#genCodeOutput table {
	font-size: 10pt;
}

#simShareLnk {
	font-family: 'Courier New', Courier, monospace;
	font-size: 12pt;
	text-align: center;
}

div#simContainerSVG {
	margin: 0;
	padding: 0;
	width: 100%;
}

div#simContainerSVG svg {
	width: 100%;
	border: 1px solid #222;
	font-size: 7pt;
}

.hiddenAtFirst {
	display: none;
}