﻿.color-picker {
    position: relative;
    width: 50px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.34); 
    margin-top: 13px;
    margin-left: -20px;
}

/* Dropdown container for the color options */
.color-options {
    display: none;
    position: absolute;
    top: 110%; /* Position below the color picker */
    left: -19;
    width: 100%;
    grid-template-columns: repeat(4, 1fr); /* 4 colors per row */
    gap: 5px;
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

    /* Style each color box */
    .color-options div {
        width: 25px;
        height: 25px;
        border: 1px solid #ccc;
        border-radius: 3px;
        cursor: pointer;
        transition: transform 0.2s;
    }

        .color-options div:hover {
            transform: scale(1.1);
        }

/* Colors */
.color1 {
    background-color: red;
}

.color2 {
    background-color: blue;
}

.color3 {
    background-color: green;
}

.color4 {
    background-color: yellow;
}

.color5 {
    background-color: orange;
}

.color6 {
    background-color: purple;
}

.color7 {
    background-color: cyan;
}

.color8 {
    background-color: magenta;
}

.color9 {
    background-color: brown;
}

.color10 {
    background-color: pink;
}

.color11 {
    background-color: gray;
}

.color12 {
    background-color: black;
}

/* Show the dropdown when the parent has the 'open' class */
.color-picker.open .color-options {
    display: grid;
}
