/* Shared by every puzzle's game.html: the footer, help/new-puzzle panel and level picker. */
body {
	font-family: Verdana, sans-serif;
	--w: 1rem;
	margin: 0.5rem;
}
img {
	max-width: 100%;
	height: auto;
}
#gameContainer {
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
#footer {
	text-align: center;
	display: grid;
	max-width: 42rem;
	margin: 1rem auto;
	padding: 0.25rem;
	border: 1px solid gray;
	grid-template-columns: repeat(4, 1fr);
	box-sizing: border-box;
}
#footer > * {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	min-height: 2rem;
	line-height: 1.5rem;
	font-family: inherit;
	font-size: clamp(0.8rem, 3.6vw, 1.25rem);
	border: 1px solid black;
	padding: 0.25rem;
	text-align: center;
	margin: 0.25rem;
	background: #FFC;
	border-radius: 0.5rem;
	text-decoration: none;
	color: black;
	box-sizing: border-box;
	touch-action: manipulation;
}
#footer > *:hover {
	text-decoration: underline;
	background: #FF9;
}
#message {
	display: none;
	height: calc(var(--z) * var(--w) + var(--z) * 2px);
	min-height: 20rem;
	border: 2px solid black;
	overflow: auto;
}
#help > button {
	font-family: inherit;
	font-size: 1rem;
	margin: 0.25rem;
}
.indexes {
	display: grid;
	grid-template-columns: repeat(6, 3rem);
	gap: 0.25rem;
	justify-content: center;
	margin: 0.5rem auto;
}
.newIndex {
	border: 1px solid black;
	padding: 0.25rem;
	line-height: 1rem;
	font-size: 1rem;
	height: 1.5rem;
	display: block;
	background: white;
	cursor: pointer;
	color: black;
	text-decoration: none;
	box-sizing: border-box;
	text-align: center;
}
.newIndex:hover {
	text-decoration: underline;
}
.diff {
	text-align: center;
	margin: 0.25rem auto;
	background: #FFC;
	border: 1px solid black;
	border-radius: 0.5rem;
	padding: 0.25rem 0.5rem;
	display: block;
	width: 14rem;
	max-width: 100%;
	color: #222;
	font-family: inherit;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
}
.diff:hover {
	background: #FFA;
	color: #000;
	text-decoration: underline;
}
.diffActive {
	background: #AFA;
}
.diffActive:hover {
	background: #AFA;
	color: #000;
}
.currentLevel {
	border: 2px solid blue;
}
.oneLevel {
	--progress: 0%;
	background: linear-gradient(to top, rgb(161, 238, 99) 0%, rgb(161, 238, 99) var(--progress), white var(--progress));
}
.doneLevel {
	background: rgb(42, 190, 42);
}
#win {
	display: none;
	text-align: center;
	font-size: 1.25rem;
}
.close {
	border: 2px solid red;
	padding: 0.25rem;
	margin: 0.25rem;
	display: inline-block;
	position: absolute;
	right: 0px;
	top: 0px;
	width: 1.75rem;
	height: 1.75rem;
	background: #FDD;
	text-align: center;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1rem;
	z-index: 1;
}
details {
	border: 1px solid black;
	margin: 0.25rem;
}
details > div {
	padding: 0.25rem 0.5rem;
}
summary {
	background: #FDE;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
}
.loadError {
	text-align: center;
	padding: 2rem 1rem;
	grid-column: 1 / -1;
}
