#legendDIV{
  position:absolute;
  z-index: 3;
  right: 10px;
  top: 60px;
  height: 450px;
  width: 300px;
  border: 1px solid #25363d;
  background: white;
}

#legendDIVHeader{
  position: absolute;
  height: 24px;
  width: 100%;
  background-color: #25363d;
  font-weight: bold;
  text-indent: 5px;
  color: white;
  display: inline-block;
  line-height: 24px;
}

@media only screen and (max-width: 700px) {
  #legendDIV {
	top: auto;
	bottom: 0px;
	height: 360px;
	left: 0px;
	right: 0px;
	width: auto;
  }
}

arcgis-legend{
  position: absolute;
  top: 30px;
  width: 100%;
  max-height: 410px;
  overflow: auto;
}

@media only screen and (max-width: 700px) {
  arcgis-legend {
    position: absolute;
    top: 30px;
    width: 100%;
    height: 320px;
    overflow: auto;
  }
}