#version {
	position: absolute;
	top: 10px;
	right: 10px;
}

#tableofcontents {
	height: 90px;
}

#tableofcontents ul {
	height: 100%;
	list-style: none;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
}

#tableofcontents li {
	margin-right: 20px;
}

#tableofcontents a {
	color: blue;
}

#tableofcontents a:hover {
	color: red;
}

h2 {
	display: inline-block;
}

h2:target {
	animation: rainbow 10s steps(360) infinite;
}

@keyframes rainbow {
	0% {color: hsl(0, 100%, 50%);}
	5% {color: hsl(18, 100%, 50%);}
	10% {color: hsl(36, 100%, 50%);}
	15% {color: hsl(54, 100%, 50%);}
	20% {color: hsl(72, 100%, 50%);}
	25% {color: hsl(90, 100%, 50%);}
	30% {color: hsl(108, 100%, 50%);}
	35% {color: hsl(126, 100%, 50%);}
	40% {color: hsl(144, 100%, 50%);}
	45% {color: hsl(162, 100%, 50%);}
	50% {color: hsl(180, 100%, 50%);}
	55% {color: hsl(198, 100%, 50%);}
	60% {color: hsl(216, 100%, 50%);}
	65% {color: hsl(234, 100%, 50%);}
	70% {color: hsl(252, 100%, 50%);}
	75% {color: hsl(270, 100%, 50%);}
	80% {color: hsl(288, 100%, 50%);}
	85% {color: hsl(306, 100%, 50%);}
	90% {color: hsl(324, 100%, 50%);}
	95% {color: hsl(342, 100%, 50%);}
	100% {color: hsl(360, 100%, 50%);}
}

table {
	border-top: 1px solid gray;
	border-left: 1px solid gray;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
}

td, th {
	border-top: 1px solid black;
	border-left: 1px solid black;
	border-right: 1px solid gray;
	border-bottom: 1px solid gray;
}

td {
	text-align: center;
	width: 18px;
}

footer {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	width: 100%;
}

footer a {
	color: blue;
}

.unaired {
	background-color: white;
	color: black;
}

.unwatched {
	background-color: red;
	color: white;
}

.watched {
	background-color: green;
	color: white;
}

.rewatching {
	background-color: rgb(255, 111, 0);
	color: white;
}

.mediumfont {
	font-size: 0.93em;
}

.smallfont {
	font-size: 0.68em;
}

.baddata {
	animation: bad 3s step-end infinite;
}

@keyframes bad {
	0%, 100% {
		background-color: red;
		color: black;
	}
	50% {
		background-color: black;
		color: red;
	}
}