﻿* {
   box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Fira Sans"
}

#map {
    height: 100%;
    flex-grow: 1;
    border-right: 2px solid #aaa;
}

#content {
    display: flex;
}

#meta {
    text-align: center;
    width: 500px;
    padding: 20px;
    background: #ccc;
    position: relative;
    overflow-y: scroll;
}

.leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    font-family: "Fira Sans";
    font-size: 14px;
    font-weight: 500;
    color: black;
    text-align: left;
    border: 4px solid #333;
}

.leaflet-popup-close-button {
    display: none;
}

.leaflet-popup-tip {
    background: #333;
}

img.leaflet-tile {
    filter: grayscale(100%);
}

#josm-overpass {
    position: absolute;
    margin: 16px;
    bottom: 60px;
    right: 0;
    display: flex;
}

#last-edit {
    position: absolute;
    margin: 16px;
    bottom: 0;
    left: 0;
    font-size: 12px;
    text-align: left;
    line-height: 150%;
}

.last-edit-label {
    width: 50px;
    text-align: right;
    display: inline-block;
}

#last-edit-header {
    font-weight: bold;
    color: #333;
}

.last-edit-timestamp {
    float: right;
}

#last-edit a {
    color: black;
}

#operators {
    font-size: 12px;
    text-align: left;
}

#operators table {
    width: 100%;
}

#operators table td:nth-child(2) {
    text-align: right;
}



.base-div-icon {
    background: none;
    border: none;
    font-size: 12px;
    padding: 0.5em 0.7em;
    font-family: "Fira Sans";
    font-weight: bold;
}
  
.adaptive-div-icon {
    background-color: white;
    border: 1px solid #666;
    border-radius: 3px;
    padding: 5px;
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%);
}

body:not(.high-zoom) .base-div-icon .base-name {
    display: none;
}

.popup-name {
    font-size: 24px;
    padding: 0.5em 18px;
    font-family: "Fira Sans";
}

.popup-availability {
    padding: 0 18px;
    margin-bottom: 12px;
}

.popup-availability .label {
    font-weight: normal;
    margin-right: 4px;
}

.popup-availability.missing .label {
    text-decoration: line-through;
}

.popup-availability.missing .value {
    color: #ff00ff;
}

.popup-logo-img-tag {
    max-height: 30px;
    float: right;
}

.popup-image img {
    display: block;
}

#josm-overpass button img, #josm-overpass a img {
    height: 32px;
    margin-right: 0.3em;
    vertical-align: bottom;
}

#josm-overpass a {
    text-decoration: none;
    margin-right: 1em;
}

#josm-overpass button, #josm-overpass a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    font-size: 16px;
    background-color: #3f7599;
    color: white;
    border: none;
    border-radius: 500px;
    cursor: pointer;
    font-family: "Fira Sans";
}

#josm-overpass button:hover, #josm-overpass a:hover {
    background-color: #4e98c9;
}

#josm-overpass button:active, #josm-overpass a:active {
    background-color: #2f5772;
}

#toggles {
    position: absolute;
    top: 0;
    left: 0;
    margin: 24px;
    z-index: 999;
    background-color: white;
    padding: 12px;
    border: 2px solid #333333;
}

label {
    cursor: pointer;
}
input[type="checkbox"] {
    cursor: pointer;
}

body:not(.show-missing-information) .missing {
    display: none;
}

@media (max-width: 900px) {
    #content {
        flex-direction: column;
    }

    #meta {
        height: 340px;
        width: auto;
    }

    #map {
        border-right: none;
        border-bottom: 2px solid #aaa;
    }

    #josm-overpass {
        display: none;
    }

    #last-edit {
        top: 0;
        left: 0;
        font-size: 12px;
        margin-bottom: 12px;
    }

    #operators {
        margin-top: 60px;
        padding-top: 12px;
        border-top: 1px solid #999;
    }
}