header{
	display: block;
	margin: 0 auto;
	width:500px;
	text-align:center;
}

header h1{
	font-family: Arial;
	font-size: 60px;
	font-weight: bold;
}

header #newgamebutton{
	display: block;
	margin: 20px auto;

	width: 100px;
	padding: 10px ,10px;
	background-color: #8f7a66;

	font-family: Arial;
	color: white;
	border-radius: 10px;
	text-decoration: none;
}

header #newgamebutton:hover{
	background-color: #9f8b77
}

header p{
	font-family: Arial;
	font-size: 25px;
	margin: 20px auto;
}

#grid-container{
	width: 460px;
	height: 460px;
	padding: 20px;

	margin: 50px auto;
	background-color: #bbada0;

	border-radius: 10px;

	position: relative;
}

.grid-cell{
	width: 100px;
	height: 100px;
	border-radius: 6px;
	background-color: #ccc0b3;

	position: absolute;
}

.number-cell{

	border-radius: 6px;
	font-family: Arial;
	font-weight: bold;
	font-size:60px;
	line-height: 100px;
	text-align: center;

	position: absolute;
}

body {
	display: flex;
	flex-direction: column;
	-webkit-flex-direction: column;
	justify-content: center;
	-webkit-justify-content: center;
	align-items: center;
	-webkit-align-items: center;
	height: 100vh;
	margin: 0;
	background-color: #f0f0f0;
	font-family: Arial, sans-serif;
}

.gamepad {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 10px;
	width: 150px;
	height: 240px;
}

.arrow {
	width: 100%;
	height: 100%;
	font-size: 24px;
	border: none;
	background-color: #EF5350FF;
	color: white;
	cursor: pointer;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.arrow:hover {
	background-color: #0056b3;
}

#up {
	grid-column: 1 / 3;
	grid-row: 1;
}

#left {
	grid-column: 1;
	grid-row: 2;
}

#down {
	grid-column: 1 / 3;
	grid-row: 3;
}

#right {
	grid-column: 2;
	grid-row: 2;
}