html {
	font-family: Lato, latin, sans-serif;
}
body {
	margin: 0;
	padding: 0;
	background-image: url('background-3-2.png');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	/*background-blend-mode: multiply;*/
}
/*body::before {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: url('Page-Background.jpg');
	background-size: cover;
	background-blend-mode: multiply;
	opacity: .65;
}*/
div#header {
	/*height: 100px;*/
}
div#logo {
	display: inline-block;
	float: left;
}
img#logo-img {
	width: 300px;
	height: auto;
}
div#menu {
	line-height: 100px;
	padding-right: 15px;
}
div#container {	
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1;
}
div#control {
	position: relative;
	width: 100%;
	height: 100%;
	min-width: 300px;
	height: auto;
	top: 0;
	left: 0;
}
canvas {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	min-width: 300px;
	height: auto;
	z-index: 1;
	margin-left: auto;
	margin-right: auto;
	left: 50%;
	transform: translatex(-50%);
}
div#control.not-spinning::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	background: url('spin-button-start.svg');
	cursor: pointer;
	z-index: 2;
}
div#control.spinning::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	background: url('spin-button-stop.svg');
	cursor: pointer;
	z-index: 2;
}
div#footer {
	padding: 10px 30px;
}
button {
	color: #003366;
	border: 1px solid #003366;
	border-radius: 10px;
	background: none;
	padding: 10px;	
	font-size: 15px;
	cursor: pointer;	
}
button:hover {
	color: #fff;
	background-color: #003366;
}
button.x,
button.x:hover {
	color: #fff;
	border: none;
	font-size: 30px;
	font-weight: bold;
	padding: 10px;
	line-height: 15px;
	position: fixed;
	top: 25px;
	right: 25px;
	background-color: transparent;
}
div#modal-container {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9;
	opacity: 0;
	background-color: rgba(0,0,0,.85);
	pointer-events: none;
	transition: opacity .5s linear 1s;
}
div.modal-content {
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 60px;
	color: #fff;
	height: calc(100vh - 80px);
    overflow-y: auto;
}
div.modal-content p {
	font-size: 18px;
}
div.modal-content a,
div.modal-content a:hover {
	color: #fff;
}
div#instructions,
div#embed,
div#question {
	width: 100%;
	height: auto;
	display: none;
	pointer-events: none;
}
.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}
.width-1-2 {
	width: 50%;
	display: inline-block;
	float: left;
}
pre {
	white-space: pre-wrap;
}
@media all and (min-width: 560px) {
	div#control.not-spinning::before,
	div#control.spinning::before {
		width: 96px;
		height: 96px;
	}
}
@media all and (max-width: 640px) {
	.text-right {
		text-align: center!important;
	}
	#menu {
		line-height: 50px!important;
		width: 100%!important;
	}
	#logo {
		width: 100%!important;
		text-align: center!important;
		height: 80px!important;
	}
	#logo-img {
		height: 85px!important;
		width: auto!important;
	}
}
div#control.spinning::before,
div#control.not-spinning::before {
	transform: translate(-50%,-50%);
}
@media all and (min-width: 640px) {
	canvas {
		margin-top: -32px;
	}
	div#control.spinning::before,
	div#control.not-spinning::before {
		transform: translate(-50%,calc(-50% + 6px));
	}
}
@media all and (min-width: 740px) {
	canvas {
		margin-top: -64px;
		margin-bottom: -32px;
	}
}
@media all and (min-width: 840px) {
	div#control.not-spinning::before,
	div#control.spinning::before {
		width: 128px;
		height: 128px;
	}
}
@media all and (min-width: 1080px) {
	div#control.not-spinning::before,
	div#control.spinning::before {
		width: 156px;
		height: 156px;
	}
}
