@keyframes rotation {
	from {
		transform: rotate(0);
	}
	to {
		transform: rotate(360deg);
	}
}

audio {
	display: none;
}

body {
	background-color: var(--brand);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	font-family: var(--font);
	height: 100dvh;
	overflow: hidden;
	text-align: center;
}

body::before {
	background-image: radial-gradient(50% 35% at 20% 40%, var(--glow), transparent), radial-gradient(50% 35% at 80% 60%, var(--glow-soft), transparent), linear-gradient(to bottom, var(--brand), var(--brand-gradient-end) 50%, var(--brand));
	content: "";
	inset: 0;
	position: fixed;
	z-index: -1;
}

canvas#visualizer {
	border-radius: 0 0 20px 20px;
	cursor: pointer;
	flex-shrink: 0;
	height: clamp(40px, 10vh, 100px);
	margin: 0 auto 4vh auto;
	width: 700px;
}

div#container {
	align-content: flex-start;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	margin: 4vh auto 3vh auto;
	min-height: 0;
	overflow: hidden;
	text-align: left;
	width: 1000px;
}

div#container div#left {
	margin: 0 50px 0 0;
}

div#container div#left img {
	border-radius: 20px;
	display: block;
	height: clamp(100px, calc(44.5dvh - 180px), 300px);
	opacity: 0;
}

div#container div#right {
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 0.8vh;
	height: calc(clamp(100px, calc(44.5dvh - 180px), 300px) * 0.85);
	justify-content: space-between;
	max-width: 770px;
	min-height: min-content;
}

div#container h1 {
	font-size: clamp(18px, 3.5vh, 48px);
	font-weight: bold;
	height: clamp(18px, 3.5vh, 28px);
	margin: 0 0 8vh 0;
	opacity: 0;
	text-align: center;
	width: 100%;
}

div#container p {
	font-size: clamp(12px, 2.3vh, 20px);
	font-weight: bold;
	min-height: 1em;
	opacity: 0;
}

div#controls {
	margin: 0 0 3vh 0;
}

div#controls a {
	opacity: 0;
}

div#controls img {
	margin: 0 10px 0 10px;
	width: clamp(36px, 6.5vh, 50px);
}

div#top h1 {
	font-size: clamp(48px, 13vh, 170px);
	font-weight: bold;
	opacity: 0;
	padding: 3vh 0 3vh 0;
}

div#volume {
	background-color: var(--volume-background);
	border-radius: 25px;
	height: 20px;
	margin: 0 auto 3vh auto;
	opacity: 0;
	padding: 5px 5px 5px 5px;
	width: 500px;
}

div#volume span#bar {
	background-image: linear-gradient(to bottom, var(--accent), var(--accent-gradient-end));
	border-radius: 20px;
	box-shadow: inset 0 2px 9px var(--shine), inset 0 -2px 6px var(--shadow);
	display: block;
	height: 100%;
	width: 100%;
}

div#volume span#percentage {
	font-size: 16px;
	font-weight: bold;
	margin: 1.5px 0 0 -17px;
	position: absolute;
	z-index: 1;
}

div.modal {
	color: var(--modal-ink);
	max-width: 420px;
	padding: 20px 20px 20px 20px;
}

div.modal div#history_content {
	max-height: 60vh;
	min-height: 20px;
	overflow-y: auto;
	padding: 0 10px 0 0;
}

div.modal div#history_content::-webkit-scrollbar {
	background-color: var(--scroll-background);
	height: 12px;
	width: 12px;
}

div.modal div#history_content::-webkit-scrollbar-thumb {
	background-image: linear-gradient(to bottom, var(--brand), var(--brand-gradient-end));
	border-radius: 10px;
	box-shadow: inset 0 0 6px var(--shadow);
}

div.modal div#history_content::-webkit-scrollbar-track {
	background-color: var(--scroll-background);
	border-radius: 10px;
	box-shadow: inset 0 0 6px var(--shadow);
}

div.modal h1 {
	background-image: radial-gradient(60% 120% at 15% 50%, var(--glow), transparent), linear-gradient(to right, var(--brand), var(--brand-gradient-end));
	border-radius: 8px;
	color: var(--ink);
	font-size: 18px;
	font-weight: bold;
	margin: 25px 0 0 0;
	padding: 10px 15px 10px 15px;
}

div.modal h1:first-child {
	margin: 0 0 0 0;
}

div.modal table {
	display: block;
	font-size: 12px;
	margin: 5px 0 0 0;
	text-align: left;
}

div.modal table tbody {
	display: block;
}

div.modal table td {
	display: block;
	line-height: 1.3;
	padding: 0 0 2px 0;
}

div.modal table td:first-child {
	color: var(--modal-muted);
	font-size: 11px;
	white-space: nowrap;
}

div.modal table td:nth-child(2) {
	font-weight: bold;
}

div.modal table tr {
	border-bottom: 1px solid var(--modal-divider);
	display: block;
	margin: 0 15px 0 15px;
	padding: 8px 0 8px 0;
}

div.modal table tr:last-child {
	border-bottom: 0;
}

img.loading {
	animation: rotation 2s infinite linear;
}

p#status {
	font-size: clamp(20px, 4.5vh, 36px);
	font-weight: bold;
	margin: 0 0 2vh 0;
	opacity: 0;
}

p#status.offline {
	margin: auto 0 auto 0;
}