/* .nav-menu {
    position: absolute;
    bottom: 0;
    z-index: 3;
    text-align: center;
    display: inline-block;
    width: 100%;
    padding-bottom: 3px;
    min-width: 80px;
    height: 10vw;
} */
.nav-menu {
  position: absolute;
  bottom: 1vw;
  left: 50%;
  transform: translate(-50%);
  z-index: 3;
  text-align: center;
  width: 100%;
  /* padding-bottom: 3px; */
  min-width: 80px;
  max-height: 3vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  width: fit-content;
}

.material-icons {
  color: #C1CD23;
  font-weight: lighter;
  font-size: 2.5vh !important;
}

.nav-menu-button {
  height: fit-content;
  padding: 7px 8px 7px 6px;
  width: fit-content;
  text-align: center;
  /* background: rgb(255, 255, 255); */
  /* background: linear-gradient(180deg, rgb(235, 45, 61) 60%, rgb(77 20 20) 100%); */
  /* border-radius: 10px; */
  display: inline-block;
  cursor: pointer;
  color: rgb(255, 255, 255);
}
.nav-menu-button-text {
  display: inline-block;
  font-size: 1.5vw;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  color: #1C5828;
  position: relative;
}
.nav-menu-button:hover{
  filter: brightness(1.5);
}

.controls {
  position: absolute;
  bottom: 5vw;
  z-index: 2;
  text-align: center;
  width: 50%;
  padding-bottom: 3px;
  right: 25%;
  left: 25%;
  display: none;
  grid-gap: 5px;
  grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
  grid-auto-rows: auto;
  justify-content: center;
  overflow-y: auto;
  overflow-y: hidden;
}
.ctrl,
.ctrl_buildings {
  width: available;
  min-width: 150px;
  max-width: 30vw;
  height: available;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  font-size: 1.5em;
  background-color: white;
  color: #1C5828;
  font-weight: bolder;
  cursor: pointer;
  padding: 1vw;
}
.ctrl:hover,
.ctrl_buildings:hover {
  filter: brightness(1.5);
}

.nav-menu-top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  text-align: right;
  float: right;
  padding-left: 1em;
  padding-right: 1em;
  /* border-radius: 10px; */
  /* background-color: white; */
  /* width: 100%; */
  /* border: #000000 solid 3px; */
}
.nav-menu-top-button {
  border-radius: 50%;
  padding: 0.5em 0.5em;
  width: fit-content;
  text-align: center;
  cursor: pointer;
  color: #1C5828;
  display: inline-block;
}
.nav-menu-top-button:hover,
.nav-menu-top-button:hover .tooltiptext {
  /*color: white;*/
  visibility: visible;
}
.tooltiptext {
  visibility: hidden;
  width: fit-content;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  padding: 5px 5px;
  border-radius: 6px;

  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
  top: 100%;
}

.hidden {
  display: none;
}

.show {
  display: inline-block;
}

.nav-menu-audio {
  position: absolute;
  top: 8%;
  right: 1%;
  z-index: 1;
  text-align: right;
  float: right;
  display: inline-flex;
}

#audio_elm {
  position: relative;
  display: inline-block;
  visibility: hidden;
  padding: 8px 0;
  z-index: 1;
  text-align: center;
  height: 44px;
  margin-right: 5px;
}

@media screen and (max-width: 1050px) {
  .nav-menu {
    height: 8vw;
    bottom: 1vh;
  }


  .controls {
    grid-template-columns: none;
  }
  .ctrl {
    padding: 1vw 1vw;
    min-width: 10vw;
    /* border-radius: 1.5vw; */
    font-size: 2vw;
  }
}

@media screen and (max-width: 550px) {
    .nav-menu-button {
        position: relative;
        border-width: 0.3vw !important;
        border-radius: 1vw !important;
        height: 100%;
        min-width: 10vw;
        margin: 0 0.4vw;
        padding: 0;
      }
      .nav-menu-button > i {
        font-size: 2vw !important;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);

      }
      .nav-menu-button-text {
        font-size: 2vw;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
  .nav-menu-top {
    display: none;
  }
  .direction-indicator {
    font-size: 5vw;
    top: 8vh;
  }
  .controls-wrapper {
    bottom: 7vh;
    transform-origin: bottom;
  }
}

@media screen and (max-width: 350px) {
  .controls-wrapper {
    bottom: 5vh;
  }
  .direction-indicator {
    font-size: 5vw;
    top: 6vh;
  }
}
