@import 'weinkauf_smallscreen.css' (max-device-width: 800px);
@import 'weinkauf_largescreen.css' (min-device-width: 801px);

DIV#portrait {
	width: 170px;
	height: 240px;
	background-color: #FFFFFF;
	background-image: url(images/weinkaufportrait.png);
	background-position: 19px 10px;
	background-repeat: no-repeat;
    top: 0px; left: 0px;
	z-index: 11;
}

DIV#head {
	width: 100%;
	height: 80px;
	background-color: #FFFFFF;
	text-align: left;
	line-height: 80px;
	overflow: hidden;
	padding: 0px;
    top: 0px; left: 0px;
	z-index: 10;
	box-shadow: 0px 2px 10px 0px #555;
}

#head h1{
	margin: 0px;
	padding-left: 200px;
}

#head *{
	margin: 0px;
}

#head a{
color:#000000;
font-family:courier new,monospace,sans-serif,verdana,helvetica,arial;
}

#head a:hover, #head a:active {
color:#900000;
text-decoration:underline;
}


/* DIV#nav only in the media-specific css*/

#nav h4{
	color:#000000;
	font-family:monospace,sans-serif,verdana,helvetica,arial,courier;
}

body{
	color:#000000;
	background-color:#FFFFFF;
	font-family:sans-serif,verdana,helvetica,arial,courier;
	margin-top: 90px;
}

body.root {
	height: 100%;
	margin: 0px;
	padding: 0px;
}

img {
	border: none;
}

#rootcontent {
	display: table;
	height: 100%;
	width: 100%;
}

.rootrow {
	display: table-row;
}

.rootitem {
	padding: 120px 0px 120px 192px;
	vertical-align:middle;
	display: table-cell;
}

.featureditem {
	margin: auto;
}


DIV#foot {
	display: none;
	width: 0%;
	height: 120px;
	background-color: #ffffff;
	text-align: left;
	padding: 0px;
	padding-left: 0em;
	border-top: 2px solid black;
    position: fixed;
    bottom: 0px; left: 232px;
	z-index: 11;
}

DIV#foot h4 {
	display: none;
	margin: 0px;	padding: 0px;
	padding-right: 20px;
	background-color: white;
	font-weight: normal;
	position: absolute;
	top: -0.75em;
	left: -20px;
}

DIV#rooticons {
	text-align: center;
	margin-right: 272px;
}

DIV#rooticons img {
	display: none;
	opacity: 0;
	padding: 7px;
	margin-top: 0px;
	border-top: 3px solid white;
	margin-left: 40px;
}

.rooticonactive {
	border-top: 3px solid black !important;
	margin-top: 0px !important;
}

DIV#rooticons img:hover {
	border-top: 2px dotted black;
	margin-top: 1px;
}

DIV#rooticons img:first-child {
	margin-left: 0px;
}



td{
font-family:sans-serif,verdana,helvetica,arial,courier;
}

a{
font-weight:bold;
font-family:sans-serif,verdana,helvetica,arial,courier;
text-decoration:none;
}
a:link{
color:#900000;
}
a:visited{
color:#600000;
}
a:active,a:hover{
color:#900000;
text-decoration:underline;
}


h1,h3,h4,h5{
color:#000000;
font-family:monospace,sans-serif,verdana,helvetica,arial,courier;
}

h2,h3,h4{
color:#000000;
font-family:sans-serif,verdana,helvetica,arial,courier;
}

h2{
	font-weight: bold;
	background: #EFEFEF;
	/* line-height: 0.33333em; */
	padding: 0.05em 0em;
	margin-top: 0.75em;
	/* margin-bottom: 0.25em; */
	margin-bottom: 0px;
}


.publicationlist h2:first-child, .publicationabstract h2:first-child, .links h2:first-child {
	margin-top: 0px;
}

.publicationabstract h2:last-child{
	text-align: right;
	font-size: 1.2em;
}


.pubyearlist{
	margin: 0px;
	padding: 0px;
}

.links ul{
	margin-top: 0.5em;
	margin-bottom: 1em;
	padding-left: 0px;
}

.pubyearlist li {
	list-style-type: none;
	margin: 0px;
	border-top: 1px solid black;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}

.links li{
	list-style-type: none;
 	margin-bottom: 0.5em;

}

.pubyearlist li:first-child {
	border: none;
	/* padding-top: 0px; */
	/* margin-top: 0px; */
}

.pubauthors{
	font-size: small;
}

.pubtitle{
	font-style: italic;
	font-weight: bold;
	font-size: large;
}

.pubdescr{
	font-size: small;
}

.pubauthors a, .pubauthors a:visited, .pubauthors a:link, .pubauthors a:active, .pubauthors a:hover{
font-weight:normal;
color:#000000;
text-decoration:none;
}

.vitalist {
	padding-left: 25px;
}

.vitalist > li {
	list-style-type: none;
	margin-top: 0.75em;
}

.vitalist li:first-child {
	border: none;
	margin-top: 0px;
}

.galbrick{
	margin: 10px;
	float: left;
	text-align: center;
	box-shadow: 2px 2px 10px 0px #555;
	padding: 20px;
	color: #000000;
}

.galbrick:hover {
	box-shadow: 4px 4px 15px 0px #000;
}

.galbrick:active {
	box-shadow: 1px 1px 5px 0px #000;
}

.galbrick p {
	font-weight: normal;
	font-style: italic;
	font-size: smaller;
}

.galfig{
float: left;
position: relative;
width: 200px;
height: 240px;
margin: 20px;
}

.galpic{
position: absolute;
bottom: 40px;
width: 100%;
text-align: center;
}

.galdescr{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 20px;
max-height: 20px;
min-height: 20px;
text-align: center;
padding: 3px;
overflow: hidden;
font-size: 75%;
border-bottom: 1px dashed #808080;
}

.galover{
background-image: url(gallery/images/over.png);
position: absolute;
bottom: 0;
left: 0;
width: 100%;
max-height: 240px;
min-height: 20px;
text-align: center;
padding: 3px;
overflow: hidden;
font-size: 75%;
border: 1px dashed #808080;
}

.galpic img{
border: 0;
}

.galdescr a, .galdescr a:visited, .galdescr a:link, .galdescr a:active, .galdescr a:hover{
font-weight:normal;
color:#000000;
text-decoration:none;
}

.galover a, .galover a:visited, .galover a:link, .galover a:active, .galover a:hover{
font-weight:normal;
color:#000000;
text-decoration:none;
}

/* Shrink to fit inline-block */
.stfib {
	display: inline-block;
	text-align: left;
	vertical-align: middle;
}


div#content > *:first-child, div#content div.section:first-child h2 {
	margin-top: 0px;
}

#contents {
  position: fixed;
  top: 52px; right: 28px;
	z-index: 111;
	background-color: white;
	max-width: 40%;
	box-shadow: 0px 2px 10px 0px #555;
	display: none;
}

#contents .topic-title {
	margin: 0px;
	padding: 0px;
	text-align: center;
	line-height: 40px;
	background-color: white;
	padding: 0px 20px;
	border: none;
	font-weight: bold;
}

#contents > ul {
	padding-right: 20px;
	padding-bottom: 20px;
	display: none;
}


.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* TODO: Add a proper menu bar, i.e., a main menu. Like a list with some flex line breaking.*/
/* TODO: Remove old js-based toc and replace with css-only drowdown.*/

/* Dropdown Menu */

.dropdownmenu {
  position: fixed;
  top: 52px; right: 28px;
	z-index: 111;
	display: flex;
	flex-wrap: wrap;
}

.dropdown {
	background-color: white;
	max-width: 40%;
	box-shadow: 0px 2px 10px 0px #555;
	padding: 0px 20px;
	margin-right: 20px;
	height: 100%;
}

.dropdownmenu .dropdown:last-child {
	margin-right: 0px;
}

/* Outer container for positioning */
/*.dropdown {
  position: fixed;
  top: 52px; right: 28px;
	z-index: 111;
	background-color: white;
	max-width: 40%;
	box-shadow: 0px 2px 10px 0px #555;
	padding: 0px 20px;
}
*/
/* Button */
.dropdownbutton {
	margin: 0px;
	padding: 0px 0px;
	text-align: center;
	line-height: 40px;
	background-color: white;
	font-weight: bold;
}

/* Dropdown Content (Hidden by Default) */
.dropdowncontent {
	display: none;
	margin-bottom: 20px;
}

ul.dropdowncontent {
	padding-inline-start: 20px;
}


/* Show the dropdown menu on hover */
.dropdown:hover .dropdowncontent {display: block;}



dt {
	font-weight: bold;
}


.highlight {
    border-top: 5px dotted #E0E0E0;
    border-bottom: 5px dotted #E0E0E0;
    padding-left: 20px;
    background-color: #FAFAFA;
}

.caption, table.caption td {
	font-style: italic;
	font-family:times new roman,times,serif;
	padding: 0em 1em;
	/*font-size: smaller;*/
}

/*From reST*/
.figure.align-right, table.align-right {
  clear: right;
  float: right;
  margin-left: 1em;
}

.imgautowidth {
	height: auto;
	width: 100%;
}

.tcenter {
	text-align: center;
}

.clear {
	clear: both;
}

.borderless, table.borderless td, table.borderless th {
	border: none;
}

div.figure {
	width: 1px;
	display: table;
	margin-top: 2em;
	margin-bottom: 2em;
}

#pubsearch {
    width: 30em;
}

#pubsearch.empty {
    color: gray;
    font-style: italic;
    /*text-align: center;*/
}

#pubsearch:focus {
	border: 2px solid blue;
}

#pubsearchstat {
	margin-left: 1em;
}

table.datatable {
	border-spacing: 1em 0.25em;
}

.datatable td, .datatable th {
	padding: 0.25em 0.5em;
	text-align: left;
}

.datatable th {
	border-bottom: 0.25em solid black !important;
}

.datatable tbody tr:first-child td {
	padding-top: 0.5em;
}

.datatable tbody tr:hover {
	background-color: #EFEFEF;
}

