body {
  background-color: #333;
  margin: 0;
  padding: 0;
  font-family: 'Exo 2', sans-serif;
  min-width: 800px;
}

#level-btns {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-right: 5px;
  width: 250px;
  height: 40px;
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translate(-50%, 0);
  visibility: hidden;
}

#level-btns div {
  width: 80px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 100;
  color: white;
  opacity: 0.5;
  user-select: none;
  transition: font-size .2s;
}
#level-btns .unlocked {
  opacity: 1;
  font-weight: 400;
  cursor: pointer;
}
#level-btns .unlocked:hover {
  font-size: 26px;
}

#start {
  color: white;
  font-size: 72px;
  font-weight: 100;
  position: absolute;
  left: 50%;
  transform: translate(-50%,0);
  top: 35px;
  letter-spacing: 0px;
  user-select: none;
  cursor: pointer;
  animation-name: flash;
  animation-duration: 1s;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

#start:hover {
  animation-name: none;
  color: #8cff3b;
}

@keyframes flash {
  from {color: white;}
  to {color: #ff33aa;}
}

#stop {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #ddd;
  font-size: 64px;
  font-weight: 100;
  user-select: none;
  cursor: pointer;
  display: none;
}

#stop:hover {
  color: #888;
}

#hi-score {
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  background: linear-gradient(
    225deg,
    white,
    white 50%,
    transparent 51%,
    transparent
  );
  user-select: none;
  display: none;
}
#hi-cropper {
  width: 130px;
  height: 130px;
  position: relative;
  overflow: hidden;
}
#hi-wrapper {
  transform: rotate(45deg) translate(21%,-15%);
  text-align: center;
  width: 130px;
  font-size: 30px;
  color: #555;
}
#hi-wrapper :nth-child(1) {
  font-weight: 100;
  font-size: 18px;
}
#hi-wrapper :nth-child(2) {
  margin-top: -3px;
  font-size: 32px;
}

#score {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 12vh;
  width: 200px;
  transform: translate(-50%,0);
  color: white;
  visibility: hidden;
  user-select: none;
  z-index: -1;
}

#score div:nth-child(1) {
  font-weight: 100;
  font-size: 36px;
  margin-bottom: -15px;
}
#score div:nth-child(2) {
  font-size: 100px;
}
#score div:nth-child(3) {
  background-color: teal;
  position: absolute;
  right: 10px;
  top: 7px;
  height: 30px;
  width: 40px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  display: none;
}

#lights {
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.light {
  width: 100px;
  height: 100px;
  margin: 0 20px 0 20px;
  border-radius: 60px;
  border: 10px solid #333;
  background-color: white;
  z-index: 1;
}

.light.inactive {
  background-image: radial-gradient(white, black);
}

#line {
  width: 100%;
  height: 2px;
  background-color: #888;
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 0;
}

#mode-toggle {
  border-radius: 5px;
  border: 2px solid white;
  width: 250px;
  height: 36px;
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translate(-50%,0);
  overflow: hidden;
}

#mode-toggle div {
  width: 50%;
  height: 100%;
  float: left;
  text-align: center;
  line-height: 34px;
  color: white;
  font-size: 22px;
  user-select: none;
}

#mode-toggle div:hover {
  background-color: #888;
}

#mode-toggle div.selected {
  color: #222;
  background-color: white;
}

#mode-label {
  color: white;
  position: absolute;
  left: 50%;
  transform: translate(-50%,0);
  bottom: 100px;
  font-weight: 100;
  font-size: 18px;
}

#hue-settings {
  width: 300px;
  height: 130px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%,0);
  opacity: 0;
  display: none;
  flex-direction: column;
  justify-content: space-around;
}

.setting {
  width: 100%;
  height: 35px;
  background-color: teal;
}

.setting input {
  float: right;
  width: 70%;
  height: 35px;
  padding-left: 8px;
  font-size: 18px;
  border: none;
  box-shadow: inset 0 0 12px #333;
  font-weight: 100;
  font-family: "Exo 2", sans-serif;
  text-overflow: ellipsis;
}

.setting div {
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 35px;
  width: 30%;
  float: left;
  text-align: center;
}

#calibrate {
  background-color: purple;
  border-radius: 10px;
  width: 120px;
  height: 35px;
  align-self: center;
  color: white;
  text-align: center;
  line-height: 35px;
  font-size: 18px;
  user-select: none;
  cursor: pointer;
}

#calibrate:hover {
  color: purple;
  background-color: white;
}

#hints {
  width: 400px;
  height: 100px;
  position: absolute;
  left: 50%;
  bottom: 85px;
  transform: translate(-50%,0);
  user-select: none;
  visibility: hidden;
}

#symbols {
  display: flex;
  justify-content: center;
  align-items: center;
}

#lvl-number {
  display: block;
  font-size: 36px;
  font-weight: 100;
  width: 100%;
  text-align: center;
  color: white;
  margin-bottom: 5px;
}

.arrow {
  color: white;
  opacity: 0.2;
  font-size: 54px;
  font-weight: 100;
  margin: 0 10px 0 10px;
}
.arrow.active {
  opacity: 1;
}

.ball {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  line-height: 48px;
  display: inline-block;
  margin: 0 4px 0 4px;
  color: white;
  opacity: 0.8;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
}
.ball.blue {
  background-color: rgb(0,0,255);
}
.ball.red {
  background-color: rgb(255,0,0);
}

.conjunction {
  display: inline-block;
  color: white;
  font-weight: 100;
}
.conjunction.or {
  font-size: 48px;
  margin: 0 -1px 0 -1px;
}
.conjunction.and {
  font-size: 30px;
  margin: 0 1px 0 1px;
}

#spinner-wrapper {
  color: #ccc;
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 3px;
  height: 6px;
  overflow: hidden;
  padding: 13px;
  transform: translate(70px,0);
  font-size: 4px;
  display: none;
}
