@font-face {
    font-family: Nunito;
    src: url("/resources/font/nunito/Nunito-Regular.ttf") format("truetype");
}

html,
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

* {
    font-family: 'Nunito', sans-serif;
	font-size: 16px;
}

h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.2em; }

*,
*:before,
*:after {
    box-sizing: inherit;
	vertical-align: top;
}

table {
	border-collapse: collapse;
}

input,
textarea{
	border-width: 1px;
	line-height: 1em;
    padding: 0.2em 0.5em
}

input[type="button"],
input[type="submit"] {
	cursor: pointer;
}

ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

nav ul li {
	padding: 0;
	margin: 0;
}

nav ul li a,
nav ul li input {
	padding: 0.2em 0.5em;
	transition: all 0.2s;
}

nav ul ul li {
    margin-left: 1em;
	border-right-width: 0;
	border-bottom-width: 0;
}

nav ul li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/** Horizontal List */
nav.horizontal ul {
	display: inline-block;
}

nav.horizontal ul li {
	display: inline-block;
	vertical-align: top;
    margin-bottom: 0.2em;
}

/** Dropdown Featured List */
nav.dropdown ul {
	display: block;
}

nav.dropdown ul li {
	display: block;
}

/** Closeable Featured List */
nav.closeable ul li {
	display: none;
	z-index: 1;
	position: inherit;
}

nav.closeable ul:hover li,
nav.closeable ul li.active {
	display: inherit;
}

/*****************************/
/*          Colors           */
/*****************************/

/* Border color */
* {
	border: 0 solid #777;
}

body {
	color: #333;
	background-color: #fff;
}

nav nav {
    color: #777;
    border-left-width: 1px;
}

input,
textarea {
	background: #fff;
	color: inherit;
}

input:disabled,
textarea:disabled {
    background: #dddd;
    color: #999;
}

input[type="button"]:hover,
input[type="submit"]:hover,
nav ul li a:hover {
	text-shadow: 5px 3px 2px #fc0;
	font-weight: bold;
}

/* For shadowed stuff */
.shadowed {
	box-shadow: 5px 5px 10px 0 #fc0;
}

/* For headlines */
.headline,
.active {
    color: #777;
    text-decoration: underline;
}

/* For content */
.content {
    background: #ddd none;
}

.error {
    background-color: #c55;
}

header nav,
header nav .active{
    color: #ddd
}


/*****************************/
/*          Header           */
/*****************************/

header {
	z-index: 1;
	position: relative;
	height: 7em;
	padding: 0.5em 2em;
    background: url('/resources/images/header_background.jpg') no-repeat 0 45%;
    background-size: 100%;
}

header nav nav {
    border-left-width: 0;
}

header > nav {
    background-color: rgba(50, 50, 50, 0.7);
    padding: 0.5em;
}

header > nav > ul:nth-child(2) {
	float: right;
	border-radius: 0 0 0 30px;
    padding-right: 10px;
    padding-left: 30px;
}

header nav ul ul li {
	margin-left: inherit;
	border-right-width: inherit;
	border-bottom-width: inherit;
}

header nav.horizontal ul li {
	margin-bottom: inherit;
}

/*****************************/
/*           Body            */
/*****************************/

#content {
	z-index: 0;
	position: absolute;
	top: 7em;
	right: 0;
	left: 0;
	bottom: 0;
}

#content > div {
	margin: 0 5px;
	padding: 1em;
	overflow: auto;
	height: 100%;
}

#pageNavigation {
	float: left;
	width: 10em;
	padding: 0;
    border-right-width: 1px;
}

#pageNavigation > i.fa.fa-list {
	float: right;
	margin: 0.6em;
	display: none;
}

#pageNavigation h2 {
	margin: 0 0 5px;
	text-align: center;
	text-decoration: underline;
}

#pageNavigation > nav {
	margin: 0.5em;
}

#pageNavigation > nav > ul li {
	padding: 0;
	border-width: 0;
}

#pageNavigation > nav > ul li a {
	padding: 0.2em 0.5em;
	margin-bottom: 0.2em;
}

/*****************************/
/*           Login           */
/*****************************/

#login {
    background: url('/resources/images/login_background.jpg') no-repeat;
    background-size: 100%;
    height: 350px;
	width: 400px;
	margin: 5em auto 0;
	overflow: hidden;
	position: relative;
}

#login-form {
	margin: 180px auto 0;
	width: 12em;
	padding: 10px;
	border-width: 2px
}

#login-form > div {
    margin-bottom: 2px;
}

#login-form > div * {
    width: 100%;
}

#login div.error {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
}

#login div.error {
    padding: 0.2em 0.5em;
    display: none;
    text-align: center;
}

@media (max-width: 700px) {
    #login {
        width: auto;
    }
}


/*****************************/
/*        Entityview         */
/*****************************/

#entityOverview > ul {
    padding: 0;
}

#dataOverview {
    overflow: auto;
}

#dataOverview table tbody {
	border-width: 1px 0;
}

#dataOverview table thead tr th,
#dataOverview table tbody tr td {
	padding: 0.2em 0.5em;
	border-left-width: 1px;
}

#dataOverview table tbody tr:nth-last-child(odd) {
	opacity: 0.5;
}

.defaultEdit,
.specialEdit {
    display: inline-block;
}

.defaultEdit {
    border-right-width: 1px;
}

.defaultEdit div {
	border-bottom-width: 1px;
	padding: 0 20px;
}

.defaultEdit > form > div:last-child {
    border-bottom-width: 0;
}

.defaultEdit div > * {
	display: inline-block;
}

.defaultEdit div > label {
    margin: 2px 5px;
    width: 10em;
}

.defaultEdit div > span {
    width: auto;
    padding: 0 0.5em;
}

.defaultEdit > form > .error,
#entityedit > form > .error {
    margin: 0.2em 0.5em;
    padding: 0.2em 0.5em;
}

/*****************************/
/*         Profile           */
/*****************************/

.profilePage {
    display: inline-block;
    width: 30em;
    height: 30em;
    max-width: 600px;
    padding: 5px;
    border-width: 2px;
    margin: 5px 5px 15px 5px;
    vertical-align: top;
}

.profilePage > img {
	float: right;
	border-width: 3px;
}

.profilePage > div {
	padding: 2px 5px;
}

.profilePage > div > * {
	display: inline-block;
}

.profilePage > div.saveable > label {
	width: 6em;
}

.profilePage > div.saveable > input {
	width: 14em;
	padding-left: 5px;
}

.profilePage #groesse { width: 2em; }
.profilePage #groesse_output { width: 2em; }
.profilePage #gewicht { width: 3em; }
.profilePage #gewicht_date {
    width: 6em;
    text-align: center;
}

#avatar input[type=range].vertical {
	width: 10px;
	height: 220px;
	/*background-image: repeating-linear-gradient(0deg, white, white 8%, #76ff3e 8%, black 9%);*/
	writing-mode: bt-lr;                    /* IE */
	-webkit-appearance: slider-vertical;    /* WebKit */
}

#avatarSVG {
    border-width: 2px;
}

#avatar > div > * {
    display: inline-block;
    margin: 0;
}

#avatar > div > i {
    display: none;
}

.text input {
    cursor: pointer;
    border-width: 1px;
    border-style: dashed;
}

/*****************************/
/*     For small Windows     */
/*****************************/

@media (max-width: 700px) {
	header > nav.horizontal > ul {
		display: block;
		float: none;
		border-radius: 0;
		padding-left: 10px;
		padding-right: 10px;
	}

	nav {
	    float: none;
	    width: auto;
	    border-radius: 0;
	    margin-bottom: 10px;
	    cursor: pointer;
	}

    #pageNavigation {
        display: block;
        position: relative;
        float: none;
        border-right-width: 0;
    }

    #pageNavigation > i.fa.fa-list {
	    display: inline-block;
	}

	#content > div {
        margin: 0 1em;
	    padding: 0;
        width: auto;
        height: auto;
	}

	.profilePage {
		display: block;
		width: auto;
	}
}


/*****************************/
/*        Saveable           */
/*****************************/

.saveable > span.error {
    padding: 0.2em 0.5em;
    display: block;
    margin-top: 0.2em;
}

.saveable > i.saveField {
	display: none;
	margin-left: 0.2em;
	cursor: pointer;
	font-size: 1.2em;
    margin-top: 0.1em;
}

.saveable.edited > i.saveField {
	display: inline-block;
}


/*****************************/
/*       Edit toggle         */
/*****************************/

.editToggle {
	position: absolute;
	top: 2px;
	right: 2px;
	font-size: 24px;
	cursor: pointer;
}

.editToggle:hover {
	font-size: 30px;
}

.newEntry .editToggle {
	display: none;
}

/*****************************/
/*         Tab-View          */
/*****************************/

.tabview > nav > ul {
    margin: 0;
    padding: 0;
}

.tabview > nav > ul > li {
    margin-bottom: 0;
	cursor: pointer;
	padding: 0.2em 0.5em;
	border-width: 1px;
}

.tabview > nav > ul > li:first-child {
    border-left-width: 1px;
}

.tabview > nav > ul > li.active {
	border-bottom-width: 0;
}

.tabview > nav > ul > li i {
	font-size: 1em;
	margin: -0.2em -0.2em 0 0.5em;
}

.tabview > nav > ul > li i:hover {
	color: #000;
}

.tabview > div {
    display: none;
    border-width: 1px;
    margin-top: -1px;
	padding-top: 1px;
}

.tabview > div.active {
    display: block;
	background-color: transparent;
	color: inherit;
	text-shadow: inherit;
    text-decoration: none;
}