h2 {margin-top: 40px !important;}

/* KWIC TABLE */

#kwic_table th,
#kwic_table td:not(.pre_hit) {
    padding-right: 10px;
}

span.meta_ctxt {
    background-color: transparent;
    border: none;
    width: 360px;
    font-size: 14px;
}

span.meta_label {
    background-color: #eee;
    padding: 2px;
    font-size: inherit;
}

span.meta_value {
    font-size: inherit;
}

div.simple_context,
div.context {
    overflow: hidden;
}


/* FUNCTIONS AND CORPUS INFO TABLE */

#corpus_info table {
    width: 400px;
    border-collapse: collapse;
}

#functions_info table {
    width: 600px;
    border-collapse: collapse;
}

#corpus_info table tr td,
#functions_info table tr td {
    border: 1px solid #dddddd;
    padding: 3px;
}

#corpus_info table tr td:first-child {
    width: 70%;
}

#functions_info table tr td {width: 60%}

#functions_info table tr td:nth-child(2),
#functions_info table tr td:nth-child(3) {
    width: 20%;
    text-align: center;
}

#corpus_info h3 {
    margin-bottom: 5px;
}

#corpus_info h4 {margin: 15px 0 10px 0}

#corpus_info .column {
    float: left;
    width: 50%;
}

/* Clear floats after the columns */
#corpus_info .row:after {
    content: "";
    display: table;
    clear: both;
}


/* MAP*/

div#idiotikon_map {
    margin-top: 10px;
    width: 100%;
    height: 525px;
}

/* display "region xy ausgewählt" notification on top of map*/
#idiotikon_map {
    z-index: 0;
}

form#queryform div.notifyjs-wrapper.notifyjs-hidable div.notifyjs-container {
    top: 100px !important;
    left: 20px !important;
}

/* GENERAL */

body {
    --main-color: #ffa8a5;
    --second-color: #b00600;
    --header-height: 130px;
    --topnav-height: 50px;
    font-family: "Open Sans";
}

h1 {
    font-size: 28px;
    font-weight: 200;
    padding-top: 20px;
}

body a,
a.page_nav,
div.close_icon,
a.link_icon {
    color: var(--second-color);
}

a.page_nav:hover,
div.close_icon:hover,
a.link_icon:hover {
    color: black;
}

div#main {
    margin-top: var(--topnav-height);
}

/* HEADER & NAVIGATION */

div#header {
    background-color: var(--second-color);
    height: var(--header-height);
    display: block;
    box-sizing: border-box;
}

div#header .container,
div#topnav .container {
    width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

div#header .container .logo {
    padding: 25px 0;
    box-sizing: border-box;
    width: 35%;
    float: left;
}

div#header .container .logo span {
    color: white;
    font-size: 32px;
    line-height: 1.15;
}

div#header .container .idi_logo {
    box-sizing: border-box;
    float: right;
}

div#header .container .idi_logo img {
    float: right;
    padding-top: 10px;
    object-fit: contain;
    width: 110px;
}

div#topnav {
    top: var(--header-height);
    box-sizing: border-box;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.16), 0 0 8px 0 rgba(0, 0, 0, 0.08);
    background-color: white;
    height: var(--topnav-height);
}

div#topnav ul.navbar {
    float: left;
    list-style: none;
    box-sizing: border-box;
    padding-left: 0;
    margin: 0;
    line-height: 24px;
}

div#topnav ul.navbar li {
    float: left;
    border-left: 1px solid #eaecee;
    box-sizing: border-box;
    display: block;
    line-height: 1.5;
    padding: 10px 25px;
}

div#topnav li a {
    color: #555;
    font-size: 19px;
    text-transformation: none;
    margin-left: 0;
    padding: 0;
}

#topnav a:hover,
#topnav a.active,
div#topnav li.active>a,
div#topnav li:hover>a {
    color: #555;
    border-top: none;
}

div#topnav li:active,
div#topnav li:hover {
    background-color: #e7e7e7;
}

/* SEARCH, FILTERS & OPTIONS*/

div#subcontrol {
    height: auto;
}

button.search_button:hover {
    color: var(--second-color);
    border-color: var(--second-color);
}

fieldset#search_options .filter,
fieldset#search_options .submenu_option.dropdown {
    padding: 10px;
    margin: 4px 6px 4px 0;
    /*-webkit-appearance: initial; !* fix filter display on safari *!*/
    /*background-color: var(--main-color);*/
}

fieldset#search_options .filter {
    background-color: var(--main-color);
}

select.submenu_option {
  width: 250px;
}

.submenu_option.dropdown.selected {
    background-color: var(--second-color);
    color: white;
}

.submenu_option.dropdown:not(.selected) {
    background-color: var(--main-color);
}

fieldset#search_options {
    margin-left: 0;
}

div.filter {
    border-radius: 3px;
}

fieldset#search_options .filter {
    width: 230px;
}

#reset_filter,
#show_map {
    display:inline-block;
    vertical-align:top;
    width:250px;
    margin: 4px 6px 4px 0;
    padding: 9px; /* one px less than filters bc of border */
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid black;
    background-color: #e7e7e7;
}

#show_map {
    text-align: left;
    padding-right: 4px;
}

div#sub_export label.chk_labels {
    border: none;
}

label.main_labels {
    font-size: 14px;
}

label.chk_labels {
    font-size: 14px;
    width: 150px;
    display: inline-block;
    border: none;
}

label.chk_labels input {
    accent-color: var(--main-color);
}

div#sub_settings input[type="checkbox"]:checked+label.chk_labels,
div#sub_settings input[type="radio"]:checked+label.chk_labels {
    color: inherit;
    background-color: var(--main-color);
}

div#sub_export input[type="checkbox"]:checked+label.chk_labels,
div#sub_export input[type="radio"]:checked+label.chk_labels {
    color: inherit;
    background-color: var(--main-color);
}

div#sub_settings.sub_popup.hidden p select#limit_select.dropdown {
    width: inherit;
    background-color: var(--main-color);
}

input[type="checkbox"]:checked+span.checkbox-text,
input[type="radio"]:checked+span.checkbox-text {
    background-color: #ffa8a5;
    border-radius: 3px;
    padding-left: 1px;
    padding-right: 1px;
}

span.btn_submenu,
select.btn_submenu {
    display: inline-block;
    width: auto;
    padding: 5px;
    border: 1px solid #e7e7e7;
    border-radius: 3px;
}

span.btn_submenu:hover,
select.btn_submenu:hover {
    box-shadow: 0 0 5px rgba(0,0,0,.15);
}

/* QUERY RESULTS (NAV & TABLE)*/

div.page_navigation {
    margin-top: 40px;
}

div.page_navigation~div.page_navigation {
    margin-top: 10px;
}

table#kwic_table th {
    text-align: left;
}

div.hitctxt {
    border-radius: 3px;
    padding: 3px;
}

dd {
    margin: 0;
    display: inline;
}

dt {
    display: inline-block;
    margin: 0 5px 5px 0;
}

dd:after {
    content: "\a";
    white-space: pre;
}

/* QUERY EXAMPLES */

.custom_qex_de {margin-top: 50px}

.custom_qex_de p {
    text-align: center;
    font-size: 1em;
}

.custom_qex_de.search p {
    text-align: center;
    font-size: 0.9em;
}

.custom_qex_de a {display: block; text-decoration: none !important;}

.custom_qex_de a p {
    text-decoration: none !important;
    color: black;
    font-size: 1em;
}

.custom_qex_de div.col {
    padding-bottom: 30px !important;
}

.custom_qex_de div.card:hover p[id^="query"] {
    visibility: visible !important;
}

.custom_qex_de div.card {
    background-color: #ffa8a5; /* rgb(149, 11, 11);*/
    padding: 10px !important;
    margin: 0 25px;
    height: 100px;
    /*  width: 500px;*/
}

.custom_qex_de.search div.card {
    background-color: #cecece;
    padding: 10px !important;
    margin: 0 25px;
    height: 80px;
}

.custom_qex_de div.card:hover, .custom_qex_de input:hover {
    position: relative;
    background-color: #b00600;
    color: white;
    bottom: 2px;
    left: 2px;
}

.custom_qex_de.search div.card:hover, .custom_qex_de.search input:hover {
    position: relative;
    color: white;
    background-color: #cecece;
}

.custom_qex_de div.card:hover p {color: white}

.custom_qex_de p[id^="query"] {
    visibility:hidden;
    font-size: 0.9em;
    color: black;
    text-decoration:  none;
    margin-bottom: 0;
}

.custom_qex_de.search p[id^="query"] {
    visibility:hidden;
    font-size: 0.8em;
    color: black;
    text-decoration:  none;
    margin-bottom: 0;
}

.custom_qex_de p:hover, a:hover, a:hover p {text-decoration: none !important}

.custom_qex_de div.reload {text-align: center}


.custom_qex_de input {
    margin-right: 20px;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    margin-left: 20px;
    border:  none;

}

.custom_qex_de.search input {
    background-color: #cecece;
}

.pb-grid {display: flex}

.pb-grid--two-columns > .grid__column {width:  50%}

.grid__column {
    position:  relative;
    box-sizing: border-box;
}


/* Laptop, Desktop 
@media (min-width: 992px) {

  .custom_qex_de div.col#box1,
  .custom_qex_de div.col#box3 {
    padding-right: 20px;
  }
}
*/