.color-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.flake-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flake-color-option:hover {
    background: none;
    cursor: pointer;
}

.flake-color-image {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    border: 3px solid white;
    box-shadow: var(--shadow);
    transition: .4s;
    transition-timing-function: cubic-bezier(0.66, 0, 0.34, 1);
    overflow: hidden;
}

.flake-color-image img {
    width: 100%;
    height: 100%;
}

.flake-color-image {
    position: relative;
}

.flake-color-image::after {
    content: "\f065";
    font-family: var(--icon);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,.7);

    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: var(--fs-lg);
    color: var(--main);
    opacity: 0;
    transition: .4s;
}

.flake-color-option:hover .flake-color-image {
    border-color: var(--main);
    transform: scale(1.1)
}

.flake-color-option:hover .flake-color-image::after {
    opacity: 1;
}

.color-options .color-title {
    color: inherit;
    text-align: center;
    font-size: var(--fs-sm);
}










/* modals */

.color-close-btn {
    font-size: 40px;
    color: white;
    background: #f74e4e;
    width: fit-content;
    margin-left: auto;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 7px);
    margin-bottom: 20px;

    position: absolute;
    top: 7px;
    right: 7px;
    opacity: .7;
    cursor: pointer;
}

.color-close-btn:hover {
    opacity: 1;
}

.color-modal {
    display: none;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 1500px;
    max-height: 500px;
    width: 90%;
    z-index: 99;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
}

.active-modal {
    display: flex;
    flex-direction: column;
    animation: modalIn 1.5s forwards;
    animation-timing-function:
linear(0, 0.03 1.5%, 0.121 3.2%, 0.851 13%, 0.99 16.4%, 1.063 20.2%, 1.076 22.3%, 1.075 24.8%, 1.013 35.9%, 0.995 43.4%, 1)}

@keyframes modalIn {
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}


.color-images {
    display: flex;
    gap: 20px;
    overflow: hidden;
    height: 100%;
}

.color-images img {
    width: 50%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    border-radius: calc(var(--radius) / 2);
    flex-grow: 1;
}

@media(max-width: 768px) {
    .color-modal {
        max-height: 80vh;
    }
    
    .color-images {
        flex-direction: column;
    }

    .color-images img {
        width: 100%;
    }
}