* {
  box-sizing: border-box;
}

/* Required to allow restyling */
::-webkit-progress-bar {
  background-color: transparent;
}

@font-face {
  font-family: "Myriad Pro";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/MYRIADPRO-REGULAR.woff") format("woff");
}

@font-face {
  font-family: "Myriad Pro";
  font-style: normal;
  font-weight: 300;
  src: url("assets/fonts/MyriadPro-Light.woff") format("woff");
}

@font-face {
  font-family: "Myriad Pro";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/MYRIADPRO-SEMIBOLD.woff") format("woff");
}

@font-face {
  font-family: "Myriad Pro";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/MYRIADPRO-BOLD.woff") format("woff");
}

body {
  --question-active-color: #007bff;
  --question-correct-color: green;
  --question-wrong-color: red;
    
    
   /* Fix for ios quiz hiding behind toolbar */
  height: -webkit-fill-available;
  width: -webkit-fill-available;

  font-family: "Myriad Pro", sans-serif;
}

.container {
  position: fixed;
  top: 0;
  left: 5vw;
  z-index: 10;
  width: 90vw;
}

.control-panel {
  display: flex;
  flex-flow: column;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 10px;
  box-sizing: border-box;
}

.control-panel label {
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  align-items: center;
}

.slider-container {
  position: relative;
  flex: 1;
}

.slider-name {
  margin-right: 10px;
}

.slider-value {
  min-width: 50px;
  text-align: right;
  pointer-events: none;
}

@media screen and (orientation: landscape) and (max-device-width: 912px) {
  .container {
    left: 0;
    width: 100vw;
  }
  .control-panel {
    flex-direction: row;
  }
  .control-panel label {
    margin-bottom: 0;
    margin-right: 10px;
  }
  .slider-value {
    min-width: 38px;
  }
}

.control-panel input[name="h"] {
  --slider-track-color: var(--hue-color);
  --slider-track-color: linear-gradient(
    to right,
    hsl(0deg 100% 50%),
    hsl(15deg 100% 50%),
    hsl(30deg 100% 50%),
    hsl(45deg 100% 50%),
    hsl(60deg 100% 50%),
    hsl(75deg 100% 50%),
    hsl(90deg 100% 50%),
    hsl(105deg 100% 50%),
    hsl(120deg 100% 50%),
    hsl(135deg 100% 50%),
    hsl(150deg 100% 50%),
    hsl(165deg 100% 50%),
    hsl(180deg 100% 50%),
    hsl(195deg 100% 50%),
    hsl(210deg 100% 50%),
    hsl(225deg 100% 50%),
    hsl(240deg 100% 50%),
    hsl(255deg 100% 50%),
    hsl(270deg 100% 50%),
    hsl(285deg 100% 50%),
    hsl(300deg 100% 50%),
    hsl(315deg 100% 50%),
    hsl(330deg 100% 50%),
    hsl(345deg 100% 50%),
    hsl(360deg 100% 50%)
  );
}

.control-panel input[name="s"] {
  --slider-track-color: linear-gradient(
    to right,
    hsl(0, 0%, 50%),
    var(--hue-color)
  );
}

.control-panel input[name="l"] {
  --slider-track-color: linear-gradient(
    to right,
    black,
    var(--hue-color),
    #ffffff
  );
}
