* { 
    font-family: Roboto,Arial,sans-serif;
    font-size: 14px; 
}

html {
    height: 100%;
}
body {
    min-height: 100%;
}

body {
    margin: 0px;
    user-select: none; /* Standard syntax */  
    -ms-user-select: none; /* IE 10 and IE 11 */
    -webkit-user-select: none; /* Safari and Chrome */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

div {
    padding:0px;
}

.clearfix {
    overflow: auto;
}

#map_page {
    width:100%;
    height:100%;
    position: absolute;
    overflow: auto;

    display: flex;
    flex-direction: column;
    align-items:stretch;
}

#map_header {
    white-space: nowrap;

    display: flex;
    display: -webkit-flex;

    align-items:center;

    justify-content: space-between;
}

#map_header_left {
    padding-left: 20px;
    padding-right: 20px;
}

/*
#title {
}
*/

#title h1 {
    font-size: 24px;
    font-weight: bold;
}

#map_header_middle {
    width:100%;
    padding-left: 20px;
    padding-right: 20px;

    display: flex;
    flex-direction: row;
}

#search_bar {
    flex:1;
}

/*
#search_button {
}
*/

#map_header_middle button {
    float: right;
    height:100%;
    /*padding: 6px 10px;
    margin-top: 8px;
    margin-right: 16px;*/
    background: #2196F3;
    /*font-size: 17px;*/
    border: 1px solid grey;
    border-left: none; /* Prevent double borders */
    cursor: pointer;
}
  
#map_header_middle button:hover {
    background: #0b7dda;
}

#map_header_search_bar_input {
    width:100%;
    display: inline;
    vertical-align: middle;
}

#map_header_right {
    padding-right: 20px;
    padding-left: 20px;
}

#username {
    display: inline;
    vertical-align: middle;
}

#signout_button {
    display: inline;
    vertical-align: middle;
}

#map_body {
    height:calc(100% - 60px);
    flex: 1;

    display: flex;
    flex-direction: row;
}

#map_window {
    padding:10px;
    width:calc(100% - 20px);
    height:calc(100% - 20px);
    position:relative;
}

#overall-map {
    width:100%;
    height:100%;
}

#map_sidebar {
    padding:10px;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    width:300px;
}

#map_googlemap {
    flex: 1;
}

#map_site_filter {
    border:1px solid #f0f0f0;
}

.horizon_seperator {
    height:5px;
    background-color:#f0f0f0;
}

#map_site_list {
    padding:10px;
    height:calc(100% - 20px);
    flex: 1;
    margin-top: 10px;
    border: 1px solid #f0f0f0;
    overflow-y:scroll;
}

.map_site_list_item {
    padding:5px;
    text-align: left;
}

#map_site_list div {
    padding: 10px;
    border: 1px solid #A2C1FA;
    border-radius:0px;
}

#map_site_list div:hover {
    padding: 10px;
    background-color: #DFE6F5;
    border-radius:2px;
}

.map_site_filter_form_head {
    padding: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.map_site_filter_form_text {
    padding: 0px 5px 0px 5px;
}

.map_site_filter_form_item {
    padding: 5px;
}

.map_site_filter_form_item input[type=checkbox]{
    background-color:#f0f0f0;
    border: none;
    width: auto;
    vertical-align: middle;
}

.map_site_filter_form_item input{
    background-color:#f0f0f0;
    border: none;
    width: 100%;
}

.map_site_filter_form_item select{
    background-color:#f0f0f0;
    border: none;
    width: 100%;
}


.map_site_filter_form_item input:focus{
    outline: none;
    border:1px solid #3e89ec;
}

.map_site_filter_form_item select:focus{
    outline: none;
    border:1px solid #3e89ec;
}

#progress_slider-range {
    width:50%;
    height:3em;
}

/* Map style */
.infoWindow { width: 220px; }


#content tr:nth-child(even) {background: lightyellow}
#content h1 {
    font: 24px Calibri;
    font-weight: bold;
}

#site_info input {
    padding:5px 0px 5px 0px;
    width:100%;
    border: none;
    background: #f0f0f0;
}

#site_info input:focus{
    outline: none;
    border:1px solid #3e89ec;
}

.contextMenu {
	position: absolute;
	z-index: 1000;
	display:none;
	min-width: 120px;
	background: #eee;
	border:1px solid #777;

}

.contextMenu ul {
	padding: 0px 0px;
	margin: 0px;
	border: solid 1px #fff;
}

.contextMenu li {
	list-style: none;
	padding: 0px 0px;
	margin: 0px;
}

.contextMenu li.item div {
	display: block;
	color: #000;
	text-decoration: none;
	line-height: 22px;
	height: 22px;
	padding: 1px 8px;
}

.contextMenu li.item:hover div {
	padding: 0px 7px;
	background-color: #DFE6F5;
	border: 1px solid #A2C1FA;
	border-radius:2px;
}

.contextMenu li.separator div {
	margin: 3px 0px;
	border-top: solid 1px #ccc;
	border-bottom: solid 1px #fff;
}

#site_info_bg {
    display:none;
    position:absolute;
    top:0%;
    left:0%;
    width:100%;
    height:100%;
    background-color:black;
    z-index:1001;
    -moz-opacity:0.8;
    opacity:.50;
    filter:alpha(opacity=80);
}

#site_info{
    display:none;
    position:absolute;
    top:0%;
    width:300px;
    height:100%;
    padding:10px;
    background-color:white;
    z-index:1002;
    overflow:auto;
}

#site_info_form {
    border:1px solid #f0f0f0;
}

#site_info_header {
    white-space: nowrap;
    display:flex;
    width:100%;
    justify-content: space-between;
    align-items:center;
}

#site_info_title {
    font-size: 16px;
}

#site_info_buttons {
    white-space: nowrap;   
    display:flex;
    align-items:center; 
}

#site_info_buttons input {
    padding:5px;
    background-color: white;
    color: #3e89ec;
    opacity: 0.8;

    display: inline;
    vertical-align: middle;
}

.ui-slider {
    margin: 10px;
    height: 5px;
    position: relative;
    border: none;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    border-radius: 15px;
    outline: none;
    border: 2px solid #fff;
    position: absolute;
    top: -10px;
}

.ui-slider-horizontal .ui-slider-range {
    background: #e9ecf1
}

.message_window {
    opacity: 0.9;
    position:relative;

    top:90%;
    width:200px;
    margin:0 auto;

    text-align: center;
    color: white;
    padding: 10px;
    border-radius: 10px;
    background-color:darkgrey;
}

.switch-layer-button {
    top: 7px;
    right: .5em;
}
.show-all-sites-button {
    top: 40px;
    right: .5em;
}
.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 50px;
    left: -50px;
    min-width: 400px;
  }
  .ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }
  .ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
  }
  .ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
  }
  .ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
  }
  .ol-popup-closer:after {
    content: "×";
  }