/*
Theme Name:
Theme URI: https://harmonicdesign.ca
Author: Harmonic Design
Author URI: https://harmonicdesign.ca
Description: This theme is for use on *** <strong>only</strong>
*/

html {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

*,
*:before,
*:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html,
body {
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	color: #4a4a4a;
	font-family: sans-serif;
	background: #fefefe;
}

img {
	max-width: 100%;
	height: auto;
}

.button {
	border-radius: 4px;
	border: 1px solid #eee;
	background-color: #444;
	color: #fff;
	display: inline-block;
	line-height: 1;
	padding: 1em;
	cursor: pointer;
}

.button.disabled {
	opacity: 0.6;
	cursor: default;
}

.tile {
	border-radius: 4px;
	border: 1px solid #eee;
	background-color: #efefe6;
	color: #000;
	line-height: 1;
	cursor: pointer;
	text-align: center;
	text-transform: uppercase;
	aspect-ratio: 16 / 9;
	align-content: center;
	user-select: none;
}

.fitty {
	padding: 1em;
}

.tile.active {
	background-color: #222;
	color: #fff;
}

.tile.complete {
	cursor: default;
	grid-column: 1 / -1;
	aspect-ratio: auto;
	line-height: 1.4;
	padding: 1em;
}

.tile.complete_1 {
	border: 2px solid green;
	background-color: lightgreen;
}

.tile.complete_2 {
	border: 2px solid goldenrod;
	background-color: bisque;
}

.tile.complete_3 {
	border: 2px solid blue;
	background-color: skyblue;
}

.tile.complete_4 {
	border: 2px solid purple;
	background-color: rgb(220, 157, 236);
}

.tile.active.selected_lose {
	border: 1px dashed #000;
	transition: all ease-in 500ms;
	background-color: #d1d1c9;
	color: #000;
}

.tile.active.selected_lose_1 {
	transition-delay: 0;
}

.tile.active.selected_lose_2 {
	transition-delay: 0.2s;
}

.tile.active.selected_lose_3 {
	transition-delay: 0.4s;
}

.tile.active.selected_lose_4 {
	transition-delay: 0.6s;
}

#mistakes {
	align-content: center;
}

.mistake {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #222;
	display: inline-block;
}

.mistake.loser {
	background-color: darkred;
}

.answer {
	font-weight: bold;
	margin-bottom: 0.4em;
}

h1 {
	-webkit-text-stroke: 2px #633838;
	font-variation-settings: "wght" 900, "ital" 1;
	font-size: 45px;
	text-align: center;
	color: transparent;
	font-family: "Meta", sans-serif;
	text-shadow: 2px 2px 0px #07bccc, 4px 4px 0px #e601c0, 6px 6px 0px #e9019a;
	display: inline-block;
}

header,
footer {
	max-width: 100%;
	width: 800px;
	text-align: center;
	margin: 0 auto;
	line-height: 1.4;
	padding: 0 1em;
	overflow: hidden;
}

footer > p > a {
	color: #000;
}

main {
	margin: 2rem auto;
	max-width: 100%;
	width: 800px;
	display: grid;
	grid-template-rows: 1fr max-content;
	grid-gap: 1rem;
}

#board {
	display: grid;
	grid-template-columns: minmax(10px, 1fr) minmax(10px, 1fr) minmax(10px, 1fr) minmax(10px, 1fr);
	grid-gap: 1rem;
}

#board.shake {
	animation: shake 0.5s;
}

#actions {
	text-align: right;
	align-items: center;
	display: grid;
	grid-template-columns: 1fr max-content;
	grid-gap: 2rem;
}

@keyframes shake {
	0% {
		transform: translate(1px, 1px) rotate(0deg);
	}
	10% {
		transform: translate(-1px, -2px) rotate(-1deg);
	}
	20% {
		transform: translate(-3px, 0px) rotate(1deg);
	}
	30% {
		transform: translate(3px, 2px) rotate(0deg);
	}
	40% {
		transform: translate(1px, -1px) rotate(1deg);
	}
	50% {
		transform: translate(-1px, 2px) rotate(-1deg);
	}
	60% {
		transform: translate(-3px, 1px) rotate(0deg);
	}
	70% {
		transform: translate(3px, 1px) rotate(-1deg);
	}
	80% {
		transform: translate(-1px, -1px) rotate(1deg);
	}
	90% {
		transform: translate(1px, 2px) rotate(0deg);
	}
	100% {
		transform: translate(1px, -2px) rotate(-1deg);
	}
}

@media (max-width: 800px) {
	body {
		font-size: 16px;
	}

	main {
		padding: 1em;
	}

	#board {
		grid-gap: 6px;
	}

	.tile {
		padding: 4px;
		aspect-ratio: 1/1;
	}

	.tile.complete {
		padding: 12px;
	}
}
