html, body {
    height: 100%;
    margin: 0;
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

a, a:visited {
    color: #2ea4d7;
}
a:hover, a:focus {
    color: #58c7f6;
}

textarea.code {
    font-family: monospace;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.app-container {
    max-height: 30%;
    overflow: scroll;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
    background: #000;
    color: #44d9d9;
    border-bottom: 2px solid #44d9d9;
}

.hidden {
    display: none;
}

@media screen and (min-width: 768px) {
    .container {
        flex-direction: row;
    }
    .app-container {
        max-height: none;
        overflow: scroll;
        width: 320px;
        flex: 0 0 320px;
        border-bottom: none;
        border-right: 2px solid #44d9d9;
    }
}

#map {
    width: 100%;
    height: 100%;
    background: #000;
}
.panel {
    background-color: rgba(7, 65, 72, 0.8);
    color: #44d9d9;
    border-radius: 5px;
    border: 2px solid #44d9d9;
    padding: 10px;
    margin-bottom: 10px;
}
.panel h2, .panel h1 {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    margin-bottom: 0.5rem;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: normal;
}
.panel p {
    margin: 0;
    padding: 0;
    margin-bottom: 0.3rem;
}
.panel small {
    color: #44d9d977;
}
.panel textarea, .sektorenkarte-textarea {
    background-color: rgba(7, 65, 72, 0.8);
    color: #44d9d9;
    border: 2px solid #44d9d9;
    border-radius: 4px;
    padding: 3px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: auto;
}
.sektorenkarte-textarea {
    word-wrap: break-word;
}
.panel textarea:read-only, .sektorenkarte-textarea:read-only {
    background-color: rgba(100, 100, 100, 0.5);
    color: #ccc;
}
.panel button, .sektorenkarte-button {
    background-color: rgba(7, 65, 72, 0.8);
    color: #44d9d9;
    border: 2px solid #44d9d9;
    border-radius: 4px;
    padding: 3px 10px;
    cursor: pointer;
    outline: none;
    margin-right: 5px;
    margin-bottom: 5px;
}
.panel button:hover, .panel button:focus, .sektorenkarte-button:hover, .sektorenkarte-button:focus {
    background-color: rgba(7, 65, 72, 1);
    color: #b5eaea;
    box-shadow: inset 0 0 5px #44d9d9;
}
.panel button:active, .sektorenkarte-button:active {
    box-shadow: inset 0 0 15px rgba(255, 255, 255, .8);
}
.panel input {   
    margin-right: 5px;
    margin-bottom: 5px;
}

.leaflet-grab {
    cursor: default;
    -moz-cursor: default;
}
.sektorenkarte a.leaflet-popup-close-button {
    color: #44d9d9;
}
.sektorenkarte a.leaflet-popup-close-button:hover, .sektorenkarte a.leaflet-popup-close-button:focus {
    color: #b5eaea;
}
.sektorenkarte .leaflet-popup-content-wrapper, .sektorenkarte .leaflet-popup-tip {
    background-color: rgba(7, 65, 72, 0.8);
    color: #44d9d9;
}

.unit-popup .ktb {
    max-height: 70px;
    overflow-y: scroll;
}
.unit-popup p, .unit-popup h1, .unit-popup h2, .unit-popup h3 {
    margin: 0 0 5px 0;
}

.sektorenkarte.custom-marker-form {
    display: flex;
    flex-direction: column;
}
.sektorenkarte.custom-marker-form div {
    margin-bottom: 5px;
}

.sektorenkarte.leaflet-tooltip {
    background-color: rgba(7, 65, 72, 0.8);
    border-color: #44d9d9;
    color: #44d9d9;
    padding: 3px;
}
.sektorenkarte.leaflet-tooltip-right:before {
    border-right-color: #44d9d9;
}
.sektorenkarte.leaflet-tooltip-left:before {
    border-left-color: #44d9d9;
}
.sektorenkarte.leaflet-tooltip-top:before {
    border-top-color: #44d9d9;
}
.sektorenkarte.leaflet-tooltip-bottom:before {
    border-bottom-color: #44d9d9;
}

.sektorenkarte-map .leaflet-bar,
.sektorenkarte-map .leaflet-bar a,
.sektorenkarte-map .leaflet-control-layers,
.sektorenkarte-map .leaflet-control-zoom {
    background-color: rgba(7, 65, 72, 0.8);
    border-color: #44d9d9;
    color: #44d9d9;
}
.sektorenkarte-map .leaflet-control-layers-separator {
    border-top-color: #44d9d9;
}
.sektorenkarte-map .leaflet-control-layers-toggle {
    background-image: url('images/layers.png');
}

.leaflet-control-sektorenkarte {
    border: 2px solid #44d9d9;
    border-radius: 5px;
    background-color: rgba(7, 65, 72, 0.8);
}
.leaflet-control-sektorenkarte-button {
    display: block;
    color: #44d9d9;
    width: 44px;
    height: 44px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    cursor: pointer;
}
.leaflet-control-sektorenkarte-button:hover, .leaflet-control-sektorenkarte-button:focus {
    box-shadow: inset 0 0 5px #44d9d9;
}
.leaflet-control-sektorenkarte-button:active {
    box-shadow: inset 0 0 15px rgba(255, 255, 255, .8);
}

.leaflet-control-permalink-button {
    background-image: url('images/link.png');
}

.leaflet-control-planetlist-button {
    background-image: url('images/planet.png');
}

.leaflet-control-menu-button {
    background-image: url('images/menu.png');
}

.leaflet-control-custommarker-button {
    background-image: url('images/btn_marker.png');
}

.sektorenkarte-map .leaflet-control-attribution {
    background-color: rgba(7, 65, 72, 0.8);
    border-color: #44d9d9;
    color: #44d9d9;
}

.popover {
    position: absolute;
    top: 10px;
    right: 68px;
    max-width: 600px;
    min-width: 220px;
    width: 40vw;
    height: 80vh;
    background-color: rgba(7, 65, 72, 0.8);
    color: #44d9d9;
    border: 2px solid #44d9d9;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

@media only screen and (max-width: 768px) and (orientation: portrait) {
    .popover {
        width: 80vw;
        height: 80vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.popover-show {
    display: flex;
    flex-direction: column;
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.popover-body {
    overflow: auto;
    margin: 10px;
}

.popover table {
    border-collapse: collapse;
    width: 100%;
}

.popover th, .popover td {
    border: 1px solid #44d9d9;
    padding: 5px;
    text-align: left;
}

.searchbar-container {
    margin: 10px 0 0 10px;
}

input.searchbar, .sektorenkarte-input {
    padding: 3px;
    border: 2px solid #44d9d9;
    border-radius: 4px;
    background-color: rgba(7, 65, 72, 0.8);
    color: #44d9d9;
    outline: none;
}

input.searchbar:focus, .sektorenkarte-input:focus {
    border-color: #bcd7d7;
    background-color: rgba(90, 103, 105, 0.8);
    outline: none;
    color: #bcd7d7;
}

input.searchbar::placeholder, .sektorenkarte-input::placeholder {
    color: rgba(68, 217, 217, 0.5);
}
input.searchbar:focus::placeholder, .sektorenkarte-input:focus::placeholder {
    color: rgba(188, 215, 215, 0.5)
}

.control-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(7, 65, 72, 0.8);
    color: #44d9d9;
    border: 2px solid #44d9d9;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
}

.control-button:hover, .control-button:focus {
    background-color: rgba(7, 65, 72, 1);
}

.close-button {
    background: transparent;
    width: 26px;
    height: 26px;
    background-image: url('images/x-icon.png');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    border: none;
    border-radius: 4px;
    order: 999;
}

.close-button:hover, .close-button:focus {
    background-color: rgba(7, 65, 72, 0.8);
    box-shadow: inset 0 0 5px #44d9d9;
}
.close-button:active {
    background-color: rgba(7, 65, 72, 0.8);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, .8);
}

.filter-container {
    display: flex;
    flex-direction: column;
    margin: 10px;
    padding: 5px;
    border: 1px solid #44d9d9;
    border-left: none;
    border-right: none;
    border-radius: 5px;
    gap: 5px;
    flex-basis: 50%;
    flex-grow: 0;
    flex-shrink: 1;
}

.filter-heading {
    font-weight: bold;
}

.filter-list {
    display: none;
    flex-direction: row;
    gap: 1px 3px;
    flex-wrap: wrap;
}

.filter-container:hover {
    flex-basis: 100%;
}

.filter-container:hover .filter-list {
    display: flex;
}