* {
  margin: 0px;
  padding: 0px;
}  

    
html {
  box-sizing: border-box;
  height: 100%;

}    
    
body {
  background: #fff;
  height: 50%;
/*  max-height:750px;*/
  font-family: Lato, "Open sans", Helvetica, Arial, sans-serif;
}

h4 {
  color: #222;
  /*font-family: Lato;*/
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0;
}

/* h1 used for title*/
.h1, h1 {
    font-size: 34px;
}

/* h5 used in popups*/
h5 { 
  margin-bottom: -.2em;
  font-size: 1.1em;
}

/* h6 used in info controls*/
h6 {
  font-size: 0.9em;
  margin-bottom: 0;
}

.container-fluid{
  margin: 0px;
  padding: 0px;
  position: relative;
}

.col-sm-8{
  margin: 0px;
  padding: 0px;
}
.col-sm-12{
  margin: 0px;
  padding: 0px;
}


#content {
  display: flex;
  width: 100%;
  height: 90%;
  position: relative;
  top: 0;
}
    
#widgets {
  overflow: auto;
  width: 300px;
  position: absolute;
  direction:ltr;
}
    
.widget {
  background: rgba(255, 250, 250, .85);
  padding: 2px;
  margin-bottom: 5px;
  margin-left: 5px;
/*  margin-left: 25px;*/
  border: 1px solid #ddd;
  position: relative;
}
  
.widget h1 {
  font-size: 1.2em;
}

/*
#RegionsWidget h1 {
  margin: .5em;
  font-weight: 700;
}

#TimeSeriesWidget h1 {
  margin: .5em;
  font-weight: 700;
}
*/

#search h1 {
  margin-bottom: .1em;
  font-weight: 700;
}


.widget-formula .result {
  font-size: 2em;
}

.btn .btn-default .btn-sm{
  padding: 3px 5px 3px 5px;
  margin: auto auto;
  text-align: center;
  max-width: 150px;
/*  float: left;*/
}
.btn {
  padding: 3px 5px 3px 5px;
}
#TimeSeriesWidget .btn {
  margin-top: .5em
}

.connector {
  margin-top: .9em;
}

.buttonDiv{
  position:absolute; 
  top: 7px;
  right: 7px;
}
  

#numActivityWidget, #showRegionsWidget, #ActivityTypeWidget, #RegionsWidget, #TimeSeriesWidget {
  border-radius: 8px;
  color: #222222;
}

#ActivityTypeWidget{
  position: relative;
}

.widget h1 {
  margin: .5em;
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 0px;
}

.widget h6 {
  font-size: .9em;
  margin: 0.6em;
}

#TimeSeriesWidget h6 {
  margin-bottom: 0;
  padding-bottom: 0;
}

/*

#ActivityTypeWidget h6 {
  font-size: .8em;
  margin-bottom: .25em;
}

#RegionsWidget h6 {
  font-size: .8em;
  margin-bottom: .25em;
}
*/

#activity-count{
  font-size: 2em;
  margin-bottom: .25em;
}

#numActivityWidget {
  /*max-height: 4.4em;*/
/*
  padding: 10px 10px;
  padding-top: 15px;
*/
  z-index: 1000!important;
}

#numActivityWidget p {
  margin-top: -.5em;
}

/* info button */ 

.infoButton {
    background-color: transparent;
    color: darkgray !important;
    border:none !important;
    font-size: 1.2em;
    padding-right: 3px;
}

.infoButton i {
    color: darkgray !important;
    border:none !important;
}



#timeSliderWidget{
  padding-top: 25px ;
  padding-left: 15px;
  padding-right: 15px ;
  padding-bottom: 5px ;
}

.noUi-connect {
  background: darkgrey;
}

.noUi-target .noUi-ltr .noUi-horizontal{
  height: 20px;
}

.noUi-tooltip{
  font-size: 12px;
  font-weight: bold;
  padding-bottom: 0;
  background: transparent;
  border: none;
}


.custom-popup, .leaflet-popup-content-wrapper {
  background:rgba(255, 250, 250, 1);
  opacity: 0.86;
  margin: 0;
  z-index: 99999!important;
}

.custom-popup, .leaflet-popup-content {
  margin: 10px 10px;
}

.leaflet-popup-tip {
  background: rgba(255, 250, 250, 1);
  opacity: 0.86;
  z-index: 99999!important;
}

.popup h4 {
  font-family: Lato;
  font-size: 1em;
}

/* welcome popup  */
.welcomePopup .leaflet-popup-content-wrapper {
    pointer-events: none !important;
    color: #222 !important;
    
}
/* welcome popup - no triangle  */
.welcomePopup .leaflet-popup-tip{
    background-color: transparent;
    box-shadow: none !important;
}

.leaflet-popup-content h3 {
  font-family: Lato;
  font-size: 1.4em;
  font-weight: 700;
  margin: 0!important;
}


.leaflet-popup-content p {
/*    color:red;*/
    margin: 10px 0;
    font-weight: 500;
}


.leaflet-popup-content small {
    color: #222;
    font-weight: 900!important;

}

.popup {
  z-index: 99999!important;
}


#regions_c {
  vertical-align: middle;
  margin-top: .6em;
  padding-bottom: 1em;
  float: right;
  font-size: .75em;
}

#showRegions {
  vertical-align: middle;
}

#regionsChart {
  margin-bottom:0;
}

/*stlye for selected bar on chart*/
.highcharts-point-select {
  stroke: black;
  stroke-width: 2;
  fill: rgba(180,180,180,1);
  /*fill: initial; goal - keep to bar's original color.*/
}

.leaflet-control {
  float: left;
  clear: both;
}

#map {
  cursor: default;
  flex: 1;
  position:relative;
  width: 100%;
  z-index: 0;
  top: 0px;
  bottom: 0px;
  border-radius: 8px;
  height: 90vh;
  max-height: 615px;
  background-color: #fefefe;
}

#map:hover {
  cursor: default;
}


#map:active:hover {
    cursor: grabbing!important;
    cursor: -moz-grabbing!important;
    cursor: -webkit-grabbing!important;
    
}

.leaflet-bar a {
  display: inline-block!important;
  border-bottom: 0px!important;
}

/* not used?
.col-lg h1 {
  font-size: 16px;
  font-family: Lato;
  padding: 0 0;
  margin: 0 0;
  font-weight: 900;
  font-size: 1.5em;
}
*/


.col-lg {
background-color: rgba(255, 250, 250, .85);
  border-radius: 8px;
  margin: 15px 15px;
  padding: 15px 15px;
  text-align: center;
  border: 1px solid #ddd;
  max-width: 369.328px;
  min-width: 309.328px;
}


.bottomleft {
  position: absolute;
  bottom: 0px;
  left: 15px;
  display: block;
}

.topright {
  position: absolute;
  top: 10px;
  right: 10px;
}

#search {
  border-radius: 8px;
  float: right;
  margin-bottom: 0;
  margin-left: 0;
  margin-top:12px;
/*  position: relative;*/
  right: 0;
  top: 0px;
  padding: 5px 5px;
  border: none;
  background: rgba(255, 255, 255, 1);
}



#search input[type=keyword] {
  border: 1px solid #ddd;
  padding: 2px;
  background: rgba(255, 250, 205, 0);
  width: 200px;
  border-radius: 4px;
  border-color: #ccc;
  vertical-align: bottom;
}


.btn {
  background-color: rgba(255, 250, 250, 0);
}

.fa-arrow-left {
  color: dimgray;
  font-size:0.9em;  
}



.fa {
  color: #2c292a;
}

.checkboxes input {
  vertical-align: top;
  padding: 0px;

}
.checkboxes span {
  vertical-align: top;
}


#search button {
  height: 26px;
  margin-top: 2px;
  margin-left: 0px;
 
}

.row {
/*    position: relative;*/
  margin-left: 0px!important;
  margin-right: 0px!important;
}

.row2 {
    position: relative;
}


.right{
    position: absolute;
    right: 0;
}

a {
  text-decoration: none;
}

/* height of the gutter */
.noUi-horizontal {
  height: 7.5px;
  padding-right: 15px;
}

/*
.noUi-base {
    width:100px;
}
*/

.noUi-base .noUi-handle {
  border: 1px #ddd solid;
  border-radius: 12px;
  box-shadow: none;
  font-size: 12px;
/*circle height*/
  height: 15px;
  padding: 0;
/*  position: absolute;*/
  text-align: left;
  width: 18.5px;
  z-index: 2;
}
/*.noUi-horizontal .noUi-base .noUi-handle {
  cursor: ew-resize;
}*/

.noUi-base .noUi-handle:hover {
  background-color: lightgrey;
}

.noUi-base .noUi-handle:focus {
  outline: none;
}

.noUi-base .noUi-handle.noUi-active {
  background-color: darkgrey;
  z-index: 3;
}
.noUi-base .noUi-handle::before {
  display: none;
}
.noUi-base .noUi-handle::after {
  display: none;
}


.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}


#sidebar {
    min-width: 310px;
    max-width: 310px;
    margin-top:10px;
    margin-left:5px;
    position:absolute;
    overflow-y: auto;
    overflow-x: hidden;
    direction: rtl;
    top: 0;
    bottom: 5px;
}

/* uses relative so the button has an anchor*/
#innerSidebar {
    position:relative;

}

.attr {
  bottom: -10px;
  padding: 3px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 15px rgba(255,255,250,0.6);
  border-radius: 3px;
  z-index: 9999;
   font-family: Lato, "Open sans", Helvetica, Arial, sans-serif;
}
/*


/*the button when the panel is closed*/
.toggle-side{
  display: none;  
  position: absolute;
  padding: 0px;  
  width: 40px;
  height: 30px;
  position: fixed;
  background-color:rgb(255,255,255,1)!important; 
  border: rgba(0,0,0,0.2) 2px solid;
  margin: 10px !important;
  z-index: 999999 !important;
}


/*text alignment within the open panel button*/
.toggle-side .fas{
    vertical-align: bottom; 
}


.leaflet-bottom .leaflet-left{
    pointer-events:all; 
    position: absolute;
}


.toggle-side:hover{
  cursor: pointer;
}

.toggle-side .icon-bar {
  border-radius: 1px;
  display: block;
  height: 2px;
  width: 22px;
  margin-top: 3px;
  vertical-align: middle;
}



/*the button when the panel is open*/
.close-side{
  position:absolute; 
  margin: 7px;
  z-index: 9999;
  padding: 4px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: #2c292a;
  vertical-align: top;
  background-color: white;
}

.legend {
    font-family: Lato, "Open sans", Helvetica, Arial, sans-serif;
    line-height: 18px;
    color: #555;
    background: rgba(255, 250, 250, .9);
    padding: 8px;
    margin-bottom: 5px;
    margin-left: 25px;
    border: 1px solid #ddd;
    position: relative;
    border-radius: 8px;
    word-spacing: 1px;
}
.legend i {
    width: 12px;
    height: 12px;
    float:left;
    margin-top: 3px;
    margin-left: 8px;
    margin-right: 8px;
    opacity: 1;
    word-spacing: 1px;
    align-content: center;


}



html {
    overflow: scroll;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 0px;  /* remove scrollbar space */
    background: transparent;  /* optional: just make scrollbar invisible */
}
/* optional: show position indicator in red */
::-webkit-scrollbar-thumb {
    background: #FF0000;
}

#topnav {
  height: 90px;
}

/*message for mobile only*/
.mobileShow { display: none;}
/*message for desktop only*/
.mobileHide { 
       display: inherit;
    }

/* Smartphone Portrait and Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){ 
  .mobileShow {
      display:inherit;
      margin-left: 0px;
    }
    /*message for when NOT mobile*/
   .mobileHide { 
       display: none;
    }
}


@media (max-width: 768px) {
    #sidebar {
        display: none;
        overflow-y: scroll;
        padding-left: 50px;
        height:auto;
    }
   

    #nsrc {
     padding-left: 0;
    }
    
    #search{
        float:left;
        position: relative;
    }
    
    /* h1 used for title*/
    .h1, h1 {
        font-size: 22px;
    }
    
    #map {
      height: 60vh;
    }
    
    .widget{
        background: rgba(255, 250, 250, .95);
    }
}


/* SAVE MAP FILE TYPE DROPDOWN */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  cursor: pointer;
  display: none;
  position: absolute;
  border-radius: 4px;
  right: 0;
  background-color: white;
  min-width: 60px;
  box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
  z-index: 100;
}

.dropdown-content a {
  color: black;
  font-size: 14px;
  text-align: center;
  padding: 6.5px 17px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  border-radius: 4px;
}

.dropdown:hover .dropdown-content {
  display: block;
}