.nav-menu {
  position: absolute;
  bottom: .05vh;
  z-index: 3;
  text-align: center;
  width: fit-content;
  height: 6vh;
  border: #ffffff solid 2px;
  background-color: #389cb8;
  background-image: url(../img/linesmap_bg.png);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 250%;
  margin: 0;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%);
  justify-content: center;
  align-items: center;
  display: flex;
}

.nav-menu-button {
  width: fit-content;
  height: 100%;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
  color: #ffffff;
  /* border-left: #ffffff solid 2px;
  border-right: #ffffff solid 2px; */
  backdrop-filter: blur(2px);
  background-color: #00000047;
}
.nav-menu-button-left {
  border-left: #ffffff solid 2px;
  padding: 1vh;
}
.nav-menu-button-right {
  border-right: #ffffff solid 2px;
  padding: 1vh;
}
.nav-menu-option {
  width: fit-content;
  height: 100%;
  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
  color: white;
  padding-left: 1vw;
  padding-right: 1vw;
  backdrop-filter: blur(2px);
  background-color: #00000047;
  font-family: "Raleway", sans-serif;
  font-size: 1.2vw;
}

/* .nav-menu-button-text {
  
  display: inline-block;
  font-size: 18px;
  position: relative;
} */

.nav-menu-button:hover {
  filter: brightness(1.2);
}

.controls {
  position: absolute;
  bottom: 3.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(150px, 1fr));
  grid-auto-rows: auto;
}
.ctrl,
.ctrl_buildings {
  width: available;
  min-width: 150px;
  height: available;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* font-family: Arial Rounded MT Bold, Helvetica Rounded, Arial, sans-serif; */
  /* text-transform: uppercase; */
  /* font-size: 14px; */
  background-color: #389cb8;
  background-image: url(../img/linesmap_bg.png);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 250%;
  border: #ffffff solid 2px;
  /* Double shadow for more visibility */
  /*text-shadow: 0px 0px 15px rgb(0, 0, 0), 0px 0px 10px rgb(0, 0, 0);*/
  cursor: pointer;
  color: #ffffff;
}
.ctrl-txt {
  backdrop-filter: blur(2px);
  background-color: #00000047;
  width: 100%;
  height: 100%;
  font-size: 1vw;
  margin: 0;
  text-align: center;
  align-content: center;
}
@media screen and (max-width: 1230px) {
  .ctrl,
  .ctrl_buildings {
    font-size: 9px;
    min-width: 80px;
  }

  .controls {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

.nav-menu-button:hover {
  filter: brightness(1.2);
}

.material-icons {
  color: #ffffff;
  font-size: 1vw;
}

.nav-menu-top {
  position: absolute;
  display: flex;
  align-items: baseline;
  width: 20%;
  top: 0%;
  text-align: center;
  left: 0%;
  z-index: 5;
  background-color: #389cb8;
  background-image: url(../img/linesmap_bg.png);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 250%;
  /* float: right; */

  /* padding: 0; */
  /* padding-left: 10px; */
  /* padding-right: 10px; */
  /* border-radius: 10px; */
  /* background: linear-gradient(180deg, #9fca38 0%, #01a8af 53%, #3b6cb6 100%); */
  border: #ffffff solid 2px;
}
.nav-menu-top:hover > .nav-menu-top-button {
  background-color: #00000000;
}
.nav-menu-top-button {
  /* border-radius: 50%; */
  /* padding: 8px 5px; */
  width: 100%;
  height: 100%;
  justify-content: center;
  backdrop-filter: blur(2px);
  background-color: #00000047;
  /* margin: auto; */
  text-align: center;
  cursor: pointer;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  font-size: 2vh;
  line-height: 0;
  transition: 400ms;
  /* text-align: center; */
}
.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;
}

/* #play_button2 {
    position: absolute;
    top: 6%;
    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;
}

.spark-centre-tabs {
  position: absolute;
  bottom: 3.5vw;
  right: 50%;
  translate: 50%;
  z-index: 1;
  width: fit-content;
  height: 100px;
  display: none;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  max-width: 90%;
}

.spark-centre-tab {
  width: fit-content;
  height: 100%;
  margin: 10px;
  background-color: white;
  border: red solid 4px;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 10px;
  cursor: pointer;
  min-width: 200px;
  max-width: 250px;
}

.spark-centre-tab-icons > i {
  color: #ea1d2e;
  font-size: 2em;
  cursor: pointer;
}

@media screen and (max-width: 1300px) {
  .spark-centre-tabs {
    /* flex-direction: column; */
    bottom: 5vh;
    /* width: fit-content; */
    /* top: 0px; */
    /* opacity: 0; */
    pointer-events: none;
  }

  .spark-centre-tab {
    /* width: 50% !important; */
    min-width: 15vw !important;
    max-width: 20vw !important;
    height: 50%;
    margin: 5px;
  }

  .spark-centre-tab-icons > i {
    color: #ea1d2e;
    font-size: 1em;
    cursor: pointer;
    display: none;
  }
}

.spark-centre-tab-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
}

.spark-centre-tab-logo img {
  height: auto;
  width: 100%;
  max-width: min-content;
  max-height: 100%;
}

.spark-centre-tab-icons {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 10px;
}

.spark-centre-tab-icons img {
  height: 100%;
  width: auto;
  width: auto;
  cursor: pointer;
}

@media screen and (max-height: 700px) {
  .controls {
    max-height: 30vh;
    overflow-y: scroll;
  }
}

@media screen and (max-width: 550px) {
  .nav-menu-button {
    position: relative;
    border-width: 0.4vw !important;
    border-radius: 1.2vw !important;
    height: 100%;
    min-width: 10vw;
    min-height: 5vw;
    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: 2vh;
    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;
  }
  .spark-centre-tab {
    /* display: none !important; */
  }
  .controls {
    max-height: 30vh;
    overflow-y: scroll;
  }
}

@media screen and (max-width: 350px) {
  .controls-wrapper {
    bottom: 5vh;
  }
  .direction-indicator {
    font-size: 5vw;
    top: 6vh;
  }
}
