body {
	margin: 0;
	font-family: 'Source Sans Pro', sans-serif;
	background-color: #6f3333;
	overflow: hidden;
	color: #b1d2ba;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background-image: url("./assets/img/design-v1.png");
	background-repeat: no-repeat;
	/* background-size: cover; */
	background-position: center center;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.container {
	position: relative;
	display: grid;
	grid-template-areas: 'item';
	place-content: end stretch;
	text-align: center;
	/* min-width: 300px;*/
	max-width: 800px; 
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
	border-left: 4px solid #3d3c3c;
}

.container::before {
	content: '';
	grid-area: item;
	background-color: #6f3333ff;
	mix-blend-mode: multiply;
}

.item {
	grid-area: item;
	isolation: isolate;
	padding: 2em;
}

.rgform {
	background-color: #b1d2ba;
	padding: 1em;
	border-radius: 8px;
	margin: 3em 2em 2em 2em;
	width: 360px;
}

input[type="file"] {
	background-color: #3d3c3c;
	color: #b1d2ba;
	margin: 1em 0;
	display: block;
	border: none;
	padding: 0.75em 1.5em;
	border-radius: 4px;
}

::file-selector-button {
	display: none;
}

.buttons {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1em;
}

.buttons button {
	background-color: #3d3c3c;
	color: #b1d2ba;
	border: none;
	padding: 0.75em 1.5em;
	border-radius: 4px;
	cursor: pointer;
	flex: 1;
	white-space: nowrap;
}

.buttons button:active {
	background-color: #6f3333;
	color: #ffffff;
}

.buttons button:hover {
	background-color: #242424;
}

.expert-mode-label {
	display: block;
	font-size: small;
	text-align: left;
	align-self: center;
	margin: 0;
	color: #3d3c3c;
	cursor: pointer;
	padding: 0;
}

#messages {
	margin-top: 1.5em;
	width: 100%;
	overflow: hidden;
	border: 1px solid #b1d2ba;;
	padding: 8px;
	font-family: monospace;
	background-color: transparent;
	color: #b1d2ba;
}

textarea {
	resize: vertical;
	/* allows only vertical resizing */
	overflow: auto;
	/* scrollbar appears if needed */
}

#messages.success {
	color: #b1d2ba;
	border-left: 4px solid #6f3333;
	padding-left: 0.5em;
}

.hidden {
	display: none;
}

.logo-placeholder {
	position: absolute;
	top: 0;
	left: 64px;
	padding: 0.5em 1em;
	background-color: #ffffff;
	font-weight: bold;
	border-bottom-right-radius: 6px;
	font-size: 1em;
	height: 60px;
	object-fit: contain;
	object-position: center center;
}

#forgogatya {
	width: 354px;
	height: 354px;
	background: url('./assets/img/logo.png') no-repeat center center;
	position: absolute;
	bottom: -8em;
	left: -12em;
	z-index: -1;
	opacity: 0.4;
	/* adjust to taste */
}

.anchored {
	position: absolute;
	bottom: 10px;
	right: 10px;
	padding: 10px;
}

.spinning {
	-webkit-animation: spin 4s infinite linear;
	animation: spin 4s infinite linear;
}

@-webkit-keyframes spin {
	0% {
		-webkit-transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
	}
}

@keyframes spin {
	0% {
		-webkit-transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
	}
}

#rgsignature {
	position: fixed;
	bottom: 1em;
	/* left: 50%; */
	right: 2em;
	transform: translateX(-50%);
	width: 80px;
	/* height: 80px; */
	z-index: 1000;
}

#nlsignature {
	position: fixed;
	bottom: 0px;
	left: 4em;
	z-index: 1000;
	width: 278px;
	height: 70px;
	background-color: #ffffff45;
}

.info-wrapper {
	position: absolute;
	top: 0.75em;
	right: 1em;
	z-index: 10;
	/* ensures it's above content */
}

.info-button {
	background: none;
	border: none;
	color: #b1d2ba;
	font-size: 1.2em;
	cursor: pointer;
}

.info-box {
	position: absolute;
	top: -6.6em;
	/* adjust to sit under the button */
	right: 0;
	background-color: #2c2c2c;
	color: #b1d2ba;
	padding: 0.75em;
	border-radius: 6px;
	font-size: 0.9em;
	width: 250px;
	/* instead of max-width */
	white-space: normal;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
	z-index: 10;
	text-align: right;
	border: 2px solid #6ba3a0;
}

.button-row {
	display: flex;
	gap: 0.5em;
	justify-content: flex-end;
}

.toggle-button {
	background: none;
	border: none;
	color: #b1d2ba;
	font-size: 1.2em;
	cursor: pointer;
}

.toggle-button:hover {
	color: #ffffff;
}

.info-box a {
	color: #b1d2ba;
	text-decoration: underline;
}

.hidden {
	display: none;
}

.fade-content {
	opacity: 0;
	width: 100%;
	transition: opacity 0.4s ease;
	grid-column: 1 / -1;
	display:none;
}

.fade-content.visible {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
	display: block;
}

/* .fade-content.hidden {
	display: none;
} */


.file-label {
	display: block;
	font-size: small;
	text-align: left;
	margin: 1em 0;
	color: #3d3c3c;
	cursor: pointer;
	padding: 0;
	/* removes label padding */
}

.processing {
	pointer-events: none;
	/* disables all mouse interactions */
	/* optional: gives a visual cue */
	position: relative;
	filter: blur(1px) grayscale(1);
}

.processing * {
	pointer-events: none !important;
}

.processing::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	z-index: 10;
}

.instructions {
	position: relative;
	text-align: justify;
	overflow-y: auto;
	margin-bottom: 2em;
	line-height: 1.5em;
	color: #888;
}

.required {
	color: #b1d2ba;
}

caption {
	font-weight: bold;
	margin-bottom: 5px;
	text-align: left;
}

ul {
	padding-left: 18px;
	line-height: 1.4;
}
