* {
	position: relative;
}

html {
	min-height: 100%;
}

body {
	min-height: 100%;
	padding-top: 16px;
	box-sizing: border-box;
	min-height: 100vh;
}

.container {
	max-width: 500px;
}

h1 a {
	text-decoration: none;
	color: inherit;
}

h1 a:after {
	content: ' ';
	background-color: black;
	width: 0%;
	height: 2px;
	left: 0px;
	bottom: 2px;
	position: absolute;
	transition: .2s;
}

[data-bs-theme="dark"] h1 a:after {
	background-color: rgb(173, 181, 189);
}

h1 a:hover:after {
	width: 100%;
}

.row > div {
	margin-bottom: 10px;
}

button {
	margin-top: 8px;
}

#preview-wrapper {
	width: 100%;
	padding-bottom: 50%;
}

#preview-wrapper svg {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	bottom: 0;
}

svg text {
	font-size: 6px;
	font-family: monospace;
}

svg rect, svg circle, svg polygon {
	stroke-linejoin: round;
	stroke: black;
	stroke-width: 1.5px;
	fill: transparent;
}

rect:hover, circle:hover, polygon:hover {
	stroke: #0d6efd !important;
	opacity: 1 !important;
}

svg .missing-matrix {
	stroke: #c00;
}

.option-group-hilight {
	stroke: #0d6efd !important;
	opacity: 1 !important;
}

.option-group-option-hilight {
	fill: #0d6efd !important;
	opacity: 1 !important;
}

.group-option-secondary {
	opacity: .33;
}

.fail {
	border-color: red !important;
}

.form-check-input {
	margin-top: 12px;
}

.form-check {
	line-height: 38px;
}

#input_raw {
	font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", monospace;
	font-size: 14px;
}

[data-bs-theme="light"] body {
	background-color: rgb(33, 37, 41);
}

[data-bs-theme="dark"] .no-light {
	display: none;
}

[data-bs-theme="light"] .no-dark {
	display: none;
}

[data-bs-theme="dark"] svg rect, [data-bs-theme="dark"] svg circle, [data-bs-theme="dark"] svg polygon {
	stroke: #adb5bd;
}
