@font-face {
	font-family: Lato;
	src: url("./fonts/Lato-Light.ttf");
	font-weight: 300;
	font-style: normal;
}

* {
	-webkit-tap-highlight-color: rgba(
		0,
		0,
		0,
		0
	); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
	margin: 0;
	padding: 0;
	font-family: "Lato";
	font-weight: 300;
}

body {
	-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
	-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
	-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
	background-color: #454545;
	font-family: system-ui, -apple-system, -apple-system-font, "Segoe UI",
		"Roboto", sans-serif;
	font-size: 12px;
	height: 100vh;
	margin: 0px;
	padding: 0px;
	/* Padding to avoid the "unsafe" areas behind notches in the screen */
	padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
		env(safe-area-inset-bottom, 0px) env(safe-area-inset-right, 0px);
}

.title {
	background: white;
	color: #454545;
	width: 100%;
	height: 50px;
	line-height: 50px;
	text-align: center;
	font-size: 36px;
	margin-bottom: 1rem;
}

.instructions {
	max-width: 500px;
	width: 80%;
	margin: 0 auto;
	font-size: 16px;
	color: white;
}

#app {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.grid-container {
	margin-top: 0.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	width: 90%;
	max-width: 360px;
}

.grid-row {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}

.grid-arrow-right {
	width: 0;
	height: 0;
	background: transparent;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-right: 10px solid transparent;
	border-left: 10px solid lightskyblue;
}

.grid-empty-right-arrow {
	width: 20px;
	height: 20px;
	background: transparent;
}

.grid-arrow-down-container {
	background: transparent;
	margin: 2px;
}

.grid-arrow-down {
	width: 0;
	height: 0;
	margin: 0 auto;
	background: transparent;
	border-bottom: 10px solid transparent;
	border-top: 10px solid lightskyblue;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
}

.grid-button {
	margin: 2px;
	border: none;
	outline: none;
	font-size: 20px;
	background: white;
	border-radius: 10px;
	color: black;
	transform: rotate3d(0, 0, 45);
}

.grid-button:disabled {
	background: lightslategrey;
	color: white;
}

.grid-result {
	background: #232323;
	color: white;
	border: none;
	outline: none;
	font-size: 20px;
	border-radius: 10px;
	margin: 0 2px;
	transition: all 0.2s ease-in-out;
}

.newpuzzle {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	bottom: 0;
	width: 100%;
}

.newpuzzle button {
	width: 100%;
	padding: 1rem;
	outline: none;
	border: none;
}

.puzzle {
	background: #7dabff;
	color: white;
	font-size: 20px;
}

.error {
	background: transparent;
	color: white;
	font-size: 24px;
}

.levelSize {
	display: flex;
	margin: 0 auto;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	max-width: 400px;
}

.levelSize > button {
	width: 100px;
	padding: 0.5rem 1rem;
	border: none;
	outline: none;
	background-color: #7dabff;
	margin: 0.2rem;
	color: white;
	border-radius: 9999px;
	transition: all 0.2 ease-in-out;
}

.levelSize > button:disabled {
	background-color: darkgray;
}
