* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	overflow: hidden;
	font-family: sans-serif;
	background-color: rgb(1, 1, 1);
	background-image: linear-gradient(rgb(0, 0, 0, 0.5), rgb(0, 0, 0, 0.5));
	color: white;
	transition: background-color 500ms ease;
}

.date {
	text-align: center;
	margin-top: 25px;
	margin-bottom: 80px;
}

h1 {
	padding-top: 10px;
	margin-bottom: 10px;
}

h3 {
	font-size: 25px;
}

h4 {
	margin-top: 10px;
}

.wheel {
	position: relative;
	width: min(400px, 100%);
	margin: 0 auto;
}

ul {
	list-style: none;
	width: 100%;
	height: 50%;
	position: relative;
	perspective: 900px;
	transform-style: preserve-3d;

	@media (max-width: 900px) {
		margin-bottom: 40px;
	}
}

ul > li {
	position: absolute;
	left: 50%;
	top: calc(50% - 1.2rem);
	--rotateX: calc(
			1deg * var(--rotateDegrees) * calc(var(--day_idx) - var(--currentDay))
	);
	transform: rotateX(var(--rotateX)) translateZ(190px) translateX(-50%) scale(var(--scale, 1));
	--hue: calc(var(--rotateDegrees) * var(--day_idx));
	background-color: hsl(var(--hue), 50%, var(--lightness, 50%));
	width: 70%;
	color: white;
	display: grid;
	grid-template-columns: 22px auto;
	height: 2.4rem;
	font-size: 12px;
	transition: transform 500ms ease, background-color 500ms ease;

	@media (max-width: 900px) {
		width: 65%;
		font-size: 11px;
	}
}

ul > li.active {
	--lightness: 30%;
	--scale: 1.1;
}

ul > li > * {
	display: grid;
	align-items: center;
}

li > time {
	text-align: center;
}

li > span {
	color: white;
}

li span:first-child {
	font-size: 10px;
	text-align: center;
}

li span:nth-child(2) {
	padding-left: 2px;
}

.controls {
	position: absolute;
	top: 50%;
	left: calc(100% + 20px);
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 4px;

	@media (max-width: 900px) {
		position: static;
		display: block;
		transform: none;
	}
}

.controls button {
	padding: 3px;
	aspect-ratio: 1;
	font-size: 1.2rem;
	color: white;
	border: none;
	background: #39657e;
	background: none;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: auto, serif;
	touch-action: manipulation;
	transition: opacity .3s ease;

	@media (max-width: 900px) {
		width: fit-content;
		margin: 0 auto;
	}
}

@media (min-width: 900px) {
	.controls button:hover {
		opacity: .6;
	}
}

.controls button:active {
	transform: scale(0.9);
}


