@font-face {
	font-family: "Adobe Garamond Pro";

	src: local("Adobe Garamond Pro"),
	url("./adobe-garamond-pro/AGaramondPro-Regular.otf");
}

@font-face {
	font-family: "Adobe Garamond Pro Bold";

	src: local("Adobe Garamond Pro Bold"),
	url("./adobe-garamond-pro/AGaramondPro-Bold.otf");
}

html {
	box-sizing: border-box;
	display: flex;
	justify-content: center;
}

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

header, main, article, section, footer, nav {
	display: block;
}

body {
	max-width: 850px;
	width: 100%;
	font-size: 1.2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	width: 100%;
}

p {
	text-indent: 2em;
}

.logo {
	font-size: 2em;
	font-family: "Adobe Garamond Pro Bold";
	color: #bc1263;
	display: flex;
	align-items: baseline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Adobe Garamond Pro Bold";
	font-variant: small-caps;
	text-align: center;
}

h1 {
	font-size: 1.5em;
}

.logo img {
	display: inline-block;
	width: 1em;
	margin-right: 0.25em;
}

.form-section {
	display: grid;
	margin: 0 4em;
	grid-template-columns: 1fr 1fr;
	row-gap: 1.5em;
}

.section-1, .section-2, .section-3, .section-4, .section-5 {
	display: none;
}

.form-row {
	display: table-row;
	margin-bottom: 1em;
}

.label-container {
	max-width: 12em;
	padding-right: 2em;
}

.label-container, .input-container{
	/*display: table-cell;*/
}

.input-container {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.checkbox-flexbox {
	min-height: 50%;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.button-container {
	grid-column-start: 1;
	grid-column-end: 3;
	display: flex;
	justify-content: center;
}

label:has(> input[type="checkbox"]:invalid), label:has(> input[type="radio"]:invalid), .checkbox-outline:has(> input[type="checkbox"]:invalid), input:invalid, div:has(> select:invalid), div:has(> input[type="range"]:invalid) {
	border: 2px dashed red;
}

dialog {
	max-width: 850px;
}

.dialog-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

.dialog-logo {
	grid-column: 1;
	min-height: 1em;
}

#dialog-text {
	grid-column: 1 / 4;
	grid-row: 2;
	margin: 2em;
	text-align: center;
}

.dialog-submit {
	grid-column: 2;
	grid-row: 3;
	display: flex;
	justify-content: space-around;
	min-height: 2em;
}

.dialog-lv1::backdrop{
	background: #00000080;
}

.dialog-lv2::backdrop{
	background: #160F0080;
}

.dialog-lv3::backdrop{
	background: #583C0080;
}

.dialog-lv4::backdrop{
	background: #F2A40080;
}

.dialog-lv5::backdrop{
	background: #F2A400C0;
}

.dialog-lv6::backdrop{
	background: #F2A400FF;
}

#button-praise {
	margin-top: 2em;
}
