* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Muli", sans-serif;
    color: rgb(51, 51, 51);
}

button {
    font-family: "Muli", sans-serif;
}

path,
i,
svg {
    pointer-events: none;
}

.colors {
    min-height: 80vh;
    display: flex;
    color: rgb(212, 212, 212);
}

.color {
    height: 80vh;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    overflow: hidden;
}

.color h2 {
    font-size: 2rem;
    cursor: pointer;
}

.sliders {
    display: flex;
    flex-direction: column;
    position: absolute;

    bottom: 0%;
    background: rgb(255, 255, 255);
    opacity: 0;

    padding: 1rem;
    width: 80%;
    border-top-right-radius: 1rem;

    pointer-events: none;
    border-top-left-radius: 1rem;
    /* We are adding an adjustemnt class */

    transform: translateY(100px);
    transition: all 0.5s ease-in-out;
}

.sliders.active {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: all;
}

.sliders button,
.close-save,
.close-library {
    position: absolute;
    top: 0;
    right: 0;

    padding: 0.5rem;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;

    border: none;
    background: rgb(73, 73, 73);
    color: white;

    cursor: pointer;
    font-weight: bold;
}



.controls {
    display: flex;
    flex-direction: column;
}

.panel {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 20vh;
}

.panel button {
    font-size: 1.2rem;
    margin: 1rem;
    padding: 1rem 2rem;

    background: rgb(31, 33, 63);
    border: none;
    color: white;

    cursor: pointer;
    border-radius: 1rem;
}

.panel p {
    font-size: 1.2rem;
    text-align: center;
}

.library-panel,
.generate-panel,
.save-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.adjust,
.lock {
    font-size: 2rem;
    border: none;
    background: none;

    cursor: pointer;
    margin: 2rem 0rem;
}

/* change slider appearance */
input[type="range"] {
    -webkit-appearance: none;
    margin: 1rem 0rem;
    width: 100%;
    position: relative;
    border-radius: 1rem;
    cursor: pointer;
}


.copy-container,
.save-container,
.library-container {
    position: fixed;
    top: 0%;
    left: 0%;

    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    transition: all 0.5s ease-in-out;

    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.copy-popup,
.save-popup,
.library-popup {
    background: white;
    display: flex;
    flex-direction: column;

    justify-content: space-evenly;
    align-items: center;
    border-radius: 2rem;

    transition: transform 0.5s ease;
    transform: translateY(-2rem);
    min-width: 30%;

    min-height: 30vh;
}
.library-popup{
    border-radius: 0;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
}

.copy-popup h4,
.save-popup h4,
.library-popup h4 {
    font-size: 2rem;
    padding: 2rem;
}

.copy-container.active,
.save-container.active,
.library-container.active {
    opacity: 1;
    pointer-events: all;
}

.copy-popup.active,
.save-popup.active,
.library-popup.active {
    transform: translateY(0rem);
}



.close-save,
.close-library {
    background: none;
    color: red;
    margin: 10px;
    font-size: 20px;
}

.save-name {
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    outline: none;
    border: 2px solid rgb(60, 60, 92);
}

.close-save,
.close-library {
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    padding: 0.5rem;
}

.submit-save {
    margin: 2rem;
    padding: 1rem 2rem;
    background: rgb(60, 60, 92);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}


.library-popup {
    min-width: 40%;
    padding: 1rem;
    justify-content: flex-start;
    overflow-y: scroll;
    max-height: 50vh;
}

.custom-palette {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 2rem;
}

.small-preview {
    display: flex;
    flex: 1;
}

.custom-palette h4 {
    flex: 1;
}

.small-preview div {
    height: 5rem;
    flex: 1;
}

.pick-palette-btn {
    height: 5rem;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    background: rgb(41, 41, 41);
    color: white;
}