@import url('../fonts/fonts.css');

/* Basic CSS */
body {
    margin: 0;
    overflow-x: hidden;
    font-family: Lato, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
}

button {
    border: none;
    outline: none;
    background-color: #fff;
    color: #000;
    text-align: center;
    font-family: Lato, sans-serif;
}

button:hover, button.selected {
    background-color: #b5b0b1;
}

button.outline {
    background-color: #eadfdd;
    border: solid 2px #fff;
}

button.outline:hover {
    background-color: lightskyblue;
}

button.outline.selected {
    background-color: #fff;
}

button.small {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    font-size: 16px;
    padding: 7px;
}

button.large {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    font-size: 18px;
    padding: 11px;
}

/* Main wrapper */
.wrapper {
    height: calc(100% - 80px - 66px);
    width: 100%;
    padding-top: 66px;
    padding-bottom: 80px;
}

/* -- Main Header ----------------------------------------------------------- */
/* Header */
header {
    height: 66px;
    width: 100%;
    background: #fff;
    font-size: 0;
    z-index: 10;
    overflow: hidden;
    position: absolute;
    top: 0;
    padding-left: 185px;
    box-sizing: border-box;
}

#logo {
    height: 56px;
    position: absolute;
    top: 5px;
    left: 5px;
    padding-left: 56px;
    background: url(../img/playground_icon.svg) no-repeat;
}

.button-group {
    margin: 5px;
    padding: 6px 4px;
    border-radius: 28px;
    background: #eae1e1;
    display: inline-block;
    vertical-align: middle;
}

.button-group button {
    margin: 0 2px;
}

/* Variation Palette Menu */
header button.section-button {
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 8px;
    line-height: 8px;
    text-transform: uppercase;
    padding: 0;
    position: relative;
    z-index: 15;
}

header button.section-button span {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
}

header button.section-button img {
    position: absolute;
    width: 100%;
    left: 0;
    top: 5px;
    height: 13px;
}

#inversion-button {
    padding: 0;
    position: relative;
    vertical-align: top;
    margin-top: 7px;
    margin-right: 5px;
    z-index: 14;
    transition: margin 0.5s;
}

#inversion-button.hidden {
    margin-left: -35px;
}

#variation-info {
    padding: 0;
}

header h2 {
    display: inline-block;
    border-left: solid 2px black;
    font-size: 16px;
    font-weight: normal;
    vertical-align: middle;
    margin-left: 15px;
    padding-left: 15px;
}

header h2 .composer {
    display: block;
}

/* Timeline Menu */
h3 {
    font-size: 15px;
    font-weight: normal;
    text-transform: uppercase;
    color: #96989b;
    margin: 24px;
}

#close-timeline {
    background: #eae1e1;
    position: absolute;
    right: 5px;
    top: 18px;
}

#close-timeline:hover {
    background: #b5b0b1;
}

/* Various header configurations */
.header-menu {
    position: absolute;
    top: 66px;
    transition: top 0.5s;
    width: calc(100% - 185px);
}

header.variation-view #variation-palette-menu {
    top: 0px;
}

header.timeline-view #variation-palette-menu {
    top: -66px;
}

header.timeline-view #timeline-menu {
    top: 0px;
}

/* -- Instrument Picker ----------------------------------------------------- */
/* Instrument picker */
.instrument-picker {
    position: absolute;
    top: 66px;
    width: 100%;
    height: calc(100% - 66px);
    box-sizing: border-box;
    /*background: #eadfdd url(../img/splash.svg) bottom no-repeat;*/
    z-index: 8;
    transition: top 0.5s;
}

.instrument-picker.hidden {
    top: -100%;
}

.instrument-picker .title {
    height: 120px;
    text-align: center;
    color: #fff;
}

.instrument-picker .title h2 {
    display: inline-block;
    margin: 0 auto;
    padding: 30px 0 30px 120px;
    font-size: 20px;
    text-align: left;
    background-size: 80px 80px;
    background-position: 20px 20px;
    background-repeat: no-repeat;
}

.instrument-picker .title .composer {
    display: block;
    font-size: 32px;
    font-weight: bold;
}

.instrument-picker .prompt {
    height: calc(100% - 180px);
}

.instrument-picker p {
    width: 600px;
    margin: 0 auto;
    padding: 30px 0;
    font-size: 25px;
    font-weight: 900;
    text-align: center;
    color: #fff;
}

.instruments {
    width: 600px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.instruments button {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    margin: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
}

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

.xylo {
    background-image: url(../img/instruments/xylophone.svg);
}

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

.vcl {
    background-image: url(../img/instruments/cello.svg);
}

.fl {
    background-image: url(../img/instruments/flute.svg);
}

.tpt {
    background-image: url(../img/instruments/trumpet.svg);
}

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

#start-button {
    text-align: center;
    display: block;
    margin: 0 auto;
    font-size: 16px;
    padding: 18px 40px 18px 60px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 29px;
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
    background-image: url(../img/play_icon.svg);
    background-size: 35px 35px;
    background-position: 10px 10px;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.15s;
}

#start-button.hidden {
    transform: scale(0);
}

#start-button:hover {
    background-color: #fff;
}

.instrument-picker .credits {
    height: 60px;
    position: relative;
}

.instrument-picker .credit-logo {
    height: 40px;
    position: absolute;
}

.instrument-picker .credit-logo.left {
    top: 10px;
    left: 10px;
}

.instrument-picker .credit-logo.right {
    top: 10px;
    right: 10px;
}

/* -- Variation Card Palette ------------------------------------------------ */
/* Variation Palette */
.card {
    margin: 1px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.card.gu-mirror {
    transform: scale(1.15, 1.15);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
    opacity: 1;
    z-index: 2;
}

.card-palette .card.selected {
    transform: scale(1.15, 1.15);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.card img {
    position: absolute;
    bottom: 0;
    opacity: 0.8;
}

/* Card visuals */
.card svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.note {
    fill: #fff;
    opacity: 0.5;
}

.note.active {
    opacity: 1.0;
    r: 4;
}

/* Card palette */
.card-palette-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 1px;
    box-sizing: border-box;
    transition: padding 0.2s;
}

.card-palette-container.labeled {
    padding: 25px;
}

.card-palette {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.card-palette .card {
    width: calc((100% - 12px) / 6) !important;
    border-color: #fff !important;
    height: auto;
}

.card-palette .card.hidden {
    visibility: hidden;
}

.card-labels {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    z-index: -5;
    text-align: center;
}

.card-labels div {
    flex: 1;
}

.card-labels .row {
    height: 25px;
    display: flex;
    flex: none;
    margin: 0 25px;
}

.card-labels .row div {
    padding: 2px 0;
}

.card-labels .col {
    width: 25px;
    display: flex;
    flex-direction: column;
    flex: none;
}

.card-labels .col div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.card-labels .vertical {
    transform: rotate(-90deg);
    display: block;
}

/* -- Timeline -------------------------------------------------------------- */
/* Main Timeline Tray */
.timeline-tray {
    position: absolute;
    width: 100%;
    height: 80px;
    bottom: 0;
    transition: height 0.5s;
    background: #eae1e2;
    
    overflow: hidden;
}

.timeline-tray.open {
    height: calc(100% - 66px);
    overflow-y: auto;
}

/* Controls for all Timelines */
.timeline-tray > button {
    position: absolute;
    z-index: 5;
}

#open-timeline {
    top: 5px;
    right: 5px;
    transition: top 0.5s;
    background-image: url(../img/up_icon.svg);
}

.timeline-tray.open #open-timeline {
    top: -35px;
}

#prev-timeline, #next-timeline {
    width: 22px;
    height: 16px;
    padding: 0;
    right: 9px;
    transition: right 0.5s;
}

#prev-timeline:disabled, #next-timeline:disabled {
    background-color: rgba(255, 255, 255, 0.4);
    color: #b5b0b1;
}

#prev-timeline {
    top: 40px;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
}

#next-timeline {
    top: 58px;
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
}

.timeline-tray.open #prev-timeline, .timeline-tray.open #next-timeline {
    right: -30px;
}

/* Wrapper around all Timelines */
.timeline-list {
    position: absolute;
    top: 0;
    left: 0;
    transition: top 0.3s;
    width: 100%;
}

.timeline-tray.open .timeline-list {
    position: relative;
    top: 0 !important;
}

/* New Timeline Button */
.new-timeline-container {
    border-top: solid 2px #ddd5d3;
    text-align: right;
    padding: 20px 10px;
}

/* Individual Timelines */
.timeline {
    height: 80px;
    box-sizing: border-box;
    padding: 0 40px 0 60px;
    position: relative;
    border-top: solid 2px #ddd5d3;
    overflow: hidden;
    transition: height 0.3s, padding 0.5s;
}

.timeline.read-only {
    background: #ddd5d3;
}

.timeline.deleted {
    height: 0;
}

.timeline .play-button {
    position: absolute;
    top: 18px;
    left: 10px;
}

.timeline .instrument {
    position: absolute;
    top: 24px;
    left: 58px;
    width: 30px;
    height: 30px;
    transform: scale(0);
    transition: transform 0.5s;
}

.timeline-tray.open .timeline {
    padding-left: 90px;
}

.timeline-tray.open .timeline .instrument {
    transform: scale(1);
}

.timeline .delete-button {
    position: absolute;
    top: 24px;
    right: 5px;
    transform: scale(0);
    transition: transform 0.5s;
}

.timeline-tray.open .timeline .delete-button {
    transform: scale(1);
}

.timeline-card-wrapper {
    height: 78px;
    /*overflow-x: scroll;*/
    overflow-y: hidden;
}

.timeline-cards {
    height: 100%;
    white-space: nowrap;
    position: relative;
}

.timeline .card {
    display: inline-block;
    margin: 6px 4px 8px 4px;
    border: none;
    height: 64px;
}

.timeline .card.playing {
    border: solid 3px;
    border-color: white !important;
    margin: 3px 1px 5px 1px;
}

.timeline .card.gu-transit {
    box-sizing: border-box;
    border: dashed 5px;
    background: none !important;
    opacity: 1;
    border-radius: 0;
    transform: none;
    box-shadow: none;
}

.timeline .card.gu-transit * {
    display: none;
}

#more-info-button {
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 8px;
    line-height: 8px;
    text-transform: uppercase;
    padding: 0;
    position: relative;
    vertical-align: top;
    margin-top: 7px;
    margin-right: 5px;
    transition: margin 0.5s;
    z-index: 0;
}

#more-info-button.hidden {
    margin-left: -35px;
    z-index: -10;
}

#more-info-button span {
    position: absolute;
    top: 39%;
    width: 100%;
    left: 0;
}

.more-info {
    position: absolute;
    z-index:50;
    width:400px;
    top: -7px;
    right: calc(50% - 200px);
    /*height: 90%;*/
    border: 2px solid #eae1e1;
    background-color:white;
    padding: 5px 20px 20px;
    border-radius:28px;
    transition: margin 0.5s;
}

.more-info em {
    font-weight:bold;
}

.more-info.hidden {
    margin-top: -100%;
    z-index: -10;
}

.more-info-list {
    padding-bottom: 1px;
}

.more-info-list p {
    line-height: 8px;
    padding-left:20px;
}

.unsupported {
    background-color: #eae1e2;
}

.unsupported div {
    margin-left:auto;
    margin-right:auto;
    text-align: center;
    font-size:28px;
    width:65%;
}

#lockStatus {
    font-size:12px;
}