@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');



* {

	box-sizing: border-box;
	font-family: "Kanit", sans-serif;

}

body {
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 100vh;
	align-items: center;
	justify-content: center;

}

button:not(#submit, #restart) {
	width: 50px;
	height: 50px;
	background-color: white;
	border: none;	
}

button:hover {
	cursor: pointer;
	background-color: #d3d3d3;
}
button:disabled {
	pointer-events: none;
	opacity: 1;
	background-color: inherit;
	color: inherit;
	border: none;
}


.player-info {

	background-color: blue;
	height: 100%;
	align-self: center;

	display: flex;
	color: white;
}

.player-info > #player-info {

	align-self: center;
	justify-self: center;
	
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	gap: 14px;
}

.game-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
}


.game-board {
	grid-column: 1 / 3;
	width: 154px;
	background-color: black;
	display: grid;
	grid-template-columns: 50px 50px 50px;
	gap: 2px;
	justify-self: center;
}

.score-board {
	display: flex;
	height: 100%;
	width: 100%;
	justify-self: center;
	align-self: center;
	background-color: blue;
	gap: 10px;
	flex-wrap: wrap;
}

.score-board > .score-text {
	justify-self: center;
	align-self: center;
	width: 100%;
	text-align: center;
}

#winnerModal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);

}

.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}
