//.leaflet-tile { border: solid black 1px; }

html {
    height: 100%;
    width: 100%;
}

body {
    overflow: hidden;
    height: 100%;
}

div#previous {
    z-index: 100000; 
    background-color: #fff;
    position: fixed;
    top: 0;
    right: 0;
    padding: 3px;
}

div#map {
    top: 0;
    left: 340px;
    right: 0;
    bottom: 0;
    position: fixed;
    cursor: pointer !important;
}

div#map2 {
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    position: fixed;
    cursor: pointer !important;
	display: none;
}

form {
    top: 0;
    left: 0;
    position: fixed;
    background-color: #fff;
    padding: 5px;
    height: 45px;
    width: 340px;
    z-index: 2000;
    overflow-y: hidden;
    overflow-x: hidden;
}

form:hover {
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
    -moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
        box-shadow: 0 2px 10px rgba(0,0,0,.25);
}     

div#resizable {
    position: fixed;
    top: 45px;
    left: 0;
    height: calc(100% - 45px);
    width: 340px;
    z-index: 2000;
}

div#data {
    width: 340px;
    border-top: solid 1px #ccc;
    padding-top: 3px;
    font-size: larger;
    background-color: #ffffff;
    overflow-y: auto;
    height: 100%;
}

div#data div {
    padding-left: 0px;
}

div#data div.multi {
    padding-bottom: 5px;
    border-bottom: dotted 1px #dddddd;
}

div#data div.multi a {
    z-index: 1000000;
}

div#data div.multi:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

div#options, div#history {
    padding: 10px 10px 0 10px;
    width: 425px;
    height: 370px;
    font-size: large;
    position: absolute;
    background-color: #ffffff;
    z-index: 3000;
    display: none;
    border: solid 1px #cccccc;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    top: 100px;
    left: calc(50vw - 212px);
}

div#options > strong, div#history > strong {
    cursor: move;
}

div.close_dialog {
    position: relative;
    text-align: right;
    padding-top: 10px;
    margin-right: 10px;
}

div.close_dialog span {
    cursor: pointer;
}

div#base_map {
    margin: 10px 0 10px 20px;
}

div#shortcuts {
    display: none;
}

input#gridref {
    width: 290px;
    font-size: large;
    height: 35px;
    left: 50px;
    border: none;
    padding-left: 3px;
}

input#gridref:focus {
    outline: none;
}


button#submit {
    background-color: #ffffff;
    border: solid 1px #ffffff;
    border: none;
    padding: 0;
    width: 35px;
    height: 35px;
    float: right;
} 

button#submit:active {
    background-color: #ffffff;
    border: solid 1px #ffffff;
    border: none;
    padding: 0;
    width: 35px;
    height: 35px;
    float: right;
}

input[type=checkbox] {
    cursor: pointer;
    margin: 15px 0 10px 20px;
}

input[type=checkbox]:hover {
    background-color: #eeeeee;
    color: #000;
}

label {
    font-weight: normal;
    cursor: pointer;
    padding: 0 0 0 3px;
    margin: 0;
    width: 80%;
}

div#geocode {
    z-index: 2002;
    position: absolute;
    top: 46px;
    bottom: 0;
    left: 0px;
    height: 100%;
    //-webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
    //-moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
    //    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    padding: 7px 0 0 7px;
    width: 340px;
    background-color: #ffffff;
    display: none;
    flex-direction: column;
    overflow-y: auto; 
}

div#geocode table tbody tr td+td {
    width: 30%;
}

div#geocode table tbody tr {
    cursor: pointer !important;
}

div#geocode table tbody tr:hover {
    background-color: #eee;
}

div#geocode span {
    padding-bottom: 3px;
}

div#geocode div {
    flex: 0 0 auto;
}

div#geocode div+div {
  flex: 1 1 auto;
  overflow-y: auto;
}

div#options_table {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 70px);
    border-top: solid 1px #ccc;
    padding: 5px 0 5px 0;
}

div#history_table {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 70px);
    border-top: solid 1px #cccccc;
}

div#history_table div.query {
    padding: 5px 0 0 3px;
    margin: 5px 1px 0 0;
    background-color: #eeeeee;
}

a {
    cursor: pointer;
}

span.smaller {
    font-size: smaller;
}

span.block, a.block {
    display: block;
}

span.distinct {
    padding-left: 10px;
}

span.labela {
    padding: 5px 0 0 5px;
    text-transform: uppercase;
}

span.labela:after {
    content: ":";
}

span.geology {
    text-transform: capitalize;
}

dfn {
    font-style: normal;
    border-bottom: dashed 1px #000000;
    cursor: help;
}

label.minimizer {
    width: 100%;
    padding: 0;
    margin: 0;
    outline: none;
    border: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

label.minimizer:active {
    outline: none;
    border: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

label.minimizer strong {
    float: left;
}

label.minimizer span {
    float: right;
}

div#sketchpad {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10000;
    background-color: #ffffff;
    width: 230px;
    padding: 5px;
    display: none;
    border: solid 1px #cccccc;
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
}

div#sketchpad > strong {
    cursor: move;
}

div#sketchpad_table {
    display: block;
    padding: 5px;
    border-top: solid 1px #ccc;
    cursor: move;
}

div#sketchpad label {
    display: inline;
}

div#sketchpad input[type=color] {
    width: 200px;
    height: 30px;
    display: inline;
	opacity: 0;
    cursor: pointer;
}

div#sketchpad div#color_picker_wrapper {
    width: 200px;
    margin: 0 5px -10px 5px;
}

div#sketchpad input[type=range] {
    width: 175px;
    display: inline;
}

div#sketchpad output {
	padding-left: 5px;
    width: 30px;
    display: inline;
}

div#sketchpad a {
    padding-left: 5px;
}

svg {
    position: absolute;
    z-index: 1001;
}

@media (max-width: 767px) { 

    div#previous {
        display: none;
    }

    div#map {
        left: 0;
    }
    
    form {
        width: 100%;
        height: 45px;
    }

    form:hover {
        -webkit-box-shadow: none;
    } 
    
    input#gridref {
        width: 80%;
    }
    
    div#resizable {
        width: 100%;
        height: 15px;
    }
    
    div#data {
        width: 100%;
        height: calc(100% - 10px);
    }
    
    div#options, div#history, div#geocode {
        width: 100%;
        height: 100%;
        left: 0;
        margin-right: 0;
        transform: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }

    div#options, div#history {    
        top: 0;
    }

    div#geocode {    
        top: 46px;
    }
    
    span.close_dialog {
        position: fixed;
    }
        
    .ui-resizable-s {
        z-index: 2001 !important;
        height: 20px !important;
        background: url('handle.png') no-repeat center, linear-gradient(to bottom, #e5e5e5 0%,#ffffff 100%); !important;
        background-size: 40px 40px;
        background-color: #f2f2f2;
        
    }    
    
}
