* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	/* border: 1px solid pink; */
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background-color: lightcyan;
	font-family: Arial, Helvetica, sans-serif;
}

h1 {
	text-align: center;
	font-size: xx-large;
}

#game-container {
	background-color: white;
	width: 400px;
	padding: 20px;
	border-radius: 10px;
}

#score-board {

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 10px;
	font-size: x-large;
}

#score-box {
	display: flex;
	margin: 8px;

}

#controls-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#reset-box {
	display: flex;
	justify-items: center;
	flex-direction: column;
	margin: 8px;
}

#reset-button {
	width: 80px;
	margin: auto;
}

#speed-control-box {
	display: flex;
	flex-direction: column;
	align-items: center;
}


#game-board {

	display: grid;
	grid-template-columns: repeat(8, 1fr);
	grid-template-rows: repeat(8, 1fr);
	gap: 4px;
	margin-top: 10px;
}

#tooltip {
	position: absolute;
	display: none;
	background: #fff;
	border: 1px solid #ccc;
	padding: 5px;
	border-radius: 5px;
	pointer-events: none;
	z-index: 1000;
}

#credits-box {
	display: flex;
	justify-content: space-between;
	padding-top: 30px;
}

#credits-box>div {
	width: 100px;
}

#link-box {
	text-align: left;
	margin: auto;
	
}

a {
	 text-decoration: none;
}

#version-box {
	text-align: left;
	margin: auto;
}

#how-to-button-box {
	text-align: right;
	padding: 2px;
}

#how-to-button-box>button {
	padding: 2px;
}

@keyframes fillFromTop {
	from {
		background-size: 100% 0;
	}

	to {
		background-size: 100% 100%;
	}
}

.tile {
	text-align: center;
	width: 100%;
	border-radius: 5px;
	padding-top: 100%;
	/* padding-top: 40%;
	padding-bottom: 40%; */
	background-repeat: no-repeat;
	background-position: top;
	background-size: 100% 100%;
	transition: background-color 0.2s ease;
}

.tile.fill {
	animation: fillFromTop 0.2s forwards;
}

/* data type will be used to convey different colored blocks */
.tile[data-type="1"] {
	background-color: lightcoral;
}

.tile[data-type="2"] {
	background-color: orange;
}

.tile[data-type="3"] {
	background-color: lemonchiffon;
}

.tile[data-type="4"] {
	background-color: lightgreen;
}

.tile[data-type="5"] {
	background-color: lightskyblue;
}

.tile[data-type="6"] {
	background-color: orchid;
}

.tile[data-type="7"] {
	background-color: pink;
}

.tile[data-type="8"] {
	background-color: lightslategray;
}

.tile[data-type="9"] {
	background-color: aquamarine;
}

.modal {
	display: none;
	/* Hidden by default */
	position: fixed;
	/* Stay in place */
	z-index: 1000;
	/* Sit on top */
	left: 0;
	top: 0;
	width: 100%;
	/* Full width */
	height: 100%;
	/* Full height */
	overflow: auto;
	/* Enable scroll if needed */
	background-color: rgb(0, 0, 0);
	/* Fallback color */
	background-color: rgba(0, 0, 0, 0.4);
	/* Black w/ opacity */
}

.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	/* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	/* Could be more or less, depending on screen size */
}

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

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