body {
	font-family: system-ui;
}

header, main, footer {
	max-width: 750px;
}

header {
	margin: 40px auto 20px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	text-align: center;
}

header h1 {
	font-weight: normal;
	color: #337ab7;
	margin: 0;
	font-size: 2.3em;
}

header h1 span {
	color: #777;
}

header q {
	font-style: italic;
	color: #777;
	font-size: 1.3em;
}

main {
	margin: 0 auto;
	padding: 25px min(75px, 10%);
	box-sizing: border-box;
	display: flex;
	gap: 10%;
	align-items: center;
}

footer {
	margin: 20px auto 40px;
	padding: 10px 0;
	border-top: 1px solid #eee;
	color: #999;
	text-align: center;
}

.ampel {
	background: #333;
	border-radius: 10px;
	display: inline-block;
}

.ampel div {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	margin: 10px;
	color: white;
}

@keyframes red-light {
	0%   { background-color: #999; }
	90%  { background-color: #999; }
	100% { background-color: #F00; }
}

@keyframes yellow-light {
	0%   { background-color: #999; }
	10%  { background-color: #999; }
	20%  { background-color: #FE0; }
	90%  { background-color: #FE0; }
	100% { background-color: #999; }
}

@keyframes green-light {
	0%   { background-color: #999; }
	10%  { background-color: #1E1; }
	20%  { background-color: #999; }
	100% { background-color: #999; }
}

#kuschelampel div {
	animation-duration: 1s;
	animation-fill-mode: both;
	animation-timing-function: linear;
}

#kuschelampel .red    { animation-name: red-light;    }
#kuschelampel .yellow { animation-name: yellow-light; }
#kuschelampel .green  { animation-name: green-light;  }

@keyframes fadein {
	from { opacity: 0; }
	to { opacity: 1; }
}

#kuscheltext {
	flex: 1;
	text-align: center;
	animation-name: fadein;
	animation-delay: 1s;
	animation-duration: 200ms;
	animation-fill-mode: both;
}

.pleading {
	font-size: 125%;
}

.pleading, .fingers {
	display: block;
}

.fingers span {
	animation-duration: 1s;
	animation-fill-mode: both;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-name: fingers;
}


@keyframes fingers {
	from { margin: 0; }
	to { margin: 0 0.5em; }
}
