/* main piano display */
#piano-display{
    background-color: #000000;
    background-size: cover;
    background-position: center center;
    justify-content: center;
    align-items: center;
    padding: 4vh;
    padding-bottom: 1vh;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1vw;
    width: 600px;
    height: 700px;
    z-index: 1;
    margin-top: 5vh;
    margin-bottom: 5vh;
    border-top-left-radius: 10%;
    border-top-right-radius: 10%;
}

#poem {
    margin: 1%;
    text-align: center;
    padding: 2vh;
    font: 1em;
    width: 80vw;
    margin-top: 0%;
}


#piano-display.visible {
    opacity: 1;
}

#piano-main{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

#poem-text {
    padding: 5vh;
    flex: grid;
    color: #000000;
    border-bottom:.75vh solid #8F3985;
}

/* Content are in flex grid where words can go */
#piano-text {
    height: 10vh;
    width: auto;
    font-size: 1.5em;
    color: #ffffff;
    text-align: center;
    justify-content: center;
    align-items: center;
    margin: 5vh;
}

/* Sizes content to put the keys in back of */
#key-backing {
    color: transparent;
    position: relative;
    display: flex;
    flex-direction: row;
    margin-top: 30vh;
    background-color: #000000;
    height: 65%;
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 1;
}

/* Creates the default white key */
.white-key {
    display: flex;
    background-color: #ffffff;
    height: 100%;
    width: 10%;
    margin: 1%;
    z-index: 2;
    text-align: center;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 5%;
}

/* Creates the default black key */
.black-key {
    display: flex;
    position: absolute;
    background-color: #000000;
    top: 0;
    left: 7.5%;
    width: 6%;
    height: 60%;
    z-index: 3;
    margin: 0;
    padding: 0;
    text-align: center;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 5%;
}

/* Makes sure that each key is in the right spot */
#W-key {
    left: 7%;
}

#E-key {
    left: 17%;
}

#T-key {
    left: 37%
}

#Y-key {
    left: 47%
}

#U-key {
    left: 57%
}

#O-key {
    left: 77%
}

#P-key {
    left: 87.5%
}

@media screen and (max-width: 650px) {
    #piano-display{
        width: 70vw;
        height: 450px;
    }

    #poem {
        width: 80%;
    }
}


