button {
	all: unset; 
}

p {
	margin: 0;
	padding: 0;
}

.overlay {
	position: fixed;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background-color: var(--bg-transparent);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 100;
}

.overlay-content input[type='file'] {
	display: none;
}

.overlay-submenu hr {
	width: 50%;
	opacity: 0.2;
}

.italic-bold {
	font-weight: bold;
	font-style: italic;
}

.no-wrap {
	white-space: nowrap;
}

.reverse {
	transform: scaleX(-1);
}

.tag:after {
	content: '.';
	margin-right: 1em;
}

.keyboard-key-block-active {
	width: 1.6em;
	height: 1.6em;
	display: flex;
	justify-content: center;
	align-items: center;
	vertical-align: middle;
	background: var(--bg-1);
	/* border: 1px solid #aaa; */
	border-radius: 2px;
	box-shadow: var(--box-shadow-small);
}

.keyboard-key-block-active svg {
	margin: 0;
	padding: 0;
	display: block;
}

@media (max-width: 480px) {
	h2 {
		font-size: 1.2em;
	}

	p {
		padding-top: 1em;
		padding-bottom: 1em;
	}

	.overlay-close {
		display: none;
	}

	.overlay-content {
		display: grid;
		min-width: 100%;
		grid-template-columns: repeat(1, 1fr);
		align-items: stretch;
		padding: 1em;
	}

	.overlay-menu {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 6%;
		background: var(--bg);
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.overlay-menu ul {
		margin: 3em;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		list-style-type: none;
		padding: 0;
	}

	.overlay-content .overlay-menu button {
		text-align: left;
		text-transform: uppercase;
		font-size: 0.8em;
		padding: 0.8em;
		user-select: none;
	}

	.overlay-menu button span {
		display: none;
	}

	.overlay-menu button svg {
		display: block;
		margin: auto;
	}

	.overlay-submenu {
		position: fixed;
		top: 0;
		left: 0;
		background: var(--bg);
		width: 100%;
		height: 94%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.overlay-submenu ul {
		list-style-type: none;
		padding: 0;
	}

	.overlay-submenu button {
		text-align: center;
		text-transform: uppercase;
		font-size: 0.8em;
		padding: 0.8em;
		user-select: none;
	}

	.overlay-submenu a {
		display: inline-block;
		opacity: 0.8;
		cursor: pointer;
		user-select: none;
		text-align: center;
		text-decoration: none;
		color: inherit;
	}

	.overlay-content label {
		border: 1px dashed var(--col-border);
		text-transform: uppercase;
		font-style: italic;
		display: inline-block;
		padding: 1em 2em;
		opacity: 0.8;
		font-size: 0.8em;
		cursor: pointer;
		user-select: none;
	}

	.keyboard-shortcuts {
		display: grid;
		grid-template-rows: 1;
		grid-template-columns: repeat(7, 1fr);
		grid-gap: 4px;
		position: fixed;
		top: 0em;
		right: 1em;
	}

	.keyboard-key-block {
		width: 1.6em;
		height: 1.6em;
		display: flex;
		justify-content: center;
		align-items: center;
		vertical-align: middle;
		background: var(--bg);
		/* border: 1px solid #aaa; */
		border-radius: 2px;
		box-shadow: var(--box-shadow-small);
	}

	.keyboard-key-block svg {
		opacity: 0.6;
		margin: 0;
		padding: 0;
		display: block;
	}

	.keyboard-key {
		padding: 0.2em;
	}

	.keyboard-key-desc {
		display: none;
	}
}

@media (min-width: 481px) and (max-width: 1024px) {
	h2 {
		font-size: 1.2em;
	}

	p {
		padding-top: 1em;
		padding-bottom: 1em;
	}

	.overlay {
		background: var(--bg);
	}

	.overlay-close {
		display: none;
	}

	.overlay-content {
		display: grid;
		min-width: 100%;
		grid-template-columns: repeat(1, 1fr);
		box-shadow: var(--box-shadow-large);
		align-items: stretch;
		padding: 1em;
	}

	.overlay-menu {
		position: fixed;
		top: 0;
		left: 0;
		width: 6%;
		height: 40%;
		display: flex;
		flex-direction: column;
		box-shadow: var(--box-shadow-large);
		justify-content: flex-start;
	}

	.overlay-menu ul {
		display: grid;
		grid-template-rows: repeat(3, 1fr);
		list-style-type: none;
		padding: 0;
	}

	.overlay-content .overlay-menu button {
		text-align: left;
		text-transform: uppercase;
		font-size: 0.6em;
		padding-bottom: 1em;
		user-select: none;
	}

	.overlay-menu button span {
		display: none;
	}

	.overlay-menu button svg {
		display: block;
		margin: auto;
	}

	.overlay-submenu {
		position: fixed;
		top: 0;
		left: 6%;
		background: var(--bg);
		width: 94%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.overlay-submenu ul {
		list-style-type: none;
		padding: 0;
	}

	.overlay-submenu button {
		text-align: center;
		cursor: pointer;
		text-transform: uppercase;
		font-size: 0.8em;
		padding: 0.8em;
		user-select: none;
	}

	.overlay-submenu a {
		display: inline-block;
		opacity: 0.8;
		cursor: pointer;
		user-select: none;
		text-align: center;
		text-decoration: none;
		color: inherit;
	}

	.overlay-content label {
		border: 1px dashed var(--col-border);
		text-transform: uppercase;
		font-style: italic;
		display: inline-block;
		padding: 1em 2em;
		opacity: 0.8;
		font-size: 0.8em;
		cursor: pointer;
		user-select: none;
	}

	.keyboard-shortcuts {
		display: grid;
		width: 6%;
		grid-template-columns: 1;
		grid-template-rows: repeat(auto, 1fr);
		grid-gap: 4px;
		position: fixed;
		left: 0em;
		bottom: 1em;
		justify-content: center;
	}

	.keyboard-key-block {
		width: 1.6em;
		height: 1.6em;
		display: flex;
		justify-content: center;
		align-items: center;
		vertical-align: middle;
		background: var(--bg-1);
		/* border: 1px solid #aaa; */
		border-radius: 2px;
		box-shadow: var(--box-shadow-small);
	}

	.keyboard-key-block svg {
		opacity: 0.6;
		margin: 0;
		padding: 0;
		display: block;
	}

	.keyboard-key {
		padding: 0.2em;
	}

	.keyboard-key-desc {
		display: none;
	}
}

@media (min-width: 1025px) {
	.center-page {
		display: flex;
		height: 100vh;
		justify-content: center;
		align-items: center;
	}

	h2 {
		user-select: none;
		padding-left: 10px;
	}

	p {
		font-size: 0.8em;
		padding-left: 10px;
		padding-bottom: 1.5em;
	}

	.keyboard-shortcuts {
		position: fixed;
		opacity: 0.8;
		bottom: 4em;
		right: 4em;
		display: flex;
		gap: 1em;
		user-select: none;
	}

	.keyboard-key-block {
		display: inline-flex;
	}

	.keyboard-key-desc {
		padding-top: 0.2em;
		text-transform: uppercase;
		font-size: 0.6em;
		user-select: none;
	}

	.keyboard-key {
		display: flex;
		justify-content: center;
		align-items: center;
		height: 1em;
		margin-right: 0.2em;
		padding: 0.2em;
		background-color: var(--bg);
		border: 1px solid var(--col-border);
		border-radius: 4px;
		box-shadow: var(--box-shadow-small);
		font-size: 0.6em;
		font-weight: bold;
		color: var(--col);
	}

	.keyboard-key:hover {
		box-shadow: none;
		border: 2px solid var(--box-shadow-small);
		cursor: pointer;
	}

	.overlay-close {
		position: fixed;
		top: 3em;
		right: 4.2em;
		display: inline-block;
		cursor: pointer;
		user-select: none;
	}

	.overlay-close-text {
		text-transform: uppercase;
		font-size: 0.7em;
		padding-right: 0.5em;
	}

	.overlay-close-icon {
		font-size: 1.1em;
		position: absolute;
		top: -0.03em;
	}

	.overlay-content {
		display: grid;
		margin-top: -4em;
		min-width: 600px;
		grid-template-columns: 24% 76%;
		align-items: stretch;
		background-color: var(--bg);
		padding: 1em;
		border-radius: var(--border-radius);
		box-shadow: var(--box-shadow-small);
	}

	.overlay-content .overlay-menu {
		display: flex;
		flex-direction: column;
		justify-content: center;
		/* Center align vertically */
		border-right: 1px solid var(--col-border);
	}

	.overlay-content .overlay-menu svg {
		width: 1.1em;
		height: 1.1em;
		padding-right: 1em;
	}

	.overlay-content ul {
		list-style-type: none;
		padding: 0;
	}

	.overlay-content .overlay-menu button {
		text-align: left;
		cursor: pointer;
		text-transform: uppercase;
		font-size: 0.8em;
		padding: 0.8em;
		user-select: none;
	}

	.overlay-content .overlay-menu button:hover {
		/* font-weight: bold; */
		/* background: var(--col-link-hover-bg); */
	}

	.overlay-content .overlay-submenu {
		display: flex;
		flex-direction: column;
		justify-content: center;
		text-align: center;
		margin-left: 1em;
	}

	.overlay-content .overlay-submenu button {
		text-align: center;
		cursor: pointer;
		text-transform: uppercase;
		font-size: 0.8em;
		padding: 0.8em;
		user-select: none;
	}

	.overlay-content .overlay-submenu button:hover {
		font-weight: bold;
	}

	.overlay-content .overlay-submenu a {
		display: inline-block;
		opacity: 0.8;
		cursor: pointer;
		user-select: none;
		text-align: center;
		text-decoration: none;
		color: inherit;
	}

	.overlay-content label {
		border: 1px dashed var(--col-border);
		text-transform: uppercase;
		font-style: italic;
		display: inline-block;
		padding: 1em 6em;
		opacity: 0.8;
		font-size: 0.8em;
		cursor: pointer;
		user-select: none;
	}
}
