/* tpl/main.css */
body {
  font-family: arial;
  font-size: 20px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
}
header {
  background: #000 url(/res/frontpage.jpg) center no-repeat;
  background-size: cover;
  width: 100%;
  height: 100vh;
}
#loginbox {
  position: absolute;
  width: 18em;
  left: calc(50% - 9em);
  bottom: 5em;
}
#loginbox p {
  background-color: #000;
  text-align: center;
  padding: 0.2em;
  border-radius: 0.2em;
}
a {color: #fff; text-decoration: underline;}
ul {list-style: none; padding: 0; margin: 0;}
li {
  display: inline-block;
  padding: 0.2em;
  margin: 0.1em;
  border-radius: 0.2em;
}
li img {height: 0.8em;}
li > img {margin: 0 0.4em 0 0.2em;}
.button > img, li > .button  {margin: 0 0.2em 0 0.2em;}
li .button {
  padding: 0 0.1em;
  background-color: #000;
  border-radius: 0.2em;
  border: 0.05em solid #fff;
}
.button {border: 0.05em solid #fff; background-color: #000; cursor: pointer;}
.button:hover {background-color: #333;}
nav {
  vertical-align: middle;
  text-align: left;
  background-color: #9b0000;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav ul {padding: 0 0.5em;}
nav li {
  padding: 0.5em 0.75em;
  font-weight: bold;
  margin: 0;
  background-color: #9b0000;
  border: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  cursor: pointer;
}
nav li:hover {background-color: #f00;}
nav li.current {background-color: #000;}
#navigation_select {
	display:none;
	background-color: #9b0000;
	font-weight: bold;
	padding: 0.5em 0.75em;
	width: 100%;
}
main {padding: 0 1.75em;}
article {margin: 0 0 2em 0;  max-width: 60em;}
article:first-of-type {margin: 2em 0 2em 0;}
article img {max-width: 100%;}
h1 img {height: 0.8em;}
input, select {
	background-color: #000;
	color: #fff;
	font-size: 100%;
	padding: 0.1em;
	border: 1px solid #fff;
	box-sizing: border-box;
}
.list_entry select {height: 1.4em;}
input[type="submit"], button {background-color: #9b0000; color: #fff; font-size: 100%;}
.login {
  width: 12em;
  text-align: center;
  border: 0.1em solid #fff;
  padding: 0.2em;
  margin: 0.1em;
  box-sizing: content-box;
}
.disabled, input[type="submit"].disabled {
  background-color: #333;
}
a.toggleVisibility {text-decoration: none;}
h1 {
  background-color: #333;
  display: inline;
  padding: 0.3em 0.6em;
  border-radius: 0.2em;
}
div.toggleVisibility {
  padding: 1em;
  border: 0.3em solid #333;
  border-radius: 0.2em;
}
.group_title {
  border-bottom: none;
  border-left: 0.3em solid #333;
  border-right: 0.3em solid #333;
  padding: 0.5em;
  border-top: 0.2em solid #333;
  border-top-right-radius: 0.3em;
  border-top-left-radius: 0.3em;
  background-color: #333;
}
.group_title h1 {
  padding-left: 0;
}
.list_entry_row {
  border-bottom: 0.05em dashed #333;
  border-left: 0.3em solid #333;
  border-right: 0.3em solid #333;
  border-top: 0;
  padding: 0.2em;
  min-height: 1.733em;
}
.list_entry_row ul {display: inline;}
.list_entry_row .block {display: block;}
.list_entry {border-bottom: 0.05em dotted #333;}
.list_entry:last-of-type {border-bottom: none;}
.list_entry_title {
  border-bottom: none;
  border-left: 0.3em solid #333;
  border-right: 0.3em solid #333;
  padding: 0.2em;
  border-top: 0.1em solid #333;
  background-color: #333;
}
.list_entry .list_entry_row:last-of-type {border-bottom: none;}
.list_entry:last-of-type .list_entry_row:last-of-type {border-bottom: 0.3em solid #333;}
/*.list_entry:last-of-type .list_entry_title:last-of-type  {border-bottom: 0.05em solid #888;}*/
.list_entry_title li {background-color: #000;}
.list_entry:first-of-type .list_entry_title {border-top-right-radius: 0.2em;}
.list_entry:last-of-type div:last-of-type {border-bottom-right-radius: 0.2em; border-bottom-left-radius: 0.2em;}
.list_selected div {border-color: #9b0000;}
.list_selected .list_entry_title {background-color: #9b0000;}

.list_entry .bild {
  position: relative;
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4em;
  min-width: 4em;
  padding: 0;
  background-color: #fff;
  overflow: hidden;
}
.list_entry .bild img {
  position: absolute;
  z-index: 1;
  max-height: 4em;
  max-width: 4em;
}
.list_entry .bild form {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  height: 4em;
  width: 4em;
  opacity: 0.6;
  background-color: #fff;
}
.list_entry .bild form button {
  height: 4em;
  width: 4em;
  padding: 0;
}
.list_entry .bild .deleter {
  position: absolute;
  z-index: 20;
  bottom: -0.2em;
  right: -0.2em;
  background-color: #000;
	border: 0.05em solid #fff;
	border-radius: 0.2em;
}
.list_entry .bild .deleter img {position: relative;height: 0.8em;}
.list_entry .bild .dz-default {max-height: 100%;}

#qrscanner {
	display: none;
	position: fixed;
	left: 2em;
	right: 2em;
	top: 2em;
	bottom: 2em;
	width: auto;
	height: auto;
	z-index: 100;
	background-color: #555;
	padding: 2em;
	align-items: center;
	flex-direction: row;
	justify-content: space-around;
}
#qrscanner_text, #qrscanner_video {/*width:100%;*/}
#qrscanner_close {position: fixed; z-index: 999; right: 2.5em; top: 2.5em;}
#qrscanner_video {max-height: 80%; max-width: 80%;}

.chocolate {background-color: #840;}
.merlot {background-color: #804;}
.mughal {background-color: #480;}
.philippine {background-color: #084;}
.blue {background-color: #048;}
.indigo {background-color: #408;}
.purple {background-color: #404;}
.olive {background-color: #440;}
.teal {background-color: #044;}
.red {background-color: #400;}
.pacific {background-color: #004;}
.green {background-color: #040;}

@media only screen and (orientation: portrait) {
  body {font-size: 4vw;}
  nav {font-size: 6vw;}
  #navigation_select {display:inline;font-size: 6vw;}
  #navigation {display:none;}
  main {padding: 0 1em;}
  nav li {padding: 1em 0.35em;}
  table {font-size: 4vw;}
  input,button,select {font-size: 4vw;}
  input[type=radio] {border: 0; height: 1em;}
  #qrscanner {flex-direction: column; padding: 0;}
  #qrscanner_video {max-height: 40%; max-width: 100%;}
}