@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: normal;
	font-weight: 300;
	src: url('./../fonts/proxima-nova/ProximaNova-Light-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: italic;
	font-weight: 300;
	src: url('./../fonts/proxima-nova/proximanova-lightitalic-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: normal;
	font-weight: 400;
	src: url('./../fonts/proxima-nova/proximanova-regular-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: italic;
	font-weight: 400;
	src: url('./../fonts/proxima-nova/proximanova-regitalic-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: normal;
	font-weight: 600;
	src: url('./../fonts/proxima-nova/proximanova-semibold-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: italic;
	font-weight: 600;
	src: url('./../fonts/proxima-nova/proximanova-semibolditalic-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: normal;
	font-weight: 700;
	src: url('./../fonts/proxima-nova/proximanova-bold-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: italic;
	font-weight: 700;
	src: url('./../fonts/proxima-nova/proximanova-boldit-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: normal;
	font-weight: 800;
	src: url('./../fonts/proxima-nova/proximanova-extrabold-webfont.woff') format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'proxima-nova';
	font-style: normal;
	font-weight: 900;
	src: url('./../fonts/proxima-nova/proximanova-black-webfont.woff') format('woff');
}

@keyframes splashOpen {
	from {opacity: 0; }
	to { opacity: 1; }
}

@keyframes splashClose {
	from { opacity: 1; visibility: visible; }
	to {opacity: 0; visibility: hidden; }
}

html.error {
	height: 100%;
	display: flex;
	flex-flow: column;
	justify-content: center;
	box-sizing: border-box;
	border-top: 2px solid #654c53;
}

html.error body {
	padding: 4rem 0rem;
	font-size: 2rem;
	text-align: center;
}

html.error p {
	margin: 0;
	padding: 1.5rem 0rem 0rem;
}

html.error p:first-child {
	padding: 0rem;
}

body {
	margin: 0;
	padding: 0;
	background-color: #1e1215;
	font-family: 'proxima-nova', Helvetica, Arial, sans-serif;
	color: #fdc671;
	font-weight: 300;
}

:root, ::backdrop {
	--trans-dur: 0.45s;
}

dialog {
	border: 0;
	outline: 0;
	background-color: transparent;
}

dialog#splash {
	max-width: 60%;
	color: #ebe5d2;
	text-align: center;
	animation-name: splashOpen;
	animation-duration: 0.45s;
}

dialog#splash p {
	font-size: 2em;
	margin: 0em;
	padding-top: 2em;
}

dialog#splash img#sp-logo {
	max-width: 100%;
	width: 21.875em;
}

dialog#splash::backdrop {
	background-color: rgba(0, 0, 0, 0.5);
	-webkit-transition: background-color var(--trans-dur) linear;
	-moz-transition: background-color var(--trans-dur) linear;
	-ms-transition: background-color var(--trans-dur) linear;
	transition: background-color var(--trans-dur) linear;
	/* transition-duration: var(--trans-dur); */
}

dialog#splash[open] {
	display: flex;
	flex-flow: column;
}

dialog#splash.closed {
	opacity: 0;
	visibility: hidden;
	animation-name: splashClose;
}

dialog#splash.closed::backdrop {
	background-color: transparent;
}

h1, h2, h3, h4 {
	padding: 0rem;
	margin: 0rem;
	font-weight: 800;
	line-height: 100%;
}

h1 {
	font-size: 2.75rem;
}

input, input[type], input::file-selector-button {
	border: 0;
	outline: 0;
	box-shadow: none;
	background-color: #44363a;
	border-radius: 0;
	font-size: 1em;
}

input::file-selector-button {
	padding: 0.5rem 1rem;
	border-right: 2px solid #654c53;
	-webkit-appearance: none;
	appearance: none;
	color: #fdc671;
}

button, input[type=button] {
	padding: 0.5rem 1rem;
	border: 0;
	outline: 0;
	background-color: #fdc671;
	border-radius: 0;
	font-size: 1em;
}

.hidden, #content.hidden {
	display: none;
	visibility: hidden;
	opacity: 0;
}

#mn-logo {
	height: 2.8em;
	margin: 0 auto;
}

.main {
	padding: 1.25rem;
	height: 100vh;
	display: flex;
	flex-flow: column nowrap;
	box-sizing: border-box;
	font-size: 1.25rem;
	text-align: center;
}

#form-upload {
	width: 100%;
	max-width: 800px;
	display: flex;
	flex-flow: row;
	margin: 0 auto;
	padding: 1.25rem 0rem;
	box-sizing: border-box;
}

label[for=upload] {
	display: flex;
	align-items: center;
	padding: 0rem 0.8rem 0rem 0rem;
}

#upload {
	width: 100%;
	display: flex;
	flex: 5;
	padding: 0rem;
}

#process, #download {
	margin-left: 2px;
}

#content {
	display: flex;
	flex-flow: column nowrap;
	flex: 5;
	position: relative;
	overflow-y: scroll;
}

#content-nav {
	padding: 1.25rem;
	box-sizing: border-box;
	position: absolute;
	top: 0;
	right: 0;
	text-align: center;
	pointer-events: none;
}

#content-nav .close img {
	width: 2.25rem;
	pointer-events: initial;
}

.close {
	display: block;
}

#view-mode {
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	margin: 1.25rem 0rem 0rem;
	padding: 0.5rem;
	background-color: #fdc671;
	font-size: 0.875rem;
	color: #000000;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	line-height: 100%;
	pointer-events: initial;
}

#output, #output-code {
	width: 100%;
	height: 100%;
	border: 0;
}

#output {
	background-color: #ffffff;
}

#output-code {
	margin: 0rem;
	padding: 4rem 0rem 0rem;
	box-sizing: border-box;
	overflow-y: scroll;
	border-top: 2px solid #654c53;
	text-align: left;
	white-space: pre-wrap;
	word-break: break-all;
	tab-size: 2rem;
}

@media screen and (max-width: 1040px) {
	dialog#splash img#sp-logo {
		width: 18em;
	}

	#form-upload {
		max-width: 480px;
		flex-flow: row wrap;
		gap: 2px;
	}

	label[for=upload] {
		flex-basis: 100%;
		justify-content: center;
		padding: 0rem 0rem 0.8rem 0rem;
	}

	#upload {
		flex-basis: 100%;
	}

	#process, #download {
		flex: 5;
		margin: 0rem;
	}
}

@media screen and (max-width: 414px) {
	html {
		font-size: 3.865vw;
	}

	dialog#splash img#sp-logo {
		width: 14em;
	}

	#mn-logo {
		height: 2em;
	}

	#output-code {
		font-size: 1rem;
	}
}

@media screen and (min-height: 700px) and (max-height: 960px) and (min-width: 415px) {
	html {
		font-size: 1.667vh;
	}

	#output-code {
		font-size: 1rem;
	}
}

@media screen and (min-height: 700px) and (max-height: 960px) and (min-width: 1041px) {

	#form-upload {
		max-width: 83.333vh;
	}

}

@media screen and (max-height: 699px) and (min-width: 415px) {
	html {
		font-size: 12px;
	}

	#form-upload {
		max-width: 480px;
	}

	#output-code {
		font-size: 1rem;
	}
}