:root {
    --main-color: rgba(166, 185, 33, 1.0) }

#map {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0; }

/*Control Buttons*/
.ol-control button {
    background: rgba(230, 230, 230, 0.9);
    color: rgba(60, 60, 60, 1.0);
    padding-bottom: 0.19em;
    padding-left: 0.03em; }
    .ol-control button:hover {
        background: rgba(150, 150, 150, 0.9);
        color: white; }
    .ol-control button:focus {
        background: rgba(150, 150, 150, 0.9); }

.ol-control {
    background-color: rgba(200, 200, 200, 0.6); }

/*Attribution*/
.ol-attribution.ol-uncollapsible {
    max-width: 100%;
    background-color: rgba(235, 235, 235, 0.95);
    border-top: 3px solid transparent;
    height: 27px; }
    @media (max-width: 576px) {
        .ol-attribution.ol-uncollapsible {
            width: 100%;
            height: auto;
            text-align: center; } }
    .ol-attribution ul {
        font-size: 12px;
        font-family: "Calibri";
        letter-spacing: 0.015em;
        color: rgb(0, 0, 0);
        text-shadow: 0 0 2px #fff;
        text-align: center;
        vertical-align: top; }

/*Textstyle*/
.lorem {
    font-family: Calibri;
    font-size: 13pt; }
h2 {
    font-family: Calibri;
    font-size: 15pt; 
    color: rgb(130, 130, 130); }

/*Font Awesome Icon Style der Control Buttons*/
.fa-plus {
    font-size: 11px; }
.fa-minus {
    font-size: 11px; }
.fa-expand {
    font-size: 18px;
    padding-top: 3px; }
.fa-compress {
    font-size: 18px;
    padding-top: 3px; }
.fa-search {
    font-size: 12px;
    padding-top: 3px; }

/*Ladeicon animieren*/
.loading {
    animation: spin 2s linear infinite; }
      @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(-360deg); } }

/*Layerswitcher*/
.layer-switcher {
    top: 2.2em;
    left: .5em;
    width: 100%;}
    .layer-switcher li label {
        margin-top: -5px;
        padding-right: 0.7em; }
.layer-switcher li {
    display: grid;
}

/*Hintergrundkartenauswahl*/
.bgmap {
    border-radius: 5px;
    border: 1px solid black;
    cursor: pointer; 
    height: 100px; 
    width: 97%;
    max-width: 500px;
    min-width: 185px;
    background-size: cover; }
    .bw {
        background-image: url('SVG/Hintergrundkarten/osm_bw.png'); }
    .osm {
        background-image: url('SVG/Hintergrundkarten/osm.png'); }
    .sat {
        background-image: url('SVG/Hintergrundkarten/sat.png'); }
    .topo {
        background-image: url('SVG/Hintergrundkarten/topo.png'); }
    .cycle {
        background-image: url('SVG/Hintergrundkarten/cycle.png'); }
    .bgmap:hover {
        border: 1px solid rgba(200, 200, 200, 1);
        color: white; }
    .selected {
        border: 1px solid rgba(200, 200, 200, 1);
        color: white; }
    .bgmap-name {
        position: relative;
        top: 65%;
        width: auto;
        height: 35%;
        background-color: rgba(230, 230, 230, 0.9);
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
        text-align: center;
        padding-top: 4px;
        font-family: Calibri;
        letter-spacing: 1px;
        font-size: 13pt; }


/*Legende*/
#legend_img {
    height: 1.1em;
    width: auto; }

/*Hover-Effekt Sidebar Icons*/
.hvr-grow {
    color: black;
    display: inline-block;
    vertical-align: middle;
    transform: translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    transition-duration: 0.3s;
    transition-property: transform; }

.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
    transform: scale(1.1);
    color: var(--main-color); }

/*Geocoder*/
.ol-geocoder.gcd-gl-container {
    animation-name: bump; /*Animation beim aufrufen des Web GIS zusammen mit der Sidebar*/
    animation-duration: .5s; }
    @keyframes bump {
      from {margin-left: 3.5em;} }

/*Popup Inhalt*/
.popupContent {
    margin-top: 1em;
    margin-left: .1em;
    width: 100%;
    line-height: 150%; }
    h3 {
        font-family: Calibri;
        font-size: 13pt;
        color: rgb(50, 50, 50);
        font-weight: bold;
        display: inline; }
    hr {
        visibility: hidden; 
        margin-bottom: -.6em; }
    #typ {
        color: var(--main-color);
        font-weight: bold; 
        font-size: 12pt; }

/*Thumbnails*/
#thumbnail {
    border: 1px solid #ddd;
    border-radius: 6px; 
    width: 174px; }
    #thumbnail:hover {
        box-shadow: 0 0 0 2px var(--main-color); }
#pdf-thumbnail {
    border: 1px solid #ddd; 
    padding: 3px; 
    width: 115px; }
    #pdf-thumbnail:hover {
        box-shadow: 0 0 0 2px var(--main-color); }

.date {
    bottom: 0;
    right: 0;
}

/*Popup*/
#popup {
    height: auto;
    width: auto;
    max-width: 45%;
    position: absolute;
    vertical-align: middle;
    background: rgba(200, 200, 200, 0.6);
    border: .0001em solid rgba(200, 200, 200, 0.6);
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    display: none; }

    #popup:hover {
        background: rgba(255, 255, 255, 0.6); }

#popup-inline {
    margin: .15vw;
    height: 50%;
    overflow: auto;
    padding: 1vw;
    padding-top: 0.4vw;
    position: relative;
    text-align: justify;
    hyphens: auto;
    background: rgba(230, 230, 230, 0.9);
    border: 0.15vw solid rgba(230, 230, 230, 0.9);
    border-radius: 5px; }

button.close {
    padding: 10px;
    border: 1px solid var(--main-color);
    border-radius: 4px; }

.close {
    font-size: 1em;
    font-weight: 600;
    color: var(--main-color);
    line-height: .7;
    opacity: 1.0;
    text-shadow: none; } 

    .close:hover {
        color: var(--main-color);
        opacity: 1.0;
        background: rgba(240, 240, 240, 1.0);
        text-decoration: underline;
        text-shadow: none; }
    
    .close:not(:disabled):not(.disabled):hover {
        opacity: 1.0; }

    .close:focus {
        color: var(--main-color);
        opacity: 1.0;
        background: rgba(240, 240, 240, 1.0);
        text-decoration: underline;
        text-shadow: none; }
    
    .close:not(:disabled):not(.disabled):focus {
        opacity: 1.0; }

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5000000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; }