@import "client/common.scss";
@charset "UTF-8";

.dialog.gear-wizard, .dialog.network-test {
  min-height: 500px;
  max-height: 500px;
  width: 800px;

  .ftue-inner {
    line-height: 1.3em;
    width: 800px;
    padding: 25px;
    font-size: 15px;
    color: #aaa;
    @include border_box_sizing;
  }

  .ftue-stepnumber {
    display: block;
    float: left;
    padding: 12px;
    padding-top: 6px;
    width: 12px;
    height: 18px;
    border: solid 1px #ed3618;
    background-color: #333;
    -webkit-border-radius: 18px;
    -moz-border-radius: 18px;
    border-radius: 18px;
    color: #ed3618 !important;
    font-size: 22px;
    margin-right: 10px;
    font-family: helvetica;
    text-decoration: none;
    line-height: 27px;

    &.active {
      background-color: #ed3618;
      color: #333;
    }
  }

  .ftue-step-title {
    float: left;
    color: #ccc;
    font-size: 28px;
    width: 350px;
    margin-top: 3px;
    line-height: 30px;
    display: none;
  }

  .help-text {
    position: relative;
    clear: both;
    margin-top: 20px;
  }

  h2 {
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  .ftue-box {
    background-color: #222222;
    font-size: 13px;
    padding: 8px;

    &.list {

    }

    &.list.ports {
      height: 100px;
      overflow: auto;
    }

    &.instructions {
      height: 248px !important;
      line-height: 16px;
      @include border_box_sizing;

      .video-type {
        font-size: 10px;
        display: none;
      }
    }

    ul li {
      margin-left: 20px;
      list-style-type: disc;
    }

    .watch-video {
      margin: 8px 0 3px 0;
    }
  }

  .wizard-step[layout-wizard-step="0"] {
    .video-button-holder {
      margin-top: 100px;
    }
  }

  .wizard-step[layout-wizard-step="1"] {

    .wizard-step-content .wizard-step-column {
      width: 25%;
    }

    .watch-video.audio-input, .watch-video {
      margin-top: 29px;

      &.audio-output-showing {
        margin-top: 10px;
      }
    }

    .instructions {
      height: 268px !important;
    }

    .watch-video.audio-output {
      margin-top: 10px;
    }

    .select-audio-input-device {
      margin-bottom: 20px;
    }

    .select-audio-output-device {
      margin-bottom: 20px;
    }

    .asio-settings-input-btn, .asio-settings-output-btn, .resync-btn {
      width: 80%;
      display: inline-block;
      text-align: center;
    }

    .asio-settings-input-btn, .asio-settings-output-btn {
      margin-top: 10px;
    }

    .asio-settings-input-btn {
      display: none;
    }

    .asio-settings-output-btn {
      display: none;
    }

    .resync-status {
      color:white;
      display:none;
      line-height:32px;
      position:relative;
      text-align:center;
      width:175px;
      margin-left:5px;

      .spinner-small {
        display:inline-block;
        vertical-align:middle;
        margin-top:-5px;
      }

    }

    .resync-btn {
      margin-top: 10px;
      visibility: visible;
    }

    .frame-and-buffers {
      display: none;
      margin-top: 5px;

      .framesize {
        float:none;
        width:auto;
        margin-right:0;

        .dropdown-wrapper.easydropdown-wrapper {
          width:73px;
        }
      }
      .framesize h2 {
        display:inline;
        margin-right:15px;
      }
    }

    .audio-port {
      white-space: nowrap;
    }

    .audio-channels {
      margin-top: 15px;
    }

    .audio-output {
      display: none;
    }
  }

  .wizard-step[layout-wizard-step="2"] {
    .wizard-step-content .wizard-step-column {
      width: 25%;

      &:nth-of-type(2) {
        width: 71%;
      }

      &:nth-of-type(3) {
        width: 45%;
      }

      &:nth-of-type(4) {
        width: 9%;
      }
    }

    .instructions {
      height: 268px !important;
    }

    .watch-video {
      margin-top: 45px;
    }

    .outputs-view {
      display:none;
    }

    .inputs-view {
      padding:0;
      border-width:0;

      h3.session-audio-inputs-header {
        font-weight:normal;
        width:70%;
        font-size:14px;
        color:white;
      }

      h3.plugin-header {
        width:20%;
        font-size:14px;
        color:white;
      }

      h3.instrument-header {
        width:10%;
        font-size:14px;
        color:white;
      }

      .input-track-info {
        width:70%;
      }

      .plugin-info {
        width:20%;
      }

      .plugin-instrument {
        width:10%;
      }

      .live-tracks {
        height:198px;
      }
      .live-input {
        display:block;
        max-width:90%;
        &:before {
          content: ''
        }
        &:after {
          content: ''
        }
      }
      .input-track-info .live-input {
        padding-left:19px;
        padding-right:0;
      }
      .add-track-action { text-align:center;}
    }
  }

  .wizard-step[layout-wizard-step="3"] {

    .wizard-step-content .wizard-step-column {
      width: 25%;

      &:nth-of-type(2) {
        width: 75%;
      }
    }

    .instructions {
      height: 268px !important;
    }

    .watch-video {
      margin-top: 54px;
    }

    .ftue-box.chat-inputs {
      height:124px;
      width:85%;
      @include border_box_sizing;
    }

    .vu-meter {
      width:15%;
      padding: 0 3px;

      .ftue-controls {
        height: 124px;
      }

      .chat-fader {
        top:4px !important;
      }
    }

    .voice-chat-header {
      margin-top:10px;
    }
  }

  .wizard-step[layout-wizard-step="4"] {
    .wizard-step-content .wizard-step-column {
      width: 25%;

      &:nth-of-type(2) {
        width: 75%;
      }
    }

    .watch-video {
      margin-top: 12px;
    }

    .help-content {
      margin-top: 22px;
      margin-left: 20px;
    }

    .test-direct-monitoring {
      margin-top: 40px;
      display: inline-block;
      text-decoration: none;
      width: 90px;
      color: #ccc;

      &:hover {
        color: #fff;
      }

      &.paused {
        .playing {
          display: none;
        }
      }
      &.playing {
        .paused {
          display: none;
        }
      }

      .direct-monitoring-btn {
        padding-left: 5px;
        font-size: 16px;
      }

      * {
        vertical-align: middle;
      }
    }
  }

  // Video Gear:
  .wizard-step.video-gear {
    .wizard-step-content .wizard-step-column {
      form.video .rescanning-notice {
        margin-top: 20px;
        margin-left: -5px;

        span.spinner-small {
          display:inline-block;
          vertical-align: middle;
        }
      }

      .disable-video {
        margin-left: 3px;
        margin-top: 17px;
      }

      &:nth-of-type(1) {
        width: 50%;
        height: 350px;
      }
      &:nth-of-type(2) {
        width: 50%;
      }

      a.ftue-video-settings-help {
        margin-left:15px;
      }

      h2.select-resolution {
        margin-top:20px;
      }

      .webcam-test-btn {
        margin-top:20px;
        margin-left:4px;
      }


      .webcam-preview {
        .webcam-content {
          min-width: 200px;
          min-height: 200px;          
        }
        width: auto;
        height: auto;
        overflow: scroll;
      }

      .wizard_control {
        margin-bottom: 10px;
      }

      ul {
        margin-bottom: 20px;

        a {
          color:$ColorLink;
        }

        a:hover {
          color:$ColorLinkHover;
        }
      }

      ul.has-webcam {
        display:none;
      }
      ul.no-webcam {
        display:none;

        li.is-windows {
          display:none;
        }
        li.is-not-windows {
          display:none;
        }

        &.is-windows {
          li.is-windows {
            display:list-item;
          }
        }
        &.is-not-windows {
          li.is-not-windows {
            display:list-item;
          }
        }
      }

      .ftue-box.instructions {
        &.has-webcam {
          ul.has-webcam {
            display:block;
          }
        }
        &.no-webcam {
          ul.no-webcam {
            display:block;
          }
        }
      }
      select {
        width:350px;
      }
    }
  }

  .wizard-step.network-test, .network-test {

    .wizard-step-content .wizard-step-column {
      &:nth-of-type(1) {
        width: 25%;
      }
      &:nth-of-type(2) {
        width: 50%;
      }
      &:nth-of-type(3) {
        width: 25%;
      }
    }

    .summary {
      margin-left: 20px;
      margin-top: 22px;
    }

    .watch-video {
      margin-top: 90px;
    }

    a.start-network-test {
      margin-top: 20px;
    }

    a.forever-network-test {
      margin-top:20px;
      display:none;
    }

    .network-test-score-audio, .network-test-score-video  {
      white-space:nowrap;
      height: 40px;
      padding: 10px;
      color: white;
      font-size: 16px;
      background-color: #222;
      text-align: center;
      margin-bottom: 10px;
      width:50%;
      @include border_box_sizing;
      float:left;

      &.good {
        background-color: #72a43b;
      }
      &.acceptable {
        background-color: #D6A800;
      }
      &.bad {
        background-color: #7B0C00;
      }

      .scored-clients{display:inline}
    }

    .scoring-bar {
      width: 100%;
      height: 20px;
      left: 0;
      position: relative;
      margin-bottom:10px;
      //display:inline-block;
      //display: none;
      visibility:hidden;

      .current-score {
        background-color: gray;
        border-right: 1px solid white;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
        border-left: 1px solid #ccc;
        height: 20px;
        display: inline-block;
        position: relative;
        left: 0;
        min-width: 55px;
        text-align: left;
        padding-left: 5px;
        @include border_box_sizing;
        font-size: 12px;
        color: white;
        line-height:18px;

        .subscore {
          font-size: 10px;
          color: white;
          bottom: -15px;
          right: -16px;
          position: absolute;
        }
      }

      .good-marker {
        position: absolute;
        text-align: center;
        left: 95%;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #72a43b;
        margin-left: -5px;
        top: -7px;
      }

      .good-line {
        position: absolute;
        height: 100%;
        left: 95%;
        width: 1px;
        background-color: #72a43b;
        margin-left: -0.5px;
        top: 0;
      }
    }
    .network-test-text {
      ul {
        margin-top:10px;
      }
      li {
        margin-bottom:10px;
      }
    }

    .instructions {
      height: 228px !important;
    }

    .network-test-results {
      height: 228px !important;
      @include border_box_sizing;
      &.testing {

        text-align: left;
        .network-test-score-audio {
          //display: none;
        }

        .scoring-bar {
          display: inline-block;
          margin-bottom: 10px;
          visibility:visible;
        }

        .network-test-text {
          //background-image: url('/assets/shared/spinner.gif');
          //background-repeat:no-repeat;
          //background-position:center;
          //width:128px;
          //height:128px;
        }
      }

      &.good {
        .network-test-score-audio, .network-test-score-video {
         // background-color: #72a43b;
        }
      }

      &.acceptable {
        .network-test-score-audio, .network-test-score-video {
          //background-color: #D6A800;
        }
      }

      &.bad {
        .network-test-score-audio, .network-test-score-video {
          //background-color: #7B0C00;
        }
      }
    }
  }

  .wizard-step.success {
    .wizard-step-content .wizard-step-column {
      &:nth-of-type(1) {
        width: 100%;
        padding:2% 20%;
        height: 350px;
      }
      &:nth-of-type(2) {
        width: 0%;
      }

      .congrats-sig {
        text-align:right;
      }

      ul {
        margin-bottom: 20px;

        a {
          color:$ColorLink;
        }

        a:hover {
          color:$ColorLinkHover;
        }
      }
    }
  }

  p {
    margin-top: 12px;
  }

  .device_type ul {
    list-style: disc;
  }

  .device_type li {
    margin: 15px 12px 15px 36px;
  }

  select {
    max-width: 220px;
  }

  .settings-profile {
    margin-top: 12px;
  }

  p.intro {
    margin-top: 0px;
  }

  .easydropdown-wrapper {
    width: 100%;
    max-width: 220px;
  }

  .sample-rate  {
    padding:8px 0 0;
    line-height: 24px;
    vertical-align: middle;

    h2.sample-rate-header {
      display:inline;
    }
    .easydropdown-wrapper {
      width:auto;

    }
  }

  .ftue-new {
    clear: both;
    position: relative;
    width: 100%;
    height: 54px;
    margin-top: 12px;
    select {
      font-size: 15px;
      padding: 3px;
    }
    .latency {
      position: absolute;
      top: 120px;
      font-size: 12px;
      .report {
        color: #fff;
        position: absolute;
        top: 20px;
        left: 0px;
        width: 105px;
        height: 50px;
        background-color: #72a43b;
        padding: 10px;
        text-align: center;
        .ms-label {
          padding-top: 10px;
          font-size: 34px;
          font-family: Arial, sans-serif;
        }
        p {
          margin-top: 4px;
        }
      }
      .report.neutral, .report.start, .report.unknown {
        background-color: #666;
      }
      .report.good {
        background-color: #72a43b;
      }
      .report.acceptable {
        background-color: #D6A800;
      }
      .report.bad {
        background-color: #7B0C00;
      }
      .instructions {
        color: #fff;
        position: absolute;
        top: 20px;
        left: 125px;
        width: 595px;
        height: 50px;
        padding: 10px;
        background-color: #666;
      }
      .instructions p.start, .instructions p.neutral {
        padding-top: 4px;
      }
      .instructions p.unknown {
        margin-top: 0px;
        padding-top: 4px;
      }
      .instructions p.good {
        padding-top: 4px;
      }
      .instructions p.acceptable {
        margin-top: -6px;
      }
      .instructions p.bad {
        margin-top: -6px;
        line-height: 16px;
      }
      .instructions p a {
        font-weight: bold;
      }
    }
    .column {
      position: absolute;
      width: 220px;
      height: 50px;
      margin-right: 8px;
    }
    .settings-2-device {
      left: 0px;
    }
    .settings-2-center {
      left: 50%;
      margin-left: -110px;
      .buttons {
        margin-top: 14px;
        a {
          margin-right: 0px;
        }
      }
    }
    .settings-2-voice {
      top: 0px;
      right: 0px;
    }
    .controls {
      margin-top: 16px;
      background-color: #222;
      height: 48px;
      width: 220px;
    }
    .ftue-vu-left {
      position: relative;
      top: 0px;
    }
    .ftue-vu-right {
      position: relative;
      top: 22px;
    }
    .ftue-fader {
      position: relative;
      top: 14px;
      left: 8px;
    }
    .gain-label {
      color: $ColorScreenPrimary;
      position: absolute;
      top: 76px;
      right: 6px;
    }

    .subcolumn {
      position: absolute;
      top: 60px;
      font-size: 12px !important;
      width: 68px;
      height: 48px;
    }
    .subcolumn select {
      width: 68px;
    }
    .subcolumn.first {
      left: 0px;
    }
    .subcolumn.second {
      left: 50%;
      margin-left: -34px;
    }
    .subcolumn.third {
      right: 0px;
    }
  }

  .asio-settings {
    clear: both;
    position: relative;
    width: 100%;
    height: 54px;
    margin-top: 8px;
    .column {
      position: absolute;
      width: 220px;
      height: 50px;
      margin-right: 8px;
    }
    .settings-driver {
      left: 0px;
    }
    .settings-asio {
      left: 50%;
      margin-left: -110px;
    }
    .settings-asio.mac {
      left: 0px;
      margin-left: 0px;
    }
    .settings-asio-button {
      right: 0px;
      height: 45px;
      .bottom {
        position: absolute;
        bottom: 0px;
      }
    }
    .settings-asio-button.mac {
      right: auto;
      left: 50%;
      margin-left: -110px;
    }
    .subcolumn {
      position: absolute;
      width: 68px;
      height: 48px;
    }
    .subcolumn select {
      width: 68px;
    }
    .subcolumn.first {
      left: 0px;
    }
    .subcolumn.second {
      left: 50%;
      margin-left: -34px;
    }
    .subcolumn.third {
      right: 0px;
    }
  }

  .settings-controls {

    clear: both;
    position: relative;
    width: 100%;
    height: 100px;

    div.section {
      position: absolute;
      width: 220px;
      height: 100px;

      select {
        display: block;
        width: 100%;
      }
    }
    .audio-input {
      left: 0px;
      margin-top: 30px;

      &.audio-output-showing {
        margin-top: 0;
      }
    }
    .voice-chat-input {
      left: 50%;
      margin-left: -110px;
    }
    .audio-output {
      right: 0px;
    }
    .ftue-controls {
      margin-top: 16px;
      position: relative;
      height: 48px;
      width: 220px;
      background-color: #222;
    }
    .ftue-vu-left {
      position: relative;
      top: 0px;
    }
    .ftue-vu-right {
      position: relative;
      top: 22px;
    }
    .ftue-fader {
      position: relative;
      top: 14px;
      left: 8px;
    }
    .gain-label {
      color: $ColorScreenPrimary;
      position: absolute;
      top: 14px;
      right: 6px;
    }
  }

  .buttonbar {
    position: absolute;
    bottom: 24px;
    right: 0px;
    a {
      color: darken(#fff, 5);
      text-decoration: none;
    }

    .spinner-small {
      display: none;
      margin-top: 3px;
      position: relative;
      top: 12px;
    }
  }

  input[type=text], input[type=password] {
    padding: 3px;
    font-size: 13px;
    width: 145px;
  }

  select.audiodropdown {
    width: 223px;
    color: #666;
  }

  /**
  a {
    color: #ccc;
  }

  a:hover {
    color: #fff;
  }

*/
  .ftue-instrumentlist {
    width: 340px;
    height: 178px;
    background-color: #c5c5c5;
    border: none;
    -webkit-box-shadow: inset 2px 2px 3px 0px #888;
    box-shadow: inset 2px 2px 3px 0px #888;
    color: #666;
    overflow: auto;
    font-size: 14px;
  }

  .ftue-instrumentlist select, .ftue-instrumentlist .easydropdown {
    width: 100%;
    color: #666;
  }
}