.piano-keyboard {
    display: none;
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    padding: 60px 50px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    height: 320px;
    cursor: grab;
    user-select: none;
    background-image: url('/static/games/instruments/piano_image/pianobase.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
}

.piano-keyboard:active {
    cursor: grabbing;
}

.piano-key {
    display: inline-block;
    width: 60px;
    height: 100%;
    cursor: pointer;
    margin: 0 1px;
    position: relative;
    font-size: 1rem;
}

.black-key {
    position: absolute;
    width: 40px;
    height: 50%;
    cursor: pointer;
    z-index: 2;
    margin: 0 -15px;
    background-image: url('/static/games/instruments/piano_image/blackkey.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.white-key {
    background-image: url('/static/games/instruments/piano_image/whitekey.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.piano-key.active {
    background-color: #ccc;
}


.metronome {
    display: none;
    position: absolute;
    bottom: 12rem;
    right: 20px;
    padding: 20px;
    width: 200px;
    height: 200px;
    text-align: center;
    cursor: grab;
    user-select: none;
}

.metronome:active {
    cursor: grabbing;
}

.metronome-body {
    position: relative;
    height: 250px;
    margin-bottom: 20px;
    background-image: url('/static/games/instruments/metronome_image/metronomebase.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.metronome-arm {
    position: absolute;
    margin-top: 20px;
    width: 55px;
    height: 70%;
    left: 36%;
    transform-origin: bottom center;
    animation: swing 1s infinite linear;
    background-image: url('/static/games/instruments/metronome_image/metronomepin.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.metronome-pendulum {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: black;
    border-radius: 50%;
}

.bpm-slider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpm-slider label,.bpm-slider span {
    margin-right: 10px;
	color:#c7c7c7;
}

#bpm {
    width: 100px;
	
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(-30deg);
    }

    50% {
        transform: rotate(30deg);
    }
}

.drum-pad {
    display: none;
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background-image: url('/static/games/instruments/drum_image/drumbase.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    cursor: grab;
    user-select: none;
}

.drum-pad:active {
    cursor: grabbing;
}

.drum-key {
    position: absolute;
    width: 45%;
    height: 72%;
    top: 4.5%;
    border-radius: 50%;
    cursor: pointer;
    background-image: url('/static/games/instruments/drum_image/drumface.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.drum-key[data-drum="kick"] {
    left: 1.7%;
}

.drum-key[data-drum="snare"] {
    right: 1.7%;
}

.drum-key.active {
    filter: brightness(1.2);
}