html {
	font: 15px sans-serif;
	overflow: auto;
}
main {
	h1, h2, h3 {
		transform: skewX(-5deg);
	}
}
main > h1 {
	margin: 0;
}
main > p {
	margin: 0.3em 0;
}
main details {
	margin-inline: 2px;
	border: 2px groove threedface;
	padding: 0.3em 0.5em;
	margin-top: 0.3em;
	& > *:not(summary) {
		margin-left: 0.5em;
	}
	ul {
		padding-left: 1.5em;
		margin-top: 0.3em;
		margin-bottom: 0.3em;
	}
}
main details h3 {
	margin-top: 0.3em;
	margin-bottom: 0.1em;
}
.filter-buttons {
	margin-top: 0.20em;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	> .button {
		padding: 2px 6px;
		color: white;
		background-color: #6c757d;
		position: relative;
		&.dragged {
			opacity: 0.5;
		}
		/*&:before {
			pointer-events: none;
			width: 6px;
			height: 6px;
			border-radius: 50%;
			background: white;
			position: absolute;
			margin: auto;
			top: calc(50% - 3px); 
		}*/
		&.drop-before {
			box-shadow: 4px 0 0 #dc3545 inset;
			/*&:before {
				left: 1px;
				content: " ";
			}*/
		}
		&.drop-after {
			box-shadow: -4px 0 0 #dc3545 inset;
		}
	}
	& > input {
		margin-right: 2px;
		margin-top: 2px;
		
	}
}
.filter-note {
	margin-top: 0.3em;
}
/*#out {
	overflow: auto;
}*/
#out h2 {
	margin-bottom: 0.3em;
	margin-top: 0.5em;
}
#out table {
	border: 2px solid black;
	margin-top: 0.3em;
	border-collapse: collapse;
	&.summary {
		td, th {
			white-space: nowrap;
		}
	}
	&.sideways tr:first-child {
		background: Canvas;
		/* the borders are collapsed so they don't show on the sticky row, how silly */
		box-shadow: 0 2px 0 black, 0 -1px 0 black;
		position: sticky;
		top: 1px;
		z-index: 1;;
	}
	&:not(.sideways) {
		th:first-child, td:first-child {
			background: Canvas;
			border-collapse: separate;
			position: sticky;
			left: -1px;
			border-color: #C0C0C0;
			&:after {
				content: "";
				position: absolute;
				top: 0; bottom: 0;
				left: 100%;
				width: 2px;
				background: black;
			}
		}
	}
	th, td {
		border: 1px solid #00000040;
		padding: 0.1em 0.3em;
		text-align: center;
		&.align-right {
			text-align: right;
		}
		&.sep-left {
			border-left: 2px solid black;
		}
		&.condensed {
			font-family: "Ubuntu Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
		}
		&.level-row {
			min-width: 2ch;
		}
	}
	tr:nth-child(2n+2) {
		&, td:first-child, th:first-child {
			background: #F0f5ff;
		}
	}
	/*
	tr:nth-child(4n+4) {
		td, th, td:first-child, th:first-child {
			background: #fff3e6;
		}
	}
	*/
	tr:hover {
		&, td:first-child, th:first-child {
			background: #e1e9f3;
		}
	}
	th {
		font-weight: normal;
	}
	td {
		&.prof:hover {
			position: relative;
			&:after {
				position: absolute;
				content: "";
				inset: 0; 
				box-shadow: 0 0 0 1px white inset;
			}
		}
	}
	tr.sep-top {
		border-top: 2px solid black;
	}
	.prof.untrained {
		color: white;
		background-color: #6c757d;
	}
	.prof.trained {
		color: white;
		background-color: #28a745;
	}
	.prof.expert {
		color: white;
		background-color: #007BFF;
	}
	.prof.master {
		color: white;
		background-color: #9765F1; 
	}
	.prof.legendary {
		color: #212529;
		background-color: #FFAB07;
	}
	/*.has-scale {
		text-align: center;
		vertical-align: middle;
		position: relative;
	}*/
	td.scale {
		border-color: black;
	}
	.scale {
		min-width: 100px;
		/*width: 100%;
		height: 100%;
		border: 1px solid #212529;*/
		position: relative;
		.fill {
			position: absolute;
			top: 0;
			bottom: 0;
			right: 0;
		}
		.bar {
			position: absolute;
			width: 1px;
			top: 0;
			bottom: 0;
			background-color: #21252940;
		}
	}
}
@media (max-width: 1300px) {
	#out td.scale {
		min-width: 80px;
	}
}