html, body {
	margin: 0;
	padding: 0;
	background: #333;
	color: white;
	font-family: helvetica, arial, sans-serif;
	background: #200d0d;
}

.game {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #200d0d;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

canvas {
	display: block;
	width: 960px;
	height: 580px;
	transform-origin: center;
}

.controls {
	position: relative;
	font-size: 12px;
	padding: 10px;
}

.controls > div {
	margin: 10px 0;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 4px, 0) }
  20%, 80% { transform: translate3d(2px, -2px, 0) }
  30%, 50%, 70% { transform: translate3d(-4px, 2px, 0) }
  40%, 60% { transform: translate3d(4px, 2px, 0) }
}

.panicButton {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 30px;
	cursor: pointer;
	opacity: 0.5;
	transition: all 0.1s;
}

.panicButton:hover {
	opacity: 1;
}

.panicButton:not(.stopped):hover {
	animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) infinite;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	perspective: 1000px;
}