html {
	background-color: #1a1f23;
	/*background: urlassets/("assets/background.png");*/

	background-size: cover;
	background-position: center;
	
	color: #eee;

	min-height: 100vh;
	margin: 0;
}


main.vending-machine {
	background: #b62020;
	padding: 10px;
	display: grid;
	max-width: 80ch;
	margin: auto;
	grid-template-columns: 1fr 20ch;
	grid-template-rows: auto auto 1fr auto auto auto;
	grid-template-areas:
		"header header"
		"items help"
		"items control"
		"items pay"
		"output _"
		"footer footer";
	gap: 10px;
	border-top-left-radius: 40px;
	border-top-right-radius: 40px;
	height: 100%;
	box-shadow: 0 20em 0 #b62020;
}

.vending-machine > header {
	grid-area: header / auto / auto / span 1;
}

.vending-machine > footer {
	grid-area: footer / auto / auto / span 2;
	background: #222;
	color: #ccc;
	padding: .5em 1em;
	border-radius: .3em;
	width: 100%;
	box-sizing: border-box;
}


a {
	color: #9c0021;
}

h1 {
	margin: 0;
	text-align: center;
}

#item-area {
	background: #ddd;
	color: #000;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	grid-area: items;
	box-shadow: inset 0 0 1em #0008;
}

#output-area {
	background: #0e0104;
	border-radius: 5px;
	padding: 8px;
	grid-area: output;
}

#output {
	margin: 0;
	background: #280109;
	color: #9c0021;
	padding: .3em 1ch;
	font-weight: 700;
	font-size: 2em;
	min-height: 2em;
}

#control-area {
	font-size: 1.2em;
	grid-area: control;
}

#payment-area {
	font-size: 1.2em;
	grid-area: pay;
	border-radius: 10px;
	border-bottom-right-radius: 4em;
	background: linear-gradient(#222, #383838);
	padding: 5px;
	border: 3px solid #333;
	min-height: 7em;
}

#help-area {
	grid-area: help;
}

#help-area, #control-area {
	padding: 5px;
	background: #ab9b9f;
	color: #110407;
	border-radius: 10px;
	border: 3px solid #d8c0c5;
}

#help-area:first-child(), #control-area:first-child() {
	margin-top: 0;
}

#item-area > table {
	width: 100%;
}

#item-area .item-button {
	border: solid 5px #eee;
	background: linear-gradient(#118579, #11852e);
	color: #fff;
	font-size: 1.5em;
	width: 90%;
	margin: auto;
	display: block;
	--button-radius: .4em;
	border-bottom-width: .6em;
	margin-bottom: .4em;
	position: relative;
	text-shadow: 0 0 .3em #0004;
}

#item-area .item-button::after {
	content: "";
	display: block;
	font-size: 1.5em;
	height: .2em;
	bottom: -.3em;
	background: linear-gradient(#444, #000);
	width: auto;
	left: 10%;
	right: 10%;
	position: absolute;
	border-radius: 1em;
}

#item-area .item-button::before {
	border: solid 5px #ccc;
}

p, ol {
	margin: .5em 0;
}

button[disabled], input[disabled] {
	opacity: .8;
}

button {
	--button-radius: .3em;
	--height-offset: .25em;
	margin-bottom: .3em;
	position: relative;
	border-radius: var(--button-radius);
	box-shadow: 0 var(--height-offset) 0 #bbb, 0 0 .4em #0002;
	border: none;
	font-weight: 600;
}

button:not([disabled]) {
	cursor: pointer;
}

button:active:not([disabled]) {
	--height-offset: 0;
	transform: translate(0, .25em);
}

.block-button {
	display: block;
	width: 100%;
}

#control-area {
}

#control-area button, #payment-area button {
	font-size: 1em;
	margin-bottom: .4em;
}

input {
	color: #53b557;
	background: #09470c;
	border: 3px solid #002002;
	font-size: 1em;
	margin-bottom: .4em;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.button-line {
	display: flex;
	gap: .4em;
	width: 100%;
	margin-bottom: .4em;
}

.button-line > * {
	flex-grow: 1;
}
