@font-face {
	font-display: swap;
	font-family: 'nyt-franklin';
	font-style: normal;
	font-weight: 300;
	src: url(https://a1.nyt.com/fonts/family/franklin/franklin-normal-300.woff)
		format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'nyt-franklin';
	font-style: normal;
	font-weight: 500;
	src: url(https://a1.nyt.com/fonts/family/franklin/franklin-normal-500.woff)
		format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'nyt-franklin';
	font-style: normal;
	font-weight: 800;
	src: url(https://mwcm.nyt.com/dam/mkt_assets/email/global/fonts/franklin/NYTFranklin-ExtraBold.woff)
		format('woff');
}

@font-face {
	font-display: swap;
	font-family: 'nyt-karnak';
	font-style: normal;
	font-weight: 400;
	src: url(https://a1.nyt.com/fonts/family/karnak/karnak-normal-400.woff)
		format('woff');
}

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: 'nyt-franklin', Helvetica, Arial, sans-serif;
	color: #fdc671;
	font-weight: 300;
}

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;
}

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

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

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

.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;
}

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

.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%;
}

#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;
}

@media screen and (max-width: 1040px) {
	#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;
	}

	#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;
	}
}