body {
	display: flex;
}

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

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #000;
  animation: spinner .6s linear infinite;
}

.loading {
	display: flex;
	margin: 0 auto;
	justify-content: center;
	align-items: top;
	text-align: center;
	font-size: 5rem;
	z-index: 5;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	padding-top: 5%;
	background-color: rgba(128, 128, 128, 0.5);
}

.game {
	z-index: 0;
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.board-container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-grow: 1;
	overflow: hidden;
	width: 100%;
}

.board {
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-rows: repeat(10, 1fr);
	grid-gap: 5px;
	padding: 10px;
	box-sizing: border-box;
}

