/* synth demo */

#scope-canvas {
    width: 720px;
    max-width: 100%;
    height: auto;
}

.synth-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.4rem 1.2rem;
    width: 720px;
    max-width: 100%;
    margin: 0.75rem auto 0;
}

.synth-params .param-slider {
    display: grid;
    grid-template-columns: 5.5em 1fr 4.5em;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-align: left;
}

.synth-params output {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: #8b949e;
    text-align: right;
}

#keyboard {
    position: relative;
    width: 720px;
    max-width: 100%;
    height: 170px;
    margin: 1rem auto 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.key {
    position: absolute;
    top: 0;
    box-sizing: border-box;
    border-radius: 0 0 6px 6px;
    cursor: pointer;
}

.key.white {
    height: 100%;
    background: #e6edf3;
    border: 1px solid #30363d;
    z-index: 1;
}

.key.white span {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    font-size: 0.7rem;
    color: #6e7681;
    text-align: center;
}

.key.black {
    height: 60%;
    background: #161b22;
    border: 1px solid #0d1117;
    z-index: 2;
}

.key.white.down { background: #f0883e; }
.key.black.down { background: #c26a2e; }
