* {
   -webkit-backface-visibility: hidden;
   backface-visibility: hidden;
}
html, body {
	margin: 0;
	padding: 0;
	display: flex;
	align-content: center;
	font-family: 'arial';
}
h3 {
	font-size: 10px;
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 10px;
	color: #000;
	font-size: 10px;
	line-height: 10px;
	margin: 0;
	font-weight: normal;
}
body #container::after {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	text-transform: uppercase;
	font-size: 10px;
	line-height: 10px;
	padding: 10px;
	color: #000;
}
body {
	transition: background 1s ease-in-out 0s;
}
body.started {
	background: #fff !important;
}

body.started #container::after {
	content: 'playing';
}

body.paused #container::after {
	content: 'paused';
}
body.loading #container {
	opacity: 0;
}
#container {
	position: relative;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-content: center;
	overflow: hidden;
	opacity: 1;
	transition: opacity .5s ease-in-out 0s;
}
#canvas {
	padding: 0;
	margin: auto;
	opacity: 0;
}
.keyword {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 2;
}
label,
.keyword span {
display: block;
text-align: center;
width: calc(100% - 20px);
text-transform: uppercase;
max-width: 200px;
padding: 10px;
}
label {
	margin-bottom: 5px;
}
select,
textarea,
input {
	font-size: 16px;
	-webkit-appearance: none;
	border-radius: 0;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}
input {
	display: block;
	background: #fff;
	border: 1px solid #fff;
	border-bottom-color: #000;
	box-sizing: border-box;
	padding: 10px;
	width: 100%;
}
.button {
	box-sizing: border-box;
	display: block;
	padding: 10px 0;
	width: 100%;
	background: black;
	text-transform: uppercase;
	text-align: center;
	color: white;
	text-align: center;
	transition: all .35s ease-in-out 0s;
}
.button:not(.restart):not(.save-image):hover {
	background: #fff;
	color: #000;
}
.restart {
	display: block;
	color: #000;
	text-align: right;
	text-transform: uppercase;
	position: fixed;
	top: 0;
	right: 0;
	padding: 10px 10px 50px 25px;
	line-height: 10px;
	font-size: 10px;
	opacity: 0;
	width: auto !important;
	background: transparent;
	transition: opacity 1s ease-in-out 0s;
	z-index: 4;
}
.save-image {
	display: block;
	color: #000;
	text-align: right;
	text-transform: uppercase;
	position: fixed;
	bottom: 0;
	right: 0;
	padding: 50px 10px 10px 25px;
	line-height: 10px;
	font-size: 10px;
	opacity: 0;
	width: auto !important;
	background: transparent;
	transition: opacity 1s ease-in-out 0s;
	z-index: 4;
}
body.started .restart,
body.started .save-image {
	opacity: 1;
}
.play-pause {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
body.started .play-pause {
	display: block;
}
.play-pause > div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

body.pause .play-pause .pause,
body:not(.paused) .play-pause .play {
	display: none;
	color: #d46341;
}

body:not(.paused) .play-pause .pause,
body.pause .play-pause .play {
	display: block;
}

/* Page Loader */
body.loading::before,
body.loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

body.loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
}
body.loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.2;
	background: red;
	animation: loaderAnim 2s linear infinite alternate forwards;
	z-index: 10;
}
body.loadingColors #container::before {
	content: '';
	position: fixed;
	z-index: 1000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.2;
	background: #fff;
	animation: loaderAnim 2s linear infinite alternate forwards;
	z-index: 10;

}
canvas {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}
@keyframes loaderAnim {
	to {
		opacity: .5;
		transform: scale3d(0.5,0.5,2);
	}
}