@import url('https://fonts.googleapis.com/css2?family=Koulen&display=swap');

body {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0px;
    padding: 0px;
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgb(40, 40, 40);
}

#title{
    font-size: 50px;
    white-space: nowrap;
    max-height: 20vh;
    font-family: 'Koulen', serif;
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px rgb(223, 123, 9);
    letter-spacing: 10px;
    margin: 0;
}

#main-content{
    width: 100vw;
    max-width: 100vw;
    height: min(60vh, 60vw);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#paint-grid{
    height: 100%;
    aspect-ratio: 1;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}

.painting-square{
    aspect-ratio: 1;
    margin: 1px;
    border-radius: 4px;
}

#controls{
    max-height: 100%;
    margin-right: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#color-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.color-element{
    float: left;
    aspect-ratio: 1;
    border: 1px solid rgb(54, 54, 54);
    border-radius: 6px;
    margin: 1px;
}

#currCol{
    width: 100%;
    height: 10px;
    background-color: red;
    border-radius: 999px;
    margin-bottom: 10px;
    align-items: center;
}

#brightness{
    width: 100%;
}

.card{
    background-color: rgb(58, 58, 58);
    border-radius: 8px;
    padding: 10px;
}

input[type="button"]{
    width: 100%;
    background-color: transparent;
    border: 2px solid rgb(40, 40, 40);
    border-radius: 8px;
    padding: 6px 0;
    margin: 8px 0px;
    font-family: 'Koulen', serif;
    color: white;
    text-align: center;
    -webkit-appearance: none;
}

@media only screen and (max-width: 850px) {
    #main-content {
        flex-direction: column-reverse;
        height: unset;
        max-height: unset;
    }

    #controls{
        width: 90%;
        height: unset;
        margin: 10px 0 0 0;
        flex-direction: column;
    }

    #color-grid{
        grid-template-columns: repeat(12, 1fr);
    }

    #subcontrols{
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    input[type="button"]{
        margin: 8px 10px 0 0;
        padding: 2px 16px;
        width: fit-content;
    }

    #paint-grid{
        width: 90%;
        height: unset;
    }

    #title{
        font-size: 8vw;
    }
}