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

:root {
    --background-color: #E8C2CA;
    --sketchpad-color: #e9e9e9;
    --bg-active-button: #735D78;
    --bg-inactive-button: #B392AC;
}

html {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

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

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    font-weight: 500;
    font-size: 24px;
    color: var(--bg-active-button);
}

.main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex: 1 0 auto;
}

.left-controls,
.right-controls {
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.color-picker {
    height: 100px;
    width: 100px;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
}

#slider-value {
    display: block;
    text-align: center;
    font-size: 3em;
    font-weight: 400;
    color: var(--bg-active-button);
}

.slider {
    width: 160px;
    height: 16px;
    outline: none;
    border-radius: 20px;
    overflow: hidden;
}

.button {
    width: 160px;
    height: 35px;
    border: none;
    border-radius: 6px;
    color: white;
    background-color: var(--bg-inactive-button);
    transition: transform 0.5s;
}

.button:hover {
    transform: scale(1.03);
    background-color: var(--bg-active-button);
}

.active {
    background-color: var(--bg-active-button);
}

.container {
    height: 65vh;
    width: 65vh;
    background-color: var(--sketchpad-color);
    box-sizing: content-box;            /* border-box leads to extra space after last row - due to border being included in height */
    display: flex;
    flex-direction: column;
}

.grid-row {
    display: flex;
    width: 65vh;
    box-sizing: border-box;
    flex: 1 1 auto;
}

.grid-square {
    border: 0.4px dotted black;
    flex: 1 1 auto;
}

.footer {
    color: var(--bg-active-button);
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    flex-shrink: 0;
    margin: 10px 0;
}

.creator a {
    text-decoration: none;
    color: inherit;
}

.fa-github {
    transition: transform 0.3s ease-in-out;
    font-size: 20px;
}

.fa-github:hover {
    transform: rotate(360deg) scale(1.1);
}