@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");

/* || RESET */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* || GENERAL STYLES */
body {
	font: 1.5rem "Nunito", sans-serif;
	min-height: 100vh;
	max-width: 100%;
}

/* || HEADER */
.header {
	background: linear-gradient(to right, #369, #396);
	height: 100vh;
	max-width: 100%;
}

.header h1 {
	text-align: center;
	font-size: rem;
	margin-bottom: 40px;
	padding: 1rem;
	background-color: #00000098;
	color: white;
	margin-bottom: 0;
}

.buttons {
	display: flex;
	justify-content: space-evenly;
	background-color: #00000098;
	color: white;
}

.header button {
	font: inherit;
	outline: none;
	border: none;
	background-color: rgba(255, 255, 255, 0.5);
	padding: 1rem;
	border-radius: 12px;
	font-size: 3rem;
}

.header .options {
	font-size: 1.3rem;
	padding: 0.5rem;
	background-color: transparent;
	color: inherit;
}

.buttons .choosed {
	border-bottom: 2px solid red;
	border-radius: 0;
}

.start-game {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
	flex-flow: column nowrap;
	text-align: center;
}

.start-game p {
	width: 70%;
	color: red;
	font-size: 14px;
	margin-top: 5px;
}
/* || GAME */
.game {
	display: none;
	justify-content: center;
	align-items: center;
	height: 100vh;
	flex-flow: column nowrap;
	background-color: #131313;
	color: white;
}

.game p {
	font-size: 10px;
	max-width: 300px;
	margin-top: 32px;
}

.game .incorrect {
	margin-top: 0;
	text-align: center;
	color: red;
	display: none;
	font-size: 12px;
}

.word {
	letter-spacing: 5px;
	font-size: 2rem;
}

.input {
	margin-top: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.input input {
	padding: 0.5rem;
	outline: none;
	border: 2px solid #333;
	font: inherit;
	width: 60%;
	border-radius: 40px 0 0 40px;
	padding-left: 1rem;
	border-right: none;
	background-color: #131313;
	color: white;
}

.input button {
	font: inherit;
	outline: none;
	padding: 0.5rem;
	border-radius: 0 40px 40px 0;
	border: none;
	background-color: white;
	padding-right: 1rem;
	background-color: #333;
	color: white;
	border: 2px solid #333;
}

/* || LETTERS */
.letters {
	display: flex;
	flex-flow: column nowrap;
	width: 100%;
	justify-content: center;
	align-items: center;
	margin-top: 40px;
}

.row1,
.row2 {
	margin-bottom: 8px;
}

.letter {
	background-color: rgba(18, 121, 145, 0.862);
	outline: none;
	border: none;
	padding: 0.4rem;
	color: white;
	font-size: 1rem;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
}

.green {
	background-color: green;
	cursor: not-allowed;
}

.red {
	cursor: not-allowed;
	background-color: red;
}

.z {
	grid-row: 3;
}

/* || END GAME */
.end-game {
	display: none;
	justify-content: center;
	align-items: center;
	flex-flow: column nowrap;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	color: White;
	font-weight: 500;
}

.end-game div {
	margin: 0.5rem;
}

.end-game button {
	font: inherit;
	outline: none;
	border: none;
	background-color: rgba(255, 255, 255, 0.5);
	padding: 0.5rem;
	border-radius: 12px;
	font-size: 2rem;
	margin: 1rem;
}

.show {
	display: flex;
}

/* || LEADERBOARD */
.leaderboard-section {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #000000c7;
	color: white;
	font-weight: 400;
	font-size: 0.9rem;
	text-align: center;
}
.leaderboard-section h2 {
	padding: 30px;
	font-size: 3rem;
	background-color: #000000bc;
}

table {
	width: 100%;
	max-width: 600px;
	margin: 0 auto 0;
}

table thead {
	background-color: #383838c7;
}

tbody tr:nth-child(even) {
	background-color: #383838c7;
}

.leaderboard-section .leaderboard-back {
	outline: none;
	border: none;
	font: inherit;
	font-size: 3rem;
	margin-top: 40px;
	padding: 0.6rem;
	background-color: #ffffffc7;
	border-radius: 24px;
}

.leaderboard-section .leaderboard-back:hover {
	background-color: #ffffff;
}

@media screen and (min-width: 720px) {
	.header {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-flow: column nowrap;
	}

	.header h1 {
		border-radius: 12px;
	}

	.buttons {
		font-size: 2rem;
		flex-direction: column;
		height: 300px;
		background-color: transparent;
	}

	.buttons .options {
		padding: 1rem;
		background-color: rgba(255, 255, 255, 0.5);
		color: black;
	}
}
