@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-style: normal;
  src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot');
  src: url('../fonts/Noto-Sans-regular/Noto-Sans-regular.eot?#iefix')
      format('embedded-opentype'),
    local('Noto Sans'), local('Noto-Sans-regular'),
    url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff2') format('woff2'),
    url('../fonts/Noto-Sans-regular/Noto-Sans-regular.woff') format('woff'),
    url('../fonts/Noto-Sans-regular/Noto-Sans-regular.ttf') format('truetype'),
    url('../fonts/Noto-Sans-regular/Noto-Sans-regular.svg#NotoSans')
      format('svg');
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  font-style: normal;
  src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot');
  src: url('../fonts/Noto-Sans-700/Noto-Sans-700.eot?#iefix')
      format('embedded-opentype'),
    local('Noto Sans Bold'), local('Noto-Sans-700'),
    url('../fonts/Noto-Sans-700/Noto-Sans-700.woff2') format('woff2'),
    url('../fonts/Noto-Sans-700/Noto-Sans-700.woff') format('woff'),
    url('../fonts/Noto-Sans-700/Noto-Sans-700.ttf') format('truetype'),
    url('../fonts/Noto-Sans-700/Noto-Sans-700.svg#NotoSans') format('svg');
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 400;
  font-style: italic;
  src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot');
  src: url('../fonts/Noto-Sans-italic/Noto-Sans-italic.eot?#iefix')
      format('embedded-opentype'),
    local('Noto Sans Italic'), local('Noto-Sans-italic'),
    url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff2') format('woff2'),
    url('../fonts/Noto-Sans-italic/Noto-Sans-italic.woff') format('woff'),
    url('../fonts/Noto-Sans-italic/Noto-Sans-italic.ttf') format('truetype'),
    url('../fonts/Noto-Sans-italic/Noto-Sans-italic.svg#NotoSans') format('svg');
}
@font-face {
  font-family: 'Noto Sans';
  font-weight: 700;
  font-style: italic;
  src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot');
  src: url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.eot?#iefix')
      format('embedded-opentype'),
    local('Noto Sans Bold Italic'), local('Noto-Sans-700italic'),
    url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff2')
      format('woff2'),
    url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.woff') format('woff'),
    url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.ttf')
      format('truetype'),
    url('../fonts/Noto-Sans-700italic/Noto-Sans-700italic.svg#NotoSans')
      format('svg');
}
.highlight table td {
  padding: 5px;
}

.highlight table pre {
  margin: 0;
}

.highlight .cm {
  color: #999988;
  font-style: italic;
}

.highlight .cp {
  color: #999999;
  font-weight: bold;
}

.highlight .c1 {
  color: #999988;
  font-style: italic;
}

.highlight .cs {
  color: #999999;
  font-weight: bold;
  font-style: italic;
}

.highlight .c,
.highlight .cd {
  color: #999988;
  font-style: italic;
}

.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}

.highlight .gd {
  color: #000000;
  background-color: #ffdddd;
}

.highlight .ge {
  color: #000000;
  font-style: italic;
}

.highlight .gr {
  color: #aa0000;
}

.highlight .gh {
  color: #999999;
}

.highlight .gi {
  color: #000000;
  background-color: #ddffdd;
}

.highlight .go {
  color: #888888;
}

.highlight .gp {
  color: #555555;
}

.highlight .gs {
  font-weight: bold;
}

.highlight .gu {
  color: #aaaaaa;
}

.highlight .gt {
  color: #aa0000;
}

.highlight .kc {
  color: #000000;
  font-weight: bold;
}

.highlight .kd {
  color: #000000;
  font-weight: bold;
}

.highlight .kn {
  color: #000000;
  font-weight: bold;
}

.highlight .kp {
  color: #000000;
  font-weight: bold;
}

.highlight .kr {
  color: #000000;
  font-weight: bold;
}

.highlight .kt {
  color: #445588;
  font-weight: bold;
}

.highlight .k,
.highlight .kv {
  color: #000000;
  font-weight: bold;
}

.highlight .mf {
  color: #009999;
}

.highlight .mh {
  color: #009999;
}

.highlight .il {
  color: #009999;
}

.highlight .mi {
  color: #009999;
}

.highlight .mo {
  color: #009999;
}

.highlight .m,
.highlight .mb,
.highlight .mx {
  color: #009999;
}

.highlight .sb {
  color: #d14;
}

.highlight .sc {
  color: #d14;
}

.highlight .sd {
  color: #d14;
}

.highlight .s2 {
  color: #d14;
}

.highlight .se {
  color: #d14;
}

.highlight .sh {
  color: #d14;
}

.highlight .si {
  color: #d14;
}

.highlight .sx {
  color: #d14;
}

.highlight .sr {
  color: #009926;
}

.highlight .s1 {
  color: #d14;
}

.highlight .ss {
  color: #990073;
}

.highlight .s {
  color: #d14;
}

.highlight .na {
  color: #008080;
}

.highlight .bp {
  color: #999999;
}

.highlight .nb {
  color: #0086b3;
}

.highlight .nc {
  color: #445588;
  font-weight: bold;
}

.highlight .no {
  color: #008080;
}

.highlight .nd {
  color: #3c5d5d;
  font-weight: bold;
}

.highlight .ni {
  color: #800080;
}

.highlight .ne {
  color: #990000;
  font-weight: bold;
}

.highlight .nf {
  color: #990000;
  font-weight: bold;
}

.highlight .nl {
  color: #990000;
  font-weight: bold;
}

.highlight .nn {
  color: #555555;
}

.highlight .nt {
  color: #000080;
}

.highlight .vc {
  color: #008080;
}

.highlight .vg {
  color: #008080;
}

.highlight .vi {
  color: #008080;
}

.highlight .nv {
  color: #008080;
}

.highlight .ow {
  color: #000000;
  font-weight: bold;
}

.highlight .o {
  color: #000000;
  font-weight: bold;
}

.highlight .w {
  color: #bbbbbb;
}

.highlight {
  background-color: #f8f8f8;
}

body {
  background-color: #fff;
  padding: 50px;
  font: 14px/1.5 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222;
  margin: 0 0 20px;
}

/*p, ul, ol, table, pre, dl {
  margin: 0 0 20px; }*/

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  font-size: 28px;
}

h2 {
  color: #393939;
}

h3,
h4,
h5,
h6 {
  color: #494949;
}

a {
  color: #39c;
  text-decoration: none;
}

a:hover {
  color: #069;
}

a small {
  font-size: 11px;
  color: #777;
  margin-top: -0.3em;
  display: block;
}

a:hover small {
  color: #777;
}

.wrapper {
  width: 860px;
  margin: 0 auto;
}

blockquote {
  border-left: 1px solid #e5e5e5;
  margin: 0;
  padding: 0 0 0 20px;
  font-style: italic;
}

code,
pre {
  font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal,
    Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color: #666;
  font-size: 12px;
  background: #f1f1f1;
  padding: 4px 4px;
  border-radius: 2px;
}

pre code {
  background: transparent;
  padding: 0px;
}

pre {
  padding: 8px 15px;
  background: #f8f8f8;
  border-radius: 5px;
  border: 1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #e5e5e5;
}

dt {
  color: #444;
  font-weight: 700;
}

th {
  color: #444;
}

img {
  max-width: 100%;
}

header {
  /*width: 270px;*/
  /*float: left;*/
  /*position: fixed;*/
  -webkit-font-smoothing: subpixel-antialiased;
}
/*
header ul {
  list-style: none;
  height: 40px;
  padding: 0;
  background: #f4f4f4;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  width: 270px; }

header li {
  width: 89px;
  float: left;
  border-right: 1px solid #e0e0e0;
  height: 40px; }

header li:first-child a {
  border-radius: 5px 0 0 5px; }

header li:last-child a {
  border-radius: 0 5px 5px 0; }

header ul a {
  line-height: 1;
  font-size: 11px;
  color: #999;
  display: block;
  text-align: center;
  padding-top: 6px;
  height: 34px; }

header ul a:hover {
  color: #999; }

header ul a:active {
  background-color: #f0f0f0; }
*/
strong {
  color: #222;
  font-weight: 700;
}
/*
header ul li + li + li {
  border-right: none;
  width: 89px; }

header ul a strong {
  font-size: 14px;
  display: block;
  color: #222; }
*/
section {
  /*width: 500px;*/
  /*float: right;*/
  padding-bottom: 50px;
  position: relative;
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 0 0 20px;
}

footer {
  /*width: 270px;*/
  /*float: left;*/
  /*position: fixed;*/
  bottom: 50px;
  -webkit-font-smoothing: subpixel-antialiased;
}

@media print, screen and (max-width: 960px) {
  div.wrapper {
    width: auto;
    margin: 0;
  }

  header,
  section,
  footer {
    float: none;
    position: static;
    width: auto;
  }

  header {
    padding-right: 320px;
  }

  section {
    border: 1px solid #e5e5e5;
    border-width: 1px 0;
    padding: 20px 0;
    margin: 0 0 20px;
  }

  header a small {
    display: inline;
  }
  /*
  header ul {
    position: absolute;
    right: 50px;
    top: 52px; }*/
}
@media print, screen and (max-width: 720px) {
  body {
    word-wrap: break-word;
  }

  header {
    padding: 0;
  }

  /*header ul,*/
  header p.view {
    position: static;
  }

  pre,
  code {
    word-wrap: normal;
  }
}
@media print, screen and (max-width: 480px) {
  body {
    padding: 15px;
  }

  header ul {
    width: 99%;
  }
  /*
  header li, header ul li + li + li {
    width: 33%; } */
}
@media print {
  body {
    padding: 0.4in;
    font-size: 12pt;
    color: #444;
  }
}

header h1 a {
  color: inherit;
}

a img {
  vertical-align: middle;
}

#compile,
#fwFile,
#toolbox,
#source,
#export,
#import,
#load-default {
  line-height: 120%;
  margin: 0px 4px 0px 0px;
  border-radius: 3px;
  background-color: #49ad4c;
  color: white;
  border: 0px solid #000;
  padding: 3px 6px;
  cursor: pointer;
}

#compile {
  margin-right: 0px;
}

#fileImport, #infoPreview {
  display: none;
}

#compile:disabled,
#fwFile:disabled,
#toolbox:disabled,
#source:disabled {
  background: #ccc;
  color: #999;
  cursor: unset;
}

#controller-top {
  padding: 5px;
  border-radius: 5px 5px 0px 0px;
  background: #eee;
  border-color: #ccc;
  border-style: solid;
  border-width: 1px 1px 0px 1px;
  margin: 0px auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  overflow: hidden;
  line-height: 100%;
}

select,
input,
label,
button {
  font-family: monospace;
  font-size: 12px;
}

#terminal {
  padding: 2px 5px;
  background: #272822;
  color: #f8f8f2;
  border: 1px solid #000;
  font-family: monospace;
  white-space: pre-wrap;
  overflow-y: scroll;
  height: 200px;
  font-size: 12px;
  width: 100%;
  margin: 0px auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  display: block;
}

#controller-bottom {
  padding: 5px;
  border-radius: 0px 0px 5px 5px;
  background: #eee;
  border-color: #ccc;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
  margin: 0px auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  overflow: hidden;
  line-height: 100%;
}

.botctrl {
  display: grid;
  grid-template: auto / 80% 20%;
  grid-row-gap: 5px;
}

.botctrl-1-1 {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
}
.botctrl-1-2 {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
}
.botctrl-2 {
  grid-row: 2;
  grid-column: span 2;
  justify-self: start;
}

#layers {
  column-count: 2;
  padding-right: 10px;
  background: #fff;
}

#layers:before {
  border-left: 1px dashed #ccc;
  border-right: 1px dashed #ccc;
  content: '';
  height: 250px;
  position: absolute;
  left: 12px;
  width: 38px;
  z-index: -1;
}

.layer {
  width: 25px;
  height: 25px;
  border-radius: 25px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  align-items: center;
  line-height: 80%;
  font-size: 80%;
  margin-bottom: 10px;
  background: #fff;
  color: #ccc;
}

.layer:hover {
  cursor: pointer;
  background: #eee;
}

.layer.active {
  background: #ccc;
  color: #fff;
}

.layer.non-empty {
  font-weight: bold;
  color: #000;
}

.layer.active.non-empty {
  color: #fff;
}

.split-content {
}

.split-content::after {
  content: ' ';
  display: block;
  height: 0;
  clear: both;
}

.split-content.fixed {
  position: fixed;
  top: 0px;
  z-index: 1000;
  pointer-events: none;
}

.fixed p {
  background: #fff;
  margin: 0px;
  padding: 14px 0px;
}

.left-side {
  float: left;
  pointer-events: all;
}

.right-side {
  float: left;
  pointer-events: all;
}

.rigth-side:after {
  content: ' ';
  display: block;
  height: 0;
  clear: both;
}

#visual-keymap {
  background: #fff;
  border-radius: 5px;
  border: 5px solid #fff;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

#visual-keymap {
  position: relative;
}

#visual-keymap:after {
  content: ' ';
  display: block;
  height: 0;
  clear: both;
}

.key {
  border: #ccc 1px solid;
  border-radius: 2px;
  position: absolute;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  background: #fff;
  line-height: 100%;
  padding: 1px;
  white-space: pre-line;
  cursor: pointer;
}

.key:empty {
  background: #eee;
}

.key:empty:before {
  content: 'N/A';
  color: #ccc;
}

.key .remove {
  width: 0px;
  height: 0px;
  overflow: hidden;
  position: absolute;
  right: 0px;
  top: 0px;
  padding-right: 2px;
  color: #ccc;
  cursor: pointer;
}

.key:hover .remove {
  width: unset;
  height: unset;
}

.key.active-key {
  background: #d4f9d1;
}

.key-container,
.key-layer {
  font-size: 10px;
  display: block;
}

.key-contents {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  border: 1px solid #ccc;
  margin: 0px auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  padding: 1px;
  background: #fff;
}

.key-contents:empty {
  background: #eee;
}

.key-contents:empty:before {
  content: 'N/A';
  color: #ccc;
}

.key-contents.active-key {
  background: #d4f9d1;
}

.key-layer-input {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #ccc;
  background: #eee;
  margin: 0px auto;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  padding: 1px;
  background: #fff;
  text-align: center;
}

#keycodes {
  position: relative;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  padding: 5px 0px 0px 5px;
  background: #eee;
  float: left;
  border-radius: 4px;
  border: 1px #ccc solid;
}

.keycode {
  width: 32px;
  height: 32px;
  margin: 0px 5px 5px 0px;
  border: #ccc 1px solid;
  border-radius: 2px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  user-select: none;
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  background: #fff;
  float: left;
  font-size: 70%;
  line-height: 11px;
  white-space: pre-line;
  padding: 1px;
  position: relative;
}

.keycode:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
  z-index: 1001;
  /*opacity: .5;
  -moz-transform: scale(.8);
  -webkit-transform: scale(.8);
  transform: scale(.8);*/
}

.keycode:empty:after {
  content: 'N/A';
}

.keycode-container,
.keycode-layer {
  font-size: 10px;
  display: block;
}

.keycode-container:after,
.keycode-layer:after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #ccc;
  background: #eee;
  margin: 0px auto;
  display: block;
}

.keycode[title]:before {
  content: '';
  position: absolute;
  right: 0px;
  top: 0px;
  border-left: 5px rgba(0, 0, 0, 0) inset;
  border-top: 5px #fff inset;
}

.keycode-1250 {
  width: 41.25px;
}
.keycode-1500 {
  width: 50.5px;
}
.keycode-1750 {
  width: 59.75px;
}
.keycode-2000 {
  width: 69px;
}
.keycode-2250 {
  width: 78.25px;
}
.keycode-2750 {
  width: 96.75px;
}
.keycode-6250 {
  width: 226.25px;
}

.keycode-select {
  border: solid 2px green;
}

.space {
  height: 32px;
  margin: 0px 5px 5px 0px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  user-select: none;
  float: left;
  font-size: 70%;
  line-height: 99%;
}

.space-250 {
  width: 4.25px;
}
.space-500 {
  width: 13.5px;
}
.space-750 {
  width: 22.75px;
}
.space-1000 {
  width: 32px;
}
.space-1250 {
  width: 41.25px;
}
.space-1500 {
  width: 50.5px;
}
.space-3500 {
  width: 124.5px;
}
.space-0 {
  width: 0px;
  margin: 0px;
  clear: left;
}
.space-label {
  width: 100%;
  clear: both;
  height: 20px;
  justify-content: left;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

.hint {
  font-size: 12px;
}

.backend-status {
  z-index: 3000;
  display: grid;
  position: fixed;
  top: 0;
  left: 0;
  background: #222;
  color: #bbb;
  width: 100%;
  grid-template: 20px / 16ch 1fr 1fr 25ch;
  grid-template-areas: 'title status version jobs';
  align-items: center;
  font-size: small;
}

.bes-title {
  justify-self: start;
}

.bes-status {
  justify-self: start;
  color: lightgreen;
}

.bes-error {
  color: red;
}

.bes-version {
  justify-self: end;
}

.bes-jobs {
  justify-self: end;
}

.topctrl {
  display: grid;
  grid-template: auto / 45% 35% 20%;
}

.topctrl-1 {
  grid-column: 1;
}
.topctrl-2 {
  grid-column: 2;
}
.topctrl-3 {
  grid-column: 3;
}
