/*
 copyright by David Tyndall, d.c.tyndall@gmail.com
*/
/* 
    Created on : 06.08.2017, 13:00:03
    Author     : dtyndall
*/
/* Clear all */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: bold;
	margin: 0.8em 0 0.1em 0;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.6em;
}

h3 {
	font-size: 1.3em;
}

h4 {
	font-size: 1.1em;
	text-decoration: underline;
}

h5 {
	font-size: 1.0em;
	text-decoration: underline;
}

h6 {
	font-size: 0.9em;
	text-decoration: underline;
}

p {
	margin: 1em 0
}

/* general */
html {
	padding: 0.5em 1em;
	height: 100%;
	box-sizing: border-box;
}

html,
body {
	font-family: Helvetica, sans-serif;
	min-width: 400px;
}

body {
	position: relative;
	margin: 0;
	padding-bottom: 3rem;
	min-height: 100%;
}

ul,
ol {
	margin: 0.5em 0;
	padding-left: 2em;
}

strong {
	font-weight: bold;
}

new {
	color: red;
}

.hidden {
	display: none;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

@media (max-width: 700px) {
	#head_left {
		display: none;
	}

	#head_center {
		left: 0%;
	}
}

@media (min-width: 701px) {
	.rn-break {
		display: none;
	}

	#head_center {
		left: 50%;
		height: 58px;
	}
}

@media (max-width: 1000px) {
	.window_large {
		display: none;
	}
}

@media (min-width: 1001px) {
	.window_large {
		display: inline;
	}
}


/* Footer */
#footer {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 0;
	padding: 0.3rem;
	font-size: 80%;
	text-align: center;
}

/* Header */
#header {
	z-index: 11;
}

#head_left {
	float: left;
	margin: 0;
}

#head_center {
	position: absolute;
	top: 0;
}

#head_right {
	float: right;
}

/* menu */
nav.menuBar {
	position: sticky;
	position: -webkit-sticky;
	top: 0;
	z-index: 10;
	clear: both;
}
ul.menuCategoryList {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #009EE0;
}
li.menuCategory {
	float: left;
}
.menuCategoryBtn {
	display: inline-block;
	color: white; /* TODO */
	text-align: center;
	padding: 0.5em 1em; /* TODO */
	text-decoration: none;
}
.menuDropContent { /* TODO */
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 10em;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}
.menuDropContent a {/* TODO */
	color: black;
	padding: 0.5em 1em;
	text-decoration: none;
	display: block;
	text-align: left;
}

li.menuCategoryList a:hover, .menuCategory:hover .menuCategoryBtn {
	background-color: #0090D0;
  }
.menuDropContent a:hover {
	background-color: #f1f1f1;
}

.menuCategory:hover .menuDropContent {
  display: block;
}

#logout {
	float: right;
}

/* User "Menu"-Bar*/

.progressIndicator {
	display: block;
	float: left;
	color: white;
	text-align: center;
	padding: 0.6em 1em;
	text-decoration: none;
}

li a.dropbtn:hover,
a.dropdown:hover,
.dropbtn {
    background-color: #0090D0;
}

.menu_active{
    background-color: #00AFEF;
	padding: 0.6em 1em;
}

/* Tables */
table,
th,
td {
	border: #bbb 1px solid;
	border-collapse: collapse;
	padding: 0.3em;
	max-width: 100%;

}

th:not(.timetable) {
	background-color: #D0E0F8;
}

th {
	padding: 0.3em 1em 0.3em 0.3em;
	white-space: normal;
	font-weight: bold;
}

table.timetable td.timetable {
	border: 1px solid #666;
}

th.all_wishes,
td.all_wishes {
	max-width: 20em;
}

/* forms */
fieldset {
	padding: 1em;
	margin: 1em 0.2em;
	max-width: 1200px;
	background-color: #F9F9F9;
	border: 1px solid;
}

legend {
	padding: 0 0.3em;
	font-weight: bold;
	font-size: 110%;
}

input {
	margin: 0.3em 0.8em;
}

ul.form_error {
	list-style-type: '\2192';
	margin: 0.3em;
	margin-left: 0;
	padding-left: 1em;
}

li.form_error {
	color: red;
	padding-left: 0.5em;
}

.error {
	color: red;
}

input[type=number] {
	width: 4em;
}

optgroup {
	font-weight: bold;
}

/* tt colors */
.tt_priority_0 {
	background-color: #F88;
}

.tt_priority_1 {
	background-color: #FA8;
}

.tt_priority_2 {
	background-color: #FDA;
}

.tt_priority_3 {
	background-color: #BFA;
}

.tt_priority_10 {
	background-color: #0AE;
}

.tt_priority_11 {
	background-color: #8CE;
}

.tt_priority_12 {
	background-color: #F88;
}

.tt_priority_13 {
	background-color: #FAA;
}


/* Tooltipps */
.tooltip {
	position: relative;
}

.tooltip .tooltiptext {
	font-weight: normal;
	visibility: hidden;
	background-color: black;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px;
	position: absolute;
	z-index: 1;
	top: 150%;
	left: 50%;
	transform: translateX(-50%);
	box-sizing: border-box;
}

.longtooltip {
	display: inline-block;
	width: max-content;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	transition-property: visibility;
	transition-delay: 0.3s;
}

/* Focus */
*:focus {
	box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, .3);
}

/* Buttons */
.button {
	background-color: #EEE;
	padding: 2px;
	margin: 4px;
	border: 2px solid gray;
	border-radius: 6px;
	border-collapse: collapse;
}

.button:hover {
	background-color: #DDD;
}

.button:active {
	border: 2px solid black;
}

/* enable-js-message */
#enable_js_message,
#cookie_error {
	background-color: #faa;
	padding: 0.5em 1em;
	border-style: solid;
	border-width: 3px;
	border-color: #a00;
}


/* different Ids */
#currentSemester {
	min-width: 6em;
	display: inline-block;
	text-align: center;
	border: 2px;
	border-color: gray;
	border-style: solid;
	margin-left: -6px;
	margin-right: -6px;
}

#active_user {
	color: #800;
}

.attention_remarks {
	color: #900;
}