@font-face {
	font-family: emoji;
	src: url(/fonts/NotoEmoji-VariableFont_wght.woff2);
}

@font-face {
	font-family: text;
	src: url(/fonts/Quicksand-VariableFont_wght.woff2);
}

@font-face {
	font-family: title;
	src: url(/fonts/PoiretOne-Regular.woff2);
}

:root {
	--color: #3e3d40;
	--color-bg: #edf2fd;
	--color-main-head: #fff;
	--color-bg-main: #fff;
	--color-bg-main-head: #02518b;
	--color-bg-main-alt: #f7f6fe;
	--color-highlight: #ff9;
	--radius: 0.5cm;
	--font-size: 12px;
}

body {
	font-family: text;
	color: var(--color);
	background-color: var(--color-bg);
	font-size: var(--font-size);
	font-weight: 500;
	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-flow: row wrap;
}
body > * {
	flex: 1;
	flex-basis: 100%;
}

table.a8b-table {
	background-color: var(--color-bg-main);
	border-spacing: 0;
	border-radius: var(--radius);
}
table.a8b-table th,
table.a8b-table td {
	padding: calc(var(--radius) / 2);
}
table.a8b-table thead {
	color: var(--color-main-head);
	background-color: var(--color-bg-main-head);
}
table.a8b-table thead tr:first-child th:first-child {
	border-top-left-radius: var(--radius);
}
table.a8b-table thead tr:first-child th:last-child {
	border-top-right-radius: var(--radius);
}
table.a8b-table tbody tr:nth-child(even) {
	background-color: var(--color-bg-main-alt);
}
table.a8b-table tbody tr:hover {
	background-color: var(--color-highlight);
	transition: ease-in-out .3s;
}

h1 {
	font-family: title;
	letter-spacing: 1px;
	margin: var(--radius) calc(var(--radius) / 2) 0;
	text-align: center;
}
main {
	margin: calc(var(--radius) / 2);
	min-height: 60vh;
}

main section {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	text-align: right;
}
main section > * {
	flex: 1;
}

main section label {
	margin: var(--radius) 0;
}
main section label span {
	margin: 0 calc(var(--radius) / 2);
}
main section label input,
main section label select {
	border: 0;
	border-radius: var(--radius);
	font-family: text;
	font-size: var(--font-size);
	padding: calc(var(--radius) / 2);
	background-color: var(--color-bg-main);
}
main section label input[type='search'] + a {
	display: none;
}

table.a8b-table,
table.a8b-table + nav.paging {
	flex-basis: 100%;
}
table.a8b-table + nav.paging ul {
	list-style-type: none;
	padding: 0;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	text-align: center;
}
table.a8b-table + nav.paging ul li {
	flex: 1;
}
table.a8b-table + nav.paging button {
	font-family: emoji;
	color: var(--color-main-head);
	background-color: var(--color-bg-main-head);
	padding: 0.1cm 0.2cm;
	border-radius: var(--radius);
	border: 0;
}

.moveUp {
	color: #2c985f;
}
.moveDown {
	color: #a30d11;
}

.hide {
	opacity: 0;
}
.show {
	opacity: 100%;
	transition: 400ms ease-in-out;
}

@keyframes loading {
	0% {
		font-size: 0;
		left: 0;
		top: 0;
	}
	25% {
		top: 10vh;
	}
	50% {
		top: 0;
		font-size: 1cm;
	}
	75% {
		top: 10vh;
	}
	100% {
		font-size: 0;
		left: 40vw;
		top: 0;
	}
}

.loading {
	width: 40vw;
	margin: auto;
}
.loading .sprite {
	font-family: emoji;
	animation: loading ease-in-out 4s infinite;
	position: relative;
	color: var(--color-bg-main-head);
	width: fit-content;
}
.loading .sprite:nth-child(1) {
	color: #009ad7;
	animation-delay: 100ms;
	animation-duration: 2.2s;
}
.loading .sprite:nth-child(2) {
	color: #017fbc;
	animation-delay: 222ms;
	animation-duration: 2.5s;
}
.loading .sprite:nth-child(3) {
	color: #025a95;
	animation-delay: 0ms;
	animation-duration: 3.5s;
}
.loading .sprite:nth-child(4) {
	color: #151b56;
	animation-delay: 0ms;
	animation-duration: 4s;
}

header,
footer {
	min-height: calc(var(--radius) * 2);
}
header {
	background-color: var(--color-bg-main);
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	padding: calc(var(--radius) / 2);
}
div.logo {
	display: flex;
	flex-flow: column;
	align-items: center;
}
header img {
	max-height: 1.5cm;
}
img[src$='soundcharts-logo.svg'] {
	width: 40%;
	max-width: 3cm;
	filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.3));
}
img[src$='soundcharts-logo.svg'] svg path {
	fill: #fff !important;
}
header nav {
	flex: 1;
	font-weight: 600;
}
header nav ul {
	display: flex;
	flex-flow: row wrap;
	list-style-type: none;
}
header nav ul li {
	flex: auto;
	margin: 0.3cm;
}
footer {
	color: var(--color-bg-main);
	background-color: var(--color-bg-main-head);
	display: flex;
	flex-flow: row wrap;
	align-items: center;
}
footer div.logo {
	flex: 1;
}

a,
a:visited {
	color: var(--color-bg-main-head);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

.error {
	text-align: center;
	margin: var(--radius);
}

button.exportCsv {
	font-family: text;
	color: var(--color-main-head);
	background-color: var(--color-bg-main-head);
	padding: 0.2cm 0.4cm 0.1cm;
	border-radius: var(--radius);
	border: 0;
	margin: var(--radius) auto;
	display: block;
}
button.exportCsv span {
	font-family: emoji;
	vertical-align: middle;
}

dl {
	display: flex;
	flex-flow: column wrap;
}
dt {
	font-weight: bolder;
}
dd {
	margin-bottom: calc(var(--radius) / 2);
}

td ul {
	list-style-type: none;
	padding: 0;
}

nav ol {
	list-style-type: none;
	display: flex;
	flex-flow: row wrap;
	padding: 0;
}
nav ol li {
	margin-left: var(--radius);
}

form,
p {
	width: max-content;
	margin: auto;
}

form * {
	font-size: larger;
}

form fieldset {
	border: none;
	display: flex;
}

button {
	border: none;
	background-color: var(--color-bg-main-head);
	color: var(--color-bg-main);
	border-radius: var(--radius);
	padding: calc(var(--radius) / 2) var(--radius);
}
form button,
.partial form button {
	border: none;
	background-color: var(--color-bg-main-head);
	color: var(--color-bg-main);
	border-radius: var(--radius);
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	padding: calc(var(--radius) / 2) var(--radius);
}
.partial button {
	font-size: 140%;
}

form label span {
	margin-right: var(--radius);
}

form input,
form select,
.partial form input,
.partial form select {
	border: 1px solid var(--color-bg-main-head);
	border-radius: var(--radius);
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	padding: calc(var(--radius) / 2);
}
form select {
	border-top-right-radius: var(--radius);
	border-bottom-right-radius: var(--radius);
}

.problem {
	margin: auto;
	width: max-content;
	font-size: larger;
}

form fieldset:disabled,
.deleting {
	transition: 400ms ease-in-out;
	opacity: 0;
}

.editTable * {
	font-size: 14px;
}

.editTable tbody input {
	background-color: rgba(2, 81, 139, 0.1);
}

.editTable tbody button {
	background-color: var(--color-bg-main-head);
	color: var(--color-bg-main);
	border: none;
	border-radius: var(--radius);
	font-size: calc(var(--radius) * 1.2);
	height: calc(var(--radius) * 2);
	width: calc(var(--radius) * 2);
	margin: calc(var(--radius) / 2);
}

.none {
	display: none;
}

.editTable + form {
	margin-top: calc(var(--radius) * 2);
}

.note {
	text-align: center;
}

main.adds form fieldset {
	display: flex;
	flex-flow: column;
	gap: var(--radius);
}
main.adds form fieldset label {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
}
main.adds form fieldset label > * {
	flex: 1;
}
main.adds form fieldset input,
main.adds form button {
	border-radius: var(--radius);
}

#modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
}
#alertBox {
	color: var(--color-main-head);
	background-color: var(--color-bg-main-head);
	box-shadow: 0 0 8px #000;
	font-weight: bold;
	font-size: 150%;
	border-radius: var(--radius);
	padding: var(--radius);
	margin: auto;
}

@keyframes fading {
	0% {
		opacity: 100%;
	}
	100% {
		opacity: 0;
		display: none;
	}
}

.fade,
#modal.fade {
	display: flex;
	animation: fading 2s ease-in-out 400ms forwards;
}

.eicon {
	font-size: larger;
}

.partial {
	text-align: center;
}

@keyframes spin {
	0% {
		scale: calc(1/var(--scale-factor));
	}
	20% {
		scale: calc(2/var(--scale-factor));
	}
	30% {
		scale: calc(1/var(--scale-factor));
	}
	50% {
		scale: calc(3/var(--scale-factor));
	}
	60% {
		scale: calc(1/var(--scale-factor));
	}
	70% {
		scale: calc(4/var(--scale-factor));
	}
	100% {
		scale: calc(1/var(--scale-factor));
	}
}
.spinner {
	--scale-factor: 4;
	font-size: calc(100% * var(--scale-factor));
	animation: spin 1s ease-in-out infinite;
	text-align: center;
}
.spinner::before {
	content: '🔊';
}

td div i + a, td div i + a + a {
	font-family: emoji;
}