#dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#dialog {
    background-color: #fff;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 400px;
    width: 90%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 40px 5px 20px 5px;
}

#dialog::before {
    content: 'Color Settings';
    position: absolute;
    top: 0;
    left: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 12px;
    height: 30px;
    width: 100%;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.color-field {
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    height: 100px;
    width: 100px;
    margin: 5px;
}

.color-field label {
    display: block;
    margin-bottom: 5px;
}

input[type='color'] {
    -webkit-appearance: none;
    border: none;
    width: 100px;
    height: 60px;
    border-radius: 5px;
    background-color: white;
}

input[type='color']::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type='color']::-webkit-color-swatch {
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
}

input[type='color']::-moz-color-swatch {
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
}

#dialog-buttons {
    text-align: right;
    margin-top: 20px;
}

#dialog-buttons button {
    margin-left: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
}

#dialog-buttons #cancel-button {
    background-color: var(--secondary-color-light);
}
