html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "PT Sans", Calibri, Tahoma, sans-serif;
  background-color: black;

  /* cursor:none; */

  overscroll-behavior: none;
  overflow: hidden;
  touch-action: manipulation;
}

canvas {
  display: block;
}

/* control bar */
.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  max-height: 70%;
  overflow-y: auto;
  background-color: #14141c;
  border-top: 1px solid #33333f;
  transition: transform 0.3s ease, visibility 0s;
}

/* visibility waits for the slide to finish, then stops hidden controls taking focus */
.controls.hidden {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s 0.3s;
}

.controls .control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls span {
  font-size: 14px;
  color: #e8e8ee;
  white-space: nowrap;
}

.controls input[type="range"] {
  width: 120px;
  min-width: 0;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.controls input[type="range"].fuel {
  width: 300px;
}

.controls button {
  padding: 7px 14px;
  font: inherit;
  font-size: 14px;
  color: #e8e8ee;
  background-color: #2a2a36;
  border: 1px solid #44444f;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.controls button:hover {
  background-color: #3a3a48;
  border-color: var(--accent);
}

.controls button:active {
  background-color: #22222c;
}

.controls button.selected {
  color: #14141c;
  font-weight: bold;
  background-color: var(--accent);
  border-color: var(--accent);
}

/* phones: full width sliders with labels lined up, larger touch targets */
@media (max-width: 700px) {
  .controls .control {
    width: 100%;
  }

  .controls span {
    width: 90px;
  }

  .controls input[type="range"],
  .controls input[type="range"].fuel {
    flex: 1;
    width: auto;
    height: 32px;
  }

  /* four pallete buttons on one row, resolution buttons on the next */
  .controls button {
    flex: 1 1 20%;
    white-space: nowrap;
    min-height: 44px;
    padding: 7px 8px;
  }
}




/* loading banner */
.loadingclass {
  background-color: black;
  color: white;
  text-align: center;
  font-size: x-large;
  padding: 25px;
  position: absolute;
  width:500px;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* Loading animations */
progress {
  border-radius: 7px;
  width: 100%;
  height: 20px;
  /* margin-left: -11.5%; */
  
}

progress::-webkit-progress-bar {
  background-color: white;
  border-radius: 50px;
  box-shadow: inset 25px 25px 25px -25px rgba(0,0,0,0.85);
  border: darkslategrey solid 2px
}

progress::-webkit-progress-value {
  background-color: lime;
  border-radius: 50px;
}