body {
	margin: 0;
}

body, html, input, button {
	/*font-family: 'Nunito', sans-serif;*/
	font-family: 'Mansalva', cursive;
	font-size: 48px;
}

pre {
	font-size: 12px;
}

button.link-button {
	background-color: transparent !important;
	color: darkblue !important;
	text-decoration: underline;
	outline: none;
}
button.link-button:hover {
	color: blue !important;
}


/*-------- menu --------*/

.menu-button {
	width: 50px;
	border-radius: 8px;
	border: 1px solid #eee;
	position: absolute;
	top: 4px;
	right: 4px;
	background-color: #eee;
	cursor: pointer;
	z-index: 100;
	outline: none;
}
.menu-button:hover {
	background-color: #ddd;
}
.menu-button > img {
	width: 100%;
	opacity: 0.6;
}
.menu-button:hover > img {
	opacity: 0.8;
}

/*-------- bottle --------*/

.cld-center-text > div {
	display: flex;
	text-align: center;
	justify-content: center;
	flex-direction: column;
}

.horizontal-even-stretch {
	display: flex;
}

.horizontal-even-stretch > div {
	flex-grow: 1;
	height: 100px;
}

.horizontal-even-stretch > div + div {
	margin-left: 2%;
}

.padded {
	margin: 4px;
}
.question-container {
	position: relative;
}
.question-container > div::after {
	content: "";
	background-image: url('../img/qm.jpg');
	background-repeat: repeat;
	background-size: 20%;
	opacity: 0.2;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	z-index: -1;
}

.answer {
	background-color: #eee;
	cursor: pointer;
}
.answer:hover {
	background-color: #ddd;
}

.bottle-container {
	position: relative;
	width: 300px;
	margin: 0 auto;
	overflow: hidden;
}
.bottle-fill {
	position: absolute;
	height: 0%;
	background-color: red;
	bottom: 0;
	width: 100%;
	z-index: -1;
	left: 0;
	transition: all 0.5s ease;
}
.bottle-container img {
	width: 100%;
	display: block;
}

/*-------- monkey --------*/

.answer-input {
	border: none;
	border-bottom: 3px dashed black;
	font-size: 48px;
	margin: 0 auto;
	padding: 4px;
	outline: none;
}

.tree-container {
	height: calc(100vh - 214px);
	position: relative;
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#6db3f2+0,54a3ee+50,3690f0+51,1e69de+100;Blue+Gloss+%233 */
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#6db3f2+0,54a3ee+50,3690f0+51,1e69de+86,1e69de+86,fcd62d+89,f2de6f+100 */
	background: #6db3f2; /* Old browsers */
	background: -moz-linear-gradient(top,  #6db3f2 0%, #54a3ee 50%, #3690f0 51%, #1e69de 86%, #1e69de 86%, #fcd62d 89%, #f2de6f 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #6db3f2 0%,#54a3ee 50%,#3690f0 51%,#1e69de 86%,#1e69de 86%,#fcd62d 89%,#f2de6f 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #6db3f2 0%,#54a3ee 50%,#3690f0 51%,#1e69de 86%,#1e69de 86%,#fcd62d 89%,#f2de6f 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6db3f2', endColorstr='#f2de6f',GradientType=0 ); /* IE6-9 */

}
.tree-container img {
	position: absolute;
	transform: translate(-50%, 0);
	left: 50%;
}
img.tree {
	height: 100%;
}
img.monkey {
	height: 20%;    /* relative to tree */
	bottom: 0;      /* max is 50% (visually established) */
	transform: translate(-110%, 0); /* slightly to the left of the center */
	transition: all 1s ease;
}

/*-------- space --------*/

.space {
	width: 100%;
	position: relative;
	overflow: hidden;
	height: calc(100vh - 110px);
	background-color: #004;
}
.meteor-container {
	background-image: url(../img/meteor.png);
	background-repeat: no-repeat;
	background-size: cover;
	width: 200px;
	height: 200px;
	position: absolute;
	transform: rotate(0deg) scale(1, 1);
	transition: all 1s linear;
	font-size: 50%;
}
.meteor-text {
	color: white;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	text-align: center;
}
.explosion {
	width: 200%;
	height: 200%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.meteor-container.exploding {
	background-image: none;
}
.meteor-container.exploding .meteor-text {
	display: none;
}
.spaceship {
	width: 200px;
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translate(0, -50%);
}
.score-container {
	position: absolute;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
}
.score {
	height: 5px;
	background-color: #2e2;
	transition: all 1s ease-in-out;
}

/*-------- settings --------*/

.settings-form {
	background-color: whitesmoke;
	list-style-type: none;
	padding: 0;
	border-radius: 3px;
	height: 100%;
	min-height: 100vh;
}
.settings-form, .settings-form input, button {
	font-size: 24px;
}
.form-row {
	display: flex;
	justify-content: flex-end;
	padding: .5em;
	position: relative;
}
.form-row > label {
	padding: .5em 1em .5em 0;
	flex: 1;
}
.form-row > input, .form-row > div {
	flex: 2;
}
.form-row > input,
.form-row > button,
.form-row > div {
	padding: .5em;
}
.form-row > button {
	background: darkblue;
	color: white;
	border: 0;
	cursor: pointer;
	outline: none;
}
.form-row > button:hover {
	background: blue;
}
.form-row > button:disabled {
	opacity: 0.5;
}
.form-row.help-text {
	font-size: 80%;
	padding-top: 0;
	opacity: 0.7;
}
.word-list-container {
	background-color: #fff;
	border: 1px solid #ddd;
	font-size: 0.75em;
	max-height: 40vh;
	overflow: scroll;
	min-height: 200px;
}
.loading .word-list-container {
	opacity: 0.5;
}
.word-list {
	text-align: left;
	width: 100%;
}
.word-list-answer {
	display: inline-block;
	padding: 2px;
	border: 1px solid #ddd;
	background-color: #eee;
	margin: 2px;
	border-radius: 2px;
}
.word-list tbody tr:nth-child(odd) {
	background-color: #e0e0e8;
}
.word-list tbody tr {
	cursor: pointer;
	transition: all 0.5s linear;
}
.word-list tbody tr.selected {
	background-color: #fcd62d;
}
.word-list tbody tr.selected:nth-child(odd) {
	background-color: #f2de6f;
}
.button-bar button {
	font-size: 0.75em;
	transition: all 0.5s linear;
}
.starting-point {
	display: inline-block;
	border: 1px solid #66ff66;
	background-color: #aaffaa;
	border-radius: 2px;
	padding: 2px;
	float: right;
	margin: 2px;
}
button.inside-input-button {
	position: absolute;
	z-index: 100;
	top: 50%;
	transform: translate(0, -50%);
	font-size: 0.75em;
	margin-left: -1em;
}
button.remove-answer-button {
	border: 0;
	background-color: transparent;
	cursor: pointer;
	font-family: arial;
	font-size: 12px;
	font-weight: bold;
	opacity: 0.5;
	outline: none;
}
button.remove-answer-button:hover {
	background-color: #ddd;
}
.input-hint {
	opacity: 0;
	transition: opacity 1s ease-in-out;
	color: #07bd60;
	font-size: 0.75em;
}
.input-hint.active {
	opacity: 1;
}
