* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: monospace;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 12px 18px;
}

ol {
    padding: 10px 26px;
}

main {
    flex: 2;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    border: 1px solid black;
    margin-top: 16px;
}

details {
    width: 100%;
}

summary {
    cursor: pointer;
}

button {
    cursor: pointer;
    padding: 2px 4px;
}

form {
    width: 100%;
}

fieldset {
    width: 100%;
    padding: 6px 4px;
}

#grid-container {
    display: grid;
    width: 70%;
    aspect-ratio: 1/1;
    cursor: cell;
}

.config {
    width: 100%;
    display: flex;
    justify-content: center;
}

.buttons {
    display: flex;
    gap: 6px;
}

.config > p {
    margin-block: 4px;
}

.cell {
    border: 1px solid black;
    background-color: aliceblue;
}

.live {
    background-color: #333;
}

.config {
    margin-block: 12px;
}

.grid-layout > #cell-size {
    max-width: 50px;
}

#reset {
    margin-top: 4px;
}

#fps-slider {
    cursor: grab;
}

#fps-slider:active {
    cursor: grabbing;
}

.stats-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.stats {
    width: 100%;
}

@media only screen and (min-width: 850px) {
    main {
        width: 50%;
    }

    #grid-container {
        width: 60%;
    }
}