*{
    --text-color: #ffffff;
    --background-color: rgb(218, 213, 213);
    --tool-color: #474747;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    height: 100vh;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
}

#header{
    margin-left: auto;
    margin-right: 16px;
}

#settings{
    background-color: #474747;
    padding: 8px;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    align-items: center;
    min-height: 64px;
    margin-bottom: 16px;
    color: white;
    flex-wrap: wrap;
}

#color-picker{
    background-color: #00000000;
    width: 50px;
    height: 50px;
    border: none;
    border-image-width: 0;
}

#color-picker:disabled{
    opacity: 0.25;
}

#color-picker:hover, #clear:hover{
    transform: scale(1.05);
}

#range-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

#mode-select{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.mode-button, #clear{
    background-color: #00000000;
    color: white;
    border: 0;
    padding: 16px;
}

button.mode-button:hover{
    background-color: grey;
    color: black;
    border-radius: 4px;
}

.mode-button.active{
    background-color: black;
}

.mode-button.active, button#clear{
    border: 1px solid grey;
    border-radius: 4px;
}

button, input{
    user-select: none;
    cursor: pointer;
}

#container{
    margin: auto;
    box-sizing: content-box;
    display: flex;
    flex-wrap: wrap;
    border: 2px solid grey;
    box-shadow: 0 0 5px 5px rgba(179, 178, 178, 0.678);
}

.grid-item{
    flex: 0 0 auto;
    background-color: white;
    opacity: 1;
    user-select: none;
    border: 1px solid rgba(128, 128, 128, 0.295);
    cursor: crosshair;
}

.grid-item:hover{
    opacity: 0.5;
}