/* -- General --------------------------------------------------------------- */

body {
    overflow: hidden;
}

/* -- Header ---------------------------------------------------------------- */

#logo.layermode {
    background-image: url(../img/icon-dvorak.svg);
}

/* -- Instrument Picker ----------------------------------------------------- */

.instrument-picker.layermode {
    background: #e0fcfb;
}

.instrument-picker.layermode .title {
    background: #abdaef;
}

.instrument-picker.layermode .title h2 {
    background-image: url(../img/icon-dvorak.svg);
}

.instrument-picker.layermode .prompt {
    background: url(../img/splash.svg) bottom no-repeat;
}

.instrument-picker.layermode p {
    color: #000;
}

.instrument-picker.layermode .credits {
    background: #9ae2df;
}

.instruments button {
    background-color: #baf4ee;
    position: relative;
}

.instrument-picker .instruments .begin {
    background-image: url(../img/journeys/begin.svg);
}

.instrument-picker .instruments .end {
    background-image: url(../img/journeys/end.svg);
}

.instrument-picker .instruments .remix {
    background-image: url(../img/journeys/remix.svg);
}

.instrument-picker .instruments .blank {
    background-image: url(../img/journeys/blank.svg);
}

.instrument-picker .instruments button span {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    font-size: 15px;
    pointer-events: none;
}

/* -- Template Colors ------------------------------------------------------- */

.maj {
  fill: #c0c0c0;
  background: #c0c0c0;
}

.maj.darker {
  fill: #b2b2b2;
  background: #b2b2b2;
}

.min {
  fill: #b0b0b0;
  background: #b0b0b0;
}

.min.darker {
  fill: #9c9c9c;
  background: #9c9c9c;
}

.dom {
  fill: #9b9595;
  background: #9b9595;
}

.dom.darker {
  fill: #7f7f7f;
  background: #7f7f7f;
}

/* -- Landscape ------------------------------------------------------------- */

.landscape-container {
    height: calc(100% - 40px);
    position: relative;
}

.landscape {
    height: 100%;
    background: #7ff3f3;
    position: relative;
}

.landscape .ground {
    display: block;
    width: 100%;
    height: 80%;
    position: absolute;
    top: 20%;
    background: #42ccaa;
}

.landscape .playing {
    fill: white;
}

.landscape .track, .landscape .depth-target {
    fill: transparent;
}

.landscape .track.selected {
    fill: rgba(252, 207, 224, 0.5);
}

.landscape line.info-line {
    opacity: 0;
    transition: opacity 0.2s;
}

.labeled .landscape line.info-line {
    opacity: 0.3;
}

/* -- Horizon --------------------------------------------------------------- */

.horizon {
    width: 100%;
    height: 80px;
    bottom: 80%;
    position: absolute
}

.highlight {
    fill: #fff5ef;
    opacity: 0.5;
}

/* -- Loop Controls --------------------------------------------------------- */

.loop-controls {
    width: 100%;
    height: 40px;
    background: #43bb9d;
    position: relative;
}

.loop-control {
    height: 40px;
    width: 14.2857%;
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loop-control.playing {
    background: #eee;
}

.loop-button {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 0;
}

.loop-button:hover {
    background: #fff;
}

/* -- Timeline -------------------------------------------------------------- */

.timeline-tray {
    z-index: 50;
}

.timeline .lane-scroll {
    margin: 20px 0 0 5px;
    height: 98px;
    overflow-y: hidden;
}

.timeline .lanes {
    height: 82px;
    margin: 8px 0;
    display: flex;
}

.timeline .lane {
    border-right: solid 2px #000;
    font-size: 20px;
    color: #000;
    text-align: center;
    flex: none;
    display: flex;
}

.timeline .lane:first-child {
    border-left: solid 3px #000;
}

.timeline .lane .repetition {
    width: 100px;
    padding: 3px;
    border-right: solid 1px #000;
    transition: margin 0.3s;
    position: relative;
}

.timeline .lane .repetition.hidden {
    margin-left: -107px;
}

.timeline .lane .repetition .track {
    width: 100%;
    height: 33%;
    display: block;
}

.timeline .lane .repetition .track.allegro {
    background: #e70061;
}

.timeline .lane .repetition .track.pastoral {
    background: #ee6300;
}

.timeline .lane .repetition .track.goinhome {
    background: #eabd3f;
}

.timeline .lane .repetition .track.scherzo {
    background: #a1b260;
}

.timeline .lane .repetition .track.finale {
    background: #4d00ff;
}

.timeline .lane .repetition .track.rolling {
    background: #b12e94;
}

.timeline .lane .repetition .note {
    position: absolute;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    margin-left: -3px;
    border-radius: 3px;
    background: #fff;
    opacity: 1;
}

.timeline .lane .repetition .play-indicator {
    background: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.timeline .lane .repetition.playing .play-indicator {
    border: solid 3px #fff;
}

/*.lane-toggle { TODO: Lane Toggle
    width: 50px;
    height: 20px;
    padding: 15px 0;
    text-align: center;
    border-radius: 15px;
    margin-left: -25px;
    position: absolute;
    top: 20px;
}*/

/* -- Theme Menu ------------------------------------------------------------ */

#theme-menu {
    padding-left: 20px;
    padding-right: 20px;
}

.dispenser {
    width: 44px;
    height: 44px;
    margin: 0 4px;
    display: inline-block;
    vertical-align: middle;
}

.theme {
    width: 80px;
    height: 50px;
    color: white;
    font-size: 9px;
    position: absolute;
    background-size: 100% 100%;
    box-sizing: border-box;
    padding: 3px 22px 0 3px;
}

.dispenser .theme {
    position: relative;
}

.theme.menu-item {
    width: 44px;
    height: 44px;
    border-radius: 5px;
}

/* -- Theme Blocks ---------------------------------------------------------- */

.theme.floating {
    z-index: 120;
}

.theme.hovered, .theme.play-preview {
    box-shadow: 0 0 0 4px white;
}

.theme.allegro {
    background-image: url(../img/themes/allegro.svg);
}

.theme.rolling {
    background-image: url(../img/themes/rolling.svg);
}

.theme.goinhome {
    background-image: url(../img/themes/goinhome.svg);
}

.theme.pastoral {
    background-image: url(../img/themes/pastoral.svg);
}

.theme.scherzo {
    background-image: url(../img/themes/scherzo.svg);
}

.theme.finale {
    background-image: url(../img/themes/finale.svg);
}

.theme .drag-handle {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* -- Instrument Buttons ---------------------------------------------------- */

.theme .instrument {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 3px;
    right: 3px;
    border-radius: 12px;
    background-color: #eee;
    display: inline-block;
}

.theme.menu-item .instrument {
    display: none;
}

.instrument.br {
    background-image: url(../../../shared/img/instruments/trombone.svg);
}

.instrument.st {
    background-image: url(../../../shared/img/instruments/violin.svg);
}

.instrument.ww {
    background-image: url(../../../shared/img/instruments/clarinet.svg);
}

.floating-button {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.floating-button:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.floating-button:active {
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
}

/* -- Template Picker ------------------------------------------------------- */

.popup-container.template-picker {
    top: 100%;
}

.popup-container.template-picker.visible {
    top: 0;
}

.popup-box.template-picker {
    width: 460px;
}

.template-picker h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.template-picker ul {
    padding: 0;
    margin: 0 -10px;
}

.template-picker li {
    padding: 5px;
    margin: 5px;
    display: inline-block;
    list-style: none;
}

.template-picker li:hover {
    background: #000;
}

.template-picker .template-icon {
    width: 100px;
    height: 70px;
    display: flex;
}

.template-picker .chord-icon {
    flex: 1;
}

/* -- Info Labels ----------------------------------------------------------- */

.labels {
    position: absolute;
    display: flex;
}

.labels.row {
    height: 25px;
    width: 100%;
    box-sizing: border-box;
    top: -25px;
    left: 0;
    transition: top 0.2s;
    background: rgba(255, 255, 255, 0.7);
}

.labeled .labels.row {
    top: 0;
}

.labels.col {
    height: 80%;
    top: 20%;
    flex-direction: column;
    opacity: 0;
    transition: left 0.2s, opacity 0.2s;
    text-align: right;
    pointer-events: none;
}

.labeled .labels.col {
    left: 0 !important;
    opacity: 1;
}

.labels.row div {
    text-align: center;
    flex: 1;
}

.labels.col div {
    padding: 10px 30px 0 0;
    box-sizing: border-box;
    hyphens: auto;
}