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

	font-family: Verdana, sans-serif;
	font-size: 16px;
	touch-action: manipulation;
	list-style-type: none;
}

html {
	color: #777;
	background: #f5f5f5;
}

header {
	text-align: center;
	background: #FFF;
	box-shadow: 0 2px 8px #0000001a;
}

header img {
	max-height: 16vh;
	max-width: 100%;
	text-align: center;
}

h1 {
	font-size: 1.8rem;
}

h2 {
	font-size: 1.6rem;
}

h3 {
	font-size: 1.4rem;
}

h4 {
	font-size: 1.2rem;
}

main {
	display: none;
	margin: 40px auto 15px;
	max-width: 750px;
}

main section.alert,
main section.offline {
	display: none;
}

main section div {
	position: relative;
	margin: 25px 0;
}

main section div,
main section.offline button {
	padding: 10px 15px;
	box-shadow: 0 15px 30px #0000001a;
	background: #FFF;
	border-radius: 2px;
	transition: all .2s;
}

main section div:hover,
main section.offline button:hover {
	box-shadow: 0 15px 30px #00000028;
}

main section.alert div {
	border-left: 8px solid #721c24;
	background-color: #f8d7da;
	color: #721c24;
}

main section div h1 {
	position: relative;
	padding-left: 60px;
	color: #329a37;
}

main section.alert div h1 {
	padding-left: 0;
	color: #777;
}

main section div h1 img {
	position: absolute;
	top: 0;
	left: 0;
	height: 35px;
}

main section div p {
	margin: 20px 0;
}

main section div audio {
	width: 100%;
}

main section.offline button {
	width: 100%;
	color: #FFF;
	font-weight: bold;
	background: #329a37;
	cursor: pointer;
}

main section.offline button span {
	margin-left: 10px;
	font-weight: normal;
}

main section.offline button span::before {
	content: '(';
}

main section.offline button span::after {
	content: 's)';
}

body.ready main,
body.error main,
body.error main section.alert,
body.offline main section.offline {
	display: block;
}

body.ready .loading,
body.error .loading {
	display: none;
}

.loading {
	display: block;
	width: 100px;
	height: 100px;
	margin: 50px auto 20px;
}

.loading:after {
	content: ' ';
	display: block;
	width: 80px;
	height: 80px;
	margin: 10px;
	border-radius: 50%;
	border: 5px solid;
	border-color: #1a3c8a transparent #329a37 transparent;
	animation: rotate 2s both infinite;
}

@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(1080deg); }
}