@import 'ember-paper';
@import 'bower_components/bootstrap-sass/assets/stylesheets/_bootstrap';
@import 'ember-modal-dialog/ember-modal-structure';
@import 'ember-modal-dialog/ember-modal-appearance';

$playerBackColor: #F12B24;
$playerHeight: 400px;
$playerBeatAreaHeight: 320px;
$playListBackgroundColor: #1E1E1E;
$playerDefaultIconColor: #BBBBBB;
$footerHeight: 40px;

// BRIDGE FINDER
html {
  min-height: 100%;
  height: auto;
}

body {
  font-family: 'Slabo 27px', serif;
  margin-bottom: $footerHeight;
  position: static;
  height: auto;
}

#groupControlToggle {
  padding: 30px;
  float: left;
  cursor: pointer;
  position: relative;
  right: 50px;
}

#groupControlToggle md-icon {
  margin: 0;
}

#groupControlToggle.on md-icon.md-default-theme  {
  color: #F12B24 !important;
}

#groupControlToggle:hover md-icon {
  color: black !important;
}

.ember-app {
  padding-bottom: 50px;
}

.footer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: $footerHeight;
}

.footer .text-muted {
  padding-left: 0;
  margin-top: 10px;
  text-align: center;
}

.cursorPointer {
  cursor: pointer;
}

.bridgeFinder {
  text-align: center;
  padding-top: 20px;
}

.bridgeFinder .title {
  font-size: 30px;
  margin-bottom: 30px;
}

#bridgeInput {
  md-input-container {
    max-width: 200px;
    margin: 0 auto;
  }
}

md-progress-circular {
  margin: 0 auto 20px auto !important;
}

#pressButtonBridgeImg {
  width: 200px;
  margin: 0 auto 30px auto;
  display: inherit;
}

.noTextDecoration {
  text-decoration: none;
}

// BRIDGE CONTROLS
.bridgeControls {
  max-width: 1000px;
  position: relative;
}

.navigation {
  text-align: center;
  padding: 30px 0 30px 0;
}

.navigationItem {
  font-size: 18px;
  padding: 0 10px 0 10px;
}

.navigationItem:hover{
  text-decoration: underline;
}

.navigationItem.active {
  font-weight: bold;
  cursor: default;
}

.navigationItem.active:hover {
  color: #000;
  text-decoration: none;
}

// LIGHT GROUP
.paper-sidenav {
  overflow: visible;
}

.groupControls {
  display: none;
  border-left: 1px solid #C5C5C5;
  border-bottom: 1px solid #C5C5C5;
  border-right: 1px solid #C5C5C5;
  box-shadow: 5px 10px 15px 5px rgba(0,0,0,.1);
  border-radius: 0 0 5px 5px;
}

.groupControls.on {
  width: 300px;
  top: 48px;
  left: -5px;
  position: absolute;
  display: block;
  z-index: 1;
  background-color: white;
  max-height: 400px;
  overflow: auto;
}

.lightGroup {
  margin: 0 auto 0 auto;
}

.hueLight {
  margin-right: 10px;
  border-radius: 20px;
  background-color: white;
}

.lightInactive {
  cursor: pointer;
  position: relative;

}

.lightInactive::before {
  font-weight: bold;
  position: absolute;
  content: "X";
  top: -20px;
  left: 6px;
  font-size: 40px;
  color: rgba(255, 0, 0, 0.37);
  font-family: cursive;
}

.lightUnreachable {
  background-color: rgba(255, 0, 0, 0.7);
}

.lightActive:hover {
  cursor: pointer;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
  -webkit-transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
  transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}

.ember-modal-overlay.translucent {
  background-color: #000000;
}

md-icon {
  color: rgba(0, 0, 0, 0.54) !important;
}

md-icon.menu {
  margin: 30px 0 0 16px;
}

.addButton .group-add {
  margin-right: 16px;
}

.addButton .group-add:hover {
  color: darken(#333333, 20%) !important;
}

.removeButton {
  margin: 10px 0 10px auto;
}

.sideNavTitle {
  margin-left: 16px;
  margin-top: 10px;
}

md-toolbar {
  background-color: inherit !important;
}

//.innerControlFrame {
//  height: 100vh;
//}

// GROUP CONTROL
.groupRow.selectedRow {
  background-color: #7F7F7F !important;
  color: white;
}

.groupRow:hover {
  background-color: #c3c3c3;
}

.groupRow.selectedRow .groupSelect {
  cursor: default;
}

.groupSelect {
  padding: 10px 0 10px 0;
  width: 70%;
  font-family: 'Open Sans', sans-serif;
}

.groupRow:hover * .close {
  display: block;
}

.groupRow:hover * .close {
  display: block;
}

.selectedRow * .close {
  color: white !important;
}

.selectedRow.groupRow * .close:hover {
  color: darken(white, 20%) !important;
}

.close:hover {
  color: darken(#333333, 20%) !important;
}

.close:hover {
  opacity: 1;
}

.close {
  color: rgb(51, 51, 51);
  display: none;
  opacity: 1;
  text-shadow: none;
}

// MUSIC CONTROL
#playerControls {
  opacity: 0;
  transition: all 0.2s ease-in-out;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.714em;
  width: 100%;
  color: white !important;
  z-index: 20;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}

#playerTimeControls {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  position: relative;
  font-size: 14px;
  top: 0.167em;
  margin-left: 0.833em;
}

.playerControllIcon {
  color: $playerDefaultIconColor !important;
  transition-duration: 0.1s;
  margin-right: 0.208em;
  cursor: pointer;
}

.playerControllIcon.active {
  color: lighten($playerDefaultIconColor, 20%) !important;
}

.playerControllIcon:hover {
  color: white !important;
}

#playerArea:before {
  position: relative;
  color: white;
  top: 45%;
  left: 45%;
  animation-duration: 1s;
  opacity: 0;
  animation-name: fadeOut;
}

#playerArea.blockAnimation:before{
  animation-name: none !important;
}

@keyframes fadeOut {
  from {
    opacity: 0.8;
    font-size: 24px;
  }

  to {
    opacity: 0;
    font-size: 50px;
  }
}

#playerArea {
  height: $playerHeight;
  background-color: black;
  display: inline-block;
}

#playerArea:hover #playerControls {
  opacity: 1;
}

#playlist {
  height: $playerHeight;
  background-color: $playListBackgroundColor;
  padding-left: 0.625em;
  padding-right: 0.625em;
}

#playerArea * .noUi-origin {
  background-color: black;
  border-radius: 5px;
}

#playerArea * .noUi-base {
  background-color: $playerBackColor;
  border-radius: 5px;
  cursor: pointer;
}

.noUi-connect {
  background-color: $playerBackColor;
}

#volumeBar {
  width: 5em;
  height: 0.4em;
  display: inline-block;
}

.noUi-handle {
  cursor: pointer;
}

.noUi-horizontal .noUi-handle {
  width: 0.4em;
  height: 1.3em;
  left: -0.071em;
  top: -0.500em;
  transition-duration: 0.1s;
  background: $playerDefaultIconColor !important;
}

.noUi-horizontal .noUi-handle:hover {
  background: white !important;
}

#playerArea * .noUi-handle:after, #playerArea * .noUi-handle:before {
  content: none;
}

#seekSlider {
  height: 6px;
  margin-bottom: 10px;
  transition-duration: 0.2s;
}

#seekSlider:hover {
  height: 8px;
}

#seekSlider:hover * .noUi-handle {
  opacity: 1;
}

#seekSlider * .noUi-handle {
  border: none;
  height: 13px;
  width: 13px;
  border-radius: 50%;
  top: -4px;
  left: -6px;
  opacity: 0;
  transition-duration: 0.1s;
  background-color: $playerBackColor !important;
  box-shadow: none;
}

#playListControls {
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3a3a3a;
}

#playListArea {
  background-color: lighten($playListBackgroundColor, 20%);
  width: 100%;
  height: 333px;
  margin: 10px auto 0 auto;
  border-radius: 5px;
  #dragHere {
    position: absolute;
    top: 41%;
    right: 18%;
    font-size: 20px;
  }
  .library-music {
    position: absolute;
    top: 50%;
    right: 34%;
    font-size: 100px;
    opacity: 0.5;
  }
}

#fileInput {
  width: 1px;
  height: 1px;
  visibility: hidden;
}

.playlistItem {
  height: 45px;
  font-family: 'Open Sans', sans-serif;
  padding: 5px;
  position: relative;
  color: darken(white, 20%);
  .close {
    position: absolute;
    top: 25%;
    right: 10px;
  }
}

.playlistItem.active {
  background-color: lighten($playListBackgroundColor, 30%);
}

.playlistItem:hover {
  background-color: lighten($playListBackgroundColor, 40%);
  .close {
    display: block;
  }
}

#beatArea {
  position: relative;
  height: $playerBeatAreaHeight;
}

#beatArea * .noUi-target {
  margin: 0 auto;
}

#beatArea * .noUi-base, #beatArea * .noUi-background {
  background-color: #3F3F3F;
  cursor: pointer;
}

#beatArea * .noUi-vertical  {
  height: 170px;
  margin-top: 20px;
  margin-bottom: 5px;
}

.beatOption {
  display: inline-block;
  margin-left: 0.714em;
}

#playerBottom {
  background-color: grey;
}

#beatSpeakerContainer {
  height: $playerBeatAreaHeight;
  padding: 0;
}

#beatSpeakerContainer md-switch {
  bottom: 0;
  position: absolute;
  margin-left: 0;
  z-index: 3;
}

#beatSpeaker {
  position: relative;
  margin: 20px auto 0 auto;
  background-image: url('images/speaker-outer.png');
  width: 284px;
  height: 283px;
}

#beatSpeakerCenter {
  width: 188px;
  height: 186px;
  background-image: url('images/speaker-inner.png');
  position: absolute;
  top: 16%;
  left: 18%;
}

.pop {
  animation-name: pop;
  animation-duration: 0.1s;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

@keyframes pop {
  50% {
    transform: scale(1.1);
  }
}

#beatArea .lightGroup {
  margin: 10px 0 0 40px;
}

#playerButtonGroup {
  margin-top: 10px;
}

#vertDivider {
  position: absolute;
  right: 0;
  top: 25%;
  width: 2px;
  height: 50%;
  background-color: white;
}

#beatHistory {
  height: 250px;
  background-color: #CFCFCF;
  border-radius: 10px;
  width: 80%;
  margin: 20px auto;
  overflow: auto;
  padding: 10px;
  box-shadow: 5px 10px 15px 5px rgba(0, 0, 0, 0.1);
}

#playListArea.dragArea.dragHereHighlight {
  background-color: white;
  border: 5px dotted #5383ff;
}

#playListArea.dragArea.draggingOver {
  background-color: darken(white, 5%);
  box-shadow: inset 0 0 20px 0 rgba(0,0,0,1);
}
