body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
}
main {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 2%;
}
div.key {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
    background-color: #000;
    color: #fff;
}
#key {
    font-size: 2em;
    margin: 20px;
    margin-bottom: 10px;
    padding: 0;
    text-align: center;
}
#keyPanel {
    display: none;
    margin-bottom: 20px;
}
#keyPanel .keys {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -5px;
}
#keyPanel .keys button {
    width: 30%;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    border: none;
    border-radius: 8px;
    -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
    padding: 10px;
    padding-top: 15px;
    margin-right: 5px;
    font-size: 1.5em;
}
#keyPanel .keys button {
    margin-bottom: 5px;
}
#keyPanel #keys_flat button:first-child {
    width: 100%;
}
#keyPanel .keys button p {
    margin: 0;
}
#level {
    margin: 0;
    position: absolute;
    right: 12px;
    font-size: 0.7em;
    top: 0px;
}
#level .inactive {
    opacity: 0.35;
}
section#card-container {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    z-index: 100;
}
article.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.5);
}
.chord {
    font-size: 4em;
    text-align: center;
    pointer-events: none;
    margin-top: 0;
}
.paneltitle {
    position: absolute;
    margin: 0;
    top: 10px;
    left: 10px;
}
#controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
#helpPanel {
    font-size: 1.3em;
}

/************ Speedometer ************/

.wrapper {
    margin-left: 18px;
    margin-bottom: 13px;
    margin-top: 25px;
    margin-right: 13px;
}
.wrapper .speedometer {
    width: 160px;
    height: 80px;
    -webkit-box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 1);
    box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 1);
    border-bottom: none;
    border-radius: 200px 200px 0 0;
    position: relative;
    overflow: hidden;
}
.wrapper .speedometer .pointer {
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 0;
}
.wrapper .speedometer .pointer .dot {
    width: 14px;
    height: 8px;
    border-radius: 20px 20px 0 0;
    background: #000;
    position: absolute;
    bottom: 0px;
    left: -7px;
}
.wrapper .speedometer .pointer .scale {
    width: 110px;
    height: 110px;
    border-radius: 120px;
    border: solid 20px transparent;
    border-right: solid 20px #a9a9a9;
    position: absolute;
    bottom: -75px;
    left: -75px;
}
.wrapper .speedometer .pointer .needle {
    display: block;
    position: absolute;
    left: -2px;
    bottom: 1px;
    width: 4px;
    height: 60px;
    background: #000;
    -webkit-transform-origin: center 60px;
    transform-origin: center 60px;
    -webkit-transform: rotate(-60deg);
    transform: rotate(-60deg);
    -webkit-transition: -webkit-transform 2s;
    transition: -webkit-transform 2s;
    transition: transform 2s;
    transition: transform 2s, -webkit-transform 2s;
}

/* YES/NO-Buttons */

#yes_no {
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    z-index: 100;
    bottom: 2em;
}
#yes_no button {
    width: 4.3em;
    height: 4.3em;
    margin: 10px;
}
@media only screen and (max-width:500px) {
    #yes_no {
        display: none;
    }
}
