html, body {
  margin: 0;
  padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #222;
    color: #ccc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
}

.panel {
  display: flex;
  flex-direction: column;
  border: 1px solid black;
  margin: 2px;
  background-color: #303030;
  border-radius: 0.3rem;
}

.panel >.header {
  padding: 0.25rem 1.25rem;
  margin-bottom: 0;
  background-color: #444;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.panel > .content {
  padding: 0.5rem;
}

.flex {
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
}

.flex-fill {
  flex: 1 1 0;
}

.flex-fixed {
  flex: 0 0 0;
}

.flex-row {
  flex-direction: row;
}

.dev-panel {
    border: 0;
    padding: 4px;
    margin: 4px;
}

.log {
  margin-top: 32px;
}

.log > .title {
  border-bottom: 1px solid #1cbb77;
}

.logview {
  padding: 4px;
  height: 300px;
  background-color: #444;
  border: #111;
  color: #ccc;
  overflow-y: auto;
  margin-top: 0;
}

button {
    color: #fff;
    background-color: #375a7f;
    border-color: #375a7f;
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 2px;
  }
  
button:hover {
  color: #fff;
  background-color: #2b4764;
  border-color: #28415b;
  text-decoration: none;
}

button:active {
  color: #fff;
  background-color: #28415b;
  border-color: #243a53;
}

input[type="number"] {
  width: 120px;
}

#send_mouse {
  height: 80px;
}

.leds {
  display: flex;
}

.leds > div {  
  height: 24px;
  display: flex;
  justify-content: center;
  background-color: #111;
  color: #ccc;
  margin: 2px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}

.leds > div.active {
  background-color: #00fd3f;
  color: black;
}
