* {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
		"Helvetica Neue", sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

strong {
	color: #ff0033;
}

body {
	width: 100%;
	min-height: 100vh;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: column;
	padding-bottom: 40px;
	gap: 20px;
	background-color: whitesmoke;
}

h1 {
	margin-top: 20px;
}

#container-letters {
	padding: 0 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;

	&:hover {
		cursor: default;
	}

	&:hover .inputLetter {
		cursor: default;
	}

	.inputLetter {
		border-color: transparent transparent rgba(0, 0, 0, 0.5) transparent;
		outline: none;
	}
}

#title.lose {
	color: #ff003c;
	text-shadow: 0px 1px 1px rgba(83, 1, 1, 0.501);

	&::before {
		content: "☠️";
	}
	&::after {
		content: "☠️";
	}
}

#title.win {
	color: #00a4ea;

	&::before {
		display: inline-block;
		content: "🎉";
		transform: scaleX(-1);
	}
	&::after {
		content: "🎉";
	}
}

.inputLetter {
	width: 40px;
	height: 50px;
	border: 2px solid black;
	border-radius: 3px;
	text-align: center;
	font-size: 2.4em;
	font-weight: bold;
	position: relative;

	&:focus::placeholder {
		color: transparent;
	}
}

#container-group {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin-top: 30px;
	gap: 10px;
}

#container-buttons {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

#loading-container {
	position: absolute;
	width: 100%;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.3);
}

#loading-box {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 98;
	width: 250px;
	height: 200px;
	background-color: rgb(255, 255, 255);
	font-size: 0.9em;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.3);
}

#loading-spinner {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 7px solid #008cff;
	border-color: transparent rgb(0, 140, 255) rgb(0, 140, 255);
	z-index: 99;
	animation: rotate 0.5s infinite ease-in-out;
	position: absolute;
}

#loading-long-timer {
	position: absolute;
	bottom: 5px;
	font-style: italic;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

button {
	font-size: 1em;
	border: 1px solid rgba(0, 0, 0, 0.5);
	padding: 10px 20px;
	border-radius: 5px;
	transition: all 0.15s ease;
	font-weight: 500;

	&:hover {
		cursor: pointer;
		transform: translateY(-5px);
	}

	&:active {
		transform: scale(0.985);
	}

	&:disabled {
		cursor: not-allowed;
	}
}

#btnNewWord {
	background-color: rgb(48, 36, 44);
	color: white;
}

#btnPlay {
	background-color: rgb(80, 77, 255);
	color: white;

	&:disabled {
		background-color: rgba(239, 0, 0, 0.5);
	}
}

#btnTip {
	padding: 10px;
	background-color: #fff;
	display: flex;
	gap: 1px;
	justify-content: space-around;

	.tip-icon {
		font-size: 15px;
	}
}

#person {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

#head {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 50px;
	position: relative;
	width: 130px;
	height: 130px;
	border: 5px solid black;
	border-radius: 50%;
}

.eye {
	position: relative;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.eye span {
	position: absolute;
	width: 30px;
	height: 5px;
	border-radius: 10px;
	background-color: red;
}

.eye span:first-of-type {
	transform: rotate(-45deg);
}

.eye span:last-of-type {
	transform: rotate(45deg);
}

#body {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	width: 5px;
	height: 140px;
	background-color: black;
}

.arm {
	position: absolute;
	top: -20px;
	width: 5px;
	height: 100px;
	background-color: black;

	&.left {
		left: -40px;
		transform: rotate(125deg);
	}

	&.right {
		right: -40px;
		transform: rotate(-125deg);
	}
}

.leg {
	position: absolute;
	bottom: -80px;
	width: 5px;
	height: 100px;
	background-color: black;

	&.left {
		left: -35px;
		transform: rotate(45deg);
	}

	&.right {
		right: -35px;
		transform: rotate(-45deg);
	}
}

.hidden {
	display: none !important;
}
