/* ===== GENERIC STYLES ===== */
html, body, div, datalist, output, section {
  display: grid;
}

body{
  background-image: url('./loader.gif');
  background-repeat: no-repeat;
  background-size: 20%;
  background-position-x: center;
  background-position-y: 30%;
}

/* ===== SLIDER WRAPPER WITH VISUAL TRACK & GLOW ===== */
.wrap {
  --rng: calc(var(--max) - var(--min));
  /* range between max and min values */
  --prg: calc((var(--val) - var(--min))/var(--rng));
  /* decimal progress */
  --prc: calc(var(--prg)*100%);
  /* percentage progress */
  --pos: calc(var(--val)*1rem);
  /* position from 1st ruler line (from val = min) */
  grid-gap: 1.25rem;
  /* space out ruler, track, thumb, output value */
  grid-template-columns: -webkit-max-content 0.1875rem 1.25rem -webkit-max-content;
  grid-template-columns: max-content 0.1875rem 1.25rem max-content;
  place-self: center;
  /* put in the middle of body grid cell along both axes */
  color: #fd8721;
  /*fallback  */
  font: 1em trebuchet ms, ubuntu, verdana, arial, sans-serif;
  transition: 0.35s;
  z-index: 9;
  position: absolute;
  top: -10%;
  transform: rotate(90deg);
}
@supports (color: color-mix(in lch, red 1%, tan)) {
  .wrap {
    /* if color-mix is supported */
    color: color-mix(in lch, #fff var(--prc), #fff);
    
  }
}
.wrap:not(:focus-within):not(:hover) {
  filter: sepia(1);
}
.wrap::before, .wrap::after {
  --pos-x: calc(100% + 1.875rem);
  /* x position of middle rounding circle centre */
  --pos-y: calc(var(--pos) + 7.4375rem);
  /* y position considering vertical overflow  */
  grid-area: 1/1/span 1/span 2;
  /* cover first two columns */
  place-self: center end;
  /* attach to middle right of rightmost cell they cover */
  z-index: 1;
  /* both on top of ruler */
  width: 4.5625rem;
  /* make it wide enough to contain the glow */
  height: calc(100% + 2*7.4375rem);
  /* long enough to contain the glow at min/ max */
  transform: scaley(-1);
  /* ugh... maybe I could have flipped the gradients instead */
  content: "";
}
.wrap::before {
  --sl: transparent calc(100% + -.5px), red calc(100% + .5px);
  /* mask gradient stop list */
  background: radial-gradient(circle 7.4375rem at var(--pos-x) var(--pos-y), currentcolor 4.0625rem, transparent);
  /* how mask compositing works:
   * https://css-tricks.com/mask-compositing-the-crash-course/ */
  -webkit-mask: radial-gradient(circle 4.25rem at var(--pos-x) var(--pos-y), var(--sl)), radial-gradient(circle 4.4375rem at 0 0, var(--sl)) 100% calc(var(--pos-y) + -1*5.9686681932rem)/4.4375rem 2.9199240082rem no-repeat, radial-gradient(circle 4.4375rem at 0 100%, var(--sl)) 100% calc(var(--pos-y) + 3.048744185rem)/4.4375rem 2.9199240082rem no-repeat;
  -webkit-mask-composite: source-out, source-over;
          mask: radial-gradient(circle 4.25rem at var(--pos-x) var(--pos-y), var(--sl)) subtract, radial-gradient(circle 4.4375rem at 0 0, var(--sl)) 100% calc(var(--pos-y) + -1*5.9686681932rem)/4.4375rem 2.9199240082rem no-repeat add, radial-gradient(circle 4.4375rem at 0 100%, var(--sl)) 100% calc(var(--pos-y) + 3.048744185rem)/4.4375rem 2.9199240082rem no-repeat;
}
.wrap::after {
  --sl: /* mask gradient stop list */
  	transparent calc(4.25rem + -.5px),
  	red calc(4.25rem + .5px) calc(100% + -.5px),
  	transparent calc(100% + .5px);
  background: linear-gradient(currentcolor calc(var(--pos-y) + 6rem), transparent calc(var(--pos-y) + 2*6rem)) #666;
  -webkit-mask: linear-gradient(red calc(var(--pos-y) + -1*5.9686681932rem + .5px), transparent 0 calc(var(--pos-y) + 5.9686681932rem + -.5px), red 0) 100%/0.1875rem 100%, radial-gradient(circle 4.4375rem at var(--pos-x), var(--sl)) 100% calc(var(--pos-y) + -1*3.048744185rem + -.5px)/100% calc(2*3.048744185rem + 1px), radial-gradient(circle 4.4375rem at 0 0, var(--sl)) 100% calc(var(--pos-y) + -1*5.9686681932rem)/4.4375rem 2.9199240082rem, radial-gradient(circle 4.4375rem at 0 100%, var(--sl)) 100% calc(var(--pos-y) + 3.048744185rem)/4.4375rem 2.9199240082rem;
          mask: linear-gradient(red calc(var(--pos-y) + -1*5.9686681932rem + .5px), transparent 0 calc(var(--pos-y) + 5.9686681932rem + -.5px), red 0) 100%/0.1875rem 100%, radial-gradient(circle 4.4375rem at var(--pos-x), var(--sl)) 100% calc(var(--pos-y) + -1*3.048744185rem + -.5px)/100% calc(2*3.048744185rem + 1px), radial-gradient(circle 4.4375rem at 0 0, var(--sl)) 100% calc(var(--pos-y) + -1*5.9686681932rem)/4.4375rem 2.9199240082rem, radial-gradient(circle 4.4375rem at 0 100%, var(--sl)) 100% calc(var(--pos-y) + 3.048744185rem)/4.4375rem 2.9199240082rem;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* ===== SLIDER WITH VALUE ===== */
[type=range] {
  --sel: 0;
  place-self: center;
  width: calc(var(--max)*1rem + 3rem);
  transform: rotate(-90deg);
  background: transparent;
  font: inherit;
  cursor: pointer;
  margin-right: 55px;
}
[type=range], [type=range]::-webkit-slider-runnable-track, [type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}
[type=range]:focus {
  outline: none;
}
[type=range]:hover, [type=range]:focus {
  --sel: 1 ;
}
[type=range]::-webkit-slider-runnable-track {
  height: 100%;
}
[type=range]::-moz-range-track {
  height: 100%;
}



/* [type=range]::-webkit-slider-thumb { */
  #slider::-webkit-slider-thumb {
  /* only add a top margin if the m flag is non-zero */
  /* margin-top: -2.375rem; */
  /* we use --sel to flip between normal & hover/ focus styles
   * detailed explanation 
   * https://css-tricks.com/dry-switching-with-css-variables-the-difference-of-one-declaration/ */
  --shl: 0 0 0 calc((1 - .375*var(--sel))*1rem) /* slightly decrease spread in hover/ focus case */
  			 hsla(0, 0%, 19%, var(--sel)) /* non-zero shadow alpha only in hover/ focus case */;
  box-sizing: border-box;
  border: none;
  /* get rid of Firefox border */
  padding: 0.625rem;
  /* to add space around bg limited to content-box */
  width: 3rem;
  height: 3rem;
  /* aspect-ratio: 1 doesn't work here in Firefox */
  border-radius: 50%;
  /* box-shadow: 0 0 0.5px black, inset 0 0 1px 1px rgba(255, 255, 255, 0.05), inset var(--shl), inset 0 0 0 calc(.5*0.42*(6rem + -2*0.625rem) + 0.625rem) #1f1f1f, 0.25rem -0.25rem 0.25rem #2a2a2a, -0.25rem 0.25rem 0.75rem #090909, var(--shl), 0.75rem -0.75rem 0.75rem #2a2a2a, -0.75rem 0.75rem 1.25rem #090909; */
  
  /* background: repeating-conic-gradient(from 60deg, transparent 0%, silver 1deg 59deg, transparent 60deg 50%) 0/42% 100% space content-box #1f1f1f; */
  /* background-color: #851d40; */
  background-image: url('./icon/12.png');
  background-size: 100%;
  -webkit-transition: box-shadow 0.35s;
  transition: box-shadow 0.35s;
  cursor: pointer;
}
[type=range]::-moz-range-thumb {
  /* only add a top margin if the m flag is non-zero */
  /* we use --sel to flip between normal & hover/ focus styles
   * detailed explanation 
   * https://css-tricks.com/dry-switching-with-css-variables-the-difference-of-one-declaration/ */
  --shl: 0 0 0 calc((1 - .375*var(--sel))*1rem) /* slightly decrease spread in hover/ focus case */
  			 hsla(0, 0%, 19%, var(--sel)) /* non-zero shadow alpha only in hover/ focus case */;
  box-sizing: border-box;
  border: none;
  /* get rid of Firefox border */
  padding: 0.625rem;
  /* to add space around bg limited to content-box */
  width: 3rem;
  height: 3rem;
  /* aspect-ratio: 1 doesn't work here in Firefox */
  border-radius: 50%;
  /* box-shadow: 0 0 0.5px black, inset 0 0 1px 1px rgba(255, 255, 255, 0.05), inset var(--shl), inset 0 0 0 calc(.5*0.42*(6rem + -2*0.625rem) + 0.625rem) #1f1f1f, 0.25rem -0.25rem 0.25rem #2a2a2a, -0.25rem 0.25rem 0.75rem #090909, var(--shl), 0.75rem -0.75rem 0.75rem #2a2a2a, -0.75rem 0.75rem 1.25rem #090909;
  background: repeating-conic-gradient(from 60deg, transparent 0%, silver 1deg 59deg, transparent 60deg 50%) 0/42% 100% space content-box #1f1f1f; */
  
  -moz-transition: box-shadow 0.35s;
  transition: box-shadow 0.35s;
  cursor: ns-resize;
}
[type=range] + output {
  place-self: end;
  place-content: center;
  position: fixed;
  right: 5rem;
  bottom: -6rem;
  width: 1.25em;
  aspect-ratio: 1;
  /* font-size: 6.25rem; */
  font-weight: 100;
  counter-reset: val var(--val);
  content: var(--val) works only if --val is string;
  transform: rotate(270deg);
}
[type=range] + output::after {
  content: counter(val)":00:00";
}

/* ===== RULER ===== */
datalist {
  grid-area: 1/1;
  /* occupy cell at intersection between 1st row & 1st column */
  /* make its gri have max value + 1 rows (because 1st value is 0) of unit height */
  grid-template-rows: repeat(calc(var(--max) + 1), 1rem);
  margin: -0.5rem 0;
}

.opt_slider {
  /* absolute value of difference between the .opt_slider index idx & current slider value val 
   * https://css-tricks.com/using-absolute-value-sign-rounding-and-modulo-in-css-today/ */
  --abs: max(var(--val) - var(--idx), var(--idx) - var(--val));
  --rel: calc(var(--abs)/6);
  /* relative value to number of ruler marks affected */
  --sel: max(0, 1 - var(--rel)*var(--rel));
  /* try to compensate for no trig with circular dist */
  --off: calc(var(--sel)*-2.375rem);
  /* thumb-caused offset */
  grid-row: calc(var(--max) + 1 - var(--idx));
  /* visually reverse row order */
  align-self: center;
  /* ensure big text is vertically in the middle of containing cells */
  padding-right: 0.75em;
  /* leave space for ruler marks */
  transform: translate(var(--off));
  /* apply thumb caused offset via transform */
  background: linear-gradient(hsl(0, 0%, var(--lum, 32%)) 0 0) 100%/0.5em 2px no-repeat;
  /* text alpha depends on distance from thumb */
  color: hsla(0, 0%, 93%, calc(1 - .0625*var(--abs)));
  font-size: 1rem;
  text-align: right;
  transition: 0.2s ease-out;
  /* make major ruler markings brighter */
}
@supports (top: calc(sin(5deg)*1px)) {
  .opt_slider {
    /* if we have trigonometry in CSS */
    --sel: max(0, 1 - var(--rel));
    /* linear selection value */
    /* make the ruler mark distribution around thumb follow a cos wave */
    --off: calc(.5*(1 - cos(var(--sel)*180deg))*-2.375rem) ;
  }
}
.opt_slider[label] {
  --lum: 90% ;
}

/* ===== SUPPORT INFO BOXES ===== */
section {
  grid-gap: 0.625rem;
  /* some space between boxes if there are more */
  position: fixed;
  /* take out of document flow */
  z-index: 2;
  /* on top of everything else */
  inset: auto 0 0;
  /* attach to parent's padind-box edges except top */
  padding: 0.625rem;
  /* set padding equal to gap */
  font: clamp(.625em, 2.5vw, 1.25em)/1.25 trebuchet ms, ubuntu, verdana, arial, sans-serif;
}

.box {
  margin: 0;
  /* override browser default */
  border-left: solid 5px var(--c0, #dc3055);
  padding: inherit;
  /* pad info boxes as well */
  background: var(--c1, #851d40);
  color: white;
  /* modify palette for warn */
}
.box--warn {
  --c0: #fd8721;
  --c1: #c34915 ;
}
.box--list {
  display: var(--list);
}
.box--trig {
  display: var(--trig);
}
.box--cmix {
  display: var(--cmix);
}

code, kbd {
  padding: 2px;
  background: rgba(0, 0, 0, 0.2);
  font: 1.1em/1.2 ubuntu mono, consolas, monaco, monospace;
}
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300);
@import url(Cesium/Widgets/widgets.css);
a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.floor_btns
{
    position: absolute;
    top: 25vh;
    left: 0%;
    z-index: 3;
}

.btn_lvl{
    background-color: #FFF;
    border: none;
    margin: 2px;
    padding: 8px;
    cursor: pointer;
}

.active_flr
{
    background-color: slateblue;
    color: #FFF;
}

html,
body,
#cesiumContainer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
}

#LegendView{
  z-index: 100;
  font-size: 40px;
  bottom: 8px;
  right: 8px;
  color: white;
  position: absolute;
}

#LegendView:hover{
 cursor: pointer;
}

.loc_3d_model
{
    position: absolute;
    background-color: #fff;
    bottom: 2%;
    padding: 5px;
    z-index: 99;
    right: 0.5%;
    cursor: pointer;
    z-index: 999;
}


/* css for floor selection */

@import url(https://fonts.googleapis.com/css?family=Roboto);
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css);

  * {
  font-family: Roboto;
  }

  .sidenav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  right: 0px;
  top: 0px;
  height: 100%;
  width: 60px;
  /* background: #333; */
  z-index: 999;
  }

  .sidenav .nav {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1000;
  left: 0px;
  transition: all 0.4s ease;
  cursor: pointer;
  margin-bottom: 1px !important;
  }

  .sidenav .nav {
  left: 5px;
  }

  .sidenav .nav:hover {
    left: -85px;      /* Border width*2 */
    transition: 0.5s;
  }

  .sidenav .description, .sidenav .icon {
    height: 40px;
    line-height: 40px;
    background: #333;
  }

  .sidenav .nav.active .description, .sidenav .nav.active .icon {
    background: #FF5722;
  }

  .sidenav .icon {
    width: 55px;          /* Width of navbar */
    text-align: center;
    color: #e9e9e9;
    font-size: 20px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
  }

  .sidenav .description {
    position: relative;
    left: 55px;
    color: #eee;
    min-width: 80px;
    padding-left: 20px;
    height: 100%;
  }