body {
	background-color: #ecdee1;
	background-image: url(../img/bgtop.png), url(../img/baseboard.png), url(../img/bg.png);
	background-repeat: repeat-x, repeat-x, repeat;
	background-position: 0 -60px, bottom, 0 0;
    margin: 70px 20px 70px 20px;
	font-size: 20px;
	font-family: "New Century Schoolbook 18";
	color: #21201b;
	line-height: 1.4;
}

h1 {
	font-family: "New Century Schoolbook 24";
	font-size: 78px;
}

main h2 {
	font-family: "New Century Schoolbook 24";
	font-size: 26px;
	margin: 24px auto 24px auto;
	color: #5f544e;
	background-image: url(../img/line_left_2x.png), url(../img/line_right_2x.png);
	background-position: left, right;
  	background-repeat: no-repeat;
	max-width: 480px;
}

main h2 span {
	max-width: fit-content;
	margin-left: auto;
	margin-right: auto;
	background-color: #fdfcfc;
	display: block;
	padding: 0px 10px;
}

aside h2 {
	font-family: "New Century Schoolbook 24";
	font-size: 26px;
	color: #5f544e;
	border-image-slice: 10 0 10 0;
	border-image-width: 0px 0px 6px 0px;
	border-image-outset: 0px 0px 0px 0px;
	border-image-repeat: repeat repeat;
	border-image-source: url(../img/h2border.png);
	box-shadow: #efe5e8 0px -5px inset;
	display: flex;
	justify-content: space-between;
}

aside h2::after {
	content: url(../img/tapereel.gif);
	align-self: center;
	display: flex;
	opacity: 75%;
}

#page {
	background: #fdfcfc;
	margin: 0 auto;
	text-align: left;
	max-width: 901px;
	border-image-slice: 38 38 38 38;
	border-image-width: 38px 38px 38px 38px;
	border-image-outset: 38px 38px 38px 38px;
	border-image-repeat: repeat repeat;
	border-image-source: url(../img/border.png);
	box-sizing: border-box;

	display: grid;
	grid-template:
		"header header"
		"status main" min-content
		"sidebar main" min-content
		"hifistack main" 1fr
		"footer footer"
			/ 300px;
	grid-gap: 10px;
}

header {
    background-image: url(../img/banner.png);
	background-position: center;
	padding: 24px;
	min-height: 250px;
	grid-area: header;
	
	h1, b {
		color: white;
		mix-blend-mode: difference;
		margin: 0px;
		line-height: 1.2;
	}
}

#status {
	grid-area: status;
	padding-left: 30px;
}

#sidebar {
	grid-area: sidebar;
	padding-left: 30px;
	margin-bottom: 20px;
}

#hifistack {
	grid-area: hifistack;
	width: 260px;
	margin: 30px 0px 30px 30px;
	background-image: url(../img/hifistack.png);
	background-origin: content-box;
	background-position: top center;
	background-repeat: repeat-y;
	border-image: url(../img/hifistackborder.png);
	border-image-slice: 17 17 17 17;
	border-image-width: 17px 17px 17px 17px;
	border-image-outset: 0px 0px 0px 0px;
	border-image-repeat: repeat repeat;
}

#hitcounter {
	position: relative;
	left: 30px;
	bottom: 0px;
	z-index: -1;
}

main {
	padding: 0px 30px 0px 30px;
	grid-area: main;

	p:not(blockquote p) {
		text-indent: 2em each-line;
	}
}

footer {
	grid-area: footer;
	background: #ecdee1;
	color: #755d5c;
	padding: 0px 30px 0px 30px;
	display: flex;
	justify-content: space-between;
	
	p {
		margin: 0px;
	}
}

textarea, footer, aside {
	font-size: 16px;
	font-family: "New Century Schoolbook 14";
}

@media screen and (width <= 1300px) {
	#hitcounter {
		display: none;
	}
}

@media screen and (width <= 930px) {
	#page {
		display: revert;
	}

	#status, #sidebar, #hitcounter {
		padding: 0px 30px 0px 30px;
	}

	body {
    	margin: 70px 20px 70px 20px;
	}

	aside {
		font-size: 20px;
		font-family: "New Century Schoolbook 18";
	}

	main {
		padding: 30px 30px 0px 30px;
	}

	main::before, main::after {
		content: url();
		display: block;
		width: 100%;
		height: 34px;
		background-image: url(../img/line2.png);
		background-repeat: no-repeat;
		background-position: center;
	}

	#page {
		max-width: 651px;
	}

	footer p:last-child, #hifistack {
		display: none;
	}

	header {
		min-height: 150px;

		h1 {
			font-family: "New Century Schoolbook 24";
			font-size: 52px;
		}
	}
}

@media screen and (width <= 700px) {
	body {
    	margin: 35px 20px 70px 20px;
	}
}

@media screen and (width <= 500px) {
	body {
		margin: 0px;
		background: #fff;
	}

	page {
		border: none;
	}

	body, aside {
		font-size: 16px;
		font-family: "New Century Schoolbook 14";
	}

	header {
		min-height: 100px;

		h1 {
			font-family: "New Century Schoolbook 24";
			font-size: 26px;
		}

		b {
			font-family: "New Century Schoolbook 14";
			font-size: 16px;
		}
	}

	main h2 {
		background-image: url(../img/line_left.png), url(../img/line_right.png);
		max-width: 250px;
	}

	h2 {
		font-family: "New Century Schoolbook 18";
		font-size: 20px;
	}
}

#button {
	text-align: center; 
	display: block;
}

#buttontextarea {
	width:100%;
	max-width: 300px;
	resize: none;
	margin-left: auto;
	margin-right: auto;
}

/*
https://markentier.tech/posts/2021/03/responsive-toc-leader-lines-with-css/
*/

.pricetable {
	width: 100%;
	padding: 0px 30px 0px 30px;
}

.entry {
	display: grid;
	grid-template-columns: auto max-content;
  	grid-template-areas: "category price";
	align-items: end;
  	gap: 0 .25rem;
}

.category {
	grid-area: category;
	position: relative;
	overflow: hidden;
}

.category::after {
	position: absolute;
	padding-left: .25ch;
	content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
	". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
	". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ";
	text-align: right;
}

.price {
	grid-area: price;
}

blockquote {
	display: list-item;
	font-style: italic;
}

blockquote::marker {
	content: url(../img/star.gif) "    ";
}

blockquote p::before {
  content: "\201C";
}

blockquote p::after {
  content: "\201D";
}

blockquote + p {
  text-align: right;
}

[title] {
	cursor: help;
}

a {
	color: #735a58;
}

a:visited {
	color: #784a12;
}