@font-face {
	font-family: "unscii8";
	src: url(fonts/unscii-8.otf) format("opentype");
}

@font-face {
	font-family: "unscii8tall";
	src: url(fonts/unscii-8-tall.otf) format("opentype");
}

* {
	margin: 0;
	padding: 0;
	font-family: "unscii8tall", monospace;
	text-shadow: 2px 2px 0 #ffffff;
	font-size: 100%;
	vertical-align: baseline;
	outline: none;
	box-sizing: border-box;
	border-collapse: collapse;
}

html,
body {
	width: 100%;
	height: 100%;
	font-size: 1em;
	color: green;
	overflow: auto;
	scrollbar-width: none;
}

body {
	position: relative;
	min-width: 400px;
	min-height: 560px;
}

body::-webkit-scrollbar {
	width: 0;
	height: 0;
}

#card {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 400px;
	height: 560px;
}

/*
 * Chrome DevTools uses this class when H hides the selected node in the
 * Elements panel. Keep an accidental DevTools shortcut from hiding the card
 * or any of its canvases while testing PEPEPAINT's own keyboard shortcuts.
 */
.__web-inspector-hide-shortcut__ #card,
.__web-inspector-hide-shortcut__ #card *,
#card.__web-inspector-hide-shortcut__,
#card.__web-inspector-hide-shortcut__ *,
#card .__web-inspector-hide-shortcut__,
#card .__web-inspector-hide-shortcut__ * {
	visibility: visible !important;
}

#nav_container {
	position: absolute;
	top: 0;
	left: 0;
	width: 400px;
	height: 560px;
	z-index: 9999;
	display: flex;
	flex-flow: column nowrap;
	font-size: 1em;
	pointer-events: none;
}

#nav_container .controller {
	pointer-events: auto;
}

#nav-bar {
	position: absolute;
	top: 26px;
	left: 0;
	width: 400px;
	height: 40px;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
}

#header {
	position: absolute;
	top: 26px;
	left: 0;
	width: 400px;
	height: 40px;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
	padding: 0 38px;
}

#header_title {
	font-family: "unscii8", monospace;
	font-size: 1.3em;
	position: relative;
	top: 1px;
}

#button_container {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
	width: 100px;
}

.header_button {
	height: 26px;
	font-size: 0.9em;
	background-color: #ffffff;
	border: 4px outset rgb(236, 236, 236);
	padding: 0 2px;
	margin: 2px;
	cursor: pointer;
	color: green;
	text-align: center;
	cursor: pointer;
}

.header_button svg {
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:link {
	color: inherit;
	text-decoration: none;
}

a:visited {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: inherit;
	text-decoration: none;
}

a:active {
	color: inherit;
	text-decoration: none;
}

.submission_dialog {
	font-size: 1em;
	position: absolute;
	inset: 0 auto auto 0;
	margin: 0;
	width: 400px;
	height: 560px;
	background: #ffffff url("brushes/template01.png") center / cover no-repeat;
	color: green;
	padding: 30px 34px;
	overflow: hidden;
	z-index: 99999999999999;
	border: none;
}

.submission_dialog::backdrop {
	background: none;
}

.submission_form {
	display: flex;
	flex-flow: column nowrap;
	gap: 8px;
}

.submission_form_header {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
}

#submission_title {
	font-family: "unscii8", monospace;
	font-size: 1.1em;
}

.submission_close_button {
	min-width: 24px;
}

#submission_title_label {
	position: absolute;
	top: 74px;
	left: 0;
	width: 400px;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
}

#submission_description_label {
	position: absolute;
	top: 118px;
	left: 0;
	width: 400px;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
}

#submission_address_label {
	position: absolute;
	top: 216px;
	left: 0;
	width: 400px;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
}

#submission_editions_label {
	position: absolute;
	top: 264px;
	left: 0;
	width: 400px;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	align-items: center;
}

.submission_field input,
.submission_field textarea {
	width: 310px;
	background: #ffffff;
	color: green;
	padding: 2px;
	resize: vertical;
}

.submission_honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.submission_actions {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-around;
	align-items: center;
	user-select: none;
	width: 400px;
	position: absolute;
	top: 312px;
	left: 0;
	padding: 0 36px;
}

.submission_status {
	font-size: 1em;
	position: absolute;
	top: 360px;
	left: 0;
	padding: 0 40px;
}

#canvas_container {
	font-size: 1em;
	position: absolute;
	top: 0%;
	left: 0%;
	width: 400px;
	height: 560px;
	overflow: hidden;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
	z-index: 1;
}

#preview_canvas,
.drawing_canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 400px;
	height: 560px;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

#preview_canvas {
	cursor: crosshair !important;
	z-index: 9999999;
}

.size-bar {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
	padding: 0 0 0 12px;
	user-select: none;
	width: 400px;
	position: absolute;
	top: 317px;
	left: 1px;
	height: 24px;
	z-index: 99999999999999;
}

.palette-bar {
	display: flex;
	flex-flow: column nowrap;
	/* justify-content: flex-start;
	align-items: center; */
	padding: 0 36px;
	user-select: none;
	width: 400px;
	position: fixed;
	top: 366px;
	left: 1px;
	/* height: 150px; */
	z-index: 99999999999999;
}

.palette_tabs {
	font-size: 1em;
	display: flex;
	width: 320;
	height: 24px;
}

.palette_tab {
	/* flex: 1; */
	width: 64px;
	height: 24px;
	border: 1px solid green;
	border-radius: 8px 8px 0 0;
	background: rgba(255, 255, 255, 0.9);
	color: green;
	cursor: pointer;
}

.palette_tab[data-palette-tab="animations"] {
	width: 80px;
}

.palette_tab + .palette_tab {
	border-left: 0;
}

.palette_tab:hover,
.palette_tab:focus-visible {
	background: #e9ffe9;
}

.palette_tab.is-active {
	background: green;
	color: white;
}

.palette_panels {
	width: 320px;
	height: 122px;
	overflow-y: auto;
}

.palette_panel[hidden] {
	display: none;
}

.fx_controls,
.filter_controls {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	align-items: flex-start;
	width: 300px;
}

.fx_toggle,
.filter_button {
	font-size: 0.9em;
	height: 28px;
	background-color: #ffffff;
	border: 4px outset rgb(236, 236, 236);
	padding: 2px;
	cursor: pointer;
	color: green;
	text-align: center;
	cursor: pointer;
}

.fx_toggle:hover,
.fx_toggle:focus-visible,
.filter_button:hover,
.filter_button:focus-visible {
	background: #e9ffe9;
}

.fx_toggle[aria-pressed="true"],
.filter_button[aria-pressed="true"] {
	background: green;
	color: white;
	border: 4px inset rgb(236, 236, 236);
}

.palette-bar::-webkit-scrollbar {
	width: 0;
	height: 0;
}

#info-bar {
	font-size: 1em;
	display: flex;
	flex-flow: column nowrap;
	padding: 0;
	user-select: none;
	width: 400px;
	position: fixed;
	top: 83px; /* 510px */
	left: 0px;
	/* height: 44px; */
	z-index: 99999999999999;
}

#feedback_dialog {
	position: absolute;
	bottom: 0px;
	left: 50%;
	transform: translateX(-50%) translateY(0);
	background: rgba(255, 255, 255, 0.96);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
	z-index: 10000;
}

.feedback-panel {
	width: 100%;
	display: flex;
	flex-flow: column wrap;
	justify-content: center;
	align-items: center;
}

.feedback_row {
	padding: 4px;
	background: rgba(243, 243, 243, 0.9);
	display: flex;
	flex-flow: column wrap;
	justify-content: center;
	align-items: center;
}

#feedback_dialog.visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0px);
}

#feedback_text {
	text-align: center;
}

.hidden {
	display: none !important;
}

.menu_row {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	align-content: center;
}

.menu_control_title {
	font-size: 1em;
	padding: 0 3px;
}

.info_row {
	margin: 0 2px;
}

.palette_row {
	width: 100%;
	display: flex;
	flex-flow: column wrap;
	/* justify-content: center; */
	align-items: flex-start;
	padding: 0;
}

.info-panel {
	width: 100%;
	display: flex;
	flex-flow: column wrap;
	justify-content: flex-start;
	align-items: flex-start;
	padding: 0 50px;
}

.controls {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	align-content: flex-start;
}

.range_and_number {
	justify-content: space-between;
}

.paint_controls_section {
	width: 320px;
	height: auto;
	display: flex;
	flex-flow: column nowrap;
}

.menu_range_input_container {
	width: 118px;
	position: relative;
	height: 24px;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	align-content: center;
}

.slider,
.slider_small {
	width: 100px;
	height: 18px;
	border: 1px solid green;
	background-color: rgba(0, 0, 0, 0.7);
	appearance: none;
	-webkit-appearance: none;
}

.slider:focus,
.slider_small:focus {
	outline: none;
}

.slider::-webkit-slider-runnable-track,
.slider_small::-webkit-slider-runnable-track {
	height: 18px;
	-webkit-appearance: none;
	cursor: pointer;
}

.slider::-webkit-slider-thumb,
.slider_small::-webkit-slider-thumb {
	width: 10px;
	height: 18px;
	background: #00a437;
	cursor: pointer;
	-webkit-appearance: none;
}

input[type="checkbox"],
input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	background-color: black;
	margin: 0 5px 0 0;
	font: inherit;
	color: rgb(0, 202, 0);
	width: 16px;
	height: 16px;
	border: 1px solid green;
	display: grid;
	place-content: center;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
	background-color: rgb(45, 45, 45);
}

input[type="checkbox"]::before,
input[type="radio"]::before {
	content: " ";
	transform-origin: bottom left;
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
	font-size: 2em;
	content: "";
}

.wide_button {
	height: 26px;
	font-size: 1em;
	background-color: #ffffff;
	border: 4px outset rgb(236, 236, 236);
	padding: 2px;
	cursor: pointer;
	color: green;
	margin: 4px 0;
	text-align: center;
}

.wide_button:active {
	border-style: inset;
}

#image_brush_controls {
	display: flex;
	flex-flow: row wrap;
}

input.hidden_radio {
	position: absolute;
	opacity: 0;
	width: 1em;
	height: 1em;
	z-index: 0;
	margin: 0;
	background: rgba(243, 243, 243, 0.9);
}

#nav_container input.hidden_radio {
	pointer-events: none;
}

.color_box {
	border: 1px solid black;
	background: rgba(243, 243, 243, 0.9);
	width: 20px;
	height: 20px;
}

input[type="radio"]:checked + label.color_box {
	border: 2px solid lightgreen;
}
