@font-face {
	font-family: ComicSansMS;
	src: url(ComicSansMS.ttf);
}

html {
	--bg: #111;
	--fg: #fff;
	--light: #555;
	--light-text: #777;
	--link: #8af;
	color-scheme: dark;
	font-family: ComicSansMS;
}

body {
	background: var(--bg);
	color: var(--fg);

	display: flex;
	margin: 1rem;
	flex-direction: column;
	align-items: center;
}

/* Buttons, inputs, etc. */
* {
	font-family: inherit;
}

h1 {
	margin: 0;
	background: linear-gradient(to bottom, #8af, #00f);
	background-clip: text;
	color: #0000;
	font-size: 2.2rem;
	filter: drop-shadow(0 0 10px #000);
}

#dropzone {
	margin: 2rem;
	text-align: center;
	width: 20rem;
	padding: 3rem 1rem;
	border: 2px dashed var(--light);
	color: var(--light-text);
	border-radius: 5px;
	cursor: pointer;
}

a {
	color: var(--link);
}

#afterup {
	margin: 1rem;
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: .5rem;

	label {grid-column: 1}
	#download, #info, #outwrap {grid-column: 1 / 4}

	#output {
		grid-column: 1 / 4;
		width: 40rem;
		max-width: 90vw;
		aspect-ratio: 3 / 2;
		margin: auto;
		background-size: contain;
		background-position: center;
		background-repeat: no-repeat;
		filter: drop-shadow(0 0 10px #000);
	}

	.btns {
		margin: 1rem;
		grid-column: 1 / 4;
		display: flex;
		gap: 1rem;

		button {
			flex: 1;
			padding: 1rem;
			font-size: 1.2rem;
			background: #151515;
			color: var(--fg);
			border: 1px solid var(--link);
			border-radius: 5px;
			box-shadow: 0 0 10px 0 #000a;
			transition: background .2s, scale .2s;
			&:hover {
				cursor: pointer;
				background: #222;
				scale: 1.1;
			}
			&::before {
				display: inline-block;
				margin-inline: .5rem;
				vertical-align: middle;
				content: " ";
				width: 32px;
				height: 32px;
				background-size: contain;
				background-repeat: no-repeat;
				background-position: center;
				filter: drop-shadow(0 0 3px #000);
			}
			&#download::before {background-image: url(download.png)}
			&#copy::before {background-image: url(copy.png)}
			&.ok::before {background-image: url(ok.png) !important}
		}
	}
}

hr {
	width: 20rem;
	margin: 0;
	border-color: var(--light);
}

small {
	margin: .5rem;
	color: var(--light-text);
}

.h {
	display: none !important;
}

@media screen and (max-width: 800px) {
	button {
		padding: .75rem !important;
		font-size: 1rem !important;
	}
}
