* {
    padding: 0;
    margin: 0;
    box-sizing: border-box
}

.map-button {
    margin: 20px auto;
    display: flex;
    width: max-content;
}

.map-wrapper {
    position: relative;
}

.map {
    width: 100vw;
    height: calc(100vh - 118px);
}

.pd-checkbox {
    display: none;
}

.pd-checkbox--label {
    line-height: 24px;
    font-weight: bold;
    user-select: none;
}

.pd-checkbox--label:before {
    content: "";
    width: 24px;
    height: 24px;
    float: left;
    margin-right: 10px;
    background-image: url("./img.png");
    background-position: -167px -107px;
}

.pd-checkbox:checked+.pd-checkbox--label:before {
    background-position: -92px -107px;
    background-color: #6FAC29;
}

.fixed-panel {
    position: absolute;
    top: .5em;
    right: .5em;
    z-index: 100;
    font-size: 14px;
    font-family: 'Arial', 'Helvetica Neue', 'Droid Sans', Arial, Tahoma, Geneva, Sans-serif;
    width: 302px;
}

.fixed-panel h2 {
    margin: 0 0 10px 0;
    font-size: 25px;
}

.fixed-panel h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
}

.legend {
    width: auto;
    height: auto;
    padding: 10px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, .95);
    border: 1px solid #ddd;
    box-shadow: 0 6px 12px #9b9ca1;
}

.legend_last-ride,
.legend-content {
    height: 315px;
    margin-top: 1em;
    overflow: hidden;
    transition: all ease-in-out 200ms;
}

.legend td {
    padding: 0 0px 0px 5px;
    text-align: left;
}

.last-update {
    margin-bottom: 10px;
    border: 1px dashed #aaa;
    border-radius: 2px;
}

.last-update {
    padding: 5px;
}

.last-update-value {
    font-weight: bold;
    padding-top: 0px;
}

.legend-controls {
    margin-bottom: 10px;
}

.bar {
    width: 50px;
    height: 5px;
    display: block;
    margin-right: 5px;
    margin-left: 0px;
}

.bar_30 {
    background-color: #94b724;
}

.bar_30_60 {
    background-color: #dc8c00;
}

.bar_1_3 {
    background-color: #c35439;
}

.bar_3_12 {
    background-color: #296caf;
}

.bar_not_managed {
    background-color: #777777;
}

.div_description {
    width: 280px;
    display: inline-block;
    font-style: italic;
    padding-top: 5px;
    line-height: normal;
    font-size: 11px;
}

/*toggle legend*/
.legend-toggle-label {
    width: 100%;
    display: block;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.5em;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.legend-toggle-chb:not(:checked) ~ .legend_last-ride,
.legend-toggle-chb:not(:checked) ~ .legend-content {
    min-height: 0;
    height: 0;
    margin-top: 0;
}

.legend-toggle-chb {
    display: none;
}

.search_div {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search {
    padding: 0;
    border: 0;
}

input[type="text"].search_textbox {
    padding: 10px;
}

input[type="text"] {
    border: 1px solid #ccc;
    padding: 8px 5px;
}

input[type="text"]:focus {
    border-color: #aaa;
}

input:focus,
button {
    outline: none;
}

.search_textbox {
    width: 100%;
}

.search_btn {
    width: 20px;
    height: 100%;
    border: 0;
    background: none;
    position: absolute;
    top: 0;
    right: .5em;
    cursor: pointer;
}

.m-t {
    margin-top: 1em;
}

/*OL*/
.ol-attribution {
    bottom: 1.5em;
}

.ol-control button {
    background-color: rgba(0, 60, 136, .8);
}

/* responsive */
@media screen and (max-width: 480px) {
    .fixed-panel {
        width: calc(100% - 1em);
        top: 0;
        left: 0;
    }

    .legend {
        width: 100%;
        border: 0;
    }

    .ol-control {
        display: none;
    }
}

@media screen and (max-width: 640px) and (orientation: landscape) {
    .fixed-panel {
        width: 100%;
        top: 0;
        left: 0;
    }

    .legend {
        width: 50%;
        border: 0;
        margin-left: 50%;
    }

    .ol-control {
        display: none;
    }

    .legend-toggle-chb:checked ~ .legend_last-ride,
    .legend-toggle-chb:checked ~ .legend-content {
        height: 100vh;
    }
}

@media screen and (max-width: 767px) {
    .fixed-panel {
        top: auto;
        right: auto;
        left: 0.5em;
        bottom: 5.5em;
    }

    .fixed-panel h2 {
        margin: 0 0 10px 0;
        font-size: 20px;
    }

    .fixed-panel h4 {
        margin: 0 0 10px 0;
        font-size: 15px;
    }

    .fixed-panel .last-update {
        display: table;
        padding: 5px;
    }
}

@media screen and (min-width: 1200px) {
    .map {
        width: 100%;
        height: calc(100vh - 125px);
    }
}