body {
	overflow-y: hidden;
	font-size: 16px;
	font-family: "Arial", "sans-serif";
}

button, select, input {
	font: inherit;
}

#game {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

.info {
	font-size: 2rem;
	display: flex;
	margin-bottom: 10px;
}

.info > * {
	flex: 1;
}

#game-state {
	font-size: 2rem;
	text-align: center;
	margin-top: 10px;
	min-height: 40px;
}

.info > div:last-child {
	text-align: right;
}

.board {
	display: grid;
	max-width: 600px;
	aspect-ratio: 1 / 1;
	width: 90vw;
	gap: 5px;
}

.cell {
	border: 1px solid black;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: clamp(14px, 10vw, 64px);
	user-select: none;
}

.cell.empty {
	border: none;
}

.menu {
	position: absolute;
	left: 0px;
	top: 0;
	width: 25%;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
	height: 100vh;
	transition: visibility .5s, left .5s;
}

.menu-inner {
	display: flex;
	flex-direction: column;
	margin-top: 50px;
	gap: 10px;
}

.menu.hidden {
	left: -100%;
	pointer-events: none;
	visibility: hidden;
}

.menu input {
	vertical-align: middle;
}

.menu label {
	display: block;
	width: 100%;
}

#close-menu-btn {
	position: relative;
	float: right;
	border: none;
	padding: 10px;
}

#open-menu-btn {
	position: absolute;
	left: 10px;
	top: 10px;
	background: none;
	border: none;
	font-size: 24px;
}

#instructions-btn {
	position: absolute;
	right: 10px;
	top: 10px;
	background: none;
	border: none;
	font-size: 24px;
}

#instructions {
	font: inherit;
	border: none;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

#instructions > table {
	margin: 0 auto;
}

@media (width <= 600px){
	.menu {
		width: 50%;
	}

	.info {
		font-size: 1.5rem;
	}
}

