body {
	margin: 0;
	background-color: #222;
	font-family: 'Pacifico', cursive;
	user-select: none;
	cursor: url('/assets/cursor.png'), auto;
	height: 100vh;
}

head {
	display: none;
}

.btn {
	background-color: #8bc34a;
	border: 1px solid #577e2a;
	font-size: 2rem;
	cursor: url('/assets/pointer.png'), pointer;
}

.btn.btn-small {
	font-size: 1rem;
}

.btn.btn-blue {
	background-color: #4b7dc3;
	border: 1px solid #2a4d7e;
}

.btn.btn-orange {
	background-color: #c38d4b;
	border: 1px solid #7e582a;
}

.btn-group {
	display: flex;
	justify-content: space-around;

	width: 100%;
}

.btn-group .btn {
	width: 100%;
	margin: 0 0.25rem;
}

#game-container {
	position: fixed;
	top: 50%;
	left: 50%;
	height: 80vh;
	transform: translate(-50%, -50%);
	border: 1px solid black;
	overflow: hidden;
	min-height: 400px;
}

#game-container.debug-mode {
	top: 50%;
	left: 60%;
	height: 60vh;
}

#game-container.playing {
	cursor: none;
}

canvas {
	height: 100%;
}

.loader {
	position: absolute;
	right: 6%;
	bottom: 6%;

	opacity: 1;

	animation-duration: 3s;
	animation-name: spinner;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;

	transition: opacity 1s ease;
}

#playBtn {
	position: fixed;
	cursor: url('/assets/pointer.png'), pointer;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 100;
}

#retryBtn {
	display: block;
	margin: 0 auto;
	cursor: url('/assets/pointer.png'), pointer;
}

#score {
	position: absolute;
	top: -20px;
	left: 10px;
}

#middleText {
	position: absolute;
	top: -20px;
	left: 50%;
	text-align: center;
	transform: translate(-50%, 0%);
}

#timer {
	position: absolute;
	left: 10px;
}

#gameOverText {
	position: absolute;
	background-color: rgba(1, 1, 1, 0.5);
	width: 100%;
	height: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	cursor: url('/assets/cursor.png'), auto;
}

#pauseScreen {
	position: absolute;
	background-color: rgba(1, 1, 1, 0.5);
	width: 100%;
	height: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	cursor: url('/assets/cursor.png'), auto;
	font-family: 'Open Sans', sans-serif;
}

#pauseScreen .btn, #pauseScreen select {
	font-family: 'Open Sans', sans-serif;
}

.pause-buttons-container {
	position: absolute;
	width: 50%;
	height: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.settings-table {
	width: 100%;
}

.settings-table label {
	color: white;
}

.settings-table input, .settings-table select {
	width: 100%;
}

input[type='checkbox'] {
	transform: scale(2);
}

#resumeBtn {
	width: 100%;
}

#achievementBox {
	position: absolute;
	padding: 5px;
	width: 33%;
	right: -40vw;
	font-family: "Open Sans", sans-serif;
	background-color: #222;
	color: #eee;
	border: 1px solid #111;
	opacity: 0.8;
	border-bottom-left-radius: 10px;
	-webkit-box-shadow: -3px 3px 5px 5px rgba(0, 0, 0, 0.5); 
	box-shadow: -3px 3px 5px 5px rgba(0, 0, 0, 0.5);
	margin: 0;
	transition: all 0.75s ease-in-out;
}

#achievementBox.open {
	right: 0px;
}

#achievementText {
	position: relative;
	display: inline-block;
	top: -8px;
}

.achievement-img {
	display: inline;
	height: 64px;
}

.achievement-caption {
	margin: 0;
}

.talk-box-container {
	position: absolute;
	width: 90%;
	height: 20%;
	top: 72%;
	left: 5%;
	background-color: rgba(1, 1, 1, 0.5);
	border: 1px solid black;
	border-radius: 5px;
	padding: 10px;
}

.talk-text {
	color: #eee;
	word-break: break-word;
	font-size: 1.5rem;
}

#gameOverText h1 {
	font-size: 3rem;
	margin-top: 25%;
}

#gameOverText * {
	color: #eee;
}

.debug {
	position: fixed;
	top: 0;
	left: 0;
	width: 25vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.75);
	border: 1px solid #eee;

	color: #eee;
	overflow-y: auto;
}

#debugText {
	width: 100%;
	height: 100%;
}

.text-center {
	text-align: center;
}

@keyframes spinner {
	0% {
		transform: rotate(0deg) scale(2);
	}

	50% {
		transform: rotate(180deg) scale(3);
	}

	100% {
		transform: rotate(360deg) scale(2);
	}
}