* {
    box-sizing: border-box;
    --edge-spacing: 16px;
}

html, body, canvas {
    margin: 0;
    padding: 0;
}

body {
    font-family: monospace;
    font-size: 16px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.controls {
    position: absolute;
    left: var(--edge-spacing);
    top: var(--edge-spacing);
    background-color: black;
    color: white;
    padding: 8px;
}

.controls summary {
    cursor: pointer;
    user-select: none;
}

.control-container {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

hr {
    width: 100%;
}

.info {
    position: absolute;
    bottom: var(--edge-spacing);
    left: 0;
    right: 0;

    text-align: center;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.info-container {
    background-color: black;
    color: white;

    padding: 8px 12px;

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

.hint {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.27);
    color: white;
    font-size: 0.75em;
    padding: 8px;
    top: var(--edge-spacing);
    right: var(--edge-spacing);
    display: flex;
    flex-direction: column;
    gap: 4px;

    user-select: none;
    pointer-events: none;
}

.footer {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 0.75em;
}

button {
    border: 1px solid white;
    color: white;
    background-color: black;
    padding: 4px;
    font-family: monospace;
}
button:disabled {
    border: 1px solid grey;
    color: grey;
    pointer-events: none;
}
button:hover {
    color: black;
    background-color: white;
}
button.destructive:hover {
    background-color: rgb(231, 79, 79);
    color: white;
}

.hidden {
    display: none;
}