html,
body {
  margin: 0;
  overflow: hidden;
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background-color: black;
  color: white;
}

section {
  padding: 6px;
}

#webcam {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.1s ease-out;
  max-width: 100vw;
  max-height: 100vh;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.video-container {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
  cursor: inherit;
}

.controls {
  position: fixed;
  top: 50px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px;
  color: rgb(147, 255, 101);
  border: 1px dotted rgba(147, 255, 101, 0.5);
}

.controls select,
.controls button {
  display: block;
  margin: 5px 0;
  padding: 5px;
  width: 200px;
}

.sliders label {
  display: block;
  margin: 10px 0;
}

.sliders input[type="range"] {
  width: 100%;
}

.toggles label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.toggles input[type="radio"] {
  margin-right: 8px;
}

#snapshot {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px;
  cursor: pointer;
}

#reset-colors {
  background: #666;
  color: white;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

#reset-colors:hover {
  background: #888;
}

.snapshot-controls {
  display: flex;
  gap: 10px;
}

.snapshot-controls button {
  flex: 1;
  width: auto;
}

#snapshot-filtered {
  background: #9C27B0;
  color: white;
  border: none;
  padding: 8px;
  cursor: pointer;
}

#snapshot-filtered:hover {
  background: #AB47BC;
}

.menu {
  position: fixed;
  top: 10px;
  left: 10px;
}

#toggle-controls {
  background: rgba(0, 0, 0, 0.7);
  color: white;

  border: 1px solid white;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 1000;
}

#toggle-controls:hover {
  background: rgba(0, 0, 0, 0.8);
}

#controls-wrapper {
  transition: opacity 0.3s ease;
}

#controls-wrapper.controls-hidden {
  opacity: 0;
  pointer-events: none;
}

#controls-wrapper.controls-visible {
  opacity: 1;
  pointer-events: auto;
}