@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


:root {
	--bg-color: #f0f0f0;
	--dark-gray: #CCC;
	--accent-color: #EB0D0D;
	--light-bg: #FFFFFF;
	--dark-bg: rgb(0, 28, 64);
	--default-font-size: 1em;
	--headline-font-size: 3.3em;
}
body {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-weight: 400;
	font-style: normal;
	background-color: var(--bg-color);
	height: 100vh;
	overflow-x: hidden;
	font-size: var(--default-font-size);
}
footer {
	color: var(--dark-gray);
	padding: 20px 0;
	font-size: var(--default-font-size);
	text-align:center;
}
footer a, footer a:visited, footer a:link, footer a:focus {
	color: var(--dark-gray);
}
.japanese {
	font-family: serif;
	position: fixed;
	right: -100px;
	top: -100px;
	line-height: 1em;
	font-size: 240px;
	color: var(--dark-gray);
}
h1 svg {
	vertical-align: baseline;
	padding: 0 3px 0 0;
	height: 40px;
	width: 40px;
	fill: var(--accent-color);
}
h1 {
	font-size: var(--headline-font-size);
	margin:0;
	padding:0;
}
.headline {
	padding:0 0 20px;
	display: block;
	text-align:center;
}
.centered-div {
	position: relative;
	max-width: 800px;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
}
.whitebox {
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 5px;
	position: relative;
	z-index: 999;
	box-shadow: 0px 4px 8px var(--dark-gray);
	padding: 20px;
	backdrop-filter: blur(3px);
}
input, textarea {
	outline: none;
	padding: 10px;
	box-sizing: border-box;
	font-size: 16px;
	border: 2px solid var(--dark-gray);
	border-radius: 5px;
	width: 100%;
}
textarea {
	height: 70px;
	resize: none;

}
.code {
	font-family: monospace;
	font-size: var(--default-font-size);
}
input:focus, input:active {
	border:2px solid var(--accent-color);
}
label {
	display: block;
	margin-bottom: 15px;	
}
button {
	padding: 10px;
	font-size: 16px;
	background-color: var(--accent-color);
	color: white;
	width:100%;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	text-shadow: 
}
button:before {
	content:"";
	background:url(./img/file-arrow-down-solid.svg);
	background-size:auto 100%;
	background-repeat: no-repeat;
	background-position: center center;
	display:inline-block;
	height: 18px;
	width: 18px;
	vertical-align: text-bottom;
	padding-right:10px;
}
button:hover {
	opacity:0.9;
}
#imageContainer {
	margin-bottom: 20px;
	aspect-ratio: 1 / 1;
	max-width: 100%;
	padding:15px;
	height: auto;
	border-radius: 8px;
	overflow:hidden;
	background-color: transparent;
	transition: background-color 0.5s ease;
}
#light_mode + .switch {
	display:none;
}
#light_mode:checked + .switch {
	display:block;
	z-index:999;
	text-align: center;
	background:var(--light-bg);
}
.switch {
	position:absolute;
	right: 15px;
	padding:1px;
	bottom: 15px;
	width:22px;
	height:22px;
	padding: 2px;
	border-radius:100%;
}
.switch img {
	width: 100%;
	height: 100%;
}
input[name="mode"] {
	display:none;
}
#dark_mode:checked + #imageContainer {
	background-color: var(--dark-bg);
}
#imageContainer img {
	width:100%;
}
.clr-field {
	width:100%;	
}
.grid {
	display: grid;
	grid-template-columns: 50% 50%;
	grid-template-rows: 2fr;
	column-gap: 20px;
	width: calc(100% - 20px);
}
.grid-item {
	position:relative;	
}
.image-selection {
	display: grid;
	column-gap: 15px;
	width: 100%;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
}
.image-selection .image-label:nth-child(1) div {
	background-image:url(./icons/noto.svg);
}
.image-selection .image-label:nth-child(2) div {
	background-image:url(./icons/twemoji.svg);
}
.image-selection .image-label:nth-child(3) div {
	background-image:url(./icons/blobmoji.svg);
}
.image-selection .image-label:nth-child(4) div {
	background-image:url(./icons/fluentflat.svg);
}
.image-selection .image-label:nth-child(5) div {
	background-image:url(./icons/openmoji.svg);
}
.image-selection input[type="radio"] {
	display: none;
}
.image {
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 8px;
	height: 50px;
	transition: border-color 0.3s;
	background-size: auto 90%;
	background-position: center center;
	background-repeat: no-repeat;
}
.image-selection input[type="radio"]:checked + .image {
	border-color: var(--accent-color);
}
@media only screen and (max-width: 700px) {
	.whitebox {
		padding: 10px;
		border-radius: 0;
		box-sizing: border-box;
	}
	.japanese {
		color: var(--gray-color);
	}
	.grid {
		column-gap:0;
		width:100%;
		grid-template-columns: repeat(1, 1fr);
	}
	.centered-div {
		top: 0;
		transform: translateX(-50%);
	}
	body {
		background: ;  
	}
}