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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    margin: 0 auto;
}

h1 {
    color: #e5c343;
}

canvas {
    background: white;
}

header {
    grid-area: header;
    background: silver;
    padding: 0.25rem;

    button {
        border: 0;
        background: transparent;
        padding: 0.25rem;
        font-size: 1.25rem;

        &:hover {
            box-shadow: 1px 1px black,
            inset -1px -1px gray,
            inset 1px 1px white;
        }

        &:active {
            box-shadow: 1px 1px white,
            inset 1px 1px gray,
            inset 1px 1px black;
        }
    }
}

aside {
    grid-area: aside;
    background: silver;
    width: 6rem;
    padding: 4px 0 0 0;
    box-shadow: inset 0 -2px #777777;

    display: flex;
    flex-wrap: wrap;

    nav {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: center;
    }

    button {
        width: 2.5rem;
        height: 2.5rem;

        background-color: lightgray;

        border: 2px solid #eee;
        border-right-color: #000;
        border-bottom-color: #000;

        svg {
            width: 2.25rem;
            height: 2.25rem;
        }

        &.active, &:active {
            border-color: black;
            border-right-color: #eee;
            border-bottom-color: #eee;
        }

        &[disabled] {
            background-image: radial-gradient(#000 1px, transparent 1px);
            background-size: 4px 4px;
        }
    }
}

main {
    display: flex;
    grid-area: main;
    justify-self: flex-start;
    overflow: auto;
    padding: 0.5rem 0 0.5rem 0.5rem;
    box-shadow: inset 2px 2px black;
}

footer {
    grid-area: footer;
    display: flex;
    gap: 0.25rem;
    width: 100vw;
    background-color: silver;
    padding: 0.25rem;
    box-shadow: inset 0 2px #eee;
    align-items: center;

    #color-picker {
        box-shadow: inset 1px 1px #777777,
        inset -1px -1px #eee;
        background: transparent;
        border: none;
    }

    #coords {
        width: 6rem;
        height: 100%;
        padding: 0.25rem;
        box-shadow: inset 1px 1px #777777,
        inset -1px -1px #eee;
    }
}

.container {
    background-color: #777777;
    display: grid;
    justify-content: flex-start;
    grid-template-areas:
    "header header header header"
    "aside main main ."
    "footer footer footer footer";
}