/* Container for SVG with overlay support */
.svg-container {
	position: relative;
	height: 100vh;
	width: auto;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	aspect-ratio: 2000 / 2890;
	max-width: calc(100vh * (2000 / 2890));
	max-height: calc(100vw * (2890 / 2000));
	margin: 0 auto;
	container-type: size;
}

.svg-container svg {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	/* Ensure SVG scales to fit the container height */
	height: 100%;
	width: 100%;

	/* Preserve aspect ratio */
	max-width: 100%;
	max-height: 100%;
	z-index: 1;
}

@font-face {
	font-family: 'EB Garamond';
	src: url('./EBGaramond-Regular.ttf') format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

body {
	font-family: 'EB Garamond', serif;
}


/* Overlay content container - renders on top of SVG, centered */
.doc {
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -175%);
	max-width: calc(100vh * (2000 / 2890));
	max-height: calc(100vw * (2890 / 2000));
	color: aliceblue;
	width: 100%;
	text-align: center;
	white-space: normal;
	z-index: 10;
	font-size: 2.5cqmin;
}

form * {
	vertical-align: middle;
}

label {
	font-size: 2cqmin;
	display: block;
	margin-bottom: 5px;
}

input {
	padding: 2px;
	width: 250px;
	height: 40px;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #001100;
	text-align:right;
	font-size:2cqmin;
}

button {
	font-family: 'EB Garamond', serif;
	font-size: 2.4cqmin;
	width: 80px;
	height: 50px;
	padding: 4px 16px;
	background: #116dc9ff;
	color: aliceblue;
	border: 1px solid #ccc;
	border-radius: 20px;
	cursor: pointer;

}
