body, input, select, textarea {
	font-family: Calibri, Verdana, helvetica, sans-serif;
}

body {
	margin: 0;
	padding: 0;
}

body.light {
	background-color: #f0f0f0;
}

em {
	text-decoration: underline;
}

.hidden, .prototype {
	display: none !important;
}

.uppercase {
	text-transform: uppercase;
}

.clickable {
	cursor: pointer;
}

#login-form-container {
	position: absolute;
	margin: 0;
	padding: 0;
	left: 0;
	top: 20vh;
	width: 100vw;
	min-height: 30vh;
	background-image: url(white-dim.png); 
	background-image: radial-gradient(circle farthest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, .4));
	text-align: center;
	border-top: solid rgba(0, 0, 0, .25) 1px;
	border-bottom: solid rgba(0, 0, 0, .25) 1px;
}

#login-form-container .links {
	margin-top: 1em;
}

#login-form-container .links a {
	font-size: 1.1rem;
	color: #333;
	font-weight: bold;
	text-decoration: none;
}

#login-form-container .call-to-action {
	margin-top: 1em;
}

#login-form-container > form {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100vw;
	padding: 3em 0;
}

#login-form-container > form > label {
	font-size: 1.2rem;
	margin: .5ex;
	font-weight: bold;
}

#login-form-container > form > input[type='text'] {     
	width: 12em;
	font-size: 1.5rem;
	margin: .5ex;
	padding: 1ex 1em;
	text-align: center;
	background-color: #fff;
	border: solid #aaa 1px;
}

#login-form-container > form > button {
	width: 12em;
	font-size: 1.2rem;
	margin: 1em;
	padding: 1ex 1em;
	text-align: center;
	border-style: none;
	color: rgba(255, 255, 255, .95);
	background-color: #eb5c14;
	font-weight: bold;
}

#login-form-container > form > button[disabled] {
	background-color: #bbb;
}

@media only screen and (max-width:1023px) {
	
	#login-form-container {
		top: 10vh;
	}
	
	#login-form-container > form > input[type='text'] {
		font-size: 1.2rem;
	}
	
	#login-form-container > form > button {
		font-size: 1.1rem;
	}
	
}

.msg {
	max-width: 40em;	
}

.msg.error {
	color: #b00;
	font-weight: bold;
}

.msg.success {
	color: #080;
	font-weight: bold;
}

#header {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	line-height: 0;
	background-color: #fff;
	color: #000;
	border-bottom: solid #bbb 1px;
	display: flex;
	flex-flow: row nowrap;
	align-items: center; 
	padding: .5em 0;
	overflow: hidden;
}

#header.shared {
	position: absolute;
}

#header .logo {
	width: 13em;
	height: 3em;
	background-image: url(cliff-logo.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 0% 50%; 
}

#header h1 {
	flex: 1;
	padding: 0;
	margin: 0;
	font-size: 1.6rem;
	font-weight: bold;
}

#header .right {
	font-size: 1rem;
	text-align: right;
	margin-right: 2em;
}


#footer {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100vw;
	background-color: rgba(0, 0, 0, .5);
	color: #ccc;
	border-top: solid rgba(0, 0, 0, 0.25) 1px;
	padding: .5em;
	overflow: hidden;
	box-sizing: border-box;
	text-align: center;
}

#footer .links a {
	color: #fff;
	text-decoration: none;
}

#main-content {
	margin-top: 6em;
	margin-bottom: 4em;
}

#main-content > p {
	text-align: center;
}

form button {
	cursor: pointer;
}

@media only screen and (max-width:1023px) {
	
	#header .logo {
		width: 13em;
	}
	
	#header h1 {
		display: none;
	}
	
	#header .right {
		flex: 1;
	}
	
}

@media only screen and (max-width:719px) {
	
	#header .logo.optional {
		display: none;
	}
	
}

@media only screen and (max-width:479px) {
	
	#main-content {
		margin-bottom: 0;
	}
	
	#footer {
		position: relative;
		bottom: inherit;
		width: inherit;
		margin: 0;
	}  
	
}

.line {
	display: flex;
	flex-direction: row;
}

.line a {
	text-decoration: none;
}

.line .stretch {
	flex: 1;
}

.line .fix {
	flex: 0;
}

.fullscreen {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	padding: 0;
	margin: 0;
}

.background {
	z-index: -1000;
	background-size: cover;
	background-position: 50% 50%;
}

.tile-container {
	display: flex;
	padding: 0;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.tile-container .tile {
	margin: 1ex;
	padding: 1ex 1em;
	background-color: #ddd;
	color: #000;
	border-radius: 1ex;
	border: solid rgba(0, 0, 0, .3) 1px;
	box-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
	text-align: center;
	transition: background-color ease-in-out .2s;
}

.tile-container .tile.attention {
	background-color: #fea;
}

.tile-container .tile:hover {
	background-color: #f8f8f8;
}

.tile-container .tile.success {
	background-color: #8e8;
	font-weight: bold;
}

.tile-container .tile .name {
	font-weight: bold;
}

ul.events {
	list-style-type: none;
}

ul.events > li .name {
	font-size: 140%;
}

#dimmer {
	z-index: 1000;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, .5);
}

.dialog {
	z-index: 2000;
	position: fixed;
	width: 25em;  
	max-height: 80vh;
	top: 10vh;
	left: calc(50vw - 12.5em);
	background-color: #ddd;
	color: #000;
	border-radius: .5rem;
	box-shadow: 1ex 1ex 1em rgba(0, 0, 0, .6);
}

.dialog.dimmed {
	z-index: 500; /* behind the dimmer */
}

.dialog input, .dialog select, .dialog label {
	font-size: 1.2rem;
	padding: .25ex .5ex;
}

.dialog.wide {
	width: 40em;
	left: calc(50vw - 20em);
}

.dialog > .header {
	background-color: #aac;
	color: rgba(0, 0, 0, .75);
	padding: 1ex;
	border-top-left-radius: .5rem;
	border-top-right-radius: .5rem;
	font-weight: bold;
	font-size: 1.3rem;
	margin-bottom: 1ex;
}

.dialog > .content {
	padding: 0 1ex;
}

.dialog .buttons {
	padding-top: 1ex;
}

.dialog .footer.buttons {
	padding: 1.7ex 1ex;
}

.dialog .footer.buttons div {
	flex: 1;
}

.dialog .footer.buttons .left {
	text-align: left;
}

.dialog .footer.buttons .right {
	text-align: right;
}

#header button {
	margin-right: 1em;
}

button {
	display: inline-block;
	margin-left: 1ex;
	padding: 1ex 1.5ex;
	border-radius: 3px;
	text-align: center;
	border-style: none; 
	background-color: #669;
	color: #fff;
	box-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
	transition: background-color .3s ease;
}

button:hover {
	background-color: #77a;
}

button:active {
	transform: translate(1px, 1px);
	box-shadow: none;
}

button.positive {
	background-color: #494;
	color: #fff;
}

button.positive:hover {
	background-color: #6a6;
}

button.negative {
	background-color: #a44;
	color: #fff;
}

button.negative:hover {
	background-color: #c55;
}

button[disabled], button[disabled]:hover {
	background-color: #bbb;
	cursor: default;
}


.dialog > .content > .scrollbox {
	max-height: 60vh;
	overflow-y: auto;
}

.dialog > .content ul.options {
	flex-direction: column;
}

.dialog > .content ul.options > li {
	font-size: 90%;
	padding: 1ex;
	margin: 0 1ex 1ex 1ex;
	text-align: left;
	transition: all ease-out .15s;
}

.dialog > .content ul.options > li {
	color: rgba(255, 255, 255, .5);
}

.dialog > .content ul.options > li.active {
	background-color: #445;
	background-image: none;
	color: #fff;
}

.dialog .feld {
	padding: .25ex;
}

.dialog > .content .feld label {
	display: inline-block;
	width: 30%;
}

.dialog > .content .feld input,
.dialog > .content .feld select {
	width: 66%;
	box-sizing: border-box;
}

.dialog > .content .feld input[type='radio'] {
	width: auto;
}

.dialog > .content .feld label.check-label {
	display: inline;
	width: auto;
}

.buttons {
	display: flex;
	flex: 1;
	text-align: right;
}

input, select {
	border-radius: 5px;
	border: solid #aaa 1px;
}

.tabs {
	font-family: inherit;
	border-style: none;
	background-color: inherit;
}

.tabs input, .tabs select {
	font-family: inherit;
}

.tabs > ul {
	background-color: inherit;
	padding: 0;
	margin: 0;
}

.tabs > .tab-page {
	background-color: #fff;
	border: solid #bbb 1px;
	border-radius: .25em;
}

#details-dialog-page-archives table {
	width: 100%;	
}

#details-dialog-page-archives table thead td {
	font-weight: bold;
}

#details-dialog-page-archives table td {
	padding-right: 1em;
}

#details-dialog-page-archives table td:last-of-type {
	padding-right: 0;
}

td.right {
	text-align: right;
}

#ajax-loader {
	position: fixed;
	z-index: 10000;
	top: 20%;
	left: 0;
	right: 0;
	width: 10em;
	height: 7.5em;
	margin-left: auto;
	margin-right: auto;
	padding: 1em;
	background-color: rgba(255, 255, 255, .8);
	border-radius: 1em;
	box-shadow: 0 0 1em rgba(0, 0, 0, .25);
	font-weight: bold;
	text-align: center; 
}

#ajax-loader > img {
	height: 5em;
}
