body { margin:0; padding:0; font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; }
#map { position:absolute; top:0; bottom:0; width:100%; }
#buttonbox {
    position:absolute;
    display:flex;
    justify-content: space-between;
    bottom:10px; 
    left:50px; 
    width:210px; 
    background-color:white;
    border:1px solid lightgray;
    border-radius: 4px;
    padding: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
}
.button {
    display: inline-block;
    color: white;
    background-color: #2e7dba;
    border-radius: 4px;
    text-align: center;
    border: 1px solid lightgray;
    height: 22px;
    margin-top: 2px;
    height: 22px;
    padding-left: 5px;
    padding-right: 5px;
    min-width: 60px;
}
.button:hover {
    cursor: pointer;
    background-color: #286CA0;
}
.button.disabled {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
    pointer-events: none;
    cursor: default;
}
#geocoder {
    position:absolute;
    top: 10px;
    left: 10px;
    min-width: 250px;
    background: white;
    border: 1px solid gray;
    padding: 5px;
    border-radius: 4px;
}
#geocoder input {
    width: 100%;
}
#geocoderlist {
    font-size: smaller;
}
#geocoderlist ul li {
    cursor: pointer;
}
#geocoder ul li:hover {
    background-color: #cccccc;
}
#infobox { 
    position:absolute; 
    top:55px; 
    left:10px; 
    width:250px; 
    min-height:50px;
    background-color:white;
    border:1px solid lightgray;
    border-radius: 4px;
    padding: 5px;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}
#infobox .table {
    display: grid;
    grid-template-columns: auto auto;
    margin-bottom: 3px;
}
#infobox .label { grid-column: 1; font-weight: bold; font-size: small;}
#infobox .input { grid-column: 2; display: flex;}
#infobox input { width: 100%;}
#infobox div {font-size: small};
#infohtml {
    font-size: small;
    line-height: 25px;
}
#layers {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 150px;
    min-height: 50px;
    background: white;
    padding: 5px;
    border:1px solid lightgray;
    border-radius: 4px;
}
.layeritem {
    display: flex;
}
.layeritem:hover {
    background-color:#cccccc;
}
.layeritem label {
    flex-grow: 1;
}
.title {
    text-align: center;
    font-weight: bold;
}
#tools {
    position: absolute;
    left: 10px;
    bottom: 110px;
    width: 29px;
    background-color: white;
    fill: none;
    cursor: pointer;
    border:1px solid lightgray;
    border-radius: 4px;
    overflow: hidden;
}
#tools .toolbutton:not(:last-child) {
    border-bottom: 1px solid gray;
}
.toolbutton {
    padding-left: 2px;
    padding-top: 2px;
    stroke: black;
}
.toolbutton:hover {
    background-color: whitesmoke;
    stroke: black;
}
.toolbutton.active {
    background-color: black;
    stroke: white;
}
#dialogoverlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(204,204,204,0.6);
}
#dialogwindow {
    box-shadow: 4px 4px 9px 0px rgba(100,100,100,1);
    min-width: 250px;
    min-height: 250px;
    background-color: white;
    margin: auto;
}
#dialogcontent {
    position: relative;
    padding: 5px;
}
#dialogheader {
    display: block;
    height: 2em;
    border-bottom: 1px solid whitesmoke;
    background-color: #2e7dba;
    color: white;
}
#dialogerror, #dialognochanges {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: red;
    box-sizing: border-box;
    padding: 5px;
    background-color: white;
}
#dialogclosebutton {
    float: right;
    padding: 2px 10px;
    margin: 2px;
    cursor: pointer;
    font-weight: bold;
}
#dialogclosebutton:hover {
    background-color: lightgray;
    color: black;
}
.hidden {
    display: none;
}
input[type="search"] {
    border: 1px solid gray;
    padding: .2em .4em;
    border-radius: .2em;
  }
  
  input[type="search"].dark {
    background: #222;
    color: #fff;
  }
  
  input[type="search"].light {
    background: #fff;
    color: #222;
  }
  
  input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 1em;
    width: 1em;
    border-radius: 50em;
    background: url(https://pro.fontawesome.com/releases/v5.10.0/svgs/solid/times-circle.svg) no-repeat 50% 50%;
    background-size: contain;
    opacity: .3;
    pointer-events: all;
  }
  
  input[type="search"].dark::-webkit-search-cancel-button {
    filter: invert(1);
  }
  @media only screen and (max-width: 450px) {
    #geocoder {
        min-width: calc(50vw - 25px);
    }
    #geocoder input[type="search"] {
        width: calc(50vw - 25px);
    }
    #infobox {
        min-width: 0;
        max-width: calc(50% - 25px);
    }
    #layers {
        width: calc(50% - 25px);
    }
  }
  @media screen and (max-height: 450px) and (orientation: landscape) {
    #infobox {
        left: 45px;
    }
  }