body {
	background-color: #ffeea9;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	margin: 0;

	font-family: Arial, sans-serif;
}

.menu {
	margin-bottom: 20px;
	text-align: center;
}

.gameContainer {
	background-color: #ff7d29;
	margin: 10px;
	display: grid;
	grid-template-columns: repeat(3, 100px);
	grid-template-rows: repeat(3, 100px);
	gap: 10px;
}

.gameContainer > div {
	width: 100px;
	height: 100px;
	padding: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #ffeea9;
	font-size: 60px;
	cursor: pointer;
	animation: init 1s linear 1;
	animation-fill-mode: forwards;
}

@keyframes init {
	from {
		padding: 10px;
	}
	to {
		padding: 0px;
	}
}

.o-marker {
	position: absolute;
	width: 50px;
	height: 50px;
	content: "";
	position: absolute;
	background-color: transparent;
	border-radius: 50%;
	border: 10px solid #feffd2;
	transform-origin: center;

	transform: scale(0);
	animation: drawO 0.5s ease forwards;
}

@keyframes drawO {
	to {
		transform: scale(1);
	}
}

.x-marker {
	position: absolute;
	width: 70px;
	height: 70px;
}

.x-marker:before,
.x-marker:after {
	content: "";
	position: absolute;
	width: 100%;
	height: 10px;
	background-color: #ffbf78;
	top: 50%;
	left: 50%;
	transform-origin: center;
}

.x-marker:before {
	transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
	animation: drawX1 0.5s ease forwards;
}

.x-marker:after {
	transform: translate(-50%, -50%) rotate(45deg) scaleX(0);
	animation: drawX2 0.5s ease forwards;
}

@keyframes drawX1 {
	to {
		transform: translate(-50%, -50%) rotate(45deg) scaleX(1);
	}
}

@keyframes drawX2 {
	to {
		transform: translate(-50%, -50%) rotate(-45deg) scaleX(1);
	}
}

.winLinerow {
	position: absolute;
	width: 0px;
	height: 10 px;
	content: "";
	position: absolute;
	background-color: #ffbf78;
	transform-origin: center;
	z-index: 5;
	transform: scale(0);
	animation: growWidth 0.5s ease forwards;
}

@keyframes growWidth {
	from {
		width: 0;
		height: 10px;
		transform: scale(0);
	}
	to {
		width: 300px;
		height: 10px;
		transform: scale(1);
	}
}

.winLinecol {
	position: absolute;
	width: 10px;
	height: 0 px;
	content: "";
	position: absolute;
	background-color: #ffbf78;
	transform-origin: center;
	z-index: 5;
	transform: scale(0);
	animation: growHeight 0.5s ease forwards;
}

@keyframes growHeight {
	from {
		width: 10px;
		height: 0;
		transform: scale(0);
	}
	to {
		height: 300px;
		width: 10px;
		transform: scale(1);
	}
}

.winLineleftDiogonal {
	position: absolute;
	width: 10px;
	height: 0 px;
	content: "";
	position: absolute;
	background-color: #ffbf78;
	transform-origin: center;
	z-index: 5;
	transform: scale(0);
	animation: growleftDiogonal 0.5s ease forwards;
}

@keyframes growleftDiogonal {
	from {
		width: 10px;
		height: 0;
		transform: scale(0) rotate(-45deg);
	}
	to {
		height: 430px;
		width: 10px;
		transform: scale(1) rotate(-45deg);
	}
}

.winLinerightDiogonal {
	position: absolute;
	width: 10px;
	height: 0 px;
	content: "";
	position: absolute;
	background-color: #ffbf78;
	transform-origin: center;
	z-index: 5;
	transform: scale(0);
	animation: growrightDiogonal 0.5s ease forwards;
}

@keyframes growrightDiogonal {
	from {
		width: 10px;
		height: 0;
		transform: scale(0) rotate(45deg);
	}
	to {
		height: 430px;
		width: 10px;
		transform: scale(1) rotate(45deg);
	}
}

.menu {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 32px;
}

.resetButton {
	background-color: #feffd2;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	color: #ffbf78;
	border: none;
	padding: 10px 20px;
	margin-top: 20px;
	margin-bottom: 25px;
	cursor: pointer;
	border-radius: 18px;
	animation: scalefromZH 1s ease-in 1 forwards;
}

@keyframes scalefromZH {
	from {
		transform: scale(0);
	}
	to {
		transform: scale(1);
	}
}

.resetButton:hover {
	transition: ease 0.3s;
	background-color: #ffbf78;
	color: #feffd2;
}

.stats {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: row;
	text-align: center;
	background-color: #feffd2;
	color: #ffbf78;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 26px;
	width: 100%;
	gap: 40px;
	margin-top: 40px;
	padding-bottom: 10px;
	border-radius: 18px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	animation: scalefromZH 1s ease-in 1 forwards;
}

.gameContainer > .result {
	z-index: -1;
	width: 170px;
	height: 170px;
	cursor: default;
	position: absolute;
	top: 36%;
	left: 42%;
	background-color: rgba(72, 72, 72, 0.807);
	border-radius: 18px;
	scale: 0;
	animation: resultScreen 3s cubic-bezier(0, 0.96, 0.67, 1.01) 1 backwards;
}

@keyframes resultScreen {
	from {
		z-index: -1;
		scale: 0;
	}
	to {
		z-index: 10;
		scale: 1;
	}
}
