:root {
    --color-dark-0: #2b2b30;
    --color-dark-1: #37373d;
    --color-mid-0: #4c4b52;
    --color-mid-1: #55545c;
    --color-light-0: #96959c;
    --color-accent-blue: #2d94e9;
  }

body {
    background-color: var(--color-dark-0);
    color: var(--color-light-0);

    margin: 0;
    padding: 0;

    font-family: sans-serif;
}

#app {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

/* ===========================================
Control panel
=========================================== */

#control-panel {
    max-width: 100px;
    padding-top: 14px;
    background-color: var(--color-dark-1);
}

.color-button, #fg-color, #bg-color {
    display: block;
    width: calc(100% - 20px);
    height: 40px;
    margin: 10px auto;

    font-size: 29px;
    line-height: 40px;
    text-align: center;

    background-color: var(--color-mid-0);
    border-radius: 5px;

    user-select: none;
}

.color-button:hover {
    cursor: pointer;
    background-color: var(--color-mid-1);
}

.color-button:active {
    background-color: var(--color-dark-0);
}

#color-readouts {
    display: block;
    position: relative;
    width: 100%;
    height: 85px;
}

#fg-color, #bg-color {
    display: inline-block;
    position: absolute;
    width: 40px;
    border: 2px solid black;
}

#fg-color {
    left: 10px;
}

#bg-color {
    left: 46px;
    top: 20px;
}

#control-panel button {
    width: calc(100% - 20px);
    margin: 5px 10px;
}

/* ===========================================
Canvas and Art Area
=========================================== */

#art-panel {
    flex-grow: 1;

    background-color: var(--color-dark-0);
}

#art-canvas {
    display: inline-block;
    width: 500px;
    height: 500px;

    margin: 20px;

    /* border: 2px solid black; */
}

.canvas-row {
    display: flex;

    width: 100%;
    height: 50px;

    margin: 0;
    padding: 0;
}

.canvas-cell {
    display: inline-block;
    width: 50px;
    height: 50px;

    margin: 0;
    padding: 0;

    font-size: 35px;
    line-height: 50px;
    text-align: center;

    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    /* border: 1px solid black; */

    user-select: none;
}

/* ===========================================
dialogues
=========================================== */

#new-canvas-dialogue {
    display: none;
    position: absolute;
    width: 400px;
    height: 180px;

    top: 200px;
    left: calc(50% - 200px);

    border-radius: 10px;

    background-color: var(--color-mid-0);
}

.dialogue-content {
    padding: 10px;
}

.dialogue-bottom {
    display: inline-block;
    position: absolute;
    width: calc(100% - 20px);
    height: 40px;
    bottom: 0px;
    padding: 0px 10px;

    text-align: right;

    line-height: 40px;
}