body {
    font-family: Helvetica, Arial, sans-serif;
    padding: 0;
    margin: 0;
}

h1 {
    margin: 0 1rem 0.25em 1rem;
    font-weight: normal;
    font-size: 1.4rem;
}

h2 {
    margin: 0 1rem 0 0;
    padding: 0;
    font-weight: normal;
    font-size: 1.3rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: normal;
    margin: 0.5rem 0 0.5rem 0;
}

h4 {
    font-size: 1.1rem;
    font-weight: normal;
    margin: 0.5rem 0 0.5rem 0;
}

a {
    color: #0380B5;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

#header {
    background: #f4f4f4;
    padding-top: 0.5rem;
}

#top_logo {
    float:right;
    width: 20%;
    max-width: 150px;
    padding: 0 0.5rem 0 0.5rem;
}

#top_logo img {
    width:100%;
    max-width: 150px;
}

#intro {
    margin: 0 1rem 0 1rem;
    font-size: 0.8em;
}

#intro p {
    margin: 0 0 0.5em 0;
}

#main_nav {
    padding: 0.5rem 1rem 0.3rem 0;
    background: #D4DADC;
}

#main_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#main_nav ul li {
    display: inline;
    margin: 0;
    padding: 0 1em 0 0;
    font-size: 1.2em;
    font-weight: bold;
}

#main_nav ul li span {
    position: relative;
    visibility: hidden;
    display: inline-block;
    padding-right: 0.5em;
    font-size: 0.7em;
    top: -0.25em;
}

#main_nav ul li.active span,
#main_nav ul li:hover span {
    visibility: visible;
}

#main_nav ul li:hover span {
    color: #0380B5;
}

#main_nav ul li a {
    color: #0380B5;
    text-decoration: none;
    cursor: pointer;
}

#year_disp_overlay {
    font-size: 2em;
    font-weight: bold;
    position: absolute;
    top: 0.5em;
    right: 0;
    text-align: right;
    z-index: 999;
}

#ctl_year_disp {
    padding-right: 1em;
}

#above_map {
    margin: 0.5rem 1em 0 0;
}

#layer_control {
    float: right;
    text-align: right;
    font-size: 0.8em;
    padding-top: 0.1em;
}

#mapcontainer {
    height: 60vh;
    border-top: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
    margin-top: 0.5rem;
    position: relative;
}

#mapid {
    height: 60vh;
}

#data_loading {
    z-index: 9999;
    display:table-cell;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    line-height: 60vh;
    padding: 0;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-weight: bold;
}

#page_map {
    /*display: none;*/
}

#page_map h2 {
    margin-left: 1rem;
}

#page_plots, #page_sources, #page_data, #page_impressum {
    display: none;
    padding: 1rem 1rem 0.5rem 1rem;
}

#page_sources pre {
    white-space: pre-line;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
}

#impressum {
    padding: 1rem 1rem 0.5rem 1rem;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

#impressum h2 {
    margin-top: 1em;
    margin-bottom: 1em;
}

#impressum h3 {
    font-size: 1em;
    font-weight: bold;
}

#impressum address {
    font-style: normal;
}

#plot_grid {
    width: 100%;
}

#plot_grid .thumb img {
    height: auto;
    width: 100%;
    max-width: 300px;
    max-height: 225px;
    display: block;
}

#plot_grid .thumb p {
    margin: 0;
    font-size: 0.8em;
    padding: 0.5em 0 0.5em 0;
    text-align: justify;
}

#plot_grid .section h3,
#page_sources h3 {
    margin-top: 1rem;
    border-bottom: 1px solid #bdbdbd;
}

#plot_grid .section .info {
    font-size: 0.8em;
    font-style: italic;
    text-align: justify;
    padding: 0 0.5rem;
    margin-top: 1em;
    margin-bottom: 1em;
}

#plot_grid .section_plots .preview {
    padding: 0.5rem;
    border: 1px solid transparent;
}

#plot_grid .section_plots .preview:hover {
    border: 1px solid #619933;
    cursor: pointer;
}

#plot_fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#plot_fullscreen_img {
    width: 90%;
    height: auto;
    max-height: 90%;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
    background: white;
    padding: 1rem;
    position: relative;
    overflow: auto;
}

#plot_fullscreen_close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 1rem 0 0;
    z-index: 99999;
}

#plot_fullscreen_close a {
    font-weight: bold;
    font-size: 3rem;
    color: black;
    border: 0;
    background: none;
    text-align: center;
    text-decoration: none;
}

#plot_fullscreen_close a:hover {
    cursor: pointer;
}

#plot_fullscreen_img_container .title {
    padding-right: 2rem;
    margin-bottom: 1em;
}

#plot_fullscreen_img_container .title h3,
#plot_fullscreen_img_container .title h4 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

#plot_fullscreen_img_container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#plot_fullscreen_img_container p {
    text-align: justify;
    font-size: 0.8em;
}

#footer {
    border-top: 1px solid #bdbdbd;
    margin-top: 0.5rem;
    padding: 0.5em;
    text-align: center;
}

#footer p {
    margin: 0;
    padding: 0;
    font-size: 0.8em;
}

.pub {
    color: #0380B5;
}

.pubOSZ {
    color: #032C4E;
}

#mapid .leaflet-interactive.pub {
    fill: #0380B5;
    stroke: #0380B5;
}

#mapid .leaflet-interactive.pub.OSZ {
    fill: #032C4E;
    stroke: #032C4E;
}
.Frei, .Montessori {
    color: #619933;
}

#mapid .leaflet-interactive.priv,
#mapid .leaflet-interactive.priv.Frei,
#mapid .leaflet-interactive.priv.Montessori {
    fill: #619933;
    stroke: #619933;
}

.Kirchlich {
    color: #9E3173;
}
#mapid .leaflet-interactive.priv.Kirchlich {
    fill: #9E3173;
    stroke: #9E3173;
}

.Waldorf {
    color: #CC3427;
}
#mapid .leaflet-interactive.priv.Waldorf {
    fill: #CC3427;
    stroke: #CC3427;
}

#mapid .leaflet-interactive.priv.dimmed,
#mapid .leaflet-interactive.priv.Waldorf.dimmed,
#mapid .leaflet-interactive.priv.Montessori.dimmed,
#mapid .leaflet-interactive.priv.Kirchlich.dimmed,
#mapid .leaflet-interactive.priv.Frei.dimmed,
#mapid .leaflet-interactive.pub.dimmed,
#mapid .leaflet-interactive.pub.OSZ.dimmed,
#mapid .leaflet-interactive.clust.dimmed {
    fill: #AAAAAA;
    stroke: #AAAAAA;
}

#mapid .leaflet-popup-content-wrapper, #mapid .leaflet-popup-tip {
    background-color: rgba(255, 255, 255, 0.75);
}

#mapid .leaflet-popup h3 {
    margin: 0;
}

#mapid .voro_region, #mapid .clust {
    stroke-width: 1px;
}

#below_map {
    clear: both;
    margin: 0.5rem 1rem 0 1rem;
    font-size: 0.8em;
}

#legend {
}

#legend .individual_schools {
    position: relative;
    left: -1em;
    /*top: -1.5em;
    height: 38px;
    overflow: hidden;*/
}

#legend .individual_schools ul {
    list-style-type: none;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

#legend .individual_schools ul li {
    margin: 0;
    padding: 0 0 0 1em;
    display: inline;
}

#legend .individual_schools ul li span.sym {
    padding-right: 0.5em;
}

#legend .individual_schools ul li span.label {
}

#legend .clusters {
    display: none;
    height: 32px;
}

#legend .clusters .gradient {
    height: 32px;
}

#legend .clusters .gradient .label {
    font-size: 0.6em;
    display: inline;
    position: relative;
}

#legend .clusters .gradient .label.left {
    width: 130px;
    text-align: right;
}

#legend .clusters .gradient .label.right {
    left: 340px;
}

#legend .clusters .gradient .label .percent {
    display: inline-block;
    position: absolute;
}

#legend .clusters .gradient .label.left .percent {
    width: 130px;
}

#legend .clusters .gradient .label .percent.top {
    top: -3px;
    left: 0;
}

#legend .clusters .gradient .label .percent.bottom {
    top: 12px;
    left: 0;
}

@-moz-document url-prefix() {
    #legend .clusters .gradient .label .percent.top {
        top: 5px;
        left: 0;
    }

    #legend .clusters .gradient .label .percent.bottom {
        top: 20px;
        left: 0;
    }
}

#legend .clusters .gradient img {
    position: absolute;
    left: 150px;
}

#legend .clustering_maxdist {
    font-size: 0.8em;
    margin: 0;
    padding-left: 1em;
    position: absolute;
    left: 400px;
}

#ctl_year_container {
    width: 50%;
    float: left;
    position: relative;
}

#ctl_year_container span {
    position: relative;
    top: -0.35em;
}

#ctl_state_container {
    width: 20%;
    float: right;
    text-align: center;
}

#ctl_state_container p {
    margin: 0.5rem 0 0 0;
}

#ctl_schooltype_container {
    width: 30%;
    float: right;
    text-align: center;
}

#ctl_year {
    width: 80%;
}

#ctl_state, #ctl_schooltype {
    font-size: 1em;
}

#ctl_year_disp_near_slider {
    z-index: 100;
    font-size: 0.9em;
    position: absolute;
    top: 1.5em;
    left: 45%;
    text-align: center;
    cursor: default;
}