@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
}

:root {
    --max-width: 360px;
    font-family: "Atkinson Hyperlegible", sans-serif;
}

.header {
    display: flex;
    flex-direction: column;
    justify-self: center;
    margin: 12px 0;
    width: var(--max-width);
}

h1 {
    text-align: center;
}

p {
    margin-top: 12px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-self: center;
    width: var(--max-width);
    height: var(--max-width);
    margin-top: 12px;
}

.settings {
    display: flex;
    margin: 12px 0;
    width: var(--max-width);
    justify-self: center;
    gap: 4px;
}

.slidecontainer {
    display: flex;
    flex-direction: column;
    margin-right: 8px;
}

.slider {
    appearance: none;
    background: rgb(239, 239, 239);
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    background-color: var(--active-color, black);
    cursor: pointer;
}

.slider::-webkit-slider-thumb:hover {
    opacity: 0.5;
}

label {
    font-size: 12px;
    text-align: center;
}

button.clear {
    flex-grow: 1;
    margin-right: 8px;
    cursor: pointer;
}

button.color {
    width: var(--button-width);
    border: none;
    cursor: pointer;
}

button.color:hover {
    opacity: 0.5;
    border: 1px solid white;
}

button.color#black {
    background-color: black;
}

button.color#red {
    background-color: red;
}

button.color#green {
    background-color: green;
}

button.color#blue {
    background-color: blue;
}

/* Grid rows */
.container div {
    display: flex;
    flex-grow: 1;
}

/* Row squares */
.container div div {
    flex-grow: 1;
    border: 0.2px solid rgba(0, 0, 0, 0.1);
}

/* The etch in the sketch */
.highlight {
    background-color: var(--highlight-color, black);
    opacity: var(--highlight-opacity, 0);
}

.image {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    margin-top: 48px;
    width: var(--max-width);
}

img {
    width: 100px;
}