#img_container {
	width: 50%;
	margin: auto;
	max-height: 50vh;
}

.hero-body {
	padding: 1rem 1.5rem;
}

img {
	object-fit: contain;
}

html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

#img {
	/* opacity: 0; */
	width: 100%;
	height: 100%;

	will-change: filter;
	transition: filter 0.8s ease;
}

/* #img.out_of_focus {
	filter: blur(0.5em) brightness(0.4);
} */

.out_of_focus {
	filter: blur(0.5em) brightness(0.4);
	transition: filter 0.8s ease;
}

#share_message {
	font-weight: bold;
	color: white;
	padding: 8px;
	border-color: aquamarine;
	order: 2;
	width: 100%;
	height: 80%;
}

#message_container,
#share_container {
	/* margin: 20px; */
	font-weight: bold;
	color: white;
	padding: 8px;
	border-color: aquamarine;
	width: 100%;
	height: 100%;
	/* transform: translateX(-50%) translateY(0%) rotate(-90deg); */

	/* UNSELECTABLE */
	user-select: none;
	-moz-user-select: none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	-o-user-select: none;
}

#message_container {
	border-radius: 2ex;
}

#message_container,
.dot {
	opacity: 0;
	will-change: opacity;
	transition: opacity 0.5s ease;
}

#share_container {
	opacity: 1;
	will-change: opacity;
	transition: opacity 0.5s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 1.8em;
}

.hidden {
	/* display: none; */
	opacity: 0;
	z-index: -100;
}

#message {
	margin: auto;
	font-size: 2.25em;
}


@font-face {
	font-family: 'ClashDisplay';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('./fonts/ClashDisplay/ClashDisplay-Medium.woff2') format("woff2"), url('./fonts/ClashDisplay/ClashDisplay-Medium.eot?#iefix') format("embedded-opentype"), url('./fonts/ClashDisplay/ClashDisplay-Medium.woff') format("woff"), url('./fonts/ClashDisplay/ClashDisplay-Medium.ttf') format("truetype"), url('./fonts/ClashDisplay/ClashDisplay-Medium.svg#ClashDisplay') format("svg");
}

@font-face {
	font-family: 'ClashDisplay';
	font-style: bold;
	font-weight: 700;
	font-display: swap;

	src: url('./fonts/ClashDisplay/ClashDisplay-Semibold.woff2') format("woff2"), url('./fonts/ClashDisplay/ClashDisplay-Semibold.eot?#iefix') format("embedded-opentype"), url('./fonts/ClashDisplay/ClashDisplay-Semibold.woff') format("woff"), url('./fonts/ClashDisplay/ClashDisplay-Semibold.ttf') format("truetype"), url('./fonts/ClashDisplay/ClashDisplay-Semibold.svg#ClashDisplay') format("svg")
}

/* @font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('./fonts/Montserrat/montserrat-v21-latin-regular.woff2') format("woff2"), url('./fonts/Montserrat/montserrat-v21-latin-regular.eot?#iefix') format("embedded-opentype"), url('./fonts/Montserrat/montserrat-v21-latin-regular.woff') format("woff"), url('./fonts/Montserrat/montserrat-v21-latin-regular.ttf') format("truetype"), url('./fonts/Montserrat/montserrat-v21-latin-regular.svg#Montserrat') format("svg");
}

@font-face {
	font-family: 'Montserrat';
	font-style: bold;
	font-weight: 700;
	font-display: swap;

	src: url('./fonts/Montserrat/montserrat-v21-latin-700.woff2') format("woff2"), url('./fonts/Montserrat/montserrat-v21-latin-700.eot?#iefix') format("embedded-opentype"), url('./fonts/Montserrat/montserrat-v21-latin-700.woff') format("woff"), url('./fonts/Montserrat/montserrat-v21-latin-700.ttf') format("truetype"), url('./fonts/Montserrat/montserrat-v21-latin-700.svg#Montserrat') format("svg")
} */

h1 {
	margin: 0.5em 0;
}

img {
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
	-ms-interpolation-mode: nearest-neighbor;
}

html,
body {
	margin: 0;
	padding: 0;
	text-align: center;
	overflow: hidden;
	background: hsla(0, 0%, 10%, 1);
}

* {
	font-family: "ClashDisplay";
	/* Montserrat */
}

#container {
	width: 100vw;
	height: 100vh;
	display: flex;
	gap: 0.5em;
	justify-content: center;
	align-items: center;
}

@media screen and (orientation: portrait) {
	#container {
		position: relative;
		flex-direction: column;
	}

	#preview {
		width: 90%;
		max-height: 40%;
	}

	#content {
		width: 90%;
		max-height: 50%;
		position: relative;
		transition: filter 0.5s ease-out;
	}

	#share_container {
		position: absolute;
		bottom: 0;
		justify-content: center;
		width: 90%;
		max-height: 45%;
	}
}

@media screen and (orientation: landscape) {
	#container {
		flex-direction: row;
	}

	#preview {
		width: 60%;
		height: 90%;
		padding: 5%;
	}

	#content {
		width: 60%;
		/* height: 90%; */
	}

	#share_container {
		position: absolute;
		top: 25%;
		bottom: 25%;
		right: 0;
		width: 50%;
		height: 50%;
	}
}

#content {
	color: hsla(0, 0%, 100%, 80%);
	font-size: 1.5em;
}

#preview {
	position: relative;
	color: hsla(0, 0%, 100%, 90%);
}

.bring-front {
	z-index: 3;
}

.centered {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

button {
	font-size: 1em;
	width: fit-content;
	margin: 1em auto;
	border: none;
	border-radius: 0.5em;
	color: white;
	padding: 0.5em 1em;
	text-decoration: none;
	cursor: pointer;
}

.blue {
	background: hsl(200, 90%, 30%);
}

button.grey {
	background: hsl(200, 10%, 30%);
}

#submit-button {
	display: block;
}

/* #share_button {
	font-size: 2em;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0 auto;
} */

.blue:not(.disabled):hover {
	background: hsl(200, 90%, 40%);
}

.disabled {
	background: hsl(110, 0%, 25%);
	cursor: default;
}

p {
	display: inline-block;
}

input {
	/* box-shadow: inset 0 0.0625em 0.125em rgba(10,10,10,.05) !important; */
	max-width: 100%;
	background-color: #fff;
	border-radius: 4px;
	color: #363636;

	appearance: none;
	border: 0.25em solid hsla(140, 97%, 72%, 0.80);
	border-radius: 0.5em;

	font-size: 0.8em;

	justify-content: flex-start;
	line-height: 1.5;
	padding: 0.2em 0 0.2em 0.5em;
}

input,
.label {
	text-align: left;
	display: inline-block;
	width: 100%;
	font-weight: bold;
}

/*
#customization_input {
	display: block;
	font-size: 1.2em;
	width: 20ex;
	margin: auto;
}
*/
.field {
	margin: 1em auto;
	width: 80%;
}