@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1{
    display: flex;
    margin: .75em auto;
    justify-content: center;
    color: #1f2937;
    font-weight: 300;
    font-size: 36px;
}

#grid {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 500px;
    min-height: 500px;
    max-height: 500px;
    border: 6px solid #1f2937;
}

.grid-row {
    display: flex;
    flex-direction: row;
    flex: 1 10px;
}

.grid-square {
    border: 0.2px solid rgba(50, 50, 50, 0.25);
    background-color: #ffffff;
    flex: 1 10px;
}

button {
    cursor: pointer;
    margin: 32px 0;
    padding: 1em 2em;
    max-width: 200px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #000000;
}

button#btn-draw-type {
    background-color: #000000;
    color: #ffffff;
}

button#btn-draw-type:hover{
    background: none;
    text-shadow: none;
    background-color: #ffffff;
    color: #000000;
}

button#btn-draw-type:active{
    background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
    color: #ffffff;
    text-shadow: 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black;
}

button#btn-draw-type.rainbow{
    background: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
    color: #ffffff;
    text-shadow: 0 0 1px black, 0 0 1px black, 0 0 1px black, 0 0 1px black;
}

button#btn-draw-type:hover.rainbow{
    background: none;
    text-shadow: none;
    background-color: #ffffff;
    color: #000000;
}

button#btn-draw-type:active.rainbow{
    background: none;
    text-shadow: none;
    background-color: #000000;
    color: #ffffff;
}

button#btn-grid {
    color: #1f2937;
    border: 2px solid #1f2937;
    background-color: #ffffff;
}

button#btn-grid:hover{
    background-color: #1f2937;
    color: #ffffff;
}

button#btn-grid:active{
    background-color: #ffffff;
    color: #1f2937;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 2em;
}

#footer {
    font-weight: 700;
    display: flex;
    margin-top: auto;
    color: #ffffff;
    background-color: #1f2937;
    justify-content: center;
    padding: 2em 0;
}