/* animation */
.canvas {
	text-align: left;
	background-color: #F0F0F0;
	display: block;
	padding: 0.5rem;
	border: solid gray 2px;
	border-radius: 5px;
	cursor: pointer;
	overflow: hidden;
	white-space: pre-wrap;
	position: relative;
	margin: 0.5rem;
	width: calc(100% - 4rem);

}

.playing .canvas {
	box-shadow: none;
}

.S>.canvas {
	font-size: 200%;
	height: 7em;
}

.M>.canvas {
	font-size: 128%;
	height: 12em;
}

.L>.canvas {
	font-size: 85%;
	height: 19em;
	padding-left: 0.5em;
}

.timeline {
	height: 3px;
	background-color: gainsboro;
	border-left: solid silver 0px;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0px;
}

figure:not(.playing)>pre::before {
	content: '>';
}

figure.S:not(.playing)>pre::before {
	border-radius: 5px;
	background-color: black;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 10%;
}

figure.S.loading>pre::before {
	border-radius: 5px;
	background-color: red;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 10%;
}

figure.L:not(.playing)>pre::before {
	border-radius: 5px;
	background-color: black;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 10%;
	font-size: 260%;
}

figure.L.loading>pre::before {
	border-radius: 5px;
	background-color: red;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 10%;
	font-size: 260%;
}

figure.M:not(.playing)>pre::before {
	border-radius: 5px;
	background-color: black;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 8%;
	font-size: 175%;
}

figure.M.loading>pre::before {
	border-radius: 5px;
	background-color: red;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 8%;
	font-size: 175%;
}

figure.X:not(.playing)>pre::before {
	border-radius: 5px;
	background-color: black;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 10%;
	font-size: 260%;
}

figure.X.loading>pre::before {
	border-radius: 5px;
	background-color: red;
	color: white;
	font-weight: bold;
	opacity: 0.35;
	text-align: center;
	z-index: 100;
	text-decoration: none !important;
	position: absolute;
	width: 33%;
	height: 27%;
	left: 32%;
	top: 28%;
	padding-top: 10%;
	font-size: 260%;
}

.animation {
	overflow: hidden;
	margin-bottom: 1em;
	padding: 1em;
	background-color: #e3edfd;
	border-radius: 10px;
	position: relative;
}

.animation figcaption {
	margin-top: 0 !important;
	font-size: 100%;
	margin: 0 0 2rem 0.5rem;
	overflow: hidden;
}

.animation .title{
	font-size: 130%;
}

.license {
	padding: 0.5em 0 0.5em 0;
}

.tags {
	margin-top: 0.5em;
}

.tags>.tag {
	font-weight: bold;
	color: cadetblue;
	line-height: 2em;
	margin-right: 0.5em;
	background-color: #F0F0F0;
	padding:0.1rem 0.5rem;
	border-radius:5px;
}

.tags>li::before {
	content: '#'
}

.top-padding {
	margin-top: 1em;
}

.animation .comment {
	padding-bottom: 1em;
	display: block;
}

.tools-container {
	background-color: white;
	padding: 0.5em;
}

.animation .metadata {
	overflow: hidden;
}

@media (prefers-color-scheme: dark) {

	html,
	body {
		background-color: transparent;
	}

	input,
	textarea {
		background-color: transparent;
		color: white;
	}

	.active {
		background-color: darkslategray !important;
	}

	.animation {
		background-color: transparent;
		border: solid darkslategray 1px;
	}

	.canvas {
		background-color: darkslategray;
		color: white;
	}

	.tools-container,
	code {
		background-color: transparent !important;
	}
}