:root {
  --base: #081c4b;
  --light: #2e4373;
  --lighter: #6e7c9c;
  --gray: #d1d1d1;
  --off-white: #f0f1ff;
  --link: #bd7f13;
  --link-hover: #ca5b16;
  --debug: #715ec7;
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.neb.host/Lato/Lato-Regular.ttf) format('truetype');
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  height: 100%;
}

body {
  background-color: #f0f1ff;
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #bd7f13;
}
a:hover {
  color: #ca5b16;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
}

hr {
  margin: 0.5em 0;
}

ol {
  padding: 20px;
}

p {
  margin: 0;
}

button {
  align-items: center;
  background-color: #ddd;
  border: 0;
  border-radius: 4px;
  color: #6e7c9c;
  cursor: pointer;
  display: flex;
  flex: 1;
  font-family: inherit;
  font-weight: bold;
  height: 50px;
  justify-content: center;
  margin: 0 6px 0 0;
  padding: 0;
  text-transform: uppercase;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.3);
}
a.icon,
button.icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.4rem;
  padding: 0 4px;
}
button.icon:hover {
  color: #fff;
}

button.help {
  background-color: #ddd;
  border-radius: 4px;
  display: inline-block;
  height: 20px;
  margin-right: 2px;
  position: relative;
  top: 1px;
  width: 20px;
}
button.help i {
  bottom: 1px;
  position: relative;
}

button:disabled {
  background-color: #eee;
  color: #ddd;
  cursor: not-allowed;
}

.container {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}

.radio {
  margin: 0.2rem;
}
.radio input[type='radio'] {
  position: absolute;
  opacity: 0;
}
.radio input[type='radio'] + .radio-label.radio-label-disabled {
  color: #666;
}
.radio input[type='radio'] + .radio-label:before {
  background: #f4f4f4;
  border: 1px solid #b4b4b4;
  border-radius: 100%;
  content: '';
  cursor: pointer;
  display: inline-block;
  height: 1em;
  margin-right: 0.5em;
  position: relative;
  text-align: center;
  transition: all 250ms ease;
  top: 0;
  vertical-align: top;
  width: 1em;
}
.radio input[type='radio']:checked + .radio-label:before {
  background-color: #529952;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}
.radio input[type='radio']:focus + .radio-label:before {
  outline: none;
  border-color: #529952;
}
.radio input[type='radio']:disabled + .radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}
.radio input[type='radio'] + .radio-label:empty:before {
  margin-right: 0;
}

.switch {
  background-color: #444;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 20px;
  position: relative;
  width: 32px;
}
.switch[data-status='true'] {
  background-color: #529952;
}
.switch[data-status='true'] .knob {
  transform: translateX(calc(100% - 4px));
}
.switch .knob {
  background-color: #fff;
  border-radius: 8px;
  display: block;
  height: calc(100% - 4px);
  left: 2px;
  position: absolute;
  top: 2px;
  transform: translateX(0);
  transition: transform 0.3s;
  width: 50%;
}

header {
  align-items: center;
  background: #081c4b;
  border-bottom: 1px solid #000;
  color: #d1d1d1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 50px;
  justify-content: space-between;
  padding: 0 16px;
}
header .menu-left {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: 70px;
}
header .menu-left #nav-overlay {
  align-items: unset;
  background-color: transparent;
  display: none;
  height: 100%;
  justify-content: left;
  left: 0;
  position: absolute;
  top: 50px;
  width: 100%;
  z-index: 10;
}
header .menu-left #nav-overlay.show {
  display: flex;
}
header .menu-left #nav-overlay #nav-content {
  animation: SlideRight 200ms;
  background-color: #fff;
  border-radius: 0;
  box-shadow: 3px 5px 5px rgb(0 0 0 / 15%);
  box-sizing: border-box;
  max-height: calc(100% - 41px);
  max-width: 500px;
  overflow-y: auto;
  padding: 0px;
  position: relative;
  top: 0;
  width: 100%;
}
@media (min-width: 415px) {
  header .menu-left #nav-overlay #nav-content {
    width: 325px;
  }
}
header .menu-left #nav-overlay #nav-content a {
  color: #111;
  text-decoration: none;
}

header .menu-left #nav-overlay #nav-content .container {
  align-items: normal;
  padding: 0;
}
header .menu-left #nav-overlay #nav-content .container .nav-header {
  color: #081c4b;
  font-size: 2rem;
  padding-bottom: 18px;
  padding-left: 18px;
  padding-top: 18px;
}
header .menu-left #nav-overlay #nav-content .container .nav-list a {
  align-items: center;
  background-color: transparent;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  height: 30px;
  justify-content: left;
  padding: 4px 0 4px 18px;
}
@media (hover: hover) {
  header .menu-left #nav-overlay #nav-content .container .nav-list a:hover {
    background-color: #93a0c5;
  }
}
header .menu-left #nav-overlay #nav-content #button-nav-close {
  font-size: 2rem;
  height: 24px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
}
@media (hover: hover) {
  header .menu-left #nav-overlay #nav-content #button-nav-close a:hover {
    color: #181f86;
  }
}
header .menu-left #nav-overlay #nav-content .nav-footer {
  display: flex;
}
header .menu-left #nav-overlay #nav-content #footer-neb-host {
  background: #2e4373;
  border-top: 2px solid #081c4b;
  bottom: 9px;
  color: #d1d1d1;
  font-family: 'Consolas', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  height: 18px;
  left: 0;
  letter-spacing: initial;
  margin-top: 20px;
  padding: 10px 18px;
  position: absolute;
  right: 0;
  text-align: left;
  z-index: 2;
}
header .menu-left #nav-overlay #nav-content #footer-neb-host a:hover {
  text-decoration: underline;
}

header .title {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 150%;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  header .title {
    font-size: 2rem;
    line-height: 100%;
    letter-spacing: 0.01em;
  }
}
header .menu-right {
  display: flex;
  width: 70px;
}
header .menu-right button#button-settings {
  display: flex;
  justify-content: flex-end;
  margin-right: 0;
}

section#dashboard {
  align-items: center;
  background: #bec7dd;
  border-bottom: 1px solid #868686;
  border-top: 1px solid #868686;
  display: flex;
  height: 40px;
  justify-content: left;
  padding: 5px 18px;
}
section#dashboard #soundPlayersCount {
  padding-right: 10px;
}
section#dashboard button {
  color: #2e4373;
  flex: 0;
  font-size: 2.4rem;
}
section#dashboard button:hover {
  color: #000000;
}
section#dashboard button span,
section#dashboard a span {
  display: none;
  font-size: 1.6rem;
}
@media (min-width: 768px) {
  section#dashboard button span,
  section#dashboard a span {
    display: inline-block;
    margin-left: 5px;
    width: 100px;
  }
}

section#dashboard button.icon:disabled {
  background-color: #bec7dd;
  color: #9aabd0;
}
section#dashboard button.icon:disabled > * {
  color: #9aabd0;
}

section#dashboard a#button-download-ah {
  align-items: center;
  display: none;
  flex: 0;
  font-weight: bold;
  height: 50px;
  justify-content: center;
  margin: 0 6px 0 0;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}
section#dashboard a#button-download-ah span {
  display: none;
}
@media (min-width: 768px) {
  section#dashboard a#button-download-ah span {
    display: inline-block;
    margin-left: 5px;
    width: 150px;
  }
}

/* Main Sections */
section#mix-demo {
  background-color: #f1f3f4;
  display: none;
  margin: 1rem;
  padding: 0;
}
section#mix-demo fieldset {
  border: 2px solid var(--base);
}
section#mix-demo fieldset legend {
  background-color: #f1f3f4;
  border: 2px solid var(--base);
  margin: 0 0.5em;
  padding: 0 0.3em;
}

section#players {
  clear: both;
  display: block;
  min-height: 200px;
  margin: 0 0 15px;
  overflow-y: auto;
  padding: 0;
  width: 100%;
}
@media (min-width: 576px) {
  section#players {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 5px;
  }
}
@media (min-width: 992px) {
  section#players {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 5px;
  }
}
@media (min-width: 1200px) {
  section#players {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 5px;
  }
}

section#hex-dump {
  clear: both;
  display: none;
  flex-direction: column;
  padding: 5px;
  width: 100%;
}
section#hex-dump #hex-dump-contents {
  height: 300px;
  margin: 0 auto;
  width: 600px;
}

footer {
  background: #2e4373;
  bottom: 0;
  clear: left;
  color: #d1d1d1;
  padding: 10px;
  position: fixed;
  width: 100%;
}
footer a:hover {
  color: #ffc107;
}

.radio {
  margin: 0.2rem;
}
.radio input[type='radio'] {
  position: absolute;
  opacity: 0;
}
.radio input[type='radio'] + .radio-label.radio-label-disabled {
  color: #666;
}
.radio input[type='radio'] + .radio-label:before {
  background: #f4f4f4;
  border: 1px solid #b4b4b4;
  border-radius: 100%;
  content: '';
  cursor: pointer;
  display: inline-block;
  height: 1em;
  margin-right: 0.5em;
  position: relative;
  text-align: center;
  transition: all 250ms ease;
  top: 0;
  vertical-align: top;
  width: 1em;
}
.radio input[type='radio']:checked + .radio-label:before {
  background-color: #529952;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}
.radio input[type='radio']:focus + .radio-label:before {
  outline: none;
  border-color: #529952;
}
.radio input[type='radio']:disabled + .radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
}
.radio input[type='radio'] + .radio-label:empty:before {
  margin-right: 0;
}

.switch {
  background-color: #444;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  height: 20px;
  position: relative;
  width: 32px;
}
.switch[data-status='true'] {
  background-color: #529952;
}
.switch[data-status='true'] .knob {
  transform: translateX(calc(100% - 4px));
}
.switch .knob {
  background-color: #fff;
  border-radius: 8px;
  display: block;
  height: calc(100% - 4px);
  left: 2px;
  position: absolute;
  top: 2px;
  transform: translateX(0);
  transition: transform 0.3s;
  width: 50%;
}

audio {
  display: none;
  height: 4rem;
  margin-top: 0.25rem;
  width: 100%;
}

/* animation */
@keyframes SlideRight {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0px);
  }
}
@keyframes SlideLeft {
  0% {
    opacity: 1;
    transform: translateX(0px);
  }
  90% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: translateX(-200px);
  }
}
