@font-face {
  font-family: Avenir;
  src: url("https://cdn.glitch.global/1db6bbc5-abec-49be-aac3-2ce51a290462/Avenir%20Black.ttf?v=1689625491217")
    format("opentype");
}

@font-face {
  font-family: Avenir Reg;
  src: url("https://cdn.glitch.global/1db6bbc5-abec-49be-aac3-2ce51a290462/Avenir%20Regular.ttf?v=1689692775232")
    format("opentype");
}

html {
  box-sizing: border-box;
  font-size: 16px;
  background-color: #63666a;
  font-family: Avenir;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* adjust typography defaults */
body {
  margin: 1rem;
  line-height: 1.5;
  color: white;
  font-family: Avenir;
}

/* images and videos max out at full width */
img,
video {
  height: auto;
  max-width: 100%;
}

.hidden {
  display: none;
}

#notSupported {
  padding: 1em;
  background-color: red;
  color: white;
  margin-top: 1em;
  margin-bottom: 1em;
}

#Title {
  width: 98%;
  left: 1%;
  right: 1%;
  position: relative;
  display: flex;
  align-items: baseline;
}

#container {
  width: 100%;
  min-width: 1300px;
  min-height: 500px;
}

#Left {
  position: relative;
  width: 20%;
  left: 1%;
  float: left;
}

#Device {
  height: 5%;
  min-height: 70px;
  display: flex;
  align-items: center;
}

#Presets {
  height: 50%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

#Logo {
  width: 100%;
  display: flex;
  align-items: center;
}

#Right {
  position: relative;
  width: 75%;
  right: 1%;
  float: right;
  display: flex;
  flex-direction: column;
}

#Controls {
  position: relative;
  height: 60%;
  min-height: 400px;
  min-width: 600px;
}

#Sensor1 {
  display: flex;
  justify-content: center;
  margin-top: 1%;
}

#S2 {
  position: absolute;
  border-style: solid;
  border-color: transparent;
  border-width: 3px;
}

#S1 {
  position: absolute;
  bottom: 40%;
  margin-right: 30%;
  border-style: solid;
  border-color: #79da75;
  border-width: 3px;
}

#S3 {
  position: absolute;
  bottom: 40%;
  margin-left: 30%;
  border-style: solid;
  border-color: transparent;
  border-width: 3px;
}

#S4 {
  position: absolute;
  bottom: 3%;
  border-style: solid;
  border-color: transparent;
  border-width: 3px;
}

#B1 {
  position: absolute;
  top: 70%;
  right: 80%;
  border-style: solid;
  border-color: #79da75;
  border-width: 3px;
}

#B2 {
  position: absolute;
  top: 70%;
  left: 80%;
  border-style: solid;
  border-color: transparent;
  border-width: 3px;
}

#Sensor2 {
  display: flex;
  justify-content: space-evenly;
}

#Sensor3 {
  display: flex;
  justify-content: space-evenly;
}

#Editing {
  position: relative;
  min-height: 300px;
  min-width: 600px;
  display: flex;
}

#EditingLeft {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

#CCMPE {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  min-width: 600px;
}

#CHANNEL {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  min-width: 600px;
}

#CCVALUE {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  min-width: 600px;
}

#LED {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  min-width: 600px;
}

#ONOFF {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  min-width: 600px;
}

#RANGE {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  min-width: 600px;
}

#EditingRight {
  display: flex;
  flex-direction: column;
  min-width: 300px;
}

#FUNCTION {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

#note {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

#Apply {
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: visible;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: none;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 1500ms infinite linear;
  -moz-animation: spinner 1500ms infinite linear;
  -ms-animation: spinner 1500ms infinite linear;
  -o-animation: spinner 1500ms infinite linear;
  animation: spinner 1500ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

/* Animation */

@-webkit-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spinner {
  0% {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.button-wrapper canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}