*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: white;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* gap: 24px; */
    /* padding: 32px 16px 24px; */

}

.sheet-music {
    width: min(400px, 100vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*outline: 1px solid #CCC;*/
    margin-top: 10vh;
    padding: 0px 0px 0px;
    gap: 0px;
    position: relative;
    min-height: 100px;
}

.sheet-music img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sheet-music img:not([src]) {
    display: none;
}

.play-button {
    appearance: none;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: absolute;
    top: var(--btn-top, 250%); /* Use 250% as the default start */
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-button:hover {
    background: #111;
}

.result {
    min-height: 1.5em;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.round {
    min-height: 1.5em;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}


.piano {
    display: flex;
    margin-top: auto;
    margin-bottom: 20vh;
}

.key {
    height: calc(var(--width)*4);
    width: var(--width);
}

.white {
    --width: clamp(32px, 3vw, 64px);
    background-color: white;
    border: 1px solid black;
}

.black {
    --width: calc(clamp(32px, 3vw, 64px) * 0.6);
    background-color: black;
    margin-left: calc(var(--width)/-2);
    margin-right: calc(var(--width)/-2);
    z-index: 1;
}

.white:active {
    background-color: #CCC;
}

.black:active {
    background-color: #333;
}

.key.correct {
    background-color: #2ecc71 !important;
}

.key.incorrect {
    background-color: #e74c3c !important;
}
