* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  overflow: hidden;
  font-family: sans-serif;
}

#viewer {
  width: 100vw;
  height: 100vh;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

#fileLoader {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#fileLoader label {
  color: #aaa;
  font-size: 12px;
}

#fileLoader input[type="file"] {
  color: #aaa;
  font-size: 12px;
}

#fileLoader input[type="text"] {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  width: 300px;
}

#fileLoader button {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  width: 80px;
}

#fileLoader button:hover {
  background: #444;
}

#loaderTabs {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
}

#loaderTabs .tab {
  color: #888;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

#loaderTabs .tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

#fileMode, #urlMode {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: #fff;
  font-size: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#controls input[type="range"] {
  width: 120px;
  display: block;
  margin-top: 4px;
}

#controls label {
  font-size: 12px;
}

#hotkeys {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-size: 12px;
  line-height: 1.6;
  z-index: 20;
}

#hotkeys b {
  color: #aaa;
}