/* Global variables and settings */
:root {
    --theme-color-blue: rgb(0, 48, 73);
    --theme-color-vanilla: rgb(234, 226, 183);
    --theme-color-xanthous: rgb(252, 191, 73);
    --theme-color-orange: rgb(247, 127, 0);
    --theme-color-red: rgb(214, 40, 40);
    --theme-color-white: rgb(255, 255, 255);

    --board-size: 32rem;
}

* {
    /* box-sizing: border-box; */
    margin: 0;
    padding: 0;
    font-family: "Courier New", Courier, monospace;
}

html {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--theme-color-xanthous);
    color: var(--theme-color-blue);
}

/* Main content styles  */
nav {
    background-color: var(--theme-color-blue);
    border: 3px solid black;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

h1 {
    font-size: 2.4rem;
    color: var(--theme-color-xanthous);
}

h2 {
    font-size: 1.5rem;
    color: var(--theme-color-orange);
}

a {
    text-decoration: none;
    color: var(--theme-color-orange);
}

a:hover {
    text-decoration: underline;
}

.container {
    width: var(--board-size);
    height: var(--board-size);
    border: 3px solid var(--theme-color-blue);
    border-top: 0;
    display: flex;
    flex-wrap: wrap;
    background-color: var(--theme-color-white);
}

.tile {
    transition: background-color 0.3s;
}

.controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    margin: 5px 0;
}

.sub-control {
    width: 20%;
    height: 3rem;
}

#color-picker {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

button {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background-color: var(--theme-color-vanilla);
    color: var(--theme-color-blue);
    font-size: 1rem;
    font-weight: bold;
}

button:hover {
    background-color: var(--theme-color-blue);
    color: var(--theme-color-vanilla);
    cursor: pointer;
    border: 1px solid var(--theme-color-blue);
}

#btn-clear {
    width: 4rem;
    height: 1.5rem;
}

/* Taken from 
  https://blog.logrocket.com/creating-custom-css-range-slider-javascript-upgrades/
   */
#boardSizeInput {
    -webkit-appearance: none;
    appearance: none;
    width: 58%;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    border-radius: 16px;
}

#boardSizeInput::-webkit-slider-runnable-track,
#boardSizeInput::-moz-range-track {
    height: 1rem;
    background: var(--theme-color-vanilla);
    border-radius: 1rem;
}

#boardSizeInput::-webkit-slider-thumb,
#boardSizeInput::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 1rem;
    width: 1rem;
    background-color: var(--theme-color-blue);
    border-radius: 50%;
    border: 1px solid var(--theme-color-blue);
    box-shadow: -407px 0 0 400px var(--theme-color-red);
}
/* =========================================== */

label {
    font-weight: bold;
}
