@import "flive-vars";

.base {}
.content-canvas {
  margin: 0 auto;
  canvas {
    cursor: move;
    border: 1px solid  $flive-grey;
    image-rendering: optimizeQuality;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
    display: block;
  }
}
.helpers {
  font-size: 12px;
  .helper {
    display: inline-block;
    background: #eee;
    padding: 2px 5px;
    margin: 0 0 0 15px;
  }
  .btn {
    float: left;
    margin: 6px 6px 0 0;
  }
  &:after {
    content: '';
    display: block;
    clear: both;
  }
}
.form {
  background: #f9f9f9;
  margin: 25px -20px -20px -20px;
  padding: 0 20px 20px 20px;
  border-top: 1px solid lighten($flive-grey, 5);
}
.backgroundPicker {
  border: 1px solid  $flive-grey;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.slider-zoom {
  padding: 0 4px 0 74px;
  margin: 0 5px 0 0;
  display: block;
  width: 600px;
  position: relative;
  border-radius: 4px;
  border: 1px solid  $flive-grey;
  background: #fff;
  overflow: hidden;
  .value {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: lighten($flive-grey, 28);
    padding: 7px;
    width: 79px;
  }
  input[type=range] {
    width: 100%;
    border-left: 1px solid  $flive-grey;
    display: block;
    /*removes default webkit styles*/
    -webkit-appearance: none;
    /*fix for FF unable to apply focus style bug */
    padding: 15px 11px;
    position: relative;
  }
  input[type=range]::-webkit-slider-runnable-track {
    width: 400px;
    height: 5px;
    background: lighten($flive-grey, 20);
    border: none;
    border-radius: 3px;
  }
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: darken($flive-grey, 10);
    border: 1px solid $flive-dark-grey;
    margin-top: -5px;
  }
  input[type=range]:focus {
    outline: none;
  }
  input[type=range]:focus::-webkit-slider-runnable-track {
    background: lighten($flive-grey, 25);
  }

  input[type=range]::-moz-range-track {
    width: 400px;
    height: 5px;
    background: lighten($flive-grey, 28);
    border: none;
    border-radius: 3px;
  }
  input[type=range]::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: darken($flive-grey, 10);
    border: 1px solid $flive-dark-grey;
  }

  /*hide the outline behind the border*/
  input[type=range]:-moz-focusring {
    outline: 1px solid white;
    outline-offset: -1px;
  }

  input[type=range]::-ms-track {
    width: 400px;
    height: 5px;

    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;

    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;

    /*remove default tick marks*/
    color: transparent;
  }
  input[type=range]::-ms-fill-lower {
    background: lighten($flive-grey, 28);
    border-radius: 10px;
  }
  input[type=range]::-ms-fill-upper {
    border: 1px solid $flive-dark-grey;
    border-radius: 10px;
  }
  input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: darken($flive-grey, 10);
    border: 1px solid $flive-dark-grey;
  }
  input[type=range]:focus::-ms-fill-lower {
    background: lighten($flive-grey, 28);
  }
  input[type=range]:focus::-ms-fill-upper {
    background: lighten($flive-grey, 28);
  }
}
.size {
  display: block;
  text-align: right;
  color: #fff;
  padding-left: 0.8em;
  .helper {
    text-align: left;
    margin: 0 15px 0 0;
  }
  .helper-button {
    float: left;
    margin-top: 0.5em;
  }
  .high {
    background: $flive-green;
  }
  .medium {
    background: $flive-orange;
  }
  .low {
    background: $flive-red;
  }
}
.setting {
  display: inline-block;
  vertical-align: top;
  padding: 5px;
  margin: 10px 25px 0 0;
  .name {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.8rem;
  }
  &:last-child {
    margin-right: 0;
  }
}
.setting-verticals-wrapped {
  display: inline-block;
  .setting {
    display: block;
  }
}
.alignment-selector {
  width: 96px;
  height: 96px;
  button {
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0;
    display: block;
    float: left;
    margin: 1px;
    background: #fff;
    border: 1px solid  $flive-grey;
    color: $flive-grey;
    border-radius: 4px;
    .arrow {
      justify-content: center;
    }
    .up-left:before, .down-right:before {
      transform: rotate(-45deg);
    }
    .up-right:before, .down-left:before {
      transform: rotate(45deg);
    }
  }
}

.compression {
  display: none;
}

.select-size {
  margin: 1.5em 0 0 0;
  max-width: 250px;
}
