/*
 * BASIC STYLES
 */
*,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    height: 100vh;
    overflow: hidden;
    font-family: "K2D", sans-serif;
  }
  .show {display: block !important;}
  .hide{display: none !important;}

  /*
   * MISC 
   */

/*
 * TOGGLE SLIDING PANELS
 */
.tglp{
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
}
/*
 * TOGGLE BUTTONS
 */
.tglbtn{
  position: absolute;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 5px;
  border: 1px solid transparent;
  z-index: 3;
}
.tglbtn span{ margin-left: -14px; }
.tglbtn span,
.tglbtn span::before,
.tglbtn span::after {
  position: absolute;
  content: "";
  width: 28px;
  height: 2.5px;
  border-radius: 20px;
  transition: 300ms cubic-bezier(0.4, 0, 0.175, 1);
}
.tglbtn span::before { top: -8px; }
.tglbtn span::after { top: 8px; }
.tglbtn.active > span {
  background: transparent;
}
.tglbtn.active > span::before, .tglbtn.active > span::after {
  top: 0px;
}
.tglbtn.active > span::before {
  transform: rotate(-225deg);
}
.tglbtn.active > span::after {
  transform: rotate(225deg);
}
.tglbtn.active:hover{
  border-color: #005c9c;
  border-radius: 5px;
}


/*
 * main body content 
 */

.container{
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.nav{
  position: relative;
  height:48px;
  background:black;
  text-align:center;
  color:whitesmoke;
  display:none;
}
.leaf{
  height: 100%;
  position: relative;
}
.menul{
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 250px;
}
.mapbox{
  background:#3382330f;
  position: absolute;
  width: calc(100vw - 250px);
  height: 100%;
  left: 250px;
  transition: 290ms ease-out;
  calc(100vh - 49px);
}
.mapbox.full{
  width: 100vw;
  left: 0;
}

/*
 * LEFT SIDE
 */

/* MENU TOGGLE BUTTON */
.hmbrgrx {
  top: 5px;
  left: 10px;
  height: 28px;
  width: 28px;
  padding: 20px 18px;
  background: #005c9c;
  transition: 300ms cubic-bezier(0.77, 0, 0.175, 1);
}
.hmbrgrx:hover {
  background:  #fafafa;
  border-color: #005c9c;
}
.hmbrgrx.active {left:calc(250px - 40px); background:inherit;}
.hmbrgrx span,
.hmbrgrx span::before,
.hmbrgrx span::after {
  background: #fafafa;
}
.hmbrgrx:not(.active):hover span,
.hmbrgrx:not(.active):hover span::before,
.hmbrgrx:not(.active):hover span::after {
  background: #005c9c;
}
.hmbrgrx.active > span::before, .hmbrgrx.active > span::after {
  background: #005c9c;
}

/* MENU - SLIDING PANEL*/
.menu {
  left: 0;
  color: #373746;
  background: whitesmoke;
  width: 250px;
  padding: 15px;
 /* justify-content: space-between;*/
  gap: 2rem;
  transition: 300ms left ease-out;
  z-index: 2;
  border-right: 1px solid #ccc;
}
.menu.out {
  left: -250px;
}
.menu p, .lgndb p {
  margin-top: 1rem;
  font-weight: bold;
}

/* MENU - display */

/* LEGEND - SLIDING PANEL */
#lgd {
  position: absolute;
  left: 250px;
  width: max-content;
  min-width: 110px;
  max-width: 250px;
  height: fit-content;
  transition: 290ms ease-out;
  transition: 290ms left cubic-bezier(0.77, 0, 1.175, 1);
  word-wrap: break-word;
}
  
#lgd.alone { left: 0; }
#lgd.out {z-index: 1;}

.lgndb {
  background: #f5f5f5a3;
  font-size: 0.9rem;
  padding: 10px;
  margin-top: 60px;
  transition: 300ms ease-out;
  border-left: 1px solid #e3e3e3;
  transition: 200ms opacity ease;
  opacity: 1;
}
.lgndb.out {
  position: absolute;
  opacity: 0;
}
.lcont{
  display:flex;
  flex-direction: column;
}

/* LEGEND TOGGLE BUTTON */
.lgndx {
  top: 60px;
  left: 0;
  height: 40px;
  width: 46px;
  background: #00000070;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  transition: width 300ms cubic-bezier(0.5, 2, 0.6, 1);
}
.lgndx:not(.active):hover {
  background: #fafafa;
}
.lgndx:not(.active):hover svg path, .lgndx:not(.active):hover svg ellipse { 
  stroke: #005c9c !important; 
}
.lgndx.active {
  height: 28px;
  width: 28px;
  background: inherit;
  right: 0;
  left: auto;
  padding: 20px 18px;
}
.lgndx.active > span::before, .lgndx.active > span::after {
  background: #005c9c;
}
.lgndx span, .lgndx span::before, .lgndx span::after {
  transition: none;
}
.lgndx svg path, .lgndx svg ellipse { stroke: white !important; }
.lgndx svg {
  width: 32px;
  margin-left: 10px;
}

/* MENU - content*/
.slctwrp {
  width: 100%;
  position:relative;
  margin-top: 5px;
}
.dsplbl{
  font-size:0.8rem;
  text-transform: uppercase;
  color: #777;
}
.layers{
  min-height: 260px;
}
.layer-list {
	min-height: fit-content;
  /*
  height: calc(100% - 1rem);
  overflow: scroll;
  */
}
:root{--select-border: #777;}

.menu select {
  width: 100%;
  min-width: 15ch;
  max-width: 30ch;
  border: 1px solid var(--select-border);
  border-radius: 0.25em;
  padding: 0.25em 0.5em;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.1;
  background-color: #fff;
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
  color: #757575;
  color: #0E0E10;
}



.subslctwrp{
  margin-left: 10px;
}
.subslctwrp .c-flow{ color:#757575; margin:10px 0 0px 10px; }
.frCtgry {
  width:100%
  height: 0;
  transition: height 2s ease-out;
}
.frCtgry.c-rain{
  display:flex;margin-top:10px;
}
.frCtgry .fcsb{
  font-size:0.8rem;
  // text-transform: uppercase;
  color: #777;
  align-content: center;
  margin-right: 5px;
}

/* select sensor filter */
      .snsrsfltr{
        position: relative;
        display: inline-block;
      }
#sfbtn {
  width: 100%;
  min-width: 15ch;
  max-width: 30ch;
  border: 1px solid #777;//var(--select-border);
  border-radius: 0.25em;
  padding: 0.25em 0.5em;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  line-height: 1.1;
  background-color: #fff;
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
  color: #0E0E10;
}
#sfbtn.select {
  background-color: #3e8e41;
}
#sfbtn:after {
  content: "\25be";
  float: right;
}


#sfdrpdwn {
  display: none;
  position: absolute;
  background-color: #f6f6f6;
  width: fit-content;
  overflow: auto;
  border: 1px solid #888;
  border-top: none;
  border-radius: 5px;
  width: max-content;
  z-index: 2;
}
svg#srch-i {
  height: 20px;
  width: 20px;
  position: absolute;
  margin-top: 7px;
  margin-left: 3px;
}
#srch {
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 4px 5px 5px 25px;
  line-height: 2;
  width: 100%
}
#srch:focus {outline: 3px solid #ddd;}

#sfdrpdwn ul{
  overflow-y: scroll;
}

#sfdrpdwn li {
  color: black;
  text-decoration: none;
  display: block;
  background-color: #fff;
  padding: 0.25em 0.5em;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  line-height: 1.1;
  color: #373746;
}
#sfdrpdwn li:hover {
  background-color: #ddd;
}
      .snsrsfltr li:hover {
        background-color: red;
        cursor: pointer;
      }

#sfdrpdwn li.selected {
  background-color: #ddd;
}






/* The checkbox container */
.chkbx {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.chkbx.sm {
  padding-left: 20px;
  margin-bottom: 0;
  font-size:0.8rem;
  margin-top: 10px;
}

/* Hide the browser's default checkbox */
.chkbx input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border: 1px solid #ddd;
}
.checkmark.sm {
  height: 15px;
  width: 15px;
}

/* On mouse-over, add a grey background color */
.chkbx:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.chkbx input:checked ~ .checkmark {
  background-color: #2196F3;
  border: none;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.chkbx input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.chkbx .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.chkbx .checkmark.sm:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  left: 5px;
  top: 2px;
  width: 5px;
}
.words {
  vertical-align: middle;
  color: #777;
  padding-bottom: 5px;
}
.chkbx:hover input ~ .words {
  color: #373746;
}
.chkbx input:checked ~ .words {
  color: #373746;
}

.c-flow input:checked ~ label {
  color: #0E0E10;
}
.display .dsplchek{ text-transform: uppercase;}


/*
 * custom swithches and checks
 */
.chkbxccd{
  max-height: 0;
  overflow: hidden;
  padding-left: 30px;
  transition: max-height 0.4s ease;
  font-family: "Habibi", serif;
}
.dsplchek input[type="checkbox"]:checked ~ .checkmark ~ .words ~ .chkbxccd {

  max-height: 80px;
}

.switch {
  position: relative;
  display: inline-block;
}
.switch-input {
  display: none;
}
.switch-label {
  display: block;
  width: 48px;
  height: 24px;
  text-indent: -150%;
  clip: rect(0 0 0 0);
  color: transparent;
  user-select: none;
}
.switch-label::before,
.switch-label::after {
  content: "";
  display: block;
  position: absolute;
  cursor: pointer;
}
.switch-label::before {
  width: 100%;
  height: 100%;
  background-color: #dedede;
  border-radius: 9999em;
  -webkit-transition: background-color 0.25s ease;
  transition: background-color 0.25s ease;
}
.switch-label::after {
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.45);
  -webkit-transition: left 0.25s ease;
  transition: left 0.25s ease;
}
.switch-input:checked + .switch-label::before {
  background-color: #89c12d;
  background-color: #2196F3;
}
.switch-input:checked + .switch-label::after {
  left: 24px;
}



/* LEFT SIDE MOBILE */

@media only screen and (max-width: 600px) {
  .menu.out {
    width: 250px;
    left: -250px;
  }
  .hmbrgrx.active { left: calc(250px - 38px);}
}

@media only screen and (max-width: 500px) {
  #algd:not(.alone) {display:none;}
}


