/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 0px;
  overflow-x: hidden;
}
/*
 * Global add-ons
 */
.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.nav {
  text-align: center;
  padding-top: 0;
  padding-left: 6px;
  padding-right: 6px;
  padding-bottom: 0;
  font-size: 14px;
}

.navbar {
  border: 0;
  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
}

.navbar-left{
  display: inherit;
  list-style-type: none;
}

.navbar-left a{
  color: #999c9f;
  font-size: 14px;
  width: 150px;
  padding-right: 0;
  padding-left: 4px;
  white-space: nowrap;
  text-align: center;
}

.navbar-left .nav-link-small{
  width: 100px !important;
}

.navbar-left .active{
  color: white;
  font-size: 14px;
  white-space: nowrap;
  max-width: 140px;
  text-align: center;
}

.navbar-left a:hover{
  color: white;
  font-weight: 600;
}

.navbar-nav .dropdown-menu{
  position: absolute !important;
}

#banner {
  display: flex;
  height:  50px;
  width: 100%;
  background: url("../images/banner-background.png") no-repeat 50% 0;
}

#banner .branding-left {
  display: inline-flex;
  width: 25%;
  background: url("../images/branding-left.png") no-repeat 1px 1px,
              linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0.6), rgba(255,255,255,0)) no-repeat 0%;
  background-size:  auto 50px,     /* size of logo image  */
                    auto 50px;     /* width gradient left */
}

#banner .branding-center{
  display: inline-block;
  width: 50%;
  background-size: 90% auto;
}

#banner .branding-right {
  display: inline-flex;
  width: 25%;
  background: url("../images/branding-right.png") no-repeat 100% 0,
              linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0.6) , rgba(255,255,255,0)) no-repeat 100%;

  background-size:  auto 50px,     /* size of logo image  */
                    auto 50px;     /* width gradient right */
}

.searchForm {
  position:relative;
	top:0px;
	margin-left:25%;
	margin-right:20%;
  color:#585858;
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
  color: #585858;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #585858;
  background-color: transparent;
}
.text {
	text-decoration: underline;
	color: #FFFFFF;
}
.navbar-inverse {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  background-image: linear-gradient(to bottom, #FFFFFF 0px,#FFFFFF 100%);
  background-repeat: repeat-x;
}

/*
 * Main content
 */

.main {
  top: 100px; /* offset to display fixed nav & banner*/
  padding: 0px 0px 0px 4px; /*top right bottom left*/
}

.main .page-header {
  margin-top: 0;
}

.form-search{
  width: 60%;
  margin: 0 auto;
}

.navbar-collapse {
  background-color: #585858;
}

.centered {
  text-align:center;
}

/*
 * vertical-align added by Lissy
 */
.vertical-align {
  display: flex;
  align-items: center;
}

.alternative {
  background-color: #FFFF6B;
}

.pseudobutton {
  display: block;
  background: none;
  text-align: center;
  text-decoration: none !important;
}
.pseudobutton:hover {
  background: lightblue;
}

.upperButton {
  border-radius: 4px 4px 0   0;
}
.lowerButton {
  border-radius: 0 0 4px 4px;
}

.modal-dialog {
  width: auto;
  max-width:  900px;
}

.graphicsModal{
  width: 16.67%;
  max-width: 400px;
  min-width: 250px;
  font-size: 1rem;
  font-weight: 550;
}

.facsimile_modal{
  opacity: 0.8;
  padding-right: 0;
}

.graphicsFooter{
  display: block;
}

.graphics {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.facsimile{
  padding-left: 0;
  width: calc(100% - 30px);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  max-height: 400px;
  margin-bottom: 20px;
}

.facsimile-extract {
  display:block;
  position: relative;
}

.facsimile-extract > img {
  max-width:100%;
}

.highlighting{
  position: absolute;
  background-color:rgba(255, 0, 0, 0.2);
  z-index: 2;
}

.typeahead.dropdown-menu {
  max-height: 250px;
  overflow-y: auto;
}

.typeahead.dropdown-menu .lemma-variant {
  margin-left: 0.5em;
}

.typeahead.dropdown-menu .query-highlight {
  color: red;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/*Autosuggest */
.autosuggest-list .lemma {
  font-weight: bold;
  padding-left: 0.5em;
}
.autosuggest-list .lemma-variant {
  padding-left: 1.5em;
}
.autosuggest-list .query-highlight {
  color: red;
}
.autosuggest-list {
  margin-top: 10px;
  max-height: 270px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  max-width: 150px;
}

.ui-helper-hidden-accessible{
  display: none !important;
}

#navbar .navbar-right { margin-right: 0; }

#loading_circle{
  position: absolute;
  font-size: 30px;
  top: 4px;
  right: 24px;
  display: none;
}

.sidebar_control{
  position: absolute;
  top: calc(50% - 1.5rem);
  left: 2px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #9a9da0;
  text-shadow: 0 1px 0 #6c4e40;
  opacity: .5;
  border: 0;
  background-color: transparent;
  padding: 0;
}

#sidebar_close{
  display: none;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
#sidebar_outer {
  display: none;
  padding-left: 0;
  width:24px;
}
@media (min-width: 768px) {
  #sidebar_outer {
    position: fixed;
    top: 87px;
    bottom: 0;
    right: -2px;
    z-index: 1000;
    display:block;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  }
}

#sidebar_bar{
  position: fixed;
  top: 87px;
  bottom: 0;
  right: -2px;
  width: 24px;
  background-color: #343a40;
  border-top: 1.5px solid lightgray;
}

.sidebar {
  display: none;
  padding-left: 0;
  width: 0px;
  scrollbar-width: thin;
  scrollbar-color: gray #b3b5b7;
  -ms-overflow-style: none;
}
@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 87px;
    bottom: 0;
    right: -2px;
    z-index: 1000;
    display:block;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    background-color: #9a9da0;
    opacity: 0.75;
  }
  .sidebar .list-group {
    margin-top: 0.8em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.sidebar a{
  color: black;
  text-decoration: none;
  text-align: center;
}

.sidebar #total_number_all_hits{
  cursor: default;
}

.treffer{
    font-size: 0.9vw;
}

.panel-body{
    display: flex;
}

.hit-panel-button{
  width: calc(100% - 60px);
  text-align: left;
}

.footer{
  margin-top: 28px;
}

.pagination{
  position: absolute;
  margin-top: 16px;
  border: 1px solid darkgray;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pagination li{
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  width: 30px;
  padding: 1px 3px 1px 3px;
  border: 1px solid #b3b5b7;
  border-left: 1px solid lightgray;
  border-right: 2px solid lightgray;
}

.pagination li:hover{
  background-color: #b3b5b7;
}

.pagination .active{
  color: white;
  background-color: gray;
}

.pagination .active a{
  color: white;
}

.pagination a{
  color: gray;
}

.list-group.sem-group > a{
  display:none;
}

.no-padding{
  padding: 0px 0px 0px 0px;
}

.sem-link{
  text-decoration: none;
  color: white;
}

.sem-link i{
  text-decoration: none;
  color: darkgrey;
}

.sem-link:hover{
  color: white;
  font-weight: 600;
}

.sem-link i:hover{
  text-decoration: none;
  color: darkgrey;
}

#trans_content{
  margin: 0 auto !important;
}

#sem_content .main{
  padding: 0;
  font-size: 0.8rem;
}

.sem-right{
  position: absolute;
  right: 0px;
  padding: 0;
  border-bottom: 1px solid;
}

.sem-left{
  padding: 0;
  border-bottom: 1px solid;
}

.download-area{
  margin-left: 5%;
  margin-right: 5%;
  width: 40%;
  min-width: 400px;
}

.download-area h5{
  text-align: center;
  width: 90%;
}

.dropdown-download{
  width: 70%;
  display: inline-flex;
  margin-left: 15%;
}