/* Common-Styles */
:root {
	--selective-yellow: #ffb400ff;
  	--picton-blue: #00a6edff;
  	--apple-green: #7fb800ff;
  	--scarlet: #f42c04ff;
  	--rich-black: #0f1a20ff;
  	--gunmetal: #143642ff;
  	--penn-red: #95190cff;
  	--yellow-green: #84c318ff;
  	--glaucous: #6f8ab7ff;
  	--peach: #eac39aff;
  	
  	--first-section-color: #84c318ff;
  	--second-section-color: #6f8ab7ff;
  	--third-section-color: #95190cff;
  	--fourth-section-color: #9a2dd7;

  	--checked-color: #7fb800ff;
  	--unchecked-color: #f42c04ff;
}
html, body {
	height: 100%;
	width: fit-content;
	min-width: 100vw;
}
body {
	font-family: Verdana, Arial, sans-serif;
	margin: 0;
}
button {
	background: linear-gradient(170deg, rgba(255, 255, 255, 0.75) 5%, rgba(255,255,255,0.3) 15%, rgba(0,0,0,0.5) 100%);
	box-shadow: inset 1px 1px rgba(255,255,255,0.5), inset -1px -1px rgba(0, 0, 0, 0.3);
	padding: 10px 20px;
	margin: 10px auto;
	border: 1px solid #666;
	border-radius: 7px;
	font-weight: bold;
	color: #333;
	background-color: var(--apple-green) !important;
}
button:hover {
	background: linear-gradient(170deg, rgba(255, 255, 255, 0.75) 10%, rgba(255,255,255,0.5) 20%, rgba(0,0,0,0.6) 100%);
}
button.red-button {
	background-color: var(--penn-red) !important;
	color: #FFF;
}
h1 {
	margin: 0;
}


/* index.php */
ul#tablist {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

ul#tablist a {
	text-decoration: none;
	color: #000;
	font-weight: bold;
	padding: 10px 20px;
	display: block;
}

ul#tablist a.active {
	background: lightgray;
}

div.tab-content {
	display: none;
	height: calc(100% - 40px);
}
div.tab-content.active {
	display: grid;
}

div#register {
	grid-template-columns: 1fr 1fr 300px;
	grid-template-rows: 1fr 1fr;	
}

div#orders {
	grid-template-columns: 400px 1fr;
}

#orders ul {
	margin: 0;
	padding: 0;
	list-style-type: none ;
}

#orders li {
	margin: 10px 0;
}

#orders a {
	display: block;
  padding: 10px 20px;
  color: #000;
  text-decoration: none;
  background: lightgray;
}

#orders a:hover {
	background: darkgray;
}


section {
	padding: 20px 0 0 10px;
}
ul.items {
	list-style-type: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	margin: 0;
	padding: 0;
}
ul.items label {
	display: block;
	height: 100%;
}


section.item_list:nth-of-type(1) {
	grid-column: 1;
	grid-row: 1;
}
section.item_list:nth-of-type(1) ul li.item {
	border: 1px solid var(--first-section-color);
}
section.item_list:nth-of-type(1) ul li.item span.label {
	background-color: var(--first-section-color);
}
section.item_list:nth-of-type(1) ul li.item span {
	background-color: var(--first-section-color);
	border: 1px solid var(--first-section-color);
	color: #000;
}

section.item_list:nth-of-type(2) {
	grid-column: 1/3;
	grid-row: 2;
}
section.item_list:nth-of-type(2) ul li.item {
	border: 1px solid var(--second-section-color);
}
section.item_list:nth-of-type(2) ul li.item span.label {
	background-color: var(--second-section-color);
	color: #FFF;
}
section.item_list:nth-of-type(2) ul li.item span {
	background-color: var(--second-section-color);
	border: 1px solid var(--second-section-color);
}


section.item_list:nth-of-type(3) {
	grid-column: 2;
	grid-row: 1;
}
section.item_list:nth-of-type(3) ul li.item {
	border: 1px solid var(--third-section-color);
}
section.item_list:nth-of-type(3) ul li.item span.label {
	background-color: var(--third-section-color);
	color: #FFF;
}
section.item_list:nth-of-type(3) ul li.item span {
	background-color: var(--third-section-color);
	border: 1px solid var(--third-section-color);
}

section.item_list:nth-of-type(4) {
	grid-column: 2;
	grid-row: 2;
}
section.item_list:nth-of-type(4) ul li.item {
	border: 1px solid var(--fourth-section-color);
}
section.item_list:nth-of-type(4) ul li.item span.label {
	background-color: var(--fourth-section-color);
	color: #FFF;
}
section.item_list:nth-of-type(4) ul li.item span {
	background-color: var(--fourth-section-color);
	border: 1px solid var(--fourth-section-color);
}

.item_list li.item {
	border-radius: 5px;
	width: 135px;
	margin: 20px 10px;
	height: 135px;
	position: relative;
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
	background: #EEE;
}
ul.items li span.label {
	display: block;
	padding: 5px 0px;
	text-align: center;
	position: absolute;
	bottom: 0;
	width: 99%;
	border-radius: 0 0 5px 5px;
}
ul.items li.item span.item_amount,
section.item_list ul li.item span.item_amount,
section.item_list ul li.item span.item_amount span {
	font-size: 10pt;
	background-color: transparent;
	border: none;
	color: inherit;
}
li input {
	display: none;
}
li span.price {
	border-radius: 20px;
	font-size: 8pt;
	color: #FFF;
	float: right;
	padding: 12px 3px 13px;
	position: absolute;
	top: -15px;
	right: -15px;
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
li span.deposit {
	font-size: 7pt;
	color: #FFF;
	position: absolute;
	top: 0;
	left: 0;
	padding: 2px;
}
li img {
	width: 100%;
	height: auto;
	max-height: 120px;
	mix-blend-mode: multiply;
}
ul.sub_items {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
div.sub_items li.sub_item {
	display: block;
	text-align: left;
}
div.sub_items label {
	display: block;
	padding: 10px 20px;
	white-space: nowrap;
}
div.sub_items li.sub_item:hover {
	background: rgba(170,170,170, 0.4);
}
div.sub_items li label {
	color: var(--unchecked-color);
	text-decoration: line-through rgba(244,44,04,0.5);
}
div.sub_items li.checked label {
	color: var(--checked-color);
	text-decoration: none;
}
div.sub_items li.invisible {
	display: none;
}

#voucher {
	grid-column: 3;
	grid-row: 1/3;
	background: lightgray;
	align-self: flex-start;
	padding: 20px 10px;
	height: calc(100% - 40px);
	overflow-y: auto;
	box-shadow: inset 5px 5px 15px rgba(0,0,0,0.1);
}
#voucher form > span {
	display: none;
}
#voucher h4 {
	clear: both;
}
#voucher ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
#voucher li {
	width: 100%;
	clear: both;
}
#voucher dl {
	float: left;
	width: calc(100% - 120px);
	margin: 0 10px;
	position: relative;
}
#voucher dt {
	float: left;
	max-width: 70%;
}
#voucher dd {
	float: right;
	margin: 0;
	position: absolute;
	right: 0;
}
#voucher dd span {
	position: absolute;
	font-size: 6pt;
	bottom: -10px;
	right: 0px;
}
#voucher .voucher_item_sub_items {
	font-size: 8pt;
	clear: both;
}
#voucher dl span.label:after {
	content: ',';
}
#voucher dl span.label:last-child:after {
	content: '';
}
#voucher button.add_voucher_item {
	float: left;
	position: relative;
	top: -10px;
	padding: 10px;
}
#voucher button.remove_voucher_item {
	float: right;
	position: relative;
	top: -10px;
	padding: 10px;
	width: 33px;
}
#voucher input.voucher_item_amount {
	display: initial;
	border: 0;
	background: none;
	font-family: Verdana, Arial, sans-serif;
	float: left;
  	width: 15px;
  	margin-left: 10px;
}

#voucher header {
	height: 60px;
	border-bottom: 1px dashed #666;
}

#voucher header button {
	float: left;
}
#voucher header span {
	float: right;
	margin-top: 20px;
}	
#voucher #check-out {
	bottom: 0;
	right: 0;
	width: 300px;
	height: 415px;
	margin: auto;
	padding: 20px;
	text-align: left;
}
#voucher #check-out div {
	grid-column-start: 1;
	grid-column-end: 4;
	font-size: 12px;
	margin-bottom: 10px;
}
#voucher #check-out input {
	width: 263px;
	text-align: right;
    background: #fff;
    color: #525865;
    border-radius: 4px;
    border: 1px solid #d1d1d1;
    box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    font-size: 1em;
    line-height: 1.45;
    outline: none;
    padding: 0.6em 1.45em 0.7em;
    transition: .18s ease-out;
    cursor: default;
}
#voucher #check-out button:nth-child(4) {
	/* 0 */
	grid-column-start: 2;
	grid-row-start: 7;
}
#voucher #check-out button:nth-child(5) {
	/* 1 */
	grid-column-start: 1;
	grid-row-start: 6;
}
#voucher #check-out button:nth-child(6) {
	/* 2 */
	grid-column-start: 2;
	grid-row-start: 6;
}
#voucher #check-out button:nth-child(7) {
	/* 3 */
	grid-column-start: 3;
	grid-row-start: 6;
}
#voucher #check-out button:nth-child(8) {
	/* 4 */
	grid-column-start: 1;
	grid-row-start: 5;
}
#voucher #check-out button:nth-child(9) {
	/* 5 */
	grid-column-start: 2;
	grid-row-start: 5;
}
#voucher #check-out button:nth-child(10) {
	/* 6 */
	grid-column-start: 3;
	grid-row-start: 5;
}
#voucher #check-out button:nth-child(11) {
	/* 7 */
	grid-column-start: 1;
	grid-row-start: 4;
}
#voucher #check-out button:nth-child(12) {
	/* 8 */
	grid-column-start: 2;
	grid-row-start: 4;
}
#voucher #check-out button:nth-child(13) {
	/* 9 */
	grid-column-start: 3;
	grid-row-start: 4;
}
#voucher #check-out button:nth-child(14) {
	/* Komma */
	grid-column-start: 1;
	grid-row-start: 7;
}
#voucher #check-out button:nth-child(15) {
	/* C */
	grid-column-start: 3;
	grid-row-start: 7;
}
#voucher #check-out button:nth-child(16) {
	/* Bestellung abschliessen */
	grid-column-start: 1;
	grid-column-end: 4;
	grid-row-start: 9;
}
#voucher #check-out button {
	margin: 5px;
}

#overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(51, 51, 51, 0.8);
	display: none;
	backdrop-filter: grayscale(75%) blur(2px);
}
div.overlay_child {
	display: none;
  	position: absolute;
  	top: 0;
  	left: 0;
  	background: rgba(204,204,204,0.5);
  	box-shadow: rgba(0, 0, 0, 0.2) 10px 10px 20px 0px;
  	backdrop-filter: blur(5px);
  	border-radius: 5px;
  	border: 1px solid #999;
  	z-index: 1000;
  	text-align: center;
  	min-width: 150px;
}

/* orders.php */
body#orders-list {
	display: flex;
	background: #D3D3D3;
}
ul#orders {
	display: flex;
	margin: 20px;
	padding: 0;
	justify-content: flex-start;
	flex-direction: row-reverse;
	list-style: none;
}
ul#orders li.order {
	border: 1px solid #000;
	height: 500px;
	margin: 0 5px;
	padding: 10px;
	border-radius: 5px;
	width: 270px;
	opacity: 0.5;
	background: #FFF;
	color: #333;
	transform: scale(0.9, 0.85);
	transition: 0.5s;
	position: relative;
	transform-origin: top left;
	box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
ul#orders li.order footer {
	display: none;
	position: absolute;
	bottom: 0px;
	text-align: center;
	width: 100%;
	margin-left: -10px;
}
ul#orders li.order:hover {
	transform: scale(1);
	opacity: 0.75;
	z-index: 999;
}
ul#orders li.active,
ul#orders li.active:hover {
	transform: scale(1.1, 1.05);
	opacity: 1;
	z-index: 1000;
	margin-right: 50px;
}
ul#orders li.active footer {
	display: block;
}
ul#orders h4 {
	margin: 0;
}
ul#orders ul {
	margin: 0;
	padding: 0;
	list-style: none;	
	height: 430px;
	overflow: auto;
}
ul#orders li.label {
	margin: 10px 0 0;
	border-radius: 5px;
	position: relative;
}
ul#orders li.active li.label:hover {
background-color: #bdcb9d;
}
ul#orders li.label.prepared,
ul#orders li.active li.label.prepared:hover {
	background-color: #a8c568;
	text-decoration: line-through;
}
ul#orders li.label.prepared.label:after {
	content: "\2713";
 	position: absolute;
 	transform: translateY(-50%);
 	display: block;
 	top: 50%;
 	right: 15px;
 	font-weight: bold;
 	color: green;
 }
.sub_items span,
div.deposit {
	font-size: 10pt;
}
.sub_items span:after {
	content: ', ';
}
.sub_items span:last-child:after {
	content: '';
}	
ul#item_count {
	position: fixed;
	width: 100vw;
    left: 0;
    bottom: 0;
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
    right: 0;
    background: #e9e9e9;
    border: 1px solid #939393;
    justify-content: space-between;
    text-align: center;
    box-shadow: inset 5px 5px 15px rgba(0,0,0,0.1);
}
ul#item_count li {
	border-right: 1px dashed #939393;
	flex-grow: 1;
}
ul#item_count li:last-child {
	border: 0px;
}
ul#item_count dl {
	display: flex;
	justify-content: space-between;
}
ul#item_count dt, ul#item_count dd {
	display: inline;
	margin: 0;
	flex-grow: 1;
}
