.leaflet-control-wms_legend {
    height: 250px;
    width: 250px;   
    background-color: transparent;
    transition: all .2s;
    position: relative;
    display: none;
}

.leaflet-control-wms_legend .wms_legend-title-bar{
    position: absolute;
    top: 0;
    width: 100%;
    height: 25px;
    font-size: 14px;
    font-weight: bold;
    padding: 0 5px;
    background-color:white;
    border-bottom: 1px solid lightgray;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 25px;
}

.leaflet-control-wms_legend .wms_legend-title-elem{
    color:black;
}

.leaflet-control-wms_legend .wms_legend-image-div{
    height: 100%;
    padding-top: 25px;
}


.leaflet-control-wms_legend .wms_legend-image-div .wms_legend-image-scroll-div{
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
}

.leaflet-control-wms_legend .wms_legend-image-div .wms_legend-image-scroll-div img.wms_legend-image-elem{
    max-width: 100%;
    padding: 5px 5px;
}

    

.leaflet-control-wms_legend .wms_legend-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    color:black;
    opacity: 0.8;
    cursor:pointer;
    width: 25px!important;
    height: 25px!important;
    line-height:25px!important;
}

.leaflet-control-wms_legend .wms_legend-close-btn:hover {
    width: 25px!important;
    height: 25px!important;
    line-height:25px!important;
    background-color: transparent !important;
    color:black;
    opacity: 1;
}








.leaflet-control-wms_legend a {
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    outline: none;
    z-index: 99999;
    transition: all .2s;
    width: 32px;
    height: 32px;
}

.leaflet-control-wms_legend a.minimized {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    border-radius: 0px;
}

.leaflet-control-wms_legend-toggle-display {
    background-image: url("images/toggle.png");
    border-radius: 2px 0px 2px 0px;
    height: 22px;
    width: 22px;
    position: absolute;
    bottom: 0;
    right: 0;
}


.leaflet-zoom-hide {
}

.leaflet-control-wms_legend img {
-webkit-backface-visibility: hidden;
}