canvas {
    image-rendering: pixelated;
}

body::-webkit-scrollbar {
    display: none;
}

.thin::-webkit-scrollbar {
    width: 2px;
}

.thin::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.thin::-webkit-scrollbar-thumb {
    background: #888;
}

.thin::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.color-picker {
    width: 32px;
    height: 32px;
    border: 2px solid #000000;
    border-radius: 2px;
    margin-right: 5px;
}

.selected {
    border: 2px solid red;
    padding-bottom: 3px;
}

.ui {
    z-index: 5;
    width: 100%;
    height: 60px;
    opacity: 0.90;
    text-align: center;
    position: fixed;
    bottom: 0;
}

.overlay {
    z-index: 6;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    height: 60px;
    bottom: 0;
    left: 0;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-ui {
    z-index: 5;
    opacity: 0.90;
    text-align: center;
    position: fixed;
    left: 5px;
    top: 10px;
    height: 90px;
    padding: 5px;
}

.left-floating-ui {
    z-index: 5;
    opacity: 0.90;
    text-align: left;
    position: fixed;
    left: 5px;
    bottom: 45px;
    padding: 5px;
}

.right-floating-ui {
    z-index: 5;
    opacity: 0.90;
    text-align: right;
    position: fixed;
    right: 5px;
    bottom: 45px;
    padding: 5px;
}

#prompt {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    padding-top: 100px;
    background-color: black;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-transition: 0.5s;
    overflow: auto;
    transition: all 0.3s linear;
}

#board {
    touch-action: none;
}

#holder {
    position: fixed;
    background-color: #c5c5c5;

    width: 100%;
    height: 100%;
}

#cursor {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;

    pointer-events: none;
}

#grid {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;

    pointer-events: none;
}

#ghost {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    pointer-events: none;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#bottom-ui {
  overflow-x: scroll;
  overflow-y: hidden;
}

#palette-box {
    overflow-x: scroll;
    overflow-y: hidden;
    height: 50px;
    max-width: 100%;
}

#palette {
    display: inline-block;
    white-space: nowrap;
}

.tool {
    padding: 10px;
}