:root {
    --primaryColor: #06030d;
    --secondaryColor: #0f0a1f;
    --accentColor: #ef555a;
    --primaryTextColor: #ededed;
    --secondaryTextColor: #cccccc;

    --selectedHue: 0;
    --selectedSaturation: 100%;
    --selectedLightness: 50%;
    --headerHeight: 4.875rem;
    /* 70px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    outline: none;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



.btn {
    cursor: pointer;
    padding: 0.3125rem 0.9375rem;
    /* 5px 15px */
    border: none;
    border-radius: 0.25rem;
    /* 4px */
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all ease-in-out 30ms;
    background-color: var(--primaryColor);
    color: var(--primaryTextColor);
    box-sizing: border-box;
    overflow: hidden;

}

.grayScale {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    height: var(--headerHeight);
    background: transparent !important;
    backdrop-filter: grayscale(100%);
    border: 0 solid #222;
    border-bottom-width: 0.0625rem;
    /* 1px */
    z-index: 1100;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: linear-gradient(15deg, var(--primaryColor) 0%, var(--secondaryColor) 100%);
    color: var(--secondaryTextColor);
    width: 100%;
    height: var(--headerHeight);
    padding: 1.25rem;
    /* 20px */
    gap: 0.625rem;
    /* 10px */
    overflow: hidden;
}

header .btn {
    font-size: 1.4rem;
    font-weight: 400;
    overflow: hidden;
    background: transparent !important;
    padding: 0.625rem;
    /* 10px */
    user-select: none;
    position: absolute;
    top: 0;
    right: 0.5rem;
    height: 100%;
    width: 3rem;
    color: var(--primaryTextColor);
}

header svg {
    fill: var(--primaryTextColor);
}

header #SavePng {
    transform: translateX(-110%);
}

header .btn:hover img,
header .btn:hover svg {
    cursor: pointer;
    scale: 1.2;
    animation-play-state: paused;
}

header .btn svg,
header .btn img {
    transition: scale ease-in-out 100ms;
    width: 100%;
    filter: drop-shadow(0 0 0.155rem var(--primaryColor));
    /* 3px */
}


@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sliders {
    user-select: none;
    overflow-y: hidden;
    width: 100vw;
    min-width: 6.25rem;
    /* 100px */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(200deg, var(--primaryColor) 0%, var(--secondaryColor) 100%);
    color: var(--primaryTextColor);
    box-shadow: 0 0 0.3125rem 0.125rem var(--primaryColor);
    /* 5px 2px */
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2500;
    border-radius: 0.125rem;
    /* 2px */
    overflow: auto;
    transform: translateY(-110%);
    transition: all ease 400ms;
    padding-bottom: 0.625rem;
    /* 10px */
}

.sliders.expanded {
    transform: translateY(0%) !important;
}

.sliders #closeCustomColorWindowButton {
    display: none !important;
}

.sliders.expanded #closeCustomColorWindowButton {
    display: flex !important;
}

.sliders .colorPreview {
    width: 2.5rem;
    /* 40px */
    height: 1.875rem;
    /* 30px */
    position: absolute;
    top: 0.9375rem;
    /* 15px */
    left: 0.625rem;
    /* 10px */
    background-color: hsl(var(--selectedHue), var(--selectedSaturation), var(--selectedLightness));
    border: 0.0625rem solid var(--primaryColor);
    /* 1px */
    filter: drop-shadow(0 0 0.625rem var(--primaryColor));
    /* 10px */
    border-radius: 0.125rem;
    /* 2px */
    display: none;
}

#closeCustomColorWindowButton svg {
    transition: all ease-in-out 100ms;
    fill: var(--primaryTextColor);
    width: 1.8rem;
}

#closeCustomColorWindowButton {
    /* 40px */
    height: 1.875rem;
    /* 30px */
    position: absolute;
    top: 1.4375rem;
    /* 15px */
    right: 0.625rem;
    /* 10px */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--primaryColor);
    user-select: none;
    border-radius: 0.125rem;
    /* 2px */
    overflow: visible;
}

#closeCustomColorWindowButton:hover svg {
    scale: 1.2;
}

.slider {
    padding: 1.25rem;
    /* 20px */
    width: 100%;
    gap: 1.5625rem;
    /* 25px */
    height: 8rem;
    /* 120px */
    overflow: hidden;
    transition: all linear 200ms;
    transform-origin: top;
}

.slider .warning {
    color: var(--secondaryTextColor);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 1.5;
}

#lightnessSlider.hide,
.slider.hide {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.slider .label {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: 2.1875rem;
    /* 35px */
    width: 100%;
    user-select: none;
}

.slider .label .btn {
    box-shadow: 0 0 0.25rem 0.125rem var(--secondaryTextColor);
    /* 4px 2px */
    border-radius: 100%;
    width: 1.875rem;
    /* 30px */
    height: 1.875rem;
    /* 30px */
    font-size: 0.9rem;
    font-weight: 100;
}

.slider .label .btn:hover {
    background-color: var(--primaryTextColor);
    color: var(--primaryColor);
}

.slider .label .value {
    text-transform: lowercase;
    padding: 0.3125rem 0.5rem;
    /* 5px 8px */
    box-sizing: content-box;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    background-color: var(--secondaryColor);
    color: var(--primaryTextColor);
    border-radius: 0.3125rem;
    /* 5px */
    box-shadow: 0 0 0.125rem 0.0625rem var(--secondaryTextColor);
    /* 2px 1px */
    text-align: center;
    position: relative;
}

.sliders .space {
    background-color: transparent !important;
    width: 1.5625rem;
    /* 25px */
    text-align: center;
    font-weight: 800;
}

.sliders .space::after {
    content: ":";
}

.sliders input[type='range'] {
    -webkit-appearance: none;
    width: 100%;
    height: 0.3125rem;
    /* 5px */
    background-color: #ffffff;
    box-sizing: content-box;
    cursor: pointer;
    border-radius: 0.25rem;
    /* 4px */
    transition: all ease-in-out 50ms;
    margin: 1.75rem 0;
}

.sliders input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.5rem;
    /* 24px */
    height: 1.5rem;
    /* 24px */
    background-color: var(--primaryTextColor);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: scale ease-in-out 50ms;
    border-radius: 100%;
}

.sliders input[type='range']::-webkit-slider-thumb:hover,
.sliders input[type='range']::-webkit-slider-thumb:active {
    scale: 1.2;
}

#lightnessSlider {
    height: 8.75rem;
    /* 140px */
}

#hueControl {
    background: linear-gradient(to right,
            hsl(0, 100%, 50%),
            hsl(60, 100%, 50%),
            hsl(120, 100%, 50%),
            hsl(180, 100%, 50%),
            hsl(240, 100%, 50%),
            hsl(300, 100%, 50%),
            hsl(360, 100%, 50%));
}

#saturationControl {
    background: linear-gradient(to right,
            hsl(var(--selectedHue), 0%, 50%),
            hsl(var(--selectedHue), 100%, 50%));
}

#lightnessControl {
    background: linear-gradient(to right,
            hsl(var(--selectedHue), var(--selectedSaturation), 0%),
            hsl(var(--selectedHue), var(--selectedSaturation), 50%),
            hsl(var(--selectedHue), var(--selectedSaturation), 100%));
}

#hueControl[type='range']::-webkit-slider-thumb,
#saturationControl[type='range']::-webkit-slider-thumb,
#lightnessControl[type='range']::-webkit-slider-thumb {
    background: var(--primaryTextColor);
    box-shadow: none;
    border: 0.3125rem solid hsl(var(--selectedHue), var(--selectedSaturation), var(--selectedLightness));
    /* 5px */
    transition: all ease-in-out 100ms;
}

#hueControl[type='range']::-webkit-slider-thumb {
    border-color: hsl(var(--selectedHue), 100%, 50%);
}

#saturationControl[type='range']::-webkit-slider-thumb {
    border-color: hsl(var(--selectedHue), var(--selectedSaturation), 50%);
}

#lightnessControl[type='range']::-webkit-slider-thumb {
    border-color: hsl(var(--selectedHue), var(--selectedSaturation), var(--selectedLightness));
}

#hueControl[type='range']::-webkit-slider-thumb:hover,
#saturationControl[type='range']::-webkit-slider-thumb:hover,
#lightnessControl[type='range']::-webkit-slider-thumb:hover {
    border-width: 0.75rem;
    /* 12px */
    box-shadow: 0 0 0.875rem var(--primaryTextColor);
    /* 14px */
}

.sliders .customColorControl {
    background: transparent;
    color: var(--primaryTextColor);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5375rem 5.3125rem 1.5375rem 0.9375rem;
    /* 15px 85px 15px 15px */
    gap: 1.5rem;
}

.sliders .customColorControl .title {
    font-size: 1.2rem;
    font-weight: 100;
}

.sliders .customColorControl .space {
    width: 0.9375rem;
    /* 15px */
    font-weight: 500;
}

.sliders .customColorControl .checkboxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9375rem;
    /* 15px */
    padding: 0 0.1875rem;
    /* 0 3px */
}

.sliders .customColorControl .checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1rem;
}

.sliders .customColorControl .checkbox .label {
    font-size: 1rem;
    font-weight: 700;
}

.sliders .customColorControl .checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    width: 1rem;
    height: 100%;
    border-radius: 0.0625rem;
    /* 1px */
    background-color: var(--primaryTextColor);
    color: var(--primaryColor);
    cursor: pointer;
    text-align: center;
    box-sizing: content-box;
    border: 0.125rem solid transparent;
    /* 2px */
}

.sliders .customColorControl .checkbox input[type="checkbox"]:checked {
    background-color: var(--secondaryColor);
    color: var(--primaryTextColor);
    border-color: var(--primaryTextColor);
}

.sliders .customColorControl .checkbox input[type="checkbox"]:checked::after {
    content: "\2714";
    font-weight: 600;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 0.8rem;
}

.container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: calc(100vh - var(--headerHeight));
    background-color: #eee;
    display: flex;
    justify-items: center;
    justify-content: center;
    align-content: center;
    align-items: center;
    z-index: 1;
}

.box {
    outline: none;
    background-color: #ddd;
    height: 100%;
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    padding-top: var(--headerHeight);
}

.box .copyText {
    visibility: hidden;
    background-color: var(--primaryTextColor);
    color: var(--primaryColor);
    border: 0.0625rem solid var(--secondaryColor);
    padding: 0.4rem 0.9rem;
    border-radius: 0.3rem;
    font-size: 0.8rem;
    font-weight: 800;
    user-select: none;
    cursor: pointer;
    max-width: 80%;
    overflow: hidden;
    text-wrap: wrap;
    margin-top: 0.8rem;
}

.box:hover .copyText {
    visibility: visible !important;
}

.box .title {
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    cursor: text;
    padding: 0.8rem;
}

.box .colorHexCode {
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: text;
    padding: 0.8rem;
}


#Randomize {
    position: fixed;
    z-index: 4000;
    bottom: 0.625rem;
    /* 10px */
    right: 0.625rem;
    /* 10px */
    width: 5rem;
    /* 80px */
    height: 3.75rem;
    /* 60px */
    background-color: var(--secondaryColor);
    color: var(--primaryTextColor);
    box-sizing: border-box;
    user-select: none;
}








/* Media Queries */
@media screen and (max-width: 800px) {
    .box .title {
        font-size: 1rem;
        padding: 0.7rem;
    }

    .box .colorHexCode {
        font-size: 0.80rem;
        padding: 0.7rem;
    }

    .box .copyText {
        padding: 0.35rem 0.8rem;
        border-radius: 0.28rem;
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 600px) {
    .box .title {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .box .colorHexCode {
        font-size: 0.75rem;
        padding: 0.6rem;
    }

    .box .copyText {
        padding: 0.3rem 0.7rem;
        border-radius: 0.26rem;
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 500px) {
    .box .title {
        font-size: 0.85rem;
        padding: 0.65rem;
    }

    .box .colorHexCode {
        font-size: 0.55rem;
        padding: 0.55rem;
    }

    .box .copyText {
        padding: 0.28rem 0.65rem;
        border-radius: 0.25rem;
        font-size: 0.65rem;
    }
}

@media screen and (max-width: 400px) {
    .box .title {
        font-size: 0.8rem;
        padding: 0.2rem;
    }

    .box .colorHexCode {
        font-size: 0.7rem;
        padding: 0.2rem;
    }

    .box .copyText {
        padding: 0.25rem 0.6rem;
        border-radius: 0.23rem;
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 300px) {
    .box .title {
        font-size: 0.75rem;
        padding: 0rem;
    }

    .box .colorHexCode {
        font-size: 0.6rem;
        padding: 0rem;
    }

    .box .copyText {
        padding: 0.22rem 0.5rem;
        border-radius: 0.2rem;
        font-size: 0.55rem;
    }
}