* {
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: content-box;
    --thickness:15px;
    --grad-1:linear-gradient(to top,rgb(54, 35, 100), rgb(146,104,247), white, rgb(112,151,248), rgb(42, 58, 98));
    --grad-2:linear-gradient(to left,rgb(54, 35, 100), rgb(146,104,247), white, rgb(112,151,248), rgb(42, 58, 98));
    --grad-3:linear-gradient(to top,rgb(42, 58, 98), rgb(112,151,248), white, rgb(146,104,247), rgb(54, 35, 100));
    --grad-4:linear-gradient(to left,rgb(42, 58, 98), rgb(112,151,248), white, rgb(146,104,247), rgb(54, 35, 100));
    --radius:20px;
    --thumb: rgb(235,232,216);
    cursor: pointer;
}
body {
    display: flex;
    width: 1000px;
    height: max(100vh, 1000px);
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    background-color: black;
}
.container-main {
    background: white;
    width: 1000px;
    height: 900px;
    display: flex;
    flex-direction: column;
}
.container-up{
    display: flex;
    position: relative;
}
.container-tools {
    background-color: rgb(146,104,247);
    height: 750px;
    width: 265px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.container-color {
    display: flex;
    flex-wrap: wrap;
    padding-left: 15px;
    padding-top: 15px;
    width: 720px;
    height: 720px;
    border-radius: var(--radius);
}
/* Top Border */
.container-up::before {
    content: "";
    position: absolute;
    top: 0;
    z-index: 1000;
    width: 750px;
    height: var(--thickness); /* Thickness */
    background:var(--grad-1);
    border-bottom-left-radius: var(--radius); /* Match border-radius */
    border-bottom-right-radius: var(--radius);
}

/* Bottom Border */
.container-up::after {
    content: "";
    position: absolute;
    bottom:0;
    z-index: 1000;
    width: 750px;
    height: var(--thickness); /* Thickness */
    background: var(--grad-3);
    border-top-left-radius: var(--radius); /* Match border-radius */
    border-top-right-radius: var(--radius);
}

.container-color .left-border {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--thickness); 
    height: 100%;
    background: var(--grad-2);
}

.container-color .right-border {
    position: absolute;
    top: 0;
    right: 25%;
    width: var(--thickness); 
    height: 100%;
    background: var(--grad-4);
}

.container-color div {
    background-color: #ffffff;
    border: rgb(142, 142, 142) 0.5px solid;
    box-sizing: border-box;
}
.container-down {
    background-color: rgb(112,151,248);
    width: 1000px;
}
.click {
    width: 125px;
    flex-grow: 0;
    align-items: right;
    height: auto;
}
.click[src = "images/save-image.png"] {
    width: 125px;
    height: 125px;
    margin-left: 20px;
    margin-right: -5px;
    margin-top: 20px;
}
.click[src = "images/fill.png"] {
    height: 170px;
    margin-top: 20px;
}
.click[src = "images/mirror.png"] {
    width: 60px;
    height: 160px;
    margin-top: 25px;
    margin-left: 35px;
    margin-right: 30px;
}
.click[src = "images/vari-trans.png"] {
    width: 70px;
    height: 200px;
    margin-left: 35px;
    margin-right: 30px;
}
.click[src = "images/erase.png"] {
    height: 150px;
    align-self: center;
}
/********** Range Input Styles **********/
.range-container {
    position: relative;
}
.range-bg {
    position:absolute;
    height: 30px;
    z-index: 1;
    width: calc(10rem + 12px);
    background: rgb(191,191,191);
}
.range {
    height: 10px;
    width: calc(10rem + 12px);
    position: absolute;
    top: 0;
    z-index: 2;
    background: repeating-linear-gradient(
        to right, 
        rgb(170, 170, 160) 0px,  /* Vertical lines */
        rgb(170, 170, 160) 1px, 
        transparent 3px, 
        transparent 20px
    );;
}
input[type="range"] {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    image-rendering: pixelated;
    -webkit-appearance: none;
     appearance: none;
     cursor: pointer;
     width: 10rem;
    padding: 14px 6px;
 }
 
 /* Removes default focus */
 .slider {
    width: 11rem;
    height: 80px;
    background-color: rgb(255, 21, 0);
    display: flex;
    flex-direction: column;
    border-top: rgb(255, 199, 194) solid 3px;
    border-left: rgb(255, 199, 194) solid 3px;
    border-right: rgb(71, 55, 54) solid 3px;
    border-bottom: rgb(71, 55, 54) solid 3px;
 }
 .slider img{
    width: 10rem;
    margin: 0 auto;
 }
 input[type="range"]:focus {
   outline: none;
 }
 .slided {
    position: absolute;
    z-index: 5;
    margin-top: 14px;
    margin-left: 6px;
    height: 2px;
    background-color: rgb(255, 21, 0);
 }
 /***** Chrome, Safari, Opera and Edge Chromium styles *****/
 /* slider track */
 input[type="range"]::-webkit-slider-runnable-track {
    background-color: black;
    image-rendering: pixelated;
    border-radius: 0;
    height: 3px;  
    box-sizing: content-box;
    box-shadow: 
         2px 2px 2px rgb(255, 255, 255), 
         -2px -2px 2px rgb(48, 48, 48);
 }
 /* slider thumb */
 input[type="range"]::-webkit-slider-thumb {
    image-rendering: pixelated;
   -webkit-appearance: none;
    appearance: none;
    margin-top: -14px;
    border: 3px black solid;
    background-color: var(--thumb);
    height: 1.9rem;
    width: 1rem; 
    box-shadow: 
        inset 2px 2px 1px rgb(220, 220, 220), 
        inset -2px -2px 1px rgb(186, 186, 186);
 }
 /******** Firefox styles ********/
 /* slider track */
 input[type="range"]::-moz-range-track {
    background-color: black;
    image-rendering: pixelated;
    border-radius: 0;
    height: 4px;
    box-sizing: content-box;
    box-shadow: 
         2px 2px 1px rgb(255, 255, 255),
         -2px -2px 1px rgb(48, 48, 48);
 }
 
 /* slider thumb */
 input[type="range"]::-moz-range-thumb {
    image-rendering: pixelated;
    border: 3px black solid;
    border-radius: 5px;
    background-color: var(--thumb);
    height: 1.7rem;
    width: 1rem;
    box-shadow: 
        inset 2px 2px 1px rgb(220, 220, 220), /* Whitish-grey (top-left) */
        inset -2px -2px 1px rgb(186, 186, 186);
 }
.double {
    margin-top: 15px;
}
.double-button {
    width:11.3rem;
 }

 .option {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 200px;
 }
.variable {
    flex: 0 1 0;
    display: flex;
    flex-direction: row-reverse;
}
.pallete {
    display: flex;
    margin-left: 10px;
}
 .pallete-img {
    margin: 0 10px;
    width: 460px;
    height: 200px;
 }
 .color-image {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 3px rgb(0, 0, 0) solid;
    width :35px;
    background-color: red;
 }
 .eraser {
    width: 392px;
    height: 79px;
    margin-top: 55px;
    margin-right: 50px;
 }
 img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}