:root {
    --accent: #2d69ff;
}

* {
    box-sizing: border-box;
}

.board {
    max-width: 800px;
    width: calc(100vw - 2rem);
    display: flex;
    margin: 0 auto;

    position: relative;
}

.board > img {
    width: 100%;
    height: auto;
}

.glass {
    display: flex;
    position: absolute;
    bottom: 17.5%;
    left: 4%;
    width: 49.5%;

    backdrop-filter: blur(28px) brightness(1.8) saturate(1.5);
}

.glass > .chin {
    height: 5%;
}

.controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.controls p {
    margin: .5rem 0;
}

#screen {
    margin: 7%;
    width: 86%;
    image-rendering: pixelated;
}

.screen-editor {
    border: 1px solid black;
    display: grid;
    grid-template-columns: repeat(128, 1fr);
    margin-bottom: .5rem;
}

.screen-editor > div {
    padding-top: 100%;
    pointer-events: none;
}
.screen-editor > div.black {
    background-color: #000;
}
.screen-editor > div.hover {
    background-color: var(--accent);
}

.led-array {
    padding: 1% 3.8% 0 3%;
    position: absolute;
    width: 49.6%;
    left: 4%;
    bottom: 19.1%;
    background-color: #494949f2;
    gap: 16px 0;
}
.led-array, .led-editor {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.led-array > div, .led-editor > div {
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #000;
}
.led-array > div {
    margin: 23% auto;
    width: 55%;
}
.led-editor > div {
    outline: 3px solid #0000;
    border: 1px solid black;
    margin: 10%;
}
.led-editor > div.selected {
    outline-color: var(--accent);
}

.seekbar {
    width: 100%;
}

.editor {
    display: flex;
}
.editor > fieldset {
    flex: 1;
}
.editor > fieldset.led {
    max-width: 200px;
}

textarea {
    resize: vertical;
}
#serialised-data {
    width: 100%;
    height: 150px;
    min-height: 2em;
    max-height: 300px;
}

footer {
    text-align: center;
}
