* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
}

body {
    background-color: hsl(0, 0%, 10%);
}

main {
    display: flex;
    flex-direction: column;
}

#pickerContainer {
    margin: 50px auto;
    width: fit-content;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-template-columns: repeat(2, auto);
    gap: 10px;
    padding: 30px;
    border-radius: 2px;
}

.canvasSlider {
    position: relative;
}

#huePicker {
    grid-row: 2;
}

#alphaPicker {
    margin: 0 5px;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    translate: -50% -50%;
    border: 3px solid white;
    cursor: pointer;
}

#colorPicker .slider {
    left: 100%;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

#huePicker .slider {
    top: 50%;
    width: 10px;
    height: 110%;
    translate: -50% calc(-50% - 2px);
    border-radius: 5px;
    border: 2px solid hsl(0, 0%, 70%);
}

#alphaPicker .slider {
    left: 50%;
    height: 10px;
    width: 125%;
    translate: -50% calc(-50% - 1px);
    border-radius: 5px;
    border: 2px solid gray;
}

#resultContainer {
    width: fit-content;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5px;
}

#colorUnderlay {
    position: relative;
    width: 250px;
    height: 250px;
    border: 2px solid white;
    background-repeat: repeat;
}

#result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: red;
    z-index: 10;
}

#resultValues {
    height: 250px;
    border: 2px solid white;
    overflow-y: scroll;
}

.scrollable::-webkit-scrollbar {
    width: 10px;
}
  
.scrollable::-webkit-scrollbar-button {
    height: 0;
    display: none;
}

.scrollable::-webkit-scrollbar-thumb {
    background-color: hsl(0, 0%, 40%);
    border-radius: 6px;
}

.scrollable::-webkit-scrollbar-track {
    background-color: hsl(0, 0%, 20%);
}

.colorNotation {
    color: white;
    font-family: cursive;
    margin: 20px;
    padding: 10px 20px;
    border: px solid white;
    display: grid;
    grid-template-columns: repeat(4, 1fr) repeat(2, 0.25fr);
    row-gap: 10px;
}

.colorNotation .subHeading {
    grid-column: span 6;
    margin-bottom: 5px;
}

.colorNotation input[type="number"] {
    width: 50px;
    height: 30px;
    margin: 0 3px;
    background-color: transparent;
    border: 2px solid whitesmoke;
    color: white;
    font-size: 17px;
    text-align: center;
}

.colorNotation label:nth-child(5) > input[type="number"] {
    width: 55px;
}
 
.colorNotation input[type=number]::-webkit-outer-spin-button,
.colorNotation input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.colorNotation [type=number] {
  -moz-appearance: textfield;
}

.actionBtn {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.actionBtn img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.actionBtn:active img {
    filter: invert(1) drop-shadow(1px 1px 1px white);
}

#hex {
    grid-template-columns: 4fr repeat(2, 0.25fr);
}

#hex input[type="text"] {
    width: 125px;
    height: 30px;
    margin: 0 3px;
    background-color: transparent;
    border: 2px solid whitesmoke;
    color: white;
    font-size: 17px;
    text-align: center;
}