.nav-ui-wrap  {
  position: absolute;
  margin-left: 10px;
}

.nav-ui-wrap div{
  border: 4px solid #fcc300;
}

.map-button {
  border: 1px solid #6d6f72;
  width: 24px;
  height: 24px;
  margin: 1px -6px 1px 1px;
  background-color: white;
  color: black;
  padding: 0;
  align-items: flex-start;
  text-align: center;
  cursor: default;
}

#nav-arrows {
  border: none;
  display: block;
  position: relative;
  margin-top: 15%;
  margin-left: -3px
}

#nav-arrows > button {
  line-height: 28px;
}

#zoom {
  border: none;
  display: block;
  margin-top: 20px;
  margin-left: 20px;
  position: relative;
}

#zoom button { line-height: 28px; }

#zoom-in {
  border: 1px solid #6d6f72;
  background-color: white;
  color: black;
  padding: 0;
  align-items: flex-start;
  text-align: center;
  cursor: default;
  display: block;
  margin-bottom: -2px;
}

#zoom-out {
  background-color: #ffffff;
  display: block;
}

#nav-up {
  position: relative;
  margin-bottom: -2px;
  left: 35%;
  background-color: #ffffff;
  display: block;
}

#nav-left {
  display: inline-block;
  background-color: #ffffff;
}
#nav-right {
  display: inline-block;
  background-color: #ffffff;
}
#nav-down {
  display: inline-block;
  background-color: #ffffff;
}

#nav-up > a, #nav-down > a, #nav-left > a, #nav-right > a {
  min-width: 100%;
  min-height: 100%;
}

#nav-up:hover, #nav-down:hover, #nav-left:hover, #nav-right:hover, #zoom-in:hover, #zoom-out:hover,
#nav-up:focus, #nav-down:focus, #nav-left:focus, #nav-right:focus, #zoom-in:focus, #zoom-out:focus {
  background-color: #fcc300;
}

#nav-reset {
  display: block;
  position: relative;
  margin-left: 21px;
  margin-top: 5px;
  background-color: #ffffff;
  background-image: url(../gfx/icon_home.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 110%;
}

#nav-reset:hover, #nav-reset:focus {
  background-color: #fcc300;
}

#map-search {
  position: relative;
  margin-left: 21px;
  margin-top: 5px;
  background-color: #ffffff;
  background-image: url(../gfx/mapsearch.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 95%;
}

#map-search:hover, #map-search:focus {
  background-color: #fcc300;
}

#open-legend {
  display: none;
  position: relative;
  margin-top: -10px;
}

#layer-toggle {
  width: 2em;
  height: 2em;
  margin-left: 30%;
  position: relative;
  display: none;
  background-color: #ffffff;
}

#layer-toggle:hover {
  background-color: #fcc300;
}

.map-legend {
  position: relative;
}
.map-legend button.legend {
  background-color: #000000;
  color: #ffffff;
}

.map-legend button.legend:hover, .map-legend button.legend:focus {
  background-color: #6d6f72;
  border: 1px solid #000000;
}

.map-legend-info {
  font-family: Metric, sans-serif;
  position: absolute;
  top: 10em;
  left: 0;
  height: 14em;
  background-color: #ffffff;
  width: 15%;
  min-width: 11em;
  text-align: left;
  padding: 10px;
}

.map-legend-info .icon {
  width: 20px!important;
  height: 20px!important;
  vertical-align: middle;
}

.map-legend-info .legend-title {
  font-size: 80%;
  position: relative;
  margin-left: -10px;
  padding-left: 10px;

  height: 30px;
  width: 90px;
  line-height: 32px;

  letter-spacing: 3px;

  background-color: #000000;
  color: #ffffff;
}

.map-legend-info .legend-title::after {
  position: absolute;
  left: 100%;
  top: 50%;
  content: ' ';
  pointer-events: none;
  height: 0;
  width: 0;
  border-color: rgba(105, 192, 186, 0);
  border-width: 15px;
  border-left: 10px solid #000000;
  margin-top: -15px;
}

.nav-ui-wrap #open-legend {
  background-color: #000000;
  color: #ffffff;
  position: relative;
  left: 20px;
  top: 1em;
  line-height: 28px;
}

.nav-ui-wrap #open-legend:hover {
  background-color: #ffffff;
  color: #000000;
}


.map-legend-info .closelegend {
  position: absolute;
  right: 5px;
  top: 5px;
}

.map-legend-info .closemenu {
  border: 0;
}

.map-legend-info .closemenu:hover, .map-legend-info .closemenu:focus {
  border: 0;
  background-color: transparent;
  color: #000000;
}

.map-legend-info .legend-row {
  font-size: 70%;
  margin-top: 10px;
}

.map-legend-info .legend-row div, .map-legend-info .legend-controls > div {
  display: inline;
}

.map-legend-info .legend-controls {
  font-size: 65%;
  margin: 20px 0 10px 0;
  padding: 20px 0;
  border-top: 1px solid black;
  height: 100px;
  text-align: center;
}

.map-legend-info .legend-control-icon {
  display: inline;
  vertical-align: middle;
}

.map-legend-info .legend-control-icon:first-of-type{
  width: 20px;
  height: 41px;
}
.map-legend-info .legend-control-icon:nth-of-type(2) {
  width: 61px;
  height: 41px;
}

#legend {
  display: none;
}

/* @media screen and (max-width: 531px) {

  #legend, #open-legend {
    display: none;
  }

  .nav-ui-wrap {
    margin-top: 0;
  }

  #nav-arrows {
    margin-right: 16%;
    float: right;
    display: block;
  }

  #nav-reset {
    margin-top: 10%;
    margin-left: 5.6%;
  }

  #nav-up {
    left: 37%;
  }

  #zoom {
    display: block;
    left: 5.6%;
  }
} */

/*!* Portrait and Landscape *!*/
/* @media (min-width: 523px)
and (max-width: 768px) {

  #legend, #open-legend {
    display: none;
  }

  #zoom {
    left: 5%;
    display: inline-block;
  }

  #nav-arrows {
    display: inline-block;
    float: right;
    margin-right: 10%;
  }
  #nav-reset {
    margin-left: 5.6%;
  }
} */


/*@media screen and (min-width: 768px)*/
/*and (max-width: 1370px) {*/

/*#cesiumContainer {*/
/*width: 100%;*/
/*}*/
/*#legend {*/
/*font-size: 65%;*/
/*transform: translateY(53.5em);*/
/*}*/

/*#legend-pre {*/
/*display: none;*/
/*}*/
/*}*/

/*@media screen and (min-width: 1370px)*/
/*and (max-width: 1600px) {*/
/*#legend {*/
/*transform: translateY(44em);*/
/*}*/

/*#legend-group div.legend-text {*/
/*font-size: 1em;*/
/*}*/

/*}*/
