/* insert title before the layer control layers */
section.leaflet-control-layers-list:before {
    content: 'Base Layer Explorer';
    font-weight: bold;
}

/* inject new titles in the middle of the layer control menu */
.leaflet-control-layers-overlays label:nth-child(3):before {
    display:block;
    content: 'Hydrology';
}

/* style of the legend */

.legend {
    background-color: rgba(230, 224, 224, 0.438);
    padding: 0.7rem;
    width: 150px;
}

.legendTitle {
    margin: 0;
    margin-bottom: 10px;
}

.legend-content {
    display:flex;
    box-sizing: border-box;
    flex-direction: column;
}

.resColorBox {
    width: 100%;
    height: 15px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.catColorBox {
    width: 30px;
    height: 15px;
    margin-right: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.catWrapper {
    display:flex;
    box-sizing: border-box;
    flex-direction: column;
}

.colorTextPair {
    display:flex;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
}

/* back button style */

.back-button {
    border: 2px solid #ccc;
    height: 30px;
    width: 30px;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* change cursor to hand when hover over the button */
    cursor: pointer;
}

.back-button:hover {
    background-color: #f4f4f4;
}

.back-button:hover path {
    fill: brown;
    stroke: brown;
}