:root {
    --bg-color: #353A47;
    --active-color: rgb(15, 115, 228);
    --div-bg-color: #909CC2;
    --bg-controls: #F7F5FB;
    --border-color: rgb(15, 115, 228);
    --link: #F7F5FB;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', sans-serif;
}

body {
    background-color: var(--bg-color);
    margin-bottom: 1em;
}

#main-header-area {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-top: 1em;
}

#main-header-area img {
    height: 100%;
}

header h1 {
    font-family: 'Handjet', sans-serif;
    text-align: center;
    font-weight: bold;
    font-size: 5em;
    letter-spacing: 0.25em;
    color: #FFF;
}

#main-section-area {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    align-items: center;
    margin: 3em 8em 0 8em;
}

#main-section-controls {
    box-sizing: border-box;
    width: 300px;
    padding: 1em;
    background-color: var(--div-bg-color);
    border-radius: 5px;
}

#main-section-grid {
    width: 500px;
    height: 500px;
    padding: 20px;
    background-color: var(--div-bg-color);
    border-radius: 5px;
}

#drawing-area {
    width: 101%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
}

#drawing-area:hover {
    cursor: crosshair;
}

button {
    display: block;
    width: 80%;
    margin: 0 auto 1em auto;
    padding: 0.5em;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 5px;
    background-color: var(--bg-controls);
    border: 1px solid var(--border-color);
}

button:hover,
input[type="range"],
input[type="color"] {
    cursor: pointer;
}

.btn-active {
    background-color: var(--border-color);
    border-color: var(--bg-controls);
}

.slide-container {
    width: 100%;
}

.slider {
    margin-top: 1em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 25px;
    background: #F7F5FB;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: var(--active-color);
    cursor: pointer;
}

#gridTileCountDisplayer {
    text-align: center;
    font-weight: bold;
    margin-top: 0.5em;
    margin-bottom: 1em;
    font-size: 1.2em;
}

#color-picker div {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

label {
    margin-left: 1em;
    font-size: 1.3em;
    font-weight: bold;
}

input[type="color"] {
    width: 30%;
    height: 35px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.cell {
    display: block;
    background-color: rgb(255, 255, 255);
    border: none;
}

.border-active {
    border: 1px solid #CCC;
}

.cell:hover {
    background-color: rgb(233, 226, 226) !important;
}

footer {
    padding-top: 2em;
    text-align: center;
    color: var(--bg-controls);
    font-weight: 100;
}

footer p:first-child {
    font-size: 1.4em;
    font-weight: 300;
}

footer a {
    text-decoration: none;
    color: var(--border-color);
}

footer a:hover{
    color: var(--link);
}