html,
body{
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  overflow: hidden !important;
}

#viewDiv {
  position: absolute;
  right: 0;
  left: 0;
  top: 0px;
  bottom: 0px;
}

.esri-popup--footer-visible .esri-popup__footer {
  display: none !important;
}

.esri-popup__header{
  display:none;
}

.esri-popup__feature-buttons{
  display:none;
}

.esri-popup__content{
  width:240px;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align:center;
}

.esri-view-width-large .esri-popup__main-container {
  width: 255px;
}

.esri-popup__main-container {
  background-color: white;
  opacity: 1;     
  width: 255px !important;
}

.esri-popup-renderer__main-container {
  height: auto;
  width:225px;
  padding-top: 0px;
}

.esri-view-height-less-than-medium .esri-popup__main-container{
  max-height:225px;
}

.esri-popup-renderer__content-element{
  text-align: center;
}


.visible-layer {
  color: #fff;
  background-color: #226F0E;
}

.rect{
  position:absolute;
  background:white;
  outline-width: 2px;
  border-radius: 5px;
  border:1px solid #d3d3d3;    
}

.legend{
   margin-top: 0px; 
   left:auto;
   right:0px;
}

#rect_legend{
  position:absolute;
  top:2px;
  left:auto;
  right: 2px;
  width:140px;
  height:85px;
  position:absolute;
  background:white;
  outline-width: 2px;
  border-radius: 5px;
  border:1px solid #d3d3d3; 
}

#legendTitle{
  position:absolute;
  left:auto;
  top:-2px;
  right:17px;
  color: #777777;
  font-family: 'Helvetica Neue', sans-serif; 
  font-size: 15px; 
  font-weight: bold; 
  letter-spacing: -.5px; 
  line-height: 1; 
  text-align: left;
}

.legend-text{
  position:absolute;
  padding-top:9px;
  left:auto;
  right:-4px;
  width:100px;
  color: #777777;
  font-family: 'Helvetica Neue', sans-serif; 
  font-size: 12px; 
  font-weight: bold; 
  letter-spacing: -.5px; 
  line-height: 1; 
  text-align: left;
}

#up{
  top:59px;
}

#same{
  top:40px;
}

#down{
  top:22px;
}

.legend-bar{
  position:absolute;
  margin-top:30px;
  left:auto;
  right:100px;
  width:30px;
  height:10px;
  border-radius: 4px;
  border:1px solid #E8E8EE
}

#bar-up{
  top:37px;
  background:#ffa9d9;
  border: 2px solid #ff6dcd;
  border-radius: 2px;
}

#bar-same{
  top:18px;
  background:rgb(205,205,205);
  border: 2px solid rgb(160,160,160);
  border-radius: 2px;
}

#bar-down{
  top:0px;
  background:#d9ff6d;
  border: 2px solid #bbe34a;
  border-radius: 2px;
}

  .cntrllr{
     position: absolute;
     margin-left:0px; 
     margin-top:0px;
  }  

  #rect_ch{
    width:140px;
    height:85px;
    top:2px;
    left:2px;
  }
  .days{
    padding-top:0px;
    padding-left:13px;
    height:36px;
    width:36px
  }  

  #weekday{
    top:9px
  }

  #weekend{
    top:49px
  }

  .time{
    position: absolute;
    width:40px;
    height:40px;
  }

  #TB1{
    top: 5px;
    left: 56px;
  }

  #TB2{
    top: 5px;
    left: 96px;
  }

  #TB3{
    top: 45px;
    left: 96px;
  }

  #TB4{
    top: 45px;
    left: 56px;
  }

@media screen and (max-width: 750px) and (min-width: 325px){

  .esri-popup-renderer__main-container {
    width:200px;
  }

  .esri-popup__main-container {
    width:230px !important;
  }

  .esri-popup_content{
    width:200px;
  }

}

@media screen and (max-height: 750px){
  
  .legend{
   margin-bottom: 0px; 
   margin-right: 0px;
  }

  #rect_legend{
    top: auto;
    left: auto;
    right:4px;
    bottom:19px;
    width:140px;
    height:85px;
  }


  #legendTitle{
    position:absolute;
    top: auto;
    left: auto;
    bottom:71px;
    right:20px;
    color: #777777;
    font-family: 'Helvetica Neue', sans-serif; 
    font-size: 15px; 
    font-weight: bold; 
    letter-spacing: -.5px; 
    line-height: 1; 
    text-align: left;
  }

  .legend-text{
    position:absolute;
    top: auto;
    left: auto;
    right:0px;
    bottom:45px;
    width:100px;
    color: #777777;
    font-family: 'Helvetica Neue', sans-serif; 
    font-size: 12px; 
    font-weight: bold; 
    letter-spacing: -.5px; 
    line-height: 1; 
    text-align: left;
  }

  #up{
    top: auto;
    left: auto;
    bottom:65px;
  }

  #same{
    top: auto;
    left: auto;
    bottom:46px;
  }

  #down{
    top: auto;
    left: auto;
    bottom:27px;
  }

  .legend-bar{
    position:absolute;
    top: auto;
    left: auto;
    bottom:35px;
    right:105px;
    width:30px;
    height:10px;
    border-radius: 2px;
    border:1px solid #E8E8EE
  }

  #bar-up{
    top: auto;
    left: auto;
    bottom:65px;
    background:#ff68a7;
  }

  #bar-same{
    top: auto;
    left: auto;
    bottom:46px;
    background:rgb(205,205,205);
  }

  #bar-down{
    top: auto;
    left: auto;
    bottom:28px;
    background:#F5FF90;
  }

}


@media screen and (max-width: 325px) and (min-width: 275px){

  .esri-popup-renderer__main-container {
    width:200px;
  }

  .esri-popup__main-container {
    width:230px !important;
  }

  .esri-popup_content{
    width:215px;
  }
}

@media screen and (max-width: 275px){

  .esri-popup-renderer__main-container {
    width:200px;
  }

  .esri-popup__main-container {
    width:230px !important;
  }

  .esri-popup_content{
    width:215px;
  }
}
