:root {
	--fade: rgba(0, 0, 0, 0.314);
}

body {
	margin: 0;
	padding: 0;
}

#map {
	position: absolute;
	inset: 0;
}

#controls {
	position: fixed;
	top: 50%;
	height: 140px;
	left: 0;
	right: 0;
	margin-top: -70px;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 2vw;
	font-size: 64px;
}
#controls .cta {
	pointer-events: all;
	cursor: pointer;
	opacity: 0.314;
	user-select: none;
}
#controls .cta:hover {
	opacity: 1;
}
#controls:before {
	content: "";
	display: block;
	height: 1px;
	background-color: var(--fade);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	filter: invert(90%);
}
#controls:after {
	content: "";
	display: block;
	height: 1px;
	background-color: var(--fade);
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	filter: invert(90%);
}

.source {
	display: block;
	position: absolute;
	top: 1vw;
	right: 1vw;
	font-size: 14px;
}

#title {
	position: absolute;
	top: 4vw;
	left: 4vw;
	right: 4vw;
	font-size: 35px;
	font-family: sans-serif;
	font-weight: 900;
	opacity: 0.314;
	line-height: 1;
}

#timeline {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50px;
}
#timeline:hover {
	opacity: 1;
}
#timeline:before {
	content: "";
	border: 2px solid var(--fade);
	opacity: 0.9;
	display: block;
	position: relative;
	top: 25px;
	background: #ff0000;
}
#timeline .helper {
	display: flex;
}

#timeline .date {
	width: 20px;
	display: block;
	transform: rotate(-70deg);
	transform-origin: 0 50%;
	font-size: 22px;
	color: #0000cc;
	font-weight: 700;
	letter-spacing: 0.1em;
	font-family: sans-serif;
	background-image: linear-gradient(to right, transparent, transparent),
		linear-gradient(to right, transparent, transparent);
	background-position: left center, left center;
	background-repeat: no-repeat;
	background-size: auto calc(100% - 1ch), auto calc(100% - 1ch);
	-webkit-background-clip: text;
		background-clip: text;
}
#timeline .date .label {
	opacity: 0.314;
	transition: opacity 0.3s linear, transform 0.3s ease;
	text-shadow: 0 0 4px #ff0000, 0 0 4px #bebebe;
	display: block;
}
#timeline .date .label:hover {
	color: #ff0000;
}
#timeline .date:hover .label {
	opacity: 1;
}
#timeline .date.active .label {
	color: #ff0000;
}

#timeline .date:before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	position: absolute;
	right: 100%;
	top: 4px;
	margin-right: 14px;
	background-color: #0000ff;
}

#timeline .date:first-child:before {
	background-color: transparent;
}
#timeline .date.active .label {
	opacity: 0.8;
	transform: translateX(5px);
}
#timeline .date.active:before {
	background-color: #ff0000;
}
#timeline .date.active:first-child:before {
	background-color: transparent;
}