body {
    margin: 0;
    height: 100vh;
    display: grid;
    grid-template-columns: auto auto auto auto;
    grid-template-rows: auto auto;
    column-gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.color-picker {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    aspect-ratio: 1;
}

.gc {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.gc>.g {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.gc>.ball {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-radius: 5px;
    border-color: #000;
    border-width: 2px;
}

.color-picker>.gc>.g:nth-child(2) {
    background: linear-gradient(#00000000, #000000);
}

.color-picker>input[type="range"] {
    appearance: none;
    height: 30px;
    outline: none;
    background-image: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
    margin: 10px 0 0 0;
    border-radius: 5px;
}

.color-picker>input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    background: #3b3b3b;
    height: 25px;
    width: 6px;
    border-radius: 3px;
}

.pad {
    border-radius: 10px;
}