:root {
  --primary: #007bff;
  --base: #d3ebf5;
  --border-color: #a5c5e7;
  --light-blue: #9cddf8;
  --hover-blue: #8fcfe9;
  --light-grey: #efefef;
  --box-shadow-grey: #dadada;
  --dark-grey: #434343;
  --grey: #c5bfbf;
  --yellow: #fff6be;
  --green: #b0f3d4;
  --dark-green: #39b57b;
  --orange: #ffdd9e;
  --purple: #dbbbff;
  --pink: #ffa6c7;
  --max-width: 1080px;
  --border-radius: 15px;
}

body {
  background: var(--base);
  padding: 50px 25px 25px;
  margin: 0 auto;
  width: var(--max-width);
  position: relative;
}

/* Brand banner on desktop without affecting layout flow */
#mobile-brand-banner {
  position: fixed;
  top: 10px;
  right: 24px;
  left: auto;
  transform: none;
  z-index: 2;
  pointer-events: none;
}

#mobile-brand-banner img {
  width: 130px;
  max-width: 130px;
  height: auto;
}

a:hover {
  cursor: pointer;
}

hr {
  background-color: var(--border-color);
}

i {
  pointer-events: none;
  margin-right: 5px;
}

.hidden {
  display: none !important;
}

.row-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
      grid-template-columns: 1fr 1fr;
  grid-gap: 15px;
}

#console {
  position: fixed;
  width: 300px;
  margin: 0 auto;
  border-radius: 15px;
  padding: 15px;
  background: white;
}

#console #reconnect-btn.active,
#console #pair-btn.active {
  background-color: var(--green);
}

#console #instructions {
  background: var(--green);
  border-radius: 5px;
  padding: 15px;
}

#console #instructions img {
  max-width: 100%;
  margin-bottom: 15px;
}

#console #instructions label:hover {
  cursor: pointer;
}

#console #warnings div {
  background: var(--yellow);
  padding: 15px;
  border-radius: 3px;
  line-height: 20px;
  margin: 10px 0;
}

#console .p5canvas {
  border: 1px solid lightgrey;
}

#options-container {
  border: 1px solid var(--grey);
  padding: 15px 10px;
  max-width: 100%;
  border-top: none;
  background-color: #efefef;
  max-height: -webkit-fit-content;
  max-height: -moz-fit-content;
  max-height: fit-content;
  width: 100%;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  display: inline-block;
}

#options-container.minimized {
  max-height: 0;
  display: none;
}

#options-container .option {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 3px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-flow: wrap;
      flex-flow: wrap;
}

#options-container .option .break {
  -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
  height: 0;
}

#options-container .option .info {
  pointer-events: all;
}

#options-container .option .info-container {
  margin-left: auto;
}

#options-container .option .info-container:hover {
  cursor: pointer;
}

#options-container .option .description {
  font-size: smaller;
  line-height: 16px;
}

#options-container #show-debugger-btn {
  margin: 0 auto;
}

#options-container #gesture-confidence-container .gesture-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0;
}

#options-container #gesture-confidence-container .gesture-container.active label,
#options-container #gesture-confidence-container .gesture-container.active .confidence {
  background: var(--purple);
}

#options-container #gesture-confidence-container .gesture-container .label-container {
  width: 50%;
}

#options-container #gesture-confidence-container .gesture-container .label-container label {
  max-width: 100px;
  text-overflow: ellipsis;
  overflow: hidden;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

#options-container #gesture-confidence-container .gesture-container .confidence {
  margin-bottom: 0.5rem;
  width: 50%;
  margin-left: auto;
  background: var(--box-shadow-grey);
  border-radius: 5px;
}

#options-expand-btn {
  margin: 0 auto;
  border-bottom-left-radius: 50%;
  padding: 5px 6px;
  text-align: center;
  border-bottom-right-radius: 50%;
  border-top: none;
  background-color: var(--light-grey);
  border: 1px solid var(--grey);
}

#options-expand-btn:hover {
  cursor: pointer;
}

#options-expand-btn i {
  margin: 0;
}

.heading {
  position: inherit;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  background: var(--primary);
  top: -40px;
  font-size: 28px;
  text-align: center;
  border-radius: 27px;
  padding: 5px 30px;
  font-family: consolas, monospace;
  color: white;
  margin-bottom: -20px;
  z-index: 1;
}

#console .heading {
  background: var(--primary);
  top: 25px;
}

#console .content {
  margin-top: 30px;
}

button.active {
  background-color: var(--green);
}

.training-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

#train-progress {
  margin: 0 10px;
}

#warning {
  display: inline-block;
  background: var(--yellow);
  padding: 5px 10px;
  margin: 10px 0px;
}

#warning.hidden {
  display: none;
}

#status-container {
  background: var(--dark);
  width: 100%;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  color: white;
}

#status-container.hidden {
  display: none;
}

#status-container.success {
  background: var(--dark-green);
}

button {
  display: block;
  font-size: 16px;
  border-radius: 3px;
  background-color: var(--light-grey);
  border: 1px solid var(--grey);
  -webkit-box-shadow: 2px 2px var(--box-shadow-grey);
          box-shadow: 2px 2px var(--box-shadow-grey);
  cursor: pointer;
}

.pair {
  display: block;
}

button.round:disabled {
  background: #cccccc;
  color: #8c8c8c;
}

button.round {
  margin: 0 auto;
  cursor: pointer;
  background: red;
  padding: 5px;
  border-radius: 50%;
  height: 2em;
  width: 2em;
  font-size: 30px;
  color: white;
}

.record-btn-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 10px;
}

.record-btn {
  width: 140px;
}

#record-icon {
  margin-left: 3px;
}

.sound-options {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.sound-options button {
  padding: 2px 15px;
  height: 30px;
}

#mute-btn {
  position: absolute;
  top: 10px;
  right: 20px;
}

#mute-btn.muted {
  -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
  box-shadow: inset 0px 0px 5px #c1c1c1;
  outline: 0;
  background: var(--pink);
}

#file-upload-label,
#data-upload-label {
  color: var(--dark-grey);
  display: block;
  padding: 1px 15px;
  font-size: 16px;
  border-radius: 3px;
  background-color: #efefef;
  border: 1px solid var(--grey);
  -webkit-box-shadow: 2px 2px var(--box-shadow-grey);
          box-shadow: 2px 2px var(--box-shadow-grey);
  cursor: pointer;
  margin: 10px 0;
  font-weight: normal;
}

#file-upload,
#data-upload {
  display: none;
}

.data-options-container {
  position: absolute;
  top: 0;
  right: 15px;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
}

.data-options-container button {
  margin: 5px;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.sound {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 60% 20% 20%;
      grid-template-columns: 60% 20% 20%;
  background: var(--light-grey);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  font-weight: bold;
}

.sound .name {
  padding: 5px 25px;
}

.sound .play {
  background: #9770e5;
  color: white;
  text-align: center;
  vertical-align: middle;
  padding: 5px;
}

.play:hover {
  cursor: pointer;
}

.play i {
  pointer-events: none;
  font-size: 14px;
  margin-top: 4px;
}

.remove {
  background: var(--grey);
  color: white;
  text-align: center;
  vertical-align: middle;
  padding: 5px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.remove:hover {
  cursor: pointer;
}

.remove i {
  font-size: 20px;
  margin-top: 2px;
}

.action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: var(--light-grey);
  margin-bottom: 20px;
  border-radius: 15px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  border-bottom: 1px solid var(--light-grey);
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px 15px;
}

.action:last-of-type {
  border-bottom: none;
}

.action img,
.action .icon {
  width: 80px;
  height: 80px;
  font-size: 40px;
  text-align: center;
}

input {
  margin-bottom: 15px;
}

input[type=range] {
  margin-bottom: 0;
}

.accel {
  display: inline-block;
  width: 55px;
  text-align: right;
}

.note {
  font-size: smaller;
}

.note a {
  color: black;
  text-decoration: underline;
}

.hidden-on-load {
  display: none;
  visibility: hidden;
}

canvas {
  /* visibility: hidden; */
  margin: 10px 0;
}

#counter-container h2 {
  font-size: 100px;
  font-family: "consolas";
}

#chart {
  visibility: initial;
  max-width: 100%;
}

.main-content {
  width: 700px;
  float: right;
  position: relative;
}

#toggle-video-btn {
  position: absolute;
  top: -35px;
  right: 0px;
}

div.container {
  background: white;
  border-radius: 10px;
  margin-bottom: 40px;
  padding: 15px;
  position: relative;
  border: 2px solid var(--border-color);
  max-width: none !important;
}

div.container .content {
  margin-top: -20px;
}

#counter-container {
  text-align: center;
}

select {
  margin-top: 5px;
  margin-left: 5px;
  height: 40px;
}

.color {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.color.red {
  background: red;
}

.color.green {
  background: green;
}

.color.blue {
  background: blue;
}

#info button {
  /* margin-top: -20px; */
}

.modal-header button {
  -webkit-box-shadow: none;
          box-shadow: none;
}

.modal-content form {
  padding: 0px 25px;
}

#text {
  width: 100%;
}

label,
.label {
  font-weight: bold;
}

input[type=checkbox] {
  margin: 0;
  margin-right: 5px;
}

#countdown .show-btn {
  margin-top: -20px;
}

#countdown .content {
  margin-top: 15px;
}

#timer-container label {
  background-color: transparent;
}

#timer-countdown-trigger-action {
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
}

#timer-countdown-reset-btn {
  margin: 0 auto;
  margin-bottom: 15px;
}

#timer-countdown-start-action {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

#timer-countdown-start-action .icon {
  width: 50px;
  margin-right: 10px;
}

#timer-countdown-start-action .description {
  width: 95px;
  margin-right: 10px;
}

#countdown-start-action div:not(.loop-container) {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.countdown-timer {
  width: 60px;
  font-family: monospace;
  background: grey;
  color: white;
  text-align: center;
  padding: 5px 10px;
  border-radius: 3px;
  margin-left: 10px;
  font-weight: bold;
}

.countdown-timer.active {
  background: #be97f1;
}

#timer-countdown {
  font-family: monospace;
  font-size: 40px;
  background: #97D5F1;
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 15px;
  margin-bottom: 15px;
}

#timer-countdown:hover {
  cursor: pointer;
}

.loop-container {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100%;
          flex: 0 0 100%;
}

#noise-level-display {
  background: #DFDFFE;
  padding: 10px 15px;
  border-radius: 15px;
  text-align: center;
  margin-top: -15px;
  margin-bottom: 15px;
}

#noise-level {
  font-size: 40px;
  font-family: monospace;
}

#noise-input-threshold {
  width: 50px;
  text-align: center;
  margin-bottom: 0;
}

.gesture-container {
  padding: 10px 0px;
  background-color: var(--light-grey);
  min-height: 40px;
}

.gesture-container .left-container {
  margin-top: -27px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

label {
  background-color: var(--light-blue);
  border-radius: 3px;
  padding: 3px 7px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

label.gesture {
  margin: 5px 20px 5px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0;
}

label.gesture span {
  margin: 0 10px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

label.gesture .remove {
  padding: 0 10px;
  border-radius: 0 3px 3px 0;
}

.toggle-data-btn {
  margin: 5px 0px;
  border-bottom: 1px solid var(--border-color);
}

.data-container {
  margin-top: 10px;
}

.sample-counter {
  position: absolute;
  top: 0;
  right: 0;
  background: grey;
  border-top-right-radius: 13px;
  padding: 0 10px;
  border-bottom-left-radius: 5px;
  color: white;
}

#default-gestures {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: -30px;
  margin-bottom: 15px;
}

.custom-gesture {
  border: 1px solid var(--primary);
  margin: 35px 0 10px;
  border-radius: 15px;
  padding: 10px;
  position: relative;
}

.custom-gesture.incomplete {
  background-color: var(--yellow);
}

.custom-gesture.ready {
  background-color: var(--green);
}

.custom-gesture label:hover {
  cursor: pointer;
  background-color: var(--hover-blue);
}

.sample-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 10px 0;
}

.sample-container div {
  margin: 5px;
}

.plot {
  border-radius: 5px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.plot.prediction {
  background-color: var(--purple);
}

.plot.warning {
  -webkit-animation: warning-fade;
          animation: warning-fade;
  -webkit-animation-duration: 10s;
          animation-duration: 10s;
}

.plot.highlight {
  -webkit-animation: highlight-fade;
          animation: highlight-fade;
  -webkit-animation-duration: 10s;
          animation-duration: 10s;
}

.plot .remove {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 5px 0px 0;
  margin: 0;
}

#tfjs-visor-container {
  display: none;
}

/* mobile view */
@media only screen and (max-width: 600px) {
  body {
    width: 100%;
  }
  .main-content {
    display: none;
  }
  #console {
    width: 90%;
  }
  #pair-btn {
    display: none;
  }
  .desktop-instructions {
    display: none;
  }
  .mobile-instructions {
    display: block;
  }
}

@media only screen and (min-width: 600px) {
  #pair-btn {
    display: initial;
  }
  .desktop-instructions {
    display: block;
  }
  .mobile-instructions {
    display: none;
  }
}

/* Language */
#language-select {
  position: absolute;
  right: 30px;
  top: 10px;
}

.lang-link {
  padding: 3px 5px;
  font-weight: bold;
  border-radius: 5px;
}

.lang-link:hover {
  cursor: pointer;
}

.lang-link.active {
  background: var(--purple);
}

/* Bluetooth Pairing Page */
body.bluetooth {
  width: 350px;
}

body.bluetooth #status-container {
  margin-top: 20px;
}

body.bluetooth .content {
  margin-top: 20px;
}

body.bluetooth ol {
  padding: 10px 25px 0px;
  line-height: 20px;
}

body.bluetooth li {
  margin-bottom: 10px;
}

body.bluetooth li:last-of-type {
  margin-bottom: 0px;
}

#video-container {
  position: absolute;
  left: 465px;
  bottom: 100px;
  z-index: 100;
  border-radius: var(--border-radius);
}

#video-container video {
  width: 600px;
  height: 337.5px;
  background: white;
  cursor: move;
  border-radius: var(--border-radius);
  -webkit-box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3), 0 -6px 16px -6px rgba(0, 0, 0, 0.025);
          box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3), 0 -6px 16px -6px rgba(0, 0, 0, 0.025);
}

/* DEBUG */
#debug-container {
  position: fixed;
  top: 375px;
  width: 300px;
  z-index: 100;
  background: white;
  padding: 15px;
  border-radius: 10px;
  -webkit-box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3), 0 -6px 16px -6px rgba(0, 0, 0, 0.025);
          box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3), 0 -6px 16px -6px rgba(0, 0, 0, 0.025);
}

#debug-container .title-bar {
  margin: -15px -15px 5px -15px;
  padding: 5px 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: var(--primary);
  color: white;
  font-size: 20px;
  font-family: consolas, monospace;
  cursor: move;
}

#debug-container .close-debug-btn {
  position: absolute;
  top: 10px;
  right: 9px;
  color: white;
  background: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: none;
}

#debug-container #debug-table .description {
  background: var(--light-grey);
}

#debug-container #debug-table .gesture-name {
  margin-top: 15px;
}

#debug-container #debug-table .gesture-name .debug-row {
  height: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

#debug-container #debug-table .gesture-name .debug-row:hover {
  cursor: pointer;
}

#debug-container #debug-table .gesture-name .debug-row:hover:not(.warning) .distance {
  background: var(--orange);
}

#debug-container #debug-table .gesture-name .debug-row.active .confidence {
  background: var(--purple);
}

#debug-container #debug-table .gesture-name .debug-row .label {
  margin-right: 20px;
  font-weight: normal;
}

#debug-container #debug-table .gesture-name .debug-row.warning .distance {
  background-color: var(--pink);
}

#debug-container #debug-table .gesture-name .debug-row .confidence {
  margin: 0.25rem 0;
  width: 50%;
  margin-left: auto;
  background: var(--box-shadow-grey);
  border-radius: 5px;
}

#debug-container #debug-table .gesture-name .debug-row .distance {
  font-size: small;
  margin-left: 20px;
  padding: 0px 3px;
  border-radius: 3px;
}

#debug-container #distance-label {
  position: absolute;
  top: 60px;
  right: 10px;
  font-size: 20px;
}

#debug-container .debugger-explanation {
  margin: 15px -15px -15px -15px;
  padding: 10px 15px;
  background: #efefef;
  color: black;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

#debug-container .debugger-explanation:hover {
  cursor: pointer;
}

#debug-container .explanation-body {
  display: none;
  opacity: 0;
  margin-top: 10px;
  font-size: small;
  -webkit-transition: 1s all;
  transition: 1s all;
}

#debug-container .red {
  background-color: var(--pink);
  padding: 0px 3px;
  border-radius: 3px;
}

#debug-container .explanation-body.visible {
  opacity: 1;
  display: inline-block;
}

@-webkit-keyframes highlight-fade {
  0% {
    background-color: var(--orange);
  }
  80% {
    background-color: var(--orange);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes highlight-fade {
  0% {
    background-color: var(--orange);
  }
  80% {
    background-color: var(--orange);
  }
  100% {
    background-color: transparent;
  }
}

@-webkit-keyframes warning-fade {
  0% {
    background-color: var(--pink);
  }
  80% {
    background-color: var(--pink);
  }
  100% {
    background-color: transparent;
  }
}

@keyframes warning-fade {
  0% {
    background-color: var(--pink);
  }
  80% {
    background-color: var(--pink);
  }
  100% {
    background-color: transparent;
  }
}
/*# sourceMappingURL=styles.css.map */