:root {
    --clr-text-drpdown: #111827;
    --clr-text-button: #374151;
    --clr-text-hexCodes: #2B283A;
    --clr-grey: #D1D5DB;
    --clr-lgther-grey: #E5E5E5;
    --clr-white: #FFF;
}

* {
    box-sizing: border-box;
    /* outline: 1px solid red; */
}

html, body {
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
}

.container {
    width: 90%;
    max-width: 34.375rem;
    height: 34.375rem;
    margin: 1em auto;
}

/* ////////// FORM ////////////// */

form {
    display: grid;
    grid-template-areas: 
        "color-wheel dropdown"
        "enter enter";
    grid-template-columns: auto 1fr;
    gap: .5em;
    row-gap: 1.56em;
    padding: 1.56em 0;
}

input.color-wheel,
.btn.scheme-mode-selector,
label,
.btn.get-color-scheme {
    cursor: pointer;
}

input.color-wheel {
    grid-area: color-wheel;
    height: 100%;
    border: 0.5px solid var(--clr-grey);
    background: var(--clr-lgther-grey);
}

.custom-select {
    position: relative;
}

button {
    font-size: 1rem;
    width: 100%;
    padding: 0.8125rem 0.6875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    border: 1px solid var(--clr-grey);
    background: var(--clr-white);
    font-family: 'Inter', sans-serif;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

.btn.scheme-mode-selector {
    grid-area: dropdown;
    display: flex;
    color: var(--clr-text-drpdown);
}

.arrow {
    margin-left: auto;
}

.scheme-dropdown {
    position: absolute;
    top: 2.75em;
    width: 100%;
    padding: 0;
    border-radius: 0.375rem;
    background: var(--clr-white);
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.10);
    border: 1px solid var(--clr-grey);
    list-style-type: none;
    visibility: hidden;
    z-index: 1;
}

.scheme-dropdown label {
    display: flex; 
    justify-content: space-between; /* for the checkmark to add for selection */
    padding: 0.8125rem 0.6875rem;
    width: 100%;
}

.scheme-dropdown li:hover {
    background-color: var(--clr-grey);
}

.scheme-dropdown input:checked ~ label {
    font-weight: bold;
}

.scheme-dropdown input[type="radio"] {
    position: absolute;
    left: 0;
    opacity: 0;
}

.btn.get-color-scheme {
    grid-area: enter;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--clr-text-button);
}

/* //////////// PALETTE DISPLAY //////////// */

.palette {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    width: 100%;
    height: 100%;
}

.slot {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    border: 2px solid var(--clr-grey);
    border-radius: 3rem;
}

.hex {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35%;
    height: 100%;
    margin-left: auto;
    border-top-left-radius: 3rem;
    border-bottom-left-radius: 3rem;
    cursor: pointer;
}

.color {
    width: 65%;
    height: 100%;
    margin-left: auto;
    border-radius: 3rem;
}

/* ////////////// TOOLTIP ////////////////// */

.tooltip {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min-content;
    padding: .3em .75em;
    border-radius: 1rem;
    background-color: green;
    box-shadow: 0px 0px 1px 1px green;
    color: var(--clr-white);
    opacity: 0;
}

/* //////////// UTILITY CLASSES //////////// */

.show {
    visibility: visible;
}

.show-opacity {
    opacity: 1;
}

/* //////////// MEDIA QUERIES /////////////// */

@media (min-width: 614px) {
    
    form {
        grid-template-areas: 
            "color-wheel dropdown enter";
    }

    .btn.get-color-scheme {
        font-size: .85rem;
    }

    .palette {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: 1fr;
    }

    .slot {
        flex-direction: column-reverse;
        height: 100%;
        border-radius: unset;
    }

    .color, .hex {
        margin: 0;
        border-radius: unset;
    }

    .color {
        width: 100%;
        height: 100%;
    }
    
    .hex {
        height: 15%;
    }
    
    .tooltip {
        top: 0%;
    }
}