*{
    margin: 0;
    padding: 0;
}
*,*::before,*::after{
    box-sizing: border-box;
    user-select: none;
}

html, body{
    font-family: 'Protest Strike', sans-serif;
}

#allContainer{
    height: 100vh;
    width: 100vw;
    background: linear-gradient(45deg, #2A00FF,#9700FF,#008BFF,#00FF3E);
    background-size: 300% 300%;
    animation: color 12s ease infinite;
}
@keyframes color {
    from{
        background-position: 0 50%;
    }
    50%{
        background-position: 100% 50%;
    }
    to{
        background-position: 0 50%;
    }
}

#leftBtnContainer,#rightBtnContainer{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    padding: 30px;
    height: 70vh;
    width:  20vw;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px);
    box-shadow: 0 8px 32px rgba(0, 0,0, 0.37);
}

#mainContainer{
    display: flex;
    justify-content: space-evenly;
    align-items:  center;
    color: white;
    height: 90vh;
}

#container{
    display: flex;
    flex-direction: column;
    width: 40vw;
    height: 80vh;
    justify-content: space-around;
    outline: 1px solid white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(50px);
    box-shadow: 0 8px 32px rgba(0, 0,0, 0.37);
}

.row{
    display: flex;
    flex: 1;
}
.column{
    flex: 1;
    cursor: pointer;
}


.border1px{
    border: 1px solid white;
}
.border2px{
    border: 2px solid white;
}

#programmer{
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}
#programmer a{
    text-decoration: none;
    color: white;
    transition: .3s ease;
}
#programmer a:hover{
    padding: 5px 10px;
    transform: scale(1.1);
    background-color: blueviolet;
    border-radius: 10px;
    box-shadow: 0 0 50px 2px blueviolet;
}

.button{
    cursor: pointer;
    border: 2px solid white;
    min-width: 100%;
    text-align: center;
    padding: 5px 10px;
    border-radius: 10px;
    transition: .5s ease;
    font-size: 1.3rem;
    letter-spacing: .1rem;
}
.button:hover{
    transform: scale(.9);
    background-color: black;
    box-shadow: 0 0 50px 10px white;
}

.button:active{
    transform: scale(.85);
}
#rainbow{
    transition: .5s ease;
}
#rainbow:hover{
    background-color: white;
    color: black;
    border: 2px solid black;
    cursor: pointer;
    min-width: 100%;
    text-align: center;
    padding: 5px 10px;
    border-radius: 10px;
    animation: rainbow 5s infinite;
    animation-delay: .5s;
}

#reset{
    transition: all .5s;
}

#reset:hover{
    background-color: red;
}
#reset:active{
    transition: background-color .1s;
    background-color: rgb(200, 0, 0);
}

@keyframes rainbow{
    from{
        background-color: white;
        color: black;
        border: 2px solid black;
        cursor: pointer;
        min-width: 100%;
        text-align: center;
        padding: 5px 10px;
        border-radius: 10px;
    }
    25%{
        background-color: #00E4FF;
        color: black;
        border: 2px solid black;
        cursor: pointer;
        min-width: 100%;
        text-align: center;
        padding: 5px 10px;
        border-radius: 10px;
    }
    50%{
        background-color: #5DFF00;
        color: black;
        border: 2px solid black;
        cursor: pointer;
        min-width: 100%;
        text-align: center;
        padding: 5px 10px;
        border-radius: 10px;
    }
    75%{
        background-color: #97FF00;
        color: black;
        border: 2px solid black;
        cursor: pointer;
        min-width: 100%;
        text-align: center;
        padding: 5px 10px;
        border-radius: 10px;
    }
    to{
        background-color: white;
        color: black;
        border: 2px solid black;
        cursor: pointer;
        min-width: 100%;
        text-align: center;
        padding: 5px 10px;
        border-radius: 10px;
    }
}
@keyframes rainbowBoxShadow{
    from{
        box-shadow: 0 0 100px 2px blue;
    }
    33%{
        box-shadow: 0 0 100px 2px red;
    }
    66%{
        box-shadow: 0 0 100px 2px green;
    }
    to{
        box-shadow: 0 0 100px 2px blue;
    }
}
#gridShow{
    text-align: center;
    height: 5vh;
    color: white;
}
#colorPickerContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 6vh;
}
#colorPicker{
    appearance: none;
    border: none;
    background-color: transparent;
    width: 100%;
    height: 100%;
    transition: ease .3s;
}
#colorPicker::-webkit-color-swatch{
    border: 2px solid black;
    border-radius: 1rem;
}
#colorPicker:active{
    transform: scale(.9);
}
#singleColor{
    color: black;
    border: 2px solid black;
}

/* Popup CSS */
#popupContainer{
    position: fixed;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    translate: 0 -180%;
    transition: .5s ease;
    border: 2px solid rgba(255, 255, 255, .37);
    border-radius: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    min-width: 30vw;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    z-index: 2;
}
#popupContainer.active{
    opacity: 1;
    translate: 0;
}

#popupContainer div{
    width: 100%;
    height: 100%;
}
.popupContent{
    min-height: 2rem;
}
.popupContent input{
    width: 100%;
    height: 2rem;
    padding: .8rem;
}
.popupFooter{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.popupFooter button{
    text-decoration: none;
    border: 2px solid black;
    background: none;
    background-color: white;
    padding: .9rem;
    border-radius: 1rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: transform .5s ease, box-shadow .3s ease ;
}
.popupFooter button:hover{
    transform: scale(1.1);
    box-shadow: 0 0 50px 1px white;
}
.popupFooter button:active{
    transition: .1s;
    transform: scale(1);
}
#blurAll{
    position: fixed;
    opacity: 0;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
    z-index: 1;
    pointer-events: none;
    transition: .5s ease;
}
#blurAll.active{
    opacity: 1;
    pointer-events: all;
}
#fillContainer{
    transition: .5s ease;
}
#fillContainer:hover{
    animation: blackGray 2s infinite .5s;
}
@keyframes blackGray {
    from{
        background-color: black;
    }
    50%{
        background-color: white;
    }
    to{
        background-color: black;
    }
}