@import 'https://fonts.googleapis.com/css?family=Oswald';

html, body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Oswald', sans-serif;
}

h1 {
    color: #fff;
    font-size: 6vw;
    letter-spacing: 6px;
}

canvas {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.fixed-header {
    z-index: 0;
    position: fixed;
    transform: translateY(-30%);
}

.fixed-header h1 {
    opacity: 0.8;
    color: rgba(255, 255, 255, 1);
    font-size: 19.5vw;
    letter-spacing: 6.5px;
    text-shadow: -0.5px -0.5px 10px #000,
    0.5px -0.5px 10px #000,
    -0.5px 0.5px 10px #000,
    0.5px 0.5px 10px #000;
}

.subheading {
    color: #fff;
    font-size: 3vw;
    letter-spacing: 6px;
    margin: 0;
}

/* Piano */

.piano {
    width: 750px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 1;
}


.keys {
    display: block;
    width: 100%;
    height: 350px;
    max-width: 880px;
    position: relative;
    margin: 40px auto 0;
}

.key {
    position: relative;
    border: 4px solid black;
    border-radius: .5rem;
    transition: all .07s ease;
    display: block;
    box-sizing: border-box;
    z-index: 2;
}

.key:not(.sharp) {
    float: left;
    width: 7%;
    height: 100%;
    background: rgba(255, 255, 255, .8);
}

.key.sharp {
    position: absolute;
    width: 5%;
    height: 60%;
    background: #000;
    color: #eee;
    top: 0;
    z-index: 3;
}

.key[data-key="49"] {
    left: 4.5%;
}

.key[data-key="51"] {
    left: 11.5%;
}

.key[data-key="54"] {
    left: 25.5%;
}

.key[data-key="56"] {
    left: 32.5%;
}

.key[data-key="58"] {
    left: 39.5%;
}

.key[data-key="61"] {
    left: 53.5%;
}

.key[data-key="63"] {
    left: 60.5%;
}

.key[data-key="66"] {
    left: 74.5%;
}

.key[data-key="68"] {
    left: 81.5%;
}

.key[data-key="70"] {
    left: 88.5%;
}

.playing {
    transform: scale(.95);
    border-color: #028ae9;
    box-shadow: 0 0 1rem #028ae9;
}

.hints {
    display: block;
    width: 100%;
    opacity: 0;
    position: absolute;
    bottom: 7px;
    transition: opacity .3s ease-out;
    font-size: 20px;
}

/*.keys:hover .hints {*/
/*    opacity: 1;*/
/*}*/

/* Pads & Boxes */

.pad {
    width: 550px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


.pad-top {
    width: 650px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: absolute;
    top: 0;
}

.pad-bottom {
    width: 800px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: absolute;
    bottom: 0;
    z-index: 2;
}


.box {
    width: 70px;
    height: 70px;
    margin: 10px 0;
    box-shadow: 0 8px 6px -6px black;
    background-color: #606060;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

.fake-box {
    width: 60px;
    height: 60px;
    margin: 10px 0;
    box-shadow: 0 8px 6px -6px black;
    background-color: #606060;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

.fake-box:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.8);
}

.box:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.8);
}

.hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.8);
}

.box-active {
    transform: scale(1.3);
    transition: all .2s;
}

/*Specific Pads*/

.pad-e {
    border: 2px solid #553bcc;
}

.pad-0 {
    border: 2px solid #c3cc1e;
}

.pad-1 {
    border: 2px solid #2ecc71;
}

.pad-2 {
    border: 2px solid #E5446D;
}

.pad-3 {
    border: 2px solid #1abc9c;
}

.pad-h {
    border: 1px solid #b0b0b0;
}

.pad-y {
    border: 2px solid #19b095;
    font-size: 16px;
}

/* Floating <div></div> */

#logout-div {
    z-index: 100;
    margin: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
}

#session-div {
    z-index: 100;
    margin: 10px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
}

#profile-div {
    z-index: 100;
    margin: 10px;
    position: absolute;
    right: 0;
    bottom: 0;
}

#help-div {
    z-index: 100;
    margin: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
}

.CodeMirror {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: transparent;
    display: none;
}


button:disabled {
    background-color: rgba(158, 158, 158, 0.76);
}

#myCanvas {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

/*AudioVisual Section*/

.ghost-button {
    display: inline-block;
    width: 150px;
    font-weight: bold;
    padding: 8px;
    color: white;
    border: 3px solid white;
    text-align: center;
    outline: none;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.2s ease-out,
    color 0.2s ease-out;
}

.ghost-button:hover,
.ghost-button:active {
    background-color: white;
    color: #000;
    transition: background-color 0.3s ease-in,
    color 0.3s ease-in;
}

.ghost-active {
    background-color: white;
    color: #000;
    transition: background-color 0.3s ease-in,
    color 0.3s ease-in;
}

/*D3 STYLE*/

#d3 {
    z-index: 1;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#midi-container {
    background-color: black;
}

#svg-container {
    background-color: black;
}

rect {
    fill: none;
    pointer-events: all;
}

circle {
    fill: none;
    stroke-width: 2.5px;
}


/*Snackbar*/


#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    z-index: 100;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}


/*Drop*/


#drop_zone {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    background-color: black;
    color: white;
    z-index: 2;
}

#svg-container {
    background-color: black;
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
}


.modal {
    max-width: 800px;
}

/* Dropdown */

/* The container <div> - needed to position the dropdown content */
.dropdown {
    display: flex;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    justify-content: space-between;
    flex-wrap: wrap;
    position: absolute;
    left: 70px;
    width: 470px;
    z-index: 1;
}


/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.drp-show {
    display: flex;
}
