body, td, th {
	font-family: Arial, Helvetica, sans-serif;
}

html, body {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	border: 0;
	color: #EEE;
	background: #230C27;
}

a {
	color: #6E267B;
	text-decoration: none;
}
a:hover {
	color: #773C8C;
}

button {
	font-size: 0.9em;
	font-weight: bold;
	color: #FFF;
	background: #6E267B;
	border: #6E267B 1px solid;
	padding: 0.5em 1em 0.5em 1em;
	cursor: pointer;
}
button:focus {
	border: #773C8C 1px solid;
	outline: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
/* firefox specialness */
button::-moz-focus-inner {
	border: 0;
	padding: 0;
}
button:hover {
	background: #738;
	color: #FFF;
}
button:disabled {
	cursor: default;
	opacity: 0.5;
}

hr {
	border: none;
	height: 1px;
	background-color: #999;
	margin: 0;
	padding: 0;
}

/* Classes */

#container {
	position: relative;
	width: 100%;
	height: 100%;
	font-size: 15px;
	overflow: hidden;
}

#app-ui-container {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;

	/* flex (WC3) */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#app-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #230C27;
}

/* Score bar */

#score-bar {
	display: flex;
	justify-content: space-between;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em;
	font-size: 1.125em;
	font-weight: bold;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
}
#score-bar #score {
	display: inline-block;
	text-align: left;
	color: #6E267B;
	min-width: 5em;
}
#score-bar #time {
	display: inline-block;
	text-align: center;
	color: #EEE;
	min-width: 5em;
}
#score-bar #weeds {
	font-size: 0.5em;
	display: inline-block;
	text-align: right;
	color: rgba(255,255,255,0.5);
	min-width: 10em;
}

#score-message {
	position: absolute;
	width: 100%;
	left: 0;
	top: 2.25em;
	font-size: 2em;
	font-weight: bold;
	text-align: center;
	color: #739600;
	opacity: 1.0;
}

#score-anim {
	display: inline-block;
	position: absolute;
	left: 0;
	top: 0;
	font-size: 2em;
	font-weight: bold;
	text-align: center;
	color: #739600;
	transform: translate3d(0,0,0);
}

/* Bottom bar */

#bottom-bar {
	position: absolute;
	width: 100%;
	left: 0;
	bottom: 0;
}

.bottom-bar-logos {
	height: 3.05em;
	background: #FFF;
	text-align: right;
}
.bottom-bar-logos-talinor {
	display: inline-block;
	background: #FFF;
	height: 100%;
	padding: 0.65em 1em 0 1em;
	box-sizing: border-box;
	vertical-align: top;
}
.bottom-bar-logos-syngenta0 {
	display: inline-block;
	background: #6E267B;
	height: 100%;
	padding: 0.75em 1em 0 1em;
	box-sizing: border-box;
	vertical-align: top;
}
.bottom-bar-logos-syngenta {
	display: inline-block;
	background: #6E267B;
	height: 100%;
	padding: 0.75em 1em 0 1em;
	box-sizing: border-box;
	vertical-align: top;
}
.bottom-bar-logos-fullscreen {
	position: absolute;
	display: inline-block;
	left: 0.75em;
	top: 1.25em;
	cursor: pointer;
}
.bottom-bar-logos-fullscreen img {
	width: 1.5em;
	height: 1.5em;
}

.bottom-bar-logos-talinor img {
	height: 1.65em;
}

.bottom-bar-logos-syngenta img {
	height: 1.65em;
}

/* Loading */

#loading-block {
	text-align: center;
}
#loading-text {
	color: #739600;
	margin-bottom: 7em;
}
#loading-bar-outer {
	width: 100%;
	height: 0.55em;
	background: #6E267B;
}
#loading-bar {
	width: 0%;
	height: 100%;
	background: #739600;
}

/* Title */

#title-block {
	text-align: center;
}
.title-head {
	font-size: 4em;
	font-weight: bold;
	color: #6E267B;
	text-transform: uppercase;
}
.title-subhead {
	font-size: 1.25em;
	margin-bottom: 1em;
}

/* Setup */

.modal-block {
	text-align: center;
}
.modal-head {
	font-size: 1.75em;
	font-weight: bold;
	color: #739600;
	text-transform: uppercase;
	margin-bottom: 0.1em;
}
.modal-text {
	font-size: 0.9em;
}

.difficulty-block {
	position: relative;
	display: inline-block;
	width: 24em;
	height: 7em;
	margin: 2.25em 0 0.5em 0;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.difficulty-content {
	position: absolute;
	left: 0;
	top: 0;
}
.difficulty-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.difficulty-labels {
	width: 100%;
	font-size: 0.9em;
	display: flex;
	justify-content: space-between;
}
.difficulty-labels .label {
	text-transform: uppercase;
	font-weight: bold;
}
.difficulty-bar-block {
	position: absolute;
	left: 0;
	top: 0;
	width: 87%;
	margin: 0 9% 0 4%;
	height: 7em;
	box-sizing: border-box;
}
.difficulty-bar {
	position: absolute;
	left: 0;
	top: 50%;
	background-color: #739600;
	width: 100%;
	margin: 0 0.25em;
	box-sizing: border-box;
	height: 0.15em;
}
.difficulty-bat {
	position: absolute;
	top: 25%;
	left: 0%;
	width: 0.5em;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.legal {
	margin-top: 14em;
	font-size: 0.375em;
}

/* Instruction */

.instruct-content {
	height: 10em;
	margin: 2em 0;
}
.instruct-swing {
	display: inline-block;
	width: 12em;
	height: 12em;
	box-sizing: border-box;
	padding: 0.8em;
	font-weight: bold;
	font-size: 0.9em;
	border: #CCC 0.4em solid;
	margin: 0 2em;
	text-transform: uppercase;
	vertical-align: middle;
}
.instruct-swing-touch {
	padding: 1.1em;
}
.instruct-swing > div {
	margin-top: 2em;
}
.instruct-direction {
	width: 4em;
	height: 4em;
	vertical-align: middle;
}
.instruct-direction-text {
	display: inline-block;
	color: #EEE;
	font-size: 0.8em;
	margin: 0 1em;
	width: 5em;
	vertical-align: middle;
}

.start-btn-block {
	margin-top: 3em;
	margin-bottom: 6em;
}

/* Game Over */

.score-summary {
	margin: 2.5em 0 3em 0;
}
.score-summary .score {
	font-size: 4em;
	color: #739600;
	font-weight: bold;
}
.score-summary img {
	width: 2.25em;
	margin: 0 0.75em 0 0.75em;
	padding-bottom: 0.35em;
}
.tweet-link-block {
	margin-top: 0.5em;
}
.tweet-link {
	font-weight: bold;
	font-size: 0.9em;
	color: #739600;
}
.tweet-link:hover,
.tweet-link:active {
	color: #82aa00;
}

/* Touch Controls */

.touch-controls {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: space-between;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
}
.touch-controls .left {
	display: inline-block;
	margin-left: 2em;
	width: 7em;
	height: 7.83125em;
	background-size: cover;
	background-repeat: no-repeat;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.touch-controls .center {
	display: inline-block;
	width: 16em;
	height: 14em;
	margin-top: -3em;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}
.touch-controls .right {
	display: inline-block;
	margin-right: 2em;
	width: 7em;
	height: 7.83125em;
	background-size: cover;
	background-repeat: no-repeat;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
}

.nobr {
	white-space: nowrap;
}

/* Rotate message */

.rotate-screen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #230C27;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.rotate-content {
	text-align: center;
	margin-bottom: 3em;
}
.rotate-img-block {
	margin-bottom: 2em;
}
.rotate-img-block img {
	width: 16em;
}
.rotate-message {
	color: #EEE;
	text-align: center;
}

/* Logger */

#logger {
	position: absolute;
	right: 0;
	top: 0;
	color: #6C3;
	background: rgba(0,0,0,0.5);
	padding: 0.25em 1em;
	font-family: monospace;
	font-size: 0.85em;
}

/* General */

.nowrap {
	white-space: nowrap;
}
