/* Top Buttons Container */
.oilrig-top-buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  z-index: 25;
  pointer-events: none;
}

.oilrig-top-buttons button {
  pointer-events: all;
}

/* Bottom Nav */
/* Normalize all control images */
.bottom-nav-wrapper button img,
.bottom-nav-btn-reset img,
.fullscreen-btn img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
}

.bottom-nav-wrapper {
  position: absolute;
  left: 3%;
  bottom: 2%;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  align-items: flex-start;
  z-index: 20;
  pointer-events: none;
  /* gap: 1.5rem; */
  /* background: rgba(0, 0, 0, 0.25); */
  padding: 0 0rem;
}

.bottom-nav-wrapper button {
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 2rem; */
  color: white;
  text-align: center;
  flex: 1 1 30%;
  gap: 1rem;
}

.bottom-nav-text {
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-optical-sizing: auto;
  font-weight: normal;
  letter-spacing: 0.2rem;
  line-height: 1.3;
}

/* Bottom Nav */
.bottom-nav-btn-control-module {
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  flex: 1;
  width: 120px;
  max-width: 120px;
  margin-top: 5.5rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.bottom-nav-btn-drilling-controls {
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: white;
  text-align: center;
  flex: 1;
  width: 160px;
  max-width: 160px;
  margin-top: 3.8rem;
  margin-left: 1.2rem;
  margin-right: 0rem;
}

.bottom-nav-btn-helideck {
  background: transparent;
  border: none;
  cursor: pointer;
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: white;
  text-align: center;
  flex: 1;
  width: 240px;
  max-width: 240px;
  margin-top: 8.5rem;
  margin-left: 0rem;
  margin-right: 0rem;
}

.bottom-nav-btn-reset {
  background: transparent;
  border: none;
  color: white;
  position: relative;
  top: -20px;
  left: 0;
  width: 80px;
  height: 80px;
  z-index: 20;
  cursor: pointer;
}

.fullscreen-btn-wrapper {
  background: transparent;
  border: none;
  color: white;
  right: 3rem;
  top: 19rem;
  position: fixed;
  width: 120px;
  height: 120px;
  z-index: 20;
  /* pointer-events: all; */
  cursor: pointer;
}

.fullscreen-btn {
  background: transparent;
  border: none;
  color: white;
  position: relative;
  right: 0;
  top: 0;
  width: 35px;
  height: 35px;
  z-index: 30;
  cursor: pointer;
}

.OilRigScene,
.oil-rig-canvas {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 1100px) {
  .bottom-nav-wrapper {
    left: 70%;
    bottom: 0rem;
    width: 70%;
    transform: translateX(-100%);
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    /* background: rgba(0, 0, 0, 0.5); */
    border-radius: 10px;
  }

  .bottom-nav-wrapper button {
    gap: 0.0rem;
  }

  .bottom-nav-text {
    font-size: 12px;
    margin-top: 0.5rem;
    letter-spacing: 0.25rem;
  }

  .bottom-nav-wrapper button img {
    max-width: 70px;
  }

  .bottom-nav-btn-reset {
    position: relative;
    top: -15px;
    left: 0;
    width: 75px;
    height: 75px;
  }

  .fullscreen-btn {
    right: 0;
    top: 0;
    width: 35px;
    height: 35px;
  }

  .bottom-nav-btn-control-module {
    width: 100px;
    max-width: 100px;
    margin-top: 0.9rem;
    margin-bottom: 0rem;
    margin-left: 2.5rem;
    margin-right: 0rem;
  }

  .bottom-nav-btn-drilling-controls {
    width: 100px;
    max-width: 100px;
    margin-top: 0.25rem;
    margin-bottom: 0rem;
    margin-left: 1.2rem;
    margin-right: 0rem;
  }

  .bottom-nav-btn-helideck {
    flex: 1;
    width: 140px;
    max-width: 140px;
    margin-top: 3rem;
    margin-bottom: 0rem;
    margin-left: 0rem;
    margin-right: 0rem;
  }
}

@media (max-width: 768px) {
  .bottom-nav-wrapper {
    /* left: -25%; */
    width: 100%;
    bottom: 0.75rem;
    transform: translateX(-69%);
    /* background: rgba(0,0,0,0.5); */
    border-radius: 10px;
  }

  .bottom-nav-wrapper button {
    flex: 0 1 auto;
    max-width: none;
  }

  .bottom-nav-wrapper button img {
    max-width: 80px;
  }

  .bottom-nav-text {
    font-size: 11px;
    letter-spacing: 0.12rem;
    line-height: 1.2;
  }

  .bottom-nav-btn-control-module,
  .bottom-nav-btn-drilling-controls,
  .bottom-nav-btn-helideck {
    margin: 0;
    padding: 0.25rem 0.25rem;
  }

  .bottom-nav-btn-reset {
    position: relative;
    top: -25px;
    left: 0;
    width: 65px;
    height: 65x;
    z-index: 30;
  }

  .fullscreen-btn {
    right: 0;
    top: 0;
    width: 32px;
    height: 32px;
    z-index: 30;
  }

  .bottom-nav-btn-control-module {
    width: 60px;
    max-width: 60px;
    margin-top: 0rem;
    margin-bottom: 0rem;
    margin-left: 1rem;
    margin-right: 2rem;
  }
  .bottom-nav-btn-drilling-controls {
    width: 70px;
    max-width: 70px;
    margin-top: -0.5rem;
    margin-bottom: 0rem;
    margin-left: 0rem;
    margin-right: 0rem;
  }
  .bottom-nav-btn-helideck {
    width: 120px;
    max-width: 120px;
    margin-top: 1.6rem;
    margin-bottom: 0rem;
    margin-left: 0.5rem;
    margin-right: 0rem;
  }

  .OilRigScene,
  .oil-rig-canvas {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .bottom-nav-wrapper {
    left:100%;
    width: 100%;
    transform: translateX(-100%);
    background: rgba(0, 0, 0, 0.25);
  }

  .bottom-nav-wrapper button img {
    max-width: 64px;
  }

  .bottom-nav-wrapper button {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .bottom-nav-text {
    font-size: 10px;
    letter-spacing: 0.1rem;
  }

  .bottom-nav-btn-control-module {
    width: 25%;
    max-width: 25%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    margin-left: 0rem;
    margin-right: 0rem;
  }
  .bottom-nav-btn-drilling-controls {
    width: 25%;
    max-width: 25%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    margin-left: 0rem;
    margin-right: 0rem;
  }
  .bottom-nav-btn-helideck {
    width: 25%;
    max-width: 25%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    margin-left: 0rem;
    margin-right: 0rem;
  }
}

@media (max-width: 400px) {
  .bottom-nav-text {
    font-size: 12px;
  }

  .fullscreen-btn {
    font-size: 1.25rem;
    padding: 0.4rem 0.6rem;
  }
}
