@charset "UTF-8";

@font-face {
  font-family: 'bluu';
  src: url('fonts/bluunext-bold.woff2') format('woff2'),
       url('fonts/bluunext-bold.woff') format('woff'),
       url('fonts/bluunext-bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	line-height: 1.5;
	cursor: default;
}

/*DIALOG*/
::backdrop {
	background: rgba(255,255,255,0.5);
}

.close-modal {
	cursor: pointer;
	padding: 0 0 1rem;
	text-align: right;
}

.instructions-modal h1,
.instructions-modal h2 {
	font-family: 'bluu';
	margin: 0;
}

.instructions-modal ul {
	padding-left: 1.5rem;
}

.instructions-modal a {
	color: var(--link_color);
	cursor: pointer;
	margin-left: 0.5rem;
	outline: none;
}

.instructions-modal .square {
	border-radius: 3px;
	display: inline-block;
	height: 1rem;
	margin-right: 0.25rem;
	width: 1rem;
}

.instructions-modal .row-colors {
	list-style: none;
}

.square.yellow {
	background-color: var(--tile_yellow);
}

.square.green {
	background-color: var(--tile_green);
}

.square.blue {
	background-color: var(--tile_blue);
}

.square.purple {
	background-color: var(--tile_purple);
}

/*ELEMENTS*/
html,
body {
	margin: 0;
	padding: 0;
	user-select: none;
}

body {
	--button_active: #fafafa;
	--circle_color: #444;
	--disabled_color: #aaa;
	--link_color: #4580ff;
	--link_color_active: #325cb6;
	--text_color: #000;
	--text_color_inverse: #fff;
	--tile_bg_color: #ebebe0;
	--tile_bg_color_active: #5a594e;
	--tile_bg_color_failure: #707067;
	--tile_yellow: #f9df6d;
	--tile_green: #a0c35a;
	--tile_blue: #b0c4ef;
	--tile_purple: #ba81c5;
	color: var(--text_color);
	font-family: 'Muli', sans-serif;
	font-size: 16px;
	position: relative;
	overflow: hidden;
	-webkit-transition: background-color 300ms;
	transition: background-color 300ms;
}

nav {
	border-bottom: 1px solid var(--tile_bg_color);
	display: flex;
	justify-content: right;
	padding: 1rem 2rem;
}

footer {
	bottom: 1rem;
	display: flex;
	justify-content: space-between;
	padding: 0 1rem;
	position: fixed;
	width: 100%;
}

footer > div > a {
	color: var(--link_color);
	cursor: pointer;
}

/*APP*/
#container {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

nav.global-actions > .help {
	border: 2px solid var(--text_color);
	border-radius: 10rem;
	cursor: pointer;
	font-weight: 600;
	padding: 0 0.5rem;
}

.header {
	margin: 1rem 0;
	text-align: center;
}

.complete {
	width: 700px;
}

.complete > .row {
	align-items: center;
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	height: 5rem;
	justify-content: center;
	margin: 0.25rem;
}

.complete > .row > .category {
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.complete > .row > .correct-words {
	line-height: 1.25;
	text-transform: capitalize;
}

.tiles {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	margin: 0 auto;
	width: 700px;
}

.tile {
	align-items: center;
	background-color: var(--tile_bg_color);
	border-radius: 1rem;
	cursor: pointer;
	display: flex;
	font-weight: 600;
	height: 5rem;
	justify-content: center;
	margin: 0.25rem;
	text-transform: uppercase;
}
.tile.active {
	background-color: var(--tile_bg_color_active);
	color: var(--text_color_inverse);
}
.tile.failure {
	background-color: var(--tile_bg_color_failure);
}

.mistakes {
	align-items: center;
	display: flex;
	justify-content: center;
	margin-top: 1rem;
	position: relative;
}

.remaining {
	display: flex;
	margin-left: 0.5rem;
}

.previous-attempt {
	background-color: var(--circle_color);
	border-radius: 0.25rem;
	color: var(--text_color_inverse);
	display: none;
	padding: 0.5rem 1rem;
	position: absolute;
	right: 0;
}
.previous-attempt.active {
	display: block;
}

.circle {
	background-color: var(--circle_color);
	border-radius: 100%;
	height: 1rem;
	margin-right: 0.5rem;
	width: 1rem;
}

.actions {
	margin-top: 1rem;
	text-align: center;
}
.actions > button {
	background-color: transparent;
	border: 1px solid var(--text_color);
	border-radius: 1rem;
	cursor: pointer;
	margin: 0 0.5rem;
	padding: 0.25rem 0.5rem;
}
.actions > button[disabled] {
	border: 1px solid var(--disabled_color);
	color: var(--disabled_color);
}
.actions > button:hover {
	background-color: var(--button_active);
}

.yellow {
	background-color: var(--tile_yellow);
}

.green {
	background-color: var(--tile_green);
}

.blue {
	background-color: var(--tile_blue);
}

.purple {
	background-color: var(--tile_purple);
}

.game-select {
	margin-top: 2rem;
	text-align: center;
}

.game-select span {
	font-size: 0.875rem;
}

.game-btn {
	background-color: transparent;
	border: none;
	color: var(--link_color);
	cursor: pointer;
	font-weight: 600;
	padding: 0.25rem 0.5rem;
}
.game-btn:hover,
.game-btn.active {
	color: var(--link_color_active);
}

.game-btn.active {
	text-decoration: underline;
}

.game-btn[disabled] {
	color: var(--disabled_color);
}

/*MOBILE SIZE*/
@media only screen and (max-width: 698px) {
	header {
		font-size: 0.8rem;
	}

	footer {
		font-size: 0.5rem;
	}

	.complete,
	.tiles {
		font-size: 0.8rem;
		width: 370px;
	}

	.mistakes {
		font-size: 0.8rem;
	}

	.actions > button {
		font-size: 0.8rem;
	}
}