:root {
    --default-bg-color: #c3c9c5;
    --default-color: #ff0000;
    --selected-color: #ff0000;
    --frame-color: #ba2929;
}

* {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: auto;

    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

body{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #598799;
    gap: 5vw;
    margin-bottom: 5vw;
}

h1 {
    text-align: center;
    margin: 5vw 0vw 0vw 0vw;
    font-size: 3rem;
}

footer {
    text-align: center;
    font-style: italic;
    background-color: white;
    height: 5vw;
    line-height: 5vw;
    position: fixed;
    bottom: 0vw;
}

.container-frame {
    width: 90vw;
    height: 100vw;
    max-width: 750px;
    max-height: 750px;
    background-color: var(--frame-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4%;
}

.bot-row {
    display: grid;
    justify-items: center;
    align-items: center;
    grid-template-columns: 25% 50% 25%;
    width: 100%;
    height: 10%;
}

.round-controller {
    background-color: #FFF;
    width: 30%;
    height: 70%;
    border-radius: 50%;
    border-style: solid;
    border-width: 100%;
    border-color: #000;
    box-shadow: 2px 2px #807c71;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    height: 100%;
    gap: 3%;
}

.button {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 25%;
    font-size: 0.8rem;
}

#but-color {
    padding: 3%;
}

/*SLIDER https://www.w3schools.com/howto/howto_js_rangeslider.asp*/
.slide-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 5% 0 5% 0;
    width: 50%;  
    height: 3%;
    gap: 1%;
}
.slide-container div {
    display: block;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    text-align: center;
    font-size: 0.8rem;
    width: 25%;
    font-weight: bold;
}

.slider {
    -webkit-appearance: none;  /* Override default CSS styles */
    appearance: none;
    width: 100%; /* Full-width */
    height: 25%; /* Specified height */
    background: #d3d3d3; /* Grey background */
    outline: none; /* Remove outline */
    opacity: 0.8; /* Set transparency (for mouse-over effects on hover) */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 8%; /* Set a specific slider handle width */
    height: 300%; /* Slider handle height */
    background: #000000; /* Green background */
    cursor: pointer; /* Cursor on hover */
}

.slider::-moz-range-thumb {
    width: 8%;
    height: 300%;
    background: #000000;
    cursor: pointer;
}

/*MAIN GRID*/
.grid-container {
    margin: 10% 0% 5% 0%;
    display: grid;
    gap: 0px;
    width: 70%;
    height: 65%;
    grid-template-columns: repeat(3, 1fr);
    border-style: solid;
    border-width: 5px;
    border-radius: 3%;
    border-color: #000;
    background-color: #000;
    padding: 5px;
}

.grid-item {
    background-color: var(--default-bg-color);
    width: 100%;
    height: 100%;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.colored {
    background-color: var(--selected-color);
}

.rainbow {    
    animation: rainbow 2.5s linear;
    animation-iteration-count: infinite;
}

@keyframes rainbow { /*https://codepen.io/zak/pen/rWJzPy*/
    100%,0%{
        background-color: rgb(255,0,0);
    }
    8%{
        background-color: rgb(255,127,0);
    }
    16%{
        background-color: rgb(255,255,0);
    }
    25%{
        background-color: rgb(127,255,0);
    }
    33%{
        background-color: rgb(0,255,0);
    }
    41%{
        background-color: rgb(0,255,127);
    }
    50%{
        background-color: rgb(0,255,255);
    }
    58%{
        background-color: rgb(0,127,255);
    }
    66%{
        background-color: rgb(0,0,255);
    }
    75%{
        background-color: rgb(127,0,255);
    }
    83%{
        background-color: rgb(255,0,255);
    }
    91%{
        background-color: rgb(255,0,127);
    }
}
