:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    /* line-height: 1.5;
    font-weight: 400; */
}

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

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#toolbar {
    display: flex;
    padding: 0.2rem;
}

#toolbar * {
    height: 32px;
}

#toolbar img, p, button {
    border: 2px solid transparent;
    margin: 2px;
}

#toolbar p {
    width: 70px;
    padding: 2px;
    align-content: center;
}

#toolbar button {
    cursor: pointer;
    background-color: transparent;
}

#toolbar button:hover {
    background-color: rgb(220, 220, 220);
}

#toolbar button:active {
    border-color:#a2a2a2;
}

#toolbar img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    cursor: pointer;
}

#toolbar img.selected {
    border-color:#a2a2a2;
}

#toolbar img:hover {
    background-color: rgb(220, 220, 220);
}

#upload {
    display: none;
}

#canvas {
    display: block;
    flex: 1;
    box-shadow: inset 0 0 0 5px rgb(215, 215, 215);
    image-rendering: pixelated;
    touch-action: none;
    cursor: crosshair;
    background-color: #ffffff;
}