@font-face {
    font-family: 'super_sketchregular';
    font-style: normal;
    font-weight: normal;
    src: url('./fonts/supersketch-webfont.woff2') format('woff2'),
         url('./fonts/supersketch-webfont.woff') format('woff');

}
body {
    background-color: #2b0606;
    margin: 0 auto;
    padding: 1rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;

}
.bg {
    position:absolute;
    background-image: url(./bg.jpg);
    z-index: -2;
    left:0;
    top:0;
    repeat:repeat;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}
h1 {
    color:rgb(255, 234, 0);
    font-family: 'super_sketchregular';
    font-size: 0.8rem;    margin: 0;
    padding: 0.7rem;
    text-align: center;
    text-transform: uppercase;
}
.container {
    align-content: center;
    background-color: #810906;
    border: 2px solid #f068656d;
    border-radius: 10px;
    box-shadow: 0 0 6px 4px rgba(0, 0, 0, 0.934);
    box-sizing: border-box;
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
    padding: 5px 5px 10px 5px;
    width: 87vw;
    max-width: 700px;
    margin: 0 auto;
}
.grid {
    box-sizing: border-box;
    display:inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.grid:hover {
    background-color: rgba(128, 128, 128, 0.146);
}
.divcenter {
    aspect-ratio: 1/1;
    background-color: white;
    box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.934);
    box-sizing: content-box;
    display: grid;
    height: auto;
    width: 95%;
    margin: 0 auto;
}
h1:hover {
    color:rgb(244, 237, 160);
    cursor: default;
}
:checked+label::after {
    color:rgb(9, 239, 9);
    content: ' \2713';
}
input:not(:checked)+label::after {
    color:rgba(191, 191, 191, 0.509);
    content: ' \2713';
}
label[for="randomColor"]:hover, label[for="toggleGrid"]:hover, label[for="resetButton"]:hover,label[for="randomColor"]:hover::after, label[for="toggleGrid"]:hover::after, label[for="resetButton"]:hover::after  {
    color: white;
    content: ' \2713';
    cursor:pointer;
}
a {

    display:block;
    color: rgb(244, 237, 160);
    position:absolute;
    bottom:0;
    left:0;
}
input:not(:checked)+label[for="resetButton"]::after {
    content: '';
}

#randomColor, #resetButton, #toggleGrid {
    display:none;
    /* opacity: 0.4; */
}

.togglegrid {
    border: 1px solid rgba(128, 128, 128, 0.094);
}

.rainbow {
    background-image: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
}

.infodisplay:hover {
    cursor: pointer;
}

.infodisplay:active, colordisplay:active {
    box-shadow: inset 0 0 6px 2px rgba(0, 0, 0, 0.7);
}

.hidden {
    display:none;
}
/* !KNOB */

.round-controller{
    background-color: #FFFFEA;
    border-radius: 50%;
    height: 60px;
    width: 60px;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.7);
}

.newcontrols{
    height: 100px;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 20px 0 0 0;
    justify-content: space-between;
}
.midbuttons {
    display: flex;
    flex-direction: column;
    gap: 2px;

}
.midbuttons > label {
    color:rgb(244, 237, 160);
    text-align: center;
    padding: 2px;
}
.midbuttons > *:active{
    /* transform: translate(0, 2px); */
    scale: 0.95;
}
#hiddencolor {
    position:absolute;
    z-index: 1;
    border-radius: 50px;
    height: 60px;
    width: 60px;   
    opacity: 0;
    cursor: pointer;
}
.colordisplay {
    position:relative;
    left:17%;
    top: 17%;
    background-color: black;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.7);
    transition: all 0.2s cubic-bezier(1, 0, 0, 1);

}
.infodisplay {
    position: relative;
    left:17%;
    top: -50%;
    z-index: 1;
    background-color: #f8f8f2;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.7);
    transition: all 0.2s cubic-bezier(1, 0, 0, 1);

}
#gridSize {
    position:relative;
    left: 25%;
    top: 25%;
    color: rgba(0, 0, 0, 0.537);
    display: inline-block;
    z-index: 2;
    font-size: 18px;
    font-weight: 100;
    box-sizing: border-box;
    display:inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media all and (min-width: 379px) {
    .container {
        align-items: center;
        box-sizing: border-box;
        display:flex;
        flex-direction: row-reverse;
        justify-content: center;
    }
    .divcenter {
        height:auto;
        max-width: 600px;
        width: 95%;
    }
.round-controller{
    background-color: #FFFFEA;
    border-radius: 50%;
    height: 80px;
    width: 80px;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.7);
}

.newcontrols{
    height: 100px;
    width: 97%;
    display: flex;
    flex-direction: row;
    padding: 20px 0 0 0;
    justify-content: space-between;
}
.midbuttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.midbuttons > label {
    color:rgb(244, 237, 160);
    text-align: center;
    padding: 2px;
}
#hiddencolor {
    position:absolute;
    z-index: 1;
    border-radius: 50px;
    height: 80px;
    width: 80px;   
    opacity: 0;
    cursor: pointer;
}
.colordisplay {
    position:relative;
    left: 19%;
    top: 20%;
    background-color: black;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.7);
    transition: all 0.2s cubic-bezier(1, 0, 0, 1);

}
.infodisplay {
    position: relative;
    left:20%;
    top: -65%;
    z-index: 1;
    background-color: #f8f8f2;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.7);
    transition: all 0.2s cubic-bezier(1, 0, 0, 1);

}
#gridSize {
    position:relative;
    left: 30%;
    top: 30%;
    color: rgba(0, 0, 0, 0.537);
    display: inline-block;
    z-index: 2;
    font-size: 18px;
    font-weight: 100;
    box-sizing: border-box;
    display:inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
}
@media all and (min-width: 605px) {

    .divcenter {
        height:auto;
        max-width: 600px;
        width: 97%;
    }
    .wrapper {
        align-items: center;
        color:rgb(244, 237, 160);
        display:flex;
        flex-direction: row-reverse;
        justify-content: center;
    }
    .container {
        flex-direction: column;
    }

    .round-controller{
        background-color: #FFFFEA;
        border-radius: 50%;
        height: 100px;
        width: 100px;
        box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.7);
    }
    
    .newcontrols{
        height: 100px;
        width: 97%;
        display: flex;
        flex-direction: row;
        padding: 20px 0 40px 0;
        justify-content: space-between;
    }
    .midbuttons {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .midbuttons > label {
        color:rgb(244, 237, 160);
        text-align: center;
        padding: 5px;
    }
    #hiddencolor {
        position:absolute;
        z-index: 1;
        border-radius: 50px;
        height: 100px;
        width: 100px;   
        opacity: 0;
        cursor: pointer;
    }
    .colordisplay {
        position:relative;
        left: 20%;
        top: 20%;
        background-color: black;
        border-radius: 50%;
        height: 60px;
        width: 60px;
        box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.7);
        transition: all 0.2s cubic-bezier(1, 0, 0, 1);
    
    }
    .infodisplay {
        position: relative;
        left:20%;
        top: -80%;
        z-index: 1;
        background-color: #f8f8f2;
        border-radius: 50%;
        height: 60px;
        width: 60px;
        box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.7);
        transition: all 0.2s cubic-bezier(1, 0, 0, 1);
    
    }
    #gridSize {
        position:relative;
        left: 27%;
        top: 25%;
        color: rgba(0, 0, 0, 0.537);
        display: inline-block;
        z-index: 2;
        font-size: 26px;
        font-weight: 100;
        box-sizing: border-box;
        display:inline-block;
        -webkit-user-select: none;
        -moz-user-select: none;
        -o-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}
