@import 'client/common';

$session-screen-divider: 1190px;
@mixin session-small {
  @media (max-width: #{$session-screen-divider - 1px}) {
    @content;
  }
}

@mixin session-normal {
  @media (min-width: #{$session-screen-divider}) {
    @content;
  }
}

#session-screen {
  .session-container {
    overflow-x: hidden;
  }

  .session-track {
    @include session-small {
      max-width: 120px;
    }

    &.metronome, &.jam-track, &.recorded-track, &.backing-track {
      @include session-small {
        height: auto;
      }
      .track-icon-pan {
        @include session-small {
          margin-right: 0;
        }
      }

      .track-buttons {
        @include session-small {
          margin: 12px 0 0;
        }
      }

      table.vu {
        @include session-small {
          margin-top: 5px;
        }
      }

      .track-controls {
        @include session-small {
          margin-right: 8px;
        }
      }

      .track-icon-pan {
        @include session-small {
          margin-right: 2px;
        }
      }
      .track-instrument {
        @include session-small {
          margin: -4px 12px 0 0;
        }
      }
    }
    &.jam-track-category, &.recorded-category {
      .track-controls {
        @include session-small {
          margin-top: 5px;
          margin-right: 8px;
        }
      }
      table.vu {
        @include session-small {
          margin-top: 0;
        }
      }
      .jam-track-header {
        @include session-small {
          float: left;
        }
      }
      .name {
        @include session-small {
          float: left;
        }
      }
      .track-buttons {
        @include session-small {
          margin-top: 12px;
        }
      }
    }
  }

  .track-controls {
    @include session-small {
      margin-top: 8px;
    }
  }

  .track-buttons {
    @include session-small {
      margin-left: 14px;
    }
  }

  .self.SessionStatsHover .stats-info {
    height:200px;
  }

  .stats-info {
    float: left;
    width: 120px;
    border-radius: 15px;
    border-color: #fc0;
    border-width: 1px;
    border-style: solid;
    padding:10px;
    height: 477px;
    margin-top: 20px;
  }
  .plusone {
    display:inline-block;
    text-align:center;
    width:100%;
    font-size:16px;
  }
  .stats-area {
    float: left;
    padding: 0 25px 20px 20px;
    color: #cccccc;

    h3 {
      color: white;
    }

    .stat {
      margin: 7px 0;
    }

    .title {
      display: inline-block;
      width: 100px;
      line-height: 20px;
      height: 20px;
      vertical-align: middle;
    }

    .stats-holder {
      margin-top: 20px;
      h3 {
        margin: 0 0 10px 0;
      }
    }
    .status-icon {
      border-radius: 10px;
      width: 20px;
      height: 20px;
      margin-right: 10px;
      display: inline-block;
      vertical-align: middle;
      &.poor {
        background-color: $poor;
      }
      &.warn {
        background-color: $fair;
      }
      &.unknown {
        background-color: $unknown;
      }
      &.good {
        background-color: $good;
      }
    }

    .stat-value {
      width: 50px;
      display: inline-block;
      height: 20px;
      vertical-align: middle;
      line-height: 20px;
      margin-right:6px;
      white-space:nowrap;
    }

  }

  h2 {
    color: #fff;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
  }

  .tracks {
    position: absolute;
    @include border_box_sizing;
    top: 71px;
    bottom: 0;
    width: 100%;
  }

  .session-my-tracks, .session-other-tracks, .session-media-tracks {
    @include border_box_sizing;
    float: left;
    width: 33%;
    padding: 10px;
    height: 100%;
    margin-bottom: 15px;
    color: $ColorTextTypical;
    overflow: hidden;
    position: relative;

    .session-tracks-help {
      font-size:14px;
      text-decoration: none;
      cursor: pointer;
      color:$ColorLink;
      top: -2px;
      position: relative;
    }
  }

  .my-tracks-header {
    position:relative;
    width:235px;
  }
  a.video-tutorial {
    position:absolute;
    right:0;
    top:1px;
  }
  .session-media-tracks {
    width: 34%;
  }

  .session-notifications {
    border-right-width: 0;
    display: none; //temp
  }

  .in-session-controls {

    width: 100%;
    padding: 11px 0px 11px 0px;
    background-color: #4c4c4c;
    min-height: 20px;
    position: relative;
    min-width: 690px;

    .label {
      float: left;
      font-size: 12px;
      color: #ccc;
      margin: 0px 0px 0px 4px;
    }

    .block {
      float: left;
      margin: 6px 8px 0px 8px;
    }

    a {
      img, .volume-icon {
        vertical-align: top;
        margin-right: 4px;
      }
      span {
        vertical-align: middle;
      }
    }

    .button-grey {
      margin: 0 5px;
      padding: 3px 7px;

      &.session-leave {
        margin-right: 10px;
      }
    }
  }

  .session-tracks-scroller {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;

    position: absolute;
    top: 65px;
    padding: 0 10px;
    @include border_box_sizing;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;

    &.media-options-showing {
      top: 180px;
    }

    border-right: 1px solid #4c4c4c;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  p {
    line-height: 125%;
    margin: 0;
  }

  .download-jamtrack {
    margin-top: 20px;
  }

  .when-empty {
    //margin-top: 25px;
    //margin-left: 22px;
    margin:5px 0 10px 0;
    color: $ColorTextTypical;
    overflow: hidden;
    font-size:12px;
  }

  .session-track-settings {
    height: 20px;
    cursor: pointer;
    padding-bottom: 1px; // to line up with SessionOtherTracks
    color: $ColorTextTypical;

    &:hover {
      color: white;
    }

    span {
      top: -5px;
      position: relative;
      left: 3px;
    }
  }

  .session-invite-musicians {
    height: 20px;
    cursor: pointer;
    color: $ColorTextTypical;

    &:hover {
      color: white;
    }

    span {
      top: -5px;
      position: relative;
      left: 3px;
    }
  }

  .closeAudio, .session-clear-notifications, .reopen-popup, .popup-open {
    cursor: pointer;
    color: $ColorTextTypical;
    height: 20px;

    img {
      top: -2px
    }
    span {
      top: -5px;
      position: relative;
      left: 3px;
    }
  }

  .reopen-popup {color:#fc0}

  .open-media-file-header, .use-metronome-header {
    font-size: 14px;
    line-height: 100%;
    margin: 0;

    img {
      position: relative;
      top: 3px;
    }
  }
  .open-media-file-header {

    img {
      vertical-align: middle;
    }

    .open-text {
      margin-left: 5px;
      vertical-align: bottom;
    }
  }

  .use-metronome-header {
    clear: both;
    a {
      color: $ColorTextTypical;
      &:hover {
        text-decoration: underline;
        color: white;
      }
    }
  }

  .open-media-file-options {
    font-size: 14px;
    margin: 7px 0 0 7px !important;
    color: $ColorTextTypical;
    li {
      margin-bottom: 5px !important;
      margin-left: 38px !important;
      a {
        text-decoration: none;
        &:hover {
          text-decoration: underline;
          color: white;
        }
        color: $ColorTextTypical;
      }
    }
  }

  .open-metronome {
    margin-left: 5px;
  }

  .media-options {
    padding-bottom: 10px;
  }

  .session-mytracks-notracks p.notice {
    font-size: 14px;
  }
  .session-notification {
    color: white;
    background-color: #666666;
    border-radius: 6px;
    min-height: 36px;
    width: 100%;
    position: relative;
    @include border_box_sizing;
    padding: 6px;
    margin: 10px 0;

    &.has-details {
      cursor: pointer;
    }

    .msg {
      font-size: 14px;
    }
    .detail {
      font-size: 12px;
      margin-top: 5px;
    }
    .notify-help {
      color: #ffcc00;
      text-decoration: none;
      font-size: 12px;
      margin-left: 5px;

      &:hover {
        text-decoration: underline !important;
      }
    }
  }

  .close-window {
    text-align: center;
    clear: both;
  }

  .session-volume-settings .volume-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url('/assets/content/icon_mute_sm.png');
    background-repeat: no-repeat;

    &.muted {
      background-position: 0 0;
    }
    &.enabled {
      background-position: -14px 0;
    }
  }

  .enable-vst-incoming {
    position:absolute;
    top:36px;
    left:113px;
    vertical-align: middle;
    line-height: 32px;
    height: 32px;

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