:root {
    --font-size-xl: 24pt;
    --font-size-l: 16pt;
    --font-size-m: 12pt;
}

html {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-family: 'Saira', sans-serif;
    text-transform: uppercase;
    font-size: var(--font-size-m);
    width: 100%;
}

h1 {
    font-size: var(--font-size-xl);
}

h2 {
    font-size: var(--font-size-l);
}

h1, h2 {
    width: 100%;
    text-align: center;
    line-height: 1em;
    background: black;
    color: white;
    padding: 4px;
}

.left-controls {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 150px;
    gap: 16px;
}

.samples-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.control-button {
    color: white;
    background: black;
    padding: 8px;
    width: 2em; height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button.disabled {
    border: 1px solid black;
    color: black;
    background: white;
}

.text-control-indicator {
    flex-grow:1;
}

.main-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

img {
    width: 400px;
    max-width: 70vw;
    max-height: 300px;
    object-fit: contain;
}

.keys {
    width: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1px;
    background: black;
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: black;
    overflow: hidden;
}

.key {
    background: white;
    width: 30px;
    height: 80px;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.key:nth-child(12n+2), .key:nth-child(12n+4), .key:nth-child(12n+7),
.key:nth-child(12n+9), .key:nth-child(12n+11) {
    background: black;
    color: white;
}
.key:active, .key.active {
    background: #f0f;
}

.right-controls {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 150px;
}

.controls-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    width: 100%;
}

.controls-subgroup {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.control-indicator {
    color: black;
    background: white;
    border: 1px solid black;
    padding: 8px;
    min-width: 2em; height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}