    html, body {
      margin: 0;
      padding: 0;
      background: #111;
      color: #ccc;
      font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Twemoji Mozilla', monospace;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }
    #video {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100vw;
      height: 100vh;
      object-fit: contain;
      background: black;
    }
    #info, #log, #resbox {
      background: #222;
      padding: 10px;
      border-radius: 8px;
      font-size: 14px;
      z-index: 10;
      transition: opacity 2s ease;
    }
    #info {
      position: absolute;
      top: 10px;
      right: 10px;
      min-width: 200px;
    }
    #resbox {
  position: absolute;
  width: 351px;
  right: 10px;
  bottom: 240px;
  background: #222;
  padding: 10px;
  color: white;
  font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Twemoji Mozilla', sans-serif;
  opacity: 1.0;
    }
    #log {
      position: absolute;
      bottom: 10px;
      right: 10px;
      color: #ccc;
      font-family: monospace;
      font-size: 12px;
      max-width: 350px;
      max-height: 200px;
      overflow-y: auto;
      border: 1px solid #444;
      white-space: pre-line;
    }

.battbox {
  
  padding: 0 4px;
  border-radius: 4px;
}


.stat-green { color: limegreen; }
.stat-yellow { color: gold; }
.stat-red { color: red; 
background: none !important;}

.wifi-row {
  display: flex;
  align-items: center;
  gap: 8px;           /* ruimte tussen switch en SSID */
  margin-top: 5px;
}

/* Kleinere switch */
.switch {
  position: relative;
  display: inline-block;
  width: 25px;   /* 50% kleiner */
  height: 13px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #888;
  transition: 0.3s;
  border-radius: 13px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 9px;
  width: 9px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider:before {
  transform: translateX(12px);
}


