body, html {
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: white;
	font-family: Arial, Tahoma, Verdana, 'San Francisco', 'Lucida Grande', Geneva, sans-serif;
	font-size: 14px;
}

a:link, a:visited {
	color: white;
	text-decoration: none;
	font-weight: bold;
}

a.hover {
	--b: 0.1em;
	--c: #61acc3;
	color: #0000;
	padding-block: var(--b);
	background: linear-gradient(var(--c) 50%,#fff 0) 0% calc(100% - var(--_p,0%))/100% 200%, linear-gradient(var(--c) 0 0) 0% var(--_p,0%)/var(--_p,0%) var(--b) no-repeat;
	background-clip: text, padding-box;
	transition: .2s var(--_s,0s) linear, background-size .2s calc(.2s - var(--_s,0s));
}

a.hover:hover {
	--_p: 100%;
	--_s: .2s;
}

a:active {
	color: #22c307;
}

a.hover:focus-visible,
#tooltip:focus-visible {
	outline: 1px solid #61acc3;
	outline-offset: 2px;
	border-radius: 2px;
}

img {
	border-style: none;
}

#loader-wrapper {
	position: fixed;
	inset: 0;
	background: black;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.5s ease, visibility 0.6s ease;
}

body.loaded #loader-wrapper {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: -1;
}

#loader {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 3px solid transparent;
	border-top-color: #3498db;
	animation: spin 2s linear infinite;
	position: relative;
	overflow: hidden;
	will-change: transform;
}

#loader:before,
#loader:after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 3px solid transparent;
}

#loader:before {
	inset: 5px;
	border-top-color: #e74c3c;
	animation: spin 3s linear infinite;
}

#loader:after {
	inset: 15px;
	border-top-color: #f9c922;
	animation: spin 1.5s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

:root:before {
	display: none;
	content: url(/media/smoke.webp);
}

#grad {
	height: 100vh;
	width: 100vw;
	background: linear-gradient(#00152e, #6e99c7);
}

#grass {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 65px;
	background: url(/media/grass.svg) repeat-x left bottom / 758px 100%;
	z-index: 2;
}

#tree,
#spiderland {
	position: fixed;
	bottom: 30px;
	z-index: 1;
	background: black;
    mask-repeat: no-repeat;
    mask-position: right center;
    mask-size: contain;
	overflow: hidden;
}

#tree {    
    width: 240px;
    height: 225px;
    left: 25px;
    mask-image: url(/media/tree.svg);
}

#spiderland {
    width: 360px;
    height: 165px;
    right: 0;
    mask-image: url(/media/spiderland.svg);
}

#tree::before,
#spiderland::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(/media/smoke.webp) center/cover no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    backface-visibility: hidden;
}

#tree:hover::before,
#spiderland:hover::before {
    opacity: 1;
}

#play {
	position: fixed;
	bottom: 8px;
	left: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 20px;
	z-index: 3;
	line-height: 20px;
	min-width: 360px;
}

#player {
	position: static;
}

#playing,
#controls,
#controls button {
	display: flex;
	align-items: center;
	height: 20px;
}

#playing {
	line-height: 20px;
	white-space: nowrap;
}

#controls {
	gap: 8px;
	font-size: 12px;
}

#controls button {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	width: 20px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	margin: 0;
	transform: translateY(-0.5px);
}

#current {
	display: inline-block;
	width: 2.8em;
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.progress {
	width: 140px;
	height: 6px;
	background: rgba(255,255,255,0.25);
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.progress-filled {
	height: 100%;
	width: 0%;
	background: #61acc3;
	border-radius: 3px;
	will-change: width;
}

.volume {
	width: 50px;
	height: 6px;
	appearance: none;
	border-radius: 3px;
	background: linear-gradient(to right, #61acc3 0%, #61acc3 var(--vol, 50%), rgba(255,255,255,0.25) var(--vol, 50%), rgba(255,255,255,0.25) 100%);
	outline: none;
	cursor: pointer;
}

.volume::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    -webkit-appearance: none;
    margin-top: 0;
}

.volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: none;
}

#tooltip {
	color: #61acc3;
	outline: none;
	position: relative;
	cursor: default;
}

#tooltip span {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	border-radius: 15px;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.5);
	position: absolute;
	left: 2em;
	bottom: 2em;
	width: max-content;
	line-height: 1.2;
	padding-right: 1.5em;
	padding-bottom: 1.5em;
	z-index: 4;
}

#tooltip:hover span,
#tooltip:focus span {
	opacity: 1;
	visibility: visible;
}

#tooltip img {
	border: 0;
	margin: 0 0 0 -55px;
	float: left;
	position: absolute;
}

#tooltip em {
	font-size: 1.5em;
	font-weight: bold;
	color: #244061;
	display: block;
	padding: 0.6em 0 0.6em 0;
}

#lyrics {
	padding: 0.5em 0.8em 0.8em 2em;
	background: #b8cce4;
	border: 1px solid #244061;
	color: #244061;
	font-size: 13px;
}

@media screen and (max-width: 625px) {
	#tree,
	.volume {
		display: none;
	}
	#tooltip span {
		position: fixed;
		left: 50%;
		bottom: 35px;
		transform: translateX(-50%);
		max-width: 90vw;
	}
}