        
span.loading {
            display: block;
            text-align: center;
            font: 300 italic 72px/400px "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
}


html, body {
    margin: 0;
padding:0;
overflow:hidden;
} 

.noselect {
/*    -webkit-touch-callout: none;
      -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; */
}

#sidebar {
    background: #223741;
}

#sidebar a, #sidebar select {
    text-decoration: none;
    font-size: 23px;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

#sidebar a {
    color:#d5d5d5;
}

#sidebar a:hover {
    color:white;
}

.sidebar-wrapper {
  position: relative;
  height: 100%;
  overflow: auto;
  margin:15px;
}

/*
#nav-toggle { position: fixed; 
              right: 5px; top: 2px; z-index:1; 
	      background-color: rgba(240, 240, 240, 0.9);
	      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);}

#nav-toggle { cursor: pointer; padding: 13px 33px 16px 8px; }
#nav-toggle span, #nav-toggle span:before, #nav-toggle span:after {
  cursor: pointer;
  border-radius: 1px;
  height: 4px;
  width: 26px;
  background: black;
  position: absolute;
  display: block;
  content: '';
}
#nav-toggle span:before {
  top: -8px; 
}
#nav-toggle span:after {
  bottom: -8px;
}
*/
#mapheader {
    display: none;
}

#map_wrap {
position:fixed;
top:0px;
right:0px;
height:100%;
width:100%;
}


#map_div {
width: 100%;
height: 100%;
}


#centerchartcontainer {
    width:420px;
    height:420px;
    position:absolute;
    left:50%;
    top:50%;
    margin-left:-210px;
    margin-top:-210px;
    border-color:white;
    background:white;
    overflow:hidden;
    border:5px;
    border-radius:10px;
    display:none;
    z-index:998;
    background-color:#aaaaaa;
}

#centerchart {
    max-width:400px;
    width:400px;
    height:400px;
    position:absolute;
    left:50%;
    top:50%;
    margin-left:-200px;
    margin-top:-200px;
    overflow:hidden;
    display:none;
    z-index:999;
}

#centerchartimage {
    position:absolute;
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    transition-duration: 0.5s;
}


.minichartcontainer {
    width:210px;
    height:210px;
    position:absolute;
    //left:50%;
    //margin-left:-105px;
    //margin-top:-210px;
    border-color:white;
    background:white;
    overflow:hidden;
    //border:5px;
    border-radius:5px;
    display:none;
    z-index:998;
    background-color:#dddddd;
}

#waiting {
    width:50px;
    height:50px;
    position:fixed;
    left:0px;
    bottom:20px;
    display:none;
    z-index:999;
}

.minichart {
    max-width:200px;
    width:200px;
    height:200px;
    position:absolute;
    //left:50%;
    //top:50%;
    //margin-left:-100px;
    //margin-top:-205px;
    overflow:hidden;
    display:none;
    z-index:999;
}

.minichartimage {
    position:absolute;
    top:0px;
    left:0px;
    height:100%;
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    transition-duration: 0.5s;
}

#activeinfo {
  width:280px;
  height: auto; 
  font: 300 13px Roboto, Arial, sans-serif;
  padding:5px 0px 5px 5px;
  width: 306px; 
  background-color:#ffffff;
  margin-top:3px;
  display:none;

}

#activeinfoclose {
    cursor: pointer;
    position:absolute;
    top: 3px;
    right: 0px;
    padding: 12px;
}

.activeinfoheaderclass
{
    display:inline-block;
    width:260px;
}

.activeinfoheaderinnerclass
{
    font-weight: bold;
    overflow:hidden;
    text-overflow:ellipsis;
}

.activeinfosourcesclass
{
    overflow:inherit;
    //white-space:initial!important;
    font-size:9px;
    text-align:right;
}

.activeinfosharelineclass
{
    width:290px;
    height:30px;
}

.activeinfosharelineinnerclass
{
    width:290px;
    padding-top:10px;
    position:relative;
    display: inline-block;
}

.activeinfoshareiconsclass
{
    position:relative;
    bottom:5px;
}

.activeinfoplacename
{
  max-width:255px;
  overflow:hidden;
  text-overflow:ellipsis;
  //white-space:nowrap;
}

.sharetext
{
    max-width:210px;
    float:bottom;
    bottom:0px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    display:inline-block;
}

.flyaway {
    text-decoration: none;
}

#cd-zoom-in, #cd-zoom-out, #nav-toggle {
  height: 32px;
  cursor: pointer;
  margin-right: 5px;
margin-top:2px;
//background-color: rgba(211, 104, 104, 0.9);
  background-color: rgba(240, 240, 240, 0.9);
  background-repeat: no-repeat;
  background-size: 32px 64px;
}

#cd-zoom-in, #cd-zoom-out {
  background-image: url("resources/cd-icon-controller-black.svg");
  width: 40px;
}

#nav-toggle {
    margin-top: 0px;
}

#nav-toggle { padding: 13px 27px 16px 6px; }
#nav-toggle span, #nav-toggle span:before, #nav-toggle span:after {
  cursor: pointer;
  border-radius: 1px;
  height: 4px;
  width: 26px;
  background: black;
  position: absolute;
  display: block;
  content: '';
}
#nav-toggle span:before {
  top: -8px; 
}
#nav-toggle span:after {
  bottom: -8px;
}


#toggle-fullscreen {
  height: 32px;
  width: 40px;
  cursor: pointer;
//border-radius:16px;
//margin-left: 5px;
margin-top:5px;
//background-color: rgba(211, 104, 104, 0.9);
background-color: rgba(240,240,240, 0.9);
  background-repeat: no-repeat;
  background-position: center; 
background-size: 28px 28px;
  background-image: url("resources/fullscreen-icon.png");
}

#current-location {
  height: 32px;
  width: 32px;
  cursor: pointer;
border-radius:16px;
margin-left: 4px;
  margin-right: 8px;
margin-top:5px;
//background-color: rgba(211, 104, 104, 0.9);
background-color: rgba(240,240,240, 0.9);
  background-repeat: no-repeat;
  background-position: center; 
background-size: 18px 18px;
  background-image: url("resources/location-icon-black.png");
}

.no-touch #cd-zoom-in:hover, .no-touch #cd-zoom-out:hover, .no-touch #current-location:hover, .no-touch #toggle-fullscreen:hover {
  background-color: #d36868;
}

#cd-zoom-in {
  background-position: 50% 0;
  margin-top: 10px;
  margin-bottom: 0px;
}

#cd-zoom-out {
  background-position: 50% -32px;
}

.tooltipmarker {
  border-bottom:1px 
   dotted #999; 
  padding-bottom:1px;
}

.clickable_text {
  text-decoration: underline;
  margin-left:10px;
  font-size: 10px;
  cursor:pointer;  
}
.clickable_text:hover {
  color:#72E572;
}

.legendsquare {
 display:inline-block;
  width: 14px;
  height: 14px;
   border-radius:7px;
   position:relative;
   margin:0px 1px;
  z-index:1;
   border: solid 1px #000;
 top:1px;
}

#legend {
margin-bottom:22px;
color:black;
font-size: 18px; font-family: Trebuchet, Arial;
/*height:22px;*/
padding: 3px 6px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
background-color:rgba(239, 239, 239, 0.8);
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;

}

#legendwrapper {
position:fixed;
display:inline-block;
margin-left:0px;
padding:2px 2px;
color:black;
font-size: 12px; font-family: Trebuchet, Arial;
text-align:left;
height:54px;
background-color:rgba(239, 239, 239, 0.8);
display:none;
}

#legendwrapper br {height:4px;}


#perfectwrapper {
padding : 5px 5px 0px 0px;
margin-right:5px;
//background-color:rgb(239, 239, 239);
background-color:rgba(239, 239, 239, 0.8);
//display:inline-block; 
border-style:solid;
border-width:2px;
border-color:rgb(0,0,0);
//border-color:rgb(239.239,239);
//border-radius:4px;
bottom:15px;
right:0px; 
z-index:1;
position:fixed;
font-size: 14px; font-family: Trebuchet, Arial;font-weight:bold;
    height:320px;
    width:240px;
}

#bottomselectorwrapper .bottomselectorbuttonwrapper .bottomselectorbutton {
    display: none;
}


.ui-button-text-only .ui-button-text {
 padding: 0.1em 0.8em;
  }


#dragbar {
background-color:rgba(190, 190, 190, 1.0);
margin-top:-5px;
margin-right:-5px;
height:31px;
}

#radiolist
{
    margin-top:-22px;
    padding-top:0px;
    margin-left:5px;
    font-size: 11px; 
    font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;   
}

fieldset {
  //font-family: Trebuchet, Arial, sans-serif; font-weight: normal;
margin: 0px 5% 0px 5%;
border: 0; 
  //  font-size: 12px; 
  display:inline-block;
}

    fieldset {
      border: 0;
    }
    label {
      display: block;
      margin: 30px 0 0 0;
    }
    select {
      width: 320px;
    }
    .overflow {
      height: 200px;
      bottom:2.5%;
    }

.selectlistclass {
    display:none;
   width:100%; /* selectlist is not responsive element. Width must be updated on resize*/
   left:-1000px; /* Hide at first */
}

#selectlistleftwrapper #selectlistselectionwrapper {
    text-align:center;
}


.ui-selectmenu-button span.ui-selectmenu-text {
  font-size: 18px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
  box-shadow: 0px 17.5px 0px rgba(0,0,0,0.08) inset;
  text-align:center;
 padding:6px 24px 6px 12px;
 border: 2px solid #666666; border-radius: 34px;
}

#perfect {
font-size: 12px; font-family: Trebuchet, Arial;font-weight:bold;
    color: black;
display:block;position:absolute;top:10px;bottom:0;height:auto;width:100%
}

#perfectlist {
display:block;position:absolute;top:52px;bottom:5px;right:0px;left:5px;
}


#perfect .bar
{
    float:left;
    position:relative;
    height:22px;
    width:100%;
    margin-left:0px;
}
#perfect .bar .slideup
{
    position:absolute;
    top:5px;
    height:18px;
  margin-left:24%;
  //max-width:150px;

    opacity: 0.4;
    filter: alpha(opacity=40); /* For IE8 and earlier */

    border:0px solid #000;
  
}
#perfect .bar  span
{
  margin-left:25%;
  margin-top:7px;
left:-25px;
    position:absolute;
  text-align:right;
width:25px;
max-width:20px;
}

#perfect .bar  label
{
  margin-top: 7px;
  //left:25%;
  //right:10px;
  margin-left:25%;
  max-height: 22px;
  max-width:70%;
  position:absolute;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#perfect #heading {
position:relative;
   -moz-transform: translateY(-50%) rotate(-90deg);
  -webkit-transform: translateY(-50%) rotate(-90deg);
  transform:   translateY(-50%) rotate(-90deg);
writing-mode: lr-tb;
  font-size:13px;
  font-weight:bold;
  letter-spacing: 0px; 
top:-6500px; // Out of view
  // top:50%;
  //left:-80px;
  max-height:0px;
  //width:180px;
  white-space:nowrap;
  float: left;
  z-index:10;
  background-color:blue !important;
}


h3 {
}

.sliderintro {
  margin-top:20px;
  margin-bottom:18px;
display:block;
}

.slidertext {
  cursor:default;
  text-align:center;
  color: #272727;
  position:relative;
 }

.amountnums {
 font-weight: bold;
}

.hideamountnums {
 font-weight: bold;
display:none;
}

#womenrange {
position: relative;
}

#menrange {
position:relative;
}

#bmirange {
color: green;
color: #272727;
position:relative;
}

#heightrange {
color: green;
color: #272727;
position:relative;
}

.panelslider  {
margin-left:5px;
margin-right:5px;
}

.stop-scrolling {
  height: 100%;
  overflow: hidden;
}

#sidebarclose
{
  position:absolute;
  right: 0px;
  top:0px;
} 


#leftpanel {
position:fixed;
overflow-x: hidden;
top: 10px;
left: 5px;
padding-left: 15px;
padding-right: 15px;
width:220px;
white-space: nowrap;
z-index: 3;
border-style:solid;
border-width:2px;
border-color:rgb(0,0,0);
//border-radius:4px;
background-color:rgb(239, 239, 239);
background-color:rgba(239, 239, 239, 0.8);
max-height: calc(100% - 60px);
text-align:left;
font-size: 13px; color: black; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
overflow:hidden;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;

}

#leftpanel .subheader {
    font-size:11px;
    font-weight:normal;
}
  


.rangeslider {
height:10px; 
margin-left:20px; 
margin-right:20px;  
margin-top:-6px;
color: green;
position:relative;
 }

.ui-slider .ui-slider-handle {
    height: 25px;
    width: 25px;
 top:-8px;
   margin-left: -12px; //add this
}

/* Helper for making sure info infowindow does not show scrollbar
   http://stackoverflow.com/questions/19954893/google-map-infowindow-displays-scroll-bars-in-google-chrome */
.scrollFix {
 color: red;
    line-height: 3.35;
    overflow: hidden;
    white-space: nowrap;
 }

.gm-style-iw > div { overflow: hidden !important; }
.gm-style-iw { overflow: hidden !important; }

.infowindowclass{
  //-webkit-user-select:none;
  //  -moz-user-select:none;
  //  -ms-user-select:none;
  //  user-select:none;
  z-index:999;
}


hr {
  //display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 4px 0;
    padding: 0;
}

  .labels {
     color: black;
     background-color: white;
     font-family: Roboto,Arial,sans-serif;
     font-size: 13px;
     text-align: center;
   padding: 3px 7px 3px 7px;
     border: 1px solid #000;
     white-space: nowrap;
   }

     .controls {
       margin-top: 16px;
        border: 1px solid transparent;
        border-radius: 2px 0 0 2px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        height: 32px;
        outline: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        z-index: 999;
      }

      #pac-input {
        margin-top: 5px;
        margin-left: 5px;
        margin-right: 54px;

        background-color:rgba(239, 239, 239, 0.9);
        padding: 0 11px 0 13px;
width: 40px;
background-image: url("images/searchglass32.png");
background-repeat:no-repeat;
background-position: center; 
        font-family: Helvetica;
        font-size: 18px;
        font-weight: 300;
color:transparent;
        text-overflow: ellipsis;
        z-index: 999;
	/* transition */
-webkit-transition-duration: 0.2s;
-moz-transition-duration: 0.2s;
transition-duration: 0.2s;

      }

      #pac-input:focus {
        border-color: #4d90fe;
        padding-left: 14px;  /* Regular padding-left + 1. */
color:inherit;
        width: 211px;
background-image: none;
      }

      .pac-container {
        font-family: Helvetica;
        width: 211px;
      }

      #type-selector {
        color: #fff;
        background-color: #4d90fe;
        padding: 5px 11px 0px 11px;
      }

      #type-selector label {
        font-family: Helvetica;
        font-size: 13px;
        font-weight: 300;
      }

      #target {
        width: 300px;
      }



.onoffswitch {
    position: relative;
    width: 171px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}

.onoffswitch-checkbox {
   display: none;
}

.onoffswitch-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #666666; 

border-radius: 35px;
}

.onoffswitch-inner {
    display: block; width: 200%; margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 35px; padding: 0; line-height: 35px;
    font-size: 18px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
  border-radius:35px;
    box-shadow: 0px 17.5px 0px rgba(0,0,0,0.08) inset;
}

.onoffswitch-inner:before {
  content: "";
  text-align:center;
  padding-right: 20px;
    background-color: #6BB2ED; color: #FFFFFF;
    background-color: #7272E5; color: #EFEFEF;
      border-radius: 35px 0 0 35px;
}

.onoffswitch-inner:after {
    content: "";
    text-align:center;
    padding-left: 20px;
    background-color: #F50505; color: #FFFFFF;
    background-color: #E57272; color: #EFEFEF;
    border-radius: 0 35px 35px 0;
}

.onoffswitch-switch {
display: block; width: 25px;height:25px; margin: 5px;
    background: #FFFFFF;
    border: 2px solid #666666; border-radius: 35px;
    position: absolute; top: 0; bottom: 0; right: 132px;
    -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s; 
    background-image: -moz-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -webkit-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -o-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%);
    box-shadow: 0 1px 1px white inset;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
    right: 0px; 
}


/* Another */



.onoffswitch2 {
    position: relative; width: 171px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}

.onoffswitch2-checkbox {
    display: none;
}

.onoffswitch2-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #666666; 
border-radius: 35px;
}

.onoffswitch2-inner {
    display: block; width: 200%; margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}

.onoffswitch2-inner:before, .onoffswitch2-inner:after {
    display: block; float: left; width: 50%; height: 35px; padding: 0; line-height: 35px;
    font-size: 18px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
    border-radius: 35px;
    box-shadow: 0px 17.5px 0px rgba(0,0,0,0.08) inset;
}

.onoffswitch2-inner:before {
   content: "";
  //padding-left: 28px;
  //float:left;
  text-align:center;
   padding-right: 20px;
    background-color: #40E030; color: #FFFFFF;
    background-color: #72E572; color: #000000;
    border-radius: 35px 0 0 35px;
}

.onoffswitch2-inner:after {
   content: "";
  //padding-right: 50px;
  text-align:center;
   padding-left: 20px;
    background-color: #ffffff; color: #000000;
    border-radius: 0 35px 35px 0;
}

.onoffswitch2-switch {
    display: block; width: 25px;height:25px; margin: 5px;
    background: #FFFFFF;
    border: 2px solid #666666; border-radius: 35px;
    position: absolute; top: 0; bottom: 0; right: 132px;
    -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s; 
    background-image: -moz-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -webkit-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -o-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%);
    box-shadow: 0 1px 1px white inset;
}

.onoffswitch2-checkbox:checked + .onoffswitch2-label .onoffswitch2-inner {
    margin-left: 0;
}

.onoffswitch2-checkbox:checked + .onoffswitch2-label .onoffswitch2-switch {
    right: 0px; 
}

/* Another */


.onoffswitch3 {
    position: relative; width: 171px;
    -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}

.onoffswitch3-checkbox {
    display: none;
}

.onoffswitch3-label {
    display: block; overflow: hidden; cursor: pointer;
    border: 2px solid #666666; 
border-radius: 35px;
}

.onoffswitch3-inner {
    display: block; width: 200%; margin-left: -100%;
    -moz-transition: margin 0.3s ease-in 0s; -webkit-transition: margin 0.3s ease-in 0s;
    -o-transition: margin 0.3s ease-in 0s; transition: margin 0.3s ease-in 0s;
}

.onoffswitch3-inner:before, .onoffswitch3-inner:after {
    display: block; float: left; width: 50%; height: 35px; padding: 0; line-height: 35px;
    font-size: 18px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
    border-radius: 35px;
    box-shadow: 0px 17.5px 0px rgba(0,0,0,0.08) inset;
}

.onoffswitch3-inner:before {
 content: "";
  //padding-left: 38px;
  text-align:center;
   padding-right: 20px;
    background-color: #40E030; color: #FFFFFF;
    background-color: #72E572; color: #000000;
    border-radius: 35px 0 0 35px;
}

.onoffswitch3-inner:after {
 content: "";
  //padding-right: 30px;
  text-align:center;
    background-color: #ffffff; color: #000000;
    border-radius: 0 35px 35px 0;
}

.onoffswitch3-switch {
    display: block; width: 25px;height:25px; margin: 5px;
    background: #FFFFFF;
    border: 2px solid #666666; border-radius: 35px;
    position: absolute; top: 0; bottom: 0; right: 132px;
    -moz-transition: all 0.3s ease-in 0s; -webkit-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s; 
    background-image: -moz-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -webkit-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: -o-linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%); 
    background-image: linear-gradient(center top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 80%);
    box-shadow: 0 1px 1px white inset;
}

.onoffswitch3-checkbox:checked + .onoffswitch3-label .onoffswitch3-inner {
    margin-left: 0;
}

.onoffswitch3-checkbox:checked + .onoffswitch3-label .onoffswitch3-switch {
    right: 0px; 
}

@media (max-width: 1023px) {

#map_wrap {height:100%;left:160px;right:0;width:auto;}

#centerchartcontainer {
    width:310px;
    height:310px;
    margin-left:-155px;
    margin-top:-155px;
}

#centerchart {
    max-width:300px;
    width:300px;
    height:300px;
    margin-left:-150px;
    margin-top:-150px;
}

#centerchartimage {
    height:100%;
}


  #allpanels {
    width:160px;
  //overflow:hidden;
position:fixed;
  text-align:center;
  //min-width:320px;
top:0;
height:100%;
width:160px;
display:block;
     }

#leftpanelcontainer {width:100%;height:50%; display:inline-block;}
#perfectwrappercontainer { width:100%; height:50%;display:inline-block;}

#leftpanel {
   vertical-align:top; /* crucial to remove unwanted space when display is inline-block */
   display: block;
   position:absolute;
   max-height:100%;
   height:auto;
   top:0;
   bottom:50%;
   left:0;
   right:0;
   text-align:left;
padding-left: 8px;
padding-right: 8px;
font-size: 12px; font-family: Trebuchet, Arial, sans-serif;
width:224px;
 }

#perfectwrapper {
    display: block;
    position:absolute;
    height:auto;
    top:50%;
    bottom:0;
    left:0;
right:0;
padding:0;
margin:0;
vertical-align:top; /* crucial to remove unwanted space when display is inline-block */
 text-align:left;
/* width:240x; */
font-size: 12px; font-family: Trebuchet, Arial;font-weight:bold;
      }

#perfect {
font-size: 12px; font-family: Trebuchet, Arial;font-weight:normal;
top:10px;
}

#perfectlist {
top:39px;
bottom:4px;;
}


.ui-button-text-only .ui-button-text {
 padding: 0.1em 0.4em;
  }


#dragbar {
background-color:rgba(190, 190, 190, 1.0);
margin-top:0px;
margin-right:0px;
height:22px;
bottom:0px;
}

#perfect .bar
{
  //    height:20px;
    margin-left:0px;
}

#perfect .bar .slideup
{
    top:5px;
  //    height:16px;
  //margin-left:25%;
  }

#perfect .bar  span
{
  margin-left:38px;
  //margin-top:7px;
//width:25px;
//max-width:20px;
  //font-size: 14px; 
}

#perfect .bar  label
{
  //margin-top: 7px;
  //left:44px;
  //max-height: 20px;
  //font-size: 15px; 
}


#perfect heading {
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    writing-mode: lr-tb;
  transform: rotate(270deg);
//top:-58px;
   //left:-88px;
  font-size: 12px; color: black; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
}

}

@media (max-width: 1023px) and  (min-width: 601px) {

#legend {
    margin-bottom: 35px;
}
    
#map_div {
  width: calc(100% - 245px);
}
  
.ui-selectmenu-button span.ui-selectmenu-text {
  font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
  box-shadow: 0px 12.5px 0px rgba(0,0,0,0.08) inset;
 padding:3px 1.6em 3px 0.6em;
 border-radius: 25px;
 }


.onoffswitch {
    position: relative; width: 131px;
}

.onoffswitch-inner:before, .onoffswitch-inner:after {
    display: block; float: left; width: 50%; height: 25px; padding: 0; line-height: 25px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-shadow: 0px 12.5px 0px rgba(0,0,0,0.08) inset;
}

.onoffswitch-inner:after {
  padding-left:10px;
}

.onoffswitch-switch {
display: block; width: 15px;height:15px; margin: 5px;
    border: 2px solid #666666; border-radius: 25px;
    position: absolute; top: 0; bottom: 0; right: 102px;
}

/* Another */



.onoffswitch2 {
    position: relative; width: 131px;
}

.onoffswitch2-inner:before, .onoffswitch2-inner:after {
    display: block; float: left; width: 50%; height: 25px; padding: 0; line-height: 25px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-shadow: 0px 12.5px 0px rgba(0,0,0,0.08) inset;
}

.onoffswitch2-inner:before {
  padding-right: 15px;
  background-color: #72E572; color: #000000;
}

.onoffswitch2-inner:after {
   background-color: #ffffff; color: #000000;
}

.onoffswitch2-switch {
    display: block; width: 15px;height:15px; margin: 5px;
    border: 2px solid #666666; border-radius: 25px;
    position: absolute; top: 0; bottom: 0; right: 102px;
 }

/* Another */


.onoffswitch3 {
    position: relative; width: 131px;
 }

.onoffswitch3-label {
}

.onoffswitch3-inner:before, .onoffswitch3-inner:after {
    display: block; float: left; width: 50%; height: 25px; padding: 0; line-height: 25px;
    font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold;
    box-shadow: 0px 12.5px 0px rgba(0,0,0,0.08) inset;
}

.onoffswitch3-inner:before {
    background-color: #72E572; color: #000000;
}

.onoffswitch3-inner:after {
    background-color: #ffffff; color: #000000;
}

.onoffswitch3-switch {
    display: block; width: 15px;height:15px; margin: 5px;
    border: 2px solid #666666; border-radius: 25px;
    position: absolute; top: 0; bottom: 0; right: 102px;
}

#waiting {
    left:250px;
}

}



@media (max-width: 600px) {

#legend {
    margin-bottom: 35px;
}

#map_div {
    height: calc(100% - 70px);
}
      

#leftpanel, #leftpanel a {
    font-size: 20px;
}

#leftpanel .subheader {
    font-size:12px;
}
  
    #map_wrap {left:0; top:0; bottom:70px; width:100%; height:auto;}
#centerchartcontainer {
    width:210px;
    height:210px;
    margin-left:-105px;
    margin-top:-105px;
}

#centerchart {
    max-width:200px;
    width:200px;
    height:200px;
    margin-left:-100px;
    margin-top:-100px;
}


  #allpanels {
    width:100%;
    position:fixed;
    text-align:center;
    top:0%;
    bottom:80px;
    display:block;
  }

  #leftpanelcontainer {width:100%; top:0px; bottom:80px;display:none;}
  #perfectwrappercontainer { width:100%;top:0px;bottom:80px;;display:none;}

#perfectwrapper {
    position:fixed;
    height:auto;
    bottom:70px;
    top:0;
    left:0;
    right:0;
    width:auto;
    height:auto;
    border-width:0px;

      }

#selectlistperfect-button {
    top:-14px;
}

#perfect {
  font-size:20px;
}

#perfect .bar
{
    height:32px;
}
#perfect .bar .slideup
{
    height:28px;
  margin-left:16%;
}

#perfect .bar  span
{
  margin-left:17%;
  left:-45px;
  width:35px;
  max-width:35px;
}

#perfect .bar  label
{
  margin-left:17%;
  max-height: 22px;
  max-width:78%;
}

#perfect heading {
  font-size:18px;

}




#leftpanel {
    vertical-align:top; /* crucial to remove unwanted space when display is inline-block */
    position:fixed;
    height:auto;
    bottom:70px;
    top:0;
    left:0;
    right:100%;
    text-align:left;
    width:auto;
    border-width:0px;
    padding-left:20px;
    padding-right:20px;
 }

#bottom {
    position:fixed;
    height:70px;
  bottom:0px;
  width:100%;
  margin:0px;
  padding:0px;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}

#bottom .main {
  position: relative;
  background: white;
  height: 70px;
  width: 100%;
  margin: 10 auto;  
  padding: 0px;
  overflow: auto;
  display:inline-block;
}

#bottom .main div {
  cursor:pointer;
  background: blue;
  width: 85%;
  width: calc(100% - 10px);
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  position: absolute;
  font-size: 30px; color: white; font-family: Trebuchet, Arial, sans-serif;
  min-height:34px;
  text-align:center;
  top: 50%;
  left: 50%;
  padding: 10px 0px 10px 0px;
  overflow: auto;
   -webkit-transition-duration: 0.1s;
   -moz-transition-duration: 0.1s;
   transition-duration: 0.1s;
}

#bottom .main div:active {
    background: black;
}

#waiting {
    bottom:100px;
}


}

/* Leaflet classes for control positions */
.leaflet-left {
  left: 50%;
  transform: translate(-50%, 0%);
}

/* Shift boring gray ocean color to light blue */
.leaflet-tile-container img {
    filter: sepia(40%) hue-rotate(190deg) saturate(1000%);
}

.flip {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.goodshare img {
    width: 24px;
}