:root {
	--background-color: #121213;
	--main-font: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
	--main-blue: #1b8ae4;
	--main-orange: #ad5713;
	--main-green: #538d4e;
}

* {
	margin: 0;
	padding: 0;
}

body,
html {
	height: 100%;
	font-family: var(--main-font);
	background-color: var(--background-color);
	min-width: 360px;
	min-height: 644px;
	-moz-user-select: -moz-none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	overflow: auto;
	position: relative;
}

#container {
	display: flex;
	background-color: var(--background-color);
	height: 100%;
	align-items: center;
	flex-direction: column;
}

#game {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

header {
	border-bottom: 1px solid #3a3a3c;
	position: relative;
}

.title {
	color: gainsboro;
	font-size: 2.25rem;
	font-weight: 700;
	margin: 0.5rem 0 0 0;
	text-align: center;
	font-family: var(--main-font);
	letter-spacing: 5px;
}

#practiceHeader {
	display: block;
	color: gainsboro;
	font-size: 1.5rem;
	font-weight: 700;
	font-family: var(--main-font);
	letter-spacing: 3px;
}

.settings-cog {
	position: absolute;
	top: 18px;
	right: 9px;
	cursor: pointer;
	transition: 375ms linear all;
	z-index: 0.5;
}

#info {
	opacity: 0;
	display: none;
	position: fixed;
	overflow: auto;
	width: 100%;
	height: 100%;
	background-color: var(--background-color);
	transition: opacity 250ms linear;
	pointer-events: none;
	z-index: 2;
}

#info-button {
	position: absolute;
	top: 18px;
	left: 9px;
	cursor: pointer;
}

.info-text {
	color: gainsboro;
	font-size: 1.2rem;
	text-align: left;
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
	margin-left: 0.375rem;
	margin-right: 0.375rem;
	font-family: var(--main-font);
}

#how-to-play {
	width: 500px;
}

#info-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

#close-info {
	position: absolute;
	top: 18px;
	left: 9px;
	cursor: pointer;
}

#close-splash {
	position: absolute;
	top: 12px;
	left: 8px;
	cursor: pointer;
}

#settings {
	opacity: 0;
	display: block;
	position: fixed;
	overflow: auto;
	width: 100%;
	height: 100%;
	background-color: var(--background-color);
	transition: opacity 250ms linear;
	pointer-events: none;
	z-index: 2;
}

.setting {
	position: relative;
	width: 300px;
	color: gainsboro;
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 auto 0 auto;
	text-align: left;
	font-family: var(--main-font);
	margin-top: 0.75rem;
}

.setting-description {
	display: block;
	position: relative;
	width: 300px;
	color: #787c7e;
	font-size: 1rem;
	font-weight: 700;
	margin: 0 auto 0 auto;
	text-align: left;
	font-family: var(--main-font);
}

.setting-container {
	display: inline-block;
}

.whole-setting {
	display: flex;
	justify-content: center;
	align-items: center;
}

.switch-container {
	display: inline-block;
}

.switch {
	display: block;
	position: relative;
	width: 60px;
	height: 34px;
	float: left;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #aaa;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: '';
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: gainsboro;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: var(--main-green);
}

input:focus + .slider {
	box-shadow: 0 0 1px var(--main-green);
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

#board-container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-grow: 1;
	overflow: hidden;
}

#board {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	grid-gap: 5px;
	padding: 10px;
	box-sizing: border-box;
}

.square {
	border: 2px solid #3a3a3c;
	min-width: 60px;
	max-width: 60px;
	min-height: 60px;
	max-height: 60px;
	font-size: 45px;
	font-weight: 700;
	color: gainsboro;
	text-transform: uppercase;
	display: flex;
	justify-content: center;
	align-items: center;
}

#keyboard-container {
	height: 195px;
}

.keyboard-row {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0 auto 6px;
	touch-action: manipulation;
}

.keyboard-row button {
	font-family: var(--main-font);
	font-weight: 700;
	font-size: 12pt;
	border: 0;
	padding: 0;
	height: 58px;
	min-width: 28px;
	max-width: 32px;
	cursor: pointer;
	background-color: #818384;
	color: gainsboro;
	flex-grow: 1;
	text-transform: uppercase;
	margin-right: 6px;
	border-radius: 4px;
	user-select: none;
}

#instructions {
	color: gainsboro;
	font-size: 14pt;
	font-weight: 700;
	text-align: center;
	font-family: var(--main-font);
}

#instructions-container {
	position: relative;
	margin-top: 6px;
}

#blue {
	background-color: var(--main-blue);
	border: 1px solid var(--main-blue);
	min-width: 28px;
	max-width: 28px;
	min-height: 28px;
	max-height: 28px;
	font-size: 14pt;
	display: inline-flex;
}

#orange {
	background-color: var(--main-orange);
	border: 1px solid var(--main-orange);
	min-width: 28px;
	max-width: 28px;
	min-height: 28px;
	max-height: 28px;
	font-size: 14pt;
	display: inline-flex;
}

#restart-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 6px;
}

#restart-button {
	pointer-events: none;
	opacity: 0;
	font-family: var(--main-font);
	font-weight: 700;
	font-size: 12pt;
	border: 0;
	padding: 0;
	height: 58px;
	width: 98px;
	cursor: pointer;
	background-color: var(--main-green);
	color: gainsboro;
	border-radius: 4px;
	user-select: none;
}

#splash-screen-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

#splash-background {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgb(0, 0, 0, 0.5);
	transition: opacity 250ms linear;
	z-index: 1;
}

#splash-screen {
	background-color: var(--background-color);
	width: 300px;
	height: 600px;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	transition: opacity 250ms linear;
	z-index: 2;
	border-radius: 8px;
}

.splash-text {
	color: gainsboro;
	font-size: 0.875rem;
	text-align: left;
	margin: 0.5rem 0.5rem 0.5rem 0.5rem;
	font-family: var(--main-font);
}

#end-splash-screen-container {
	display: flex;
	justify-content: center;
	align-items: center;
}

#youLose {
	position: absolute;
	opacity: 0;
	transition: 0.333s;
	top: 15%;
	background-color: gainsboro;
	border-radius: 10px;
	pointer-events: none;
}

#youLoseMessage {
	color: var(--background-color);
	margin: 4px 8px 4px 6px;
	font-size: 12pt;
	font-weight: 700;
	text-align: center;
	font-family: var(--main-font);
}

#letter {
	color: gainsboro;
	background-color: var(--main-green);
	border: 1px solid var(--main-green);
	min-width: 28px;
	max-width: 28px;
	min-height: 28px;
	max-height: 28px;
	font-size: 14pt;
	display: inline-flex;
}

#numPlayed {
	color: gainsboro;
}

#winPercent {
	color: gainsboro;
}

#curStreak {
	color: gainsboro;
}

#maxStreak {
	color: gainsboro;
}

#statsContainer {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.statsText {
	color: gainsboro;
	font-size: 14px;
}

.stat {
	display: inline-block;
	text-align: center;
	margin: 0 10px 0 10px;
}

.statVal {
	font-size: 40px;
}

#chart {
	position: relative;
	margin: -30px 0 -30px 0;
}

#nextLettle {
	color: gainsboro;
	font-size: 40px;
}

.statButton {
	font-family: var(--main-font);
	font-weight: 700;
	font-size: 12pt;
	border: 0;
	padding: 0;
	height: 58px;
	width: 98px;
	cursor: pointer;
	background-color: var(--main-green);
	color: gainsboro;
	border-radius: 4px;
	user-select: none;
	margin: 28px 14px 0px 14px;
}

#end-splash-screen {
	background-color: var(--background-color);
	width: 300px;
	height: 600px;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	transition: opacity 250ms linear;
	z-index: 1;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
}

#end-splash-background {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgb(0, 0, 0, 0.5);
	transition: opacity 250ms linear;
	opacity: 0;
	pointer-events: none;
}

#stats-button {
	position: absolute;
	top: 22.5px;
	right: 46.8px;
	cursor: pointer;
	z-index: 0.5;
}

#copied {
	position: absolute;
	opacity: 0;
	transition: 0.333s;
	top: 15%;
	background-color: gainsboro;
	border-radius: 10px;
	pointer-events: none;
	z-index: 5;
}

#copiedMessage {
	color: var(--background-color);
	margin: 4px 8px 4px 6px;
	font-size: 12pt;
	font-weight: 700;
	text-align: center;
	font-family: var(--main-font);
}
