* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#sandCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 56px); /* Subtract palette height */
    background-color: #000;
    cursor: crosshair;
    z-index: 1;
}

.palette-container {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto;
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(30,30,30,0.95);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
    padding: 8px 0;
    height: 56px; /* Fixed height for palette */
}

.color-palette {
    display: flex;
    flex-direction: row;
    user-select: none;
    cursor: grab;
    transition: box-shadow 0.2s;
    min-width: min-content;
    padding: 0 16px;
    gap: 2px;
}

.color-palette:active {
    cursor: grabbing;
}

.color-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.1s;
    flex: 0 0 40px;
    cursor: pointer;
}

.color-item:hover {
    transform: scale(1.1);
}

.color-item.active {
    border: 2px solid white;
    transform: scale(1.1);
}

.color-item.custom {
    background-color: #333;
    border: 2px dashed #555;
}

.color-item.rainbow-brush {
    background: linear-gradient(to right, 
        #ff0000, #ff8000, #ffff00, 
        #00ff00, #00ffff, #0000ff, 
        #8000ff, #ff00ff);
    position: relative;
    overflow: hidden;
}

.color-item.rainbow-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.grayscale-brush {
    background: linear-gradient(to right,
        #ffffff, #d0d0d0, #a0a0a0,
        #707070, #404040, #000000);
    position: relative;
    overflow: hidden;
}

.color-item.grayscale-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.sunset-brush {
    background: linear-gradient(to right,
        #ff0000, #ff4000, #ff8000,
        #ffbf00, #ffe000, #ffff00);
    position: relative;
    overflow: hidden;
}

.color-item.sunset-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.ocean-brush {
    background: linear-gradient(to right,
        #000080, #0000ff, #0080ff,
        #00ffff, #00bfff, #4d79ff);
    position: relative;
    overflow: hidden;
}

.color-item.ocean-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.green-brush {
    background: linear-gradient(to right,
        #006400, #008000, #00a000,
        #00c000, #90ee90, #adff2f);
    position: relative;
    overflow: hidden;
}

.color-item.green-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.forest-brush {
    background: linear-gradient(to right,
        #2e4500, #3a5f00, #556b2f,
        #8b4513, #6b8e23, #a0522d);
    position: relative;
    overflow: hidden;
}

.color-item.forest-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.neon-brush {
    background: linear-gradient(to right,
        #ff00ff, #00ffff, #00ff00,
        #ffff00, #9900ff);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.color-item.neon-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.pastel-brush {
    background: linear-gradient(to right,
        #ffb6c1, #add8e6, #f0e68c,
        #98fb98, #e6e6fa, #ffccd5);
    position: relative;
    overflow: hidden;
}

.color-item.pastel-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(255,255,255,0.1));
    pointer-events: none;
}

.color-item.fire-brush {
    background: linear-gradient(to right,
        #ff0000, #ff4500, #ff8c00,
        #ffa500, #ffcc00, #ffff00);
    position: relative;
    overflow: hidden;
}

.color-item.fire-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.retro-brush {
    background: linear-gradient(to right,
        #4bff00, #ff00a2, #00ffff,
        #ff9500, #0026ff);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(75, 255, 0, 0.5);
}

.color-item.retro-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(0,0,0,0.2));
    pointer-events: none;
}

.color-item.candy-brush {
    background: linear-gradient(to right,
        #ff5cad, #47e3ff, #ff6d3a,
        #90fb92, #ffdf5c);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(255, 92, 173, 0.5);
}

.color-item.candy-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.eraser-brush {
    background: repeating-linear-gradient(
        45deg,
        #ff0000,
        #ff0000 5px,
        #ffffff 5px,
        #ffffff 10px
    );
    position: relative;
    overflow: hidden;
    border: 2px solid #ff0000;
}

.color-item.eraser-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.dissolve-brush {
    background: repeating-linear-gradient(
        -45deg,
        #50ff00,
        #50ff00 4px,
        #006600 4px,
        #006600 8px
    );
    position: relative;
    overflow: hidden;
    border: 2px solid #00bb00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.color-item.dissolve-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(0,0,0,0.2));
    pointer-events: none;
}

.color-item.water-brush {
    background: repeating-linear-gradient(
        -45deg,
        #0078ff,
        #0078ff 4px,
        #00a0ff 4px,
        #00a0ff 8px
    );
    position: relative;
    overflow: hidden;
    border: 2px solid #0050c0;
    box-shadow: 0 0 5px rgba(0, 100, 255, 0.5);
}

.color-item.water-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(0,0,0,0.2));
    pointer-events: none;
}

.color-item.lava-brush {
    background: repeating-linear-gradient(
        45deg,
        #ff5500,
        #ff5500 4px,
        #ff0000 4px,
        #ff0000 8px
    );
    position: relative;
    overflow: hidden;
    border: 2px solid #aa2200;
    box-shadow: 0 0 5px rgba(255, 50, 0, 0.7);
}

.color-item.lava-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.4), 
        rgba(0,0,0,0.2));
    pointer-events: none;
}

.color-item.steam-brush {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f0f0f0 30%,
        #d8d8d8 60%,
        #c0c0c0 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #a0a0a0;
    box-shadow: 0 0 5px rgba(200, 200, 200, 0.6);
}

.color-item.steam-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(255,255,255,0.8) 0%,
            rgba(255,255,255,0) 70%),
        radial-gradient(circle at 70% 60%, 
            rgba(255,255,255,0.6) 0%,
            rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* Cloud brush */
.color-item.cloud-brush {
    background: linear-gradient(135deg, 
        #f5f5f5 0%, 
        #e8e8e8 25%,
        #d9d9d9 50%,
        #cccccc 75%,
        #b3b3b3 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #cccccc;
    box-shadow: 0 0 8px rgba(204, 204, 204, 0.6);
}

.color-item.cloud-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(245, 245, 245, 0.4) 0%,
            rgba(232, 232, 232, 0.4) 25%,
            rgba(217, 217, 217, 0.4) 50%,
            rgba(204, 204, 204, 0.4) 75%,
            rgba(179, 179, 179, 0.4) 100%),
        radial-gradient(circle at 20% 20%, 
            rgba(255,255,255,0.5) 0%,
            rgba(255,255,255,0) 60%),
        radial-gradient(circle at 80% 80%, 
            rgba(0,0,0,0.05) 0%,
            rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.color-item.ghost-brush {
    background: linear-gradient(to right,
        rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0.4),
        rgba(255,255,255,0.6), rgba(255,255,255,0.8), rgba(255,255,255,1));
    position: relative;
    overflow: hidden;
}

.color-item.ghost-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
        rgba(0,0,0,0.1), rgba(0,0,0,0.1) 5px,
        rgba(255,255,255,0.1) 5px, rgba(255,255,255,0.1) 10px);
    pointer-events: none;
}

.color-item.iridescent-brush {
    background: linear-gradient(to right,
        rgba(150,50,255,0.9), rgba(200,100,255,0.8), rgba(100,50,200,0.9),
        rgba(180,50,255,0.7), rgba(220,150,255,0.9), rgba(130,80,220,0.8));
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(180,100,255,0.6);
}

.color-item.iridescent-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.2), 
        rgba(0,0,0,0.1));
    pointer-events: none;
}

.color-item.snow-brush {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f5f5ff 30%,
        #e0e6ff 60%,
        #d0d0e8 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #9090b0;
    box-shadow: 0 0 5px rgba(200, 200, 255, 0.6);
    margin-right: 8px;
}

.color-item.snow-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(255,255,255,0.9) 0%,
            rgba(255,255,255,0) 70%),
        radial-gradient(circle at 60% 70%, 
            rgba(255,255,255,0.7) 0%,
            rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.color-item.wall-brush {
    background: linear-gradient(135deg, 
        #FF0000 0%, 
        #FF4500 20%,
        #FF6347 40%,
        #FF8C00 60%,
        #FFA500 80%,
        #FFD700 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #FF0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}

.color-item.wall-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(139, 69, 19, 0.3) 0%,
            rgba(160, 82, 45, 0.3) 25%,
            rgba(205, 133, 63, 0.3) 50%,
            rgba(210, 180, 140, 0.3) 75%,
            rgba(245, 222, 179, 0.3) 100%),
        radial-gradient(circle at 20% 20%, 
            rgba(255,255,255,0.2) 0%,
            rgba(255,255,255,0) 60%),
        radial-gradient(circle at 80% 80%, 
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0) 60%);
    pointer-events: none;
}

/* Stone wall brush */
.color-item.wall-stone-brush {
    background: linear-gradient(135deg, 
        #4682B4 0%, 
        #5F9EA0 20%,
        #87CEEB 40%,
        #B0C4DE 60%,
        #D3D3D3 80%,
        #F0F8FF 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #4682B4;
    box-shadow: 0 0 8px rgba(70, 130, 180, 0.7);
}

.color-item.wall-stone-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(105, 105, 105, 0.3) 0%,
            rgba(128, 128, 128, 0.3) 25%,
            rgba(169, 169, 169, 0.3) 50%,
            rgba(192, 192, 192, 0.3) 75%,
            rgba(211, 211, 211, 0.3) 100%),
        radial-gradient(circle at 20% 20%, 
            rgba(255,255,255,0.2) 0%,
            rgba(255,255,255,0) 60%),
        radial-gradient(circle at 80% 80%, 
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0) 60%);
    pointer-events: none;
}

/* Wood wall brush */
.color-item.wall-wood-brush {
    background: linear-gradient(135deg, 
        #8B4513 0%, 
        #A0522D 20%,
        #CD853F 40%,
        #DEB887 60%,
        #F5DEB3 80%,
        #FFE4B5 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #8B4513;
    box-shadow: 0 0 8px rgba(139, 69, 19, 0.7);
}

.color-item.wall-wood-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(139, 69, 19, 0.3) 0%,
            rgba(160, 82, 45, 0.3) 25%,
            rgba(205, 133, 63, 0.3) 50%,
            rgba(222, 184, 135, 0.3) 75%,
            rgba(245, 222, 179, 0.3) 100%),
        radial-gradient(circle at 20% 20%, 
            rgba(255,255,255,0.2) 0%,
            rgba(255,255,255,0) 60%),
        radial-gradient(circle at 80% 80%, 
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0) 60%);
    pointer-events: none;
}

/* Concrete wall brush */
.color-item.wall-concrete-brush {
    background: linear-gradient(135deg, 
        #4169E1 0%, 
        #6495ED 25%,
        #87CEEB 50%,
        #B0E0E6 75%,
        #E0F6FF 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid #4169E1;
    box-shadow: 0 0 8px rgba(65, 105, 225, 0.7);
}

.color-item.wall-concrete-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(105, 105, 105, 0.3) 0%,
            rgba(119, 136, 153, 0.3) 25%,
            rgba(176, 196, 222, 0.3) 50%,
            rgba(211, 211, 211, 0.3) 75%,
            rgba(240, 248, 255, 0.3) 100%),
        radial-gradient(circle at 20% 20%, 
            rgba(255,255,255,0.2) 0%,
            rgba(255,255,255,0) 60%),
        radial-gradient(circle at 80% 80%, 
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0) 60%);
    pointer-events: none;
}

/* Marble wall brush - light pink, blue, purple cycling */
.color-item.wall-marble-brush {
    background: linear-gradient(135deg, 
        #FFB6C1 0%,    /* Light pink */
        #FFC0CB 20%,   /* Pink */
        #87CEEB 40%,   /* Sky blue */
        #B0E0E6 60%,   /* Powder blue */
        #DDA0DD 80%,   /* Plum */
        #E6E6FA 100%); /* Lavender */
    position: relative;
    overflow: hidden;
    border: 2px solid #FFB6C1;
    box-shadow: 0 0 12px rgba(255, 182, 193, 0.6);
    margin-right: 8px;
}

.color-item.wall-marble-brush:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, 
            rgba(255, 182, 193, 0.4) 0%,    /* Light pink */
            rgba(255, 192, 203, 0.4) 20%,   /* Pink */
            rgba(135, 206, 235, 0.4) 40%,   /* Sky blue */
            rgba(176, 224, 230, 0.4) 60%,   /* Powder blue */
            rgba(221, 160, 221, 0.4) 80%,   /* Plum */
            rgba(230, 230, 250, 0.4) 100%), /* Lavender */
        radial-gradient(circle at 20% 20%, 
            rgba(255,255,255,0.5) 0%,
            rgba(255,255,255,0) 60%),
        radial-gradient(circle at 80% 80%, 
            rgba(0,0,0,0.05) 0%,
            rgba(0,0,0,0) 60%);
    pointer-events: none;
}

.color-picker-container {
    display: inline-block;
    margin-left: 10px;
}

#colorPicker {
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
}

#colorPicker::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 4px;
}

#colorPicker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 0 2px white;
}

.palette-container::-webkit-scrollbar {
    display: none;
}

.palette-container::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.palette-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.palette-container::-webkit-scrollbar-thumb:hover {
    background: #555;
} 

@media (max-width: 768px) {
    .color-item {
        width: 26px;
        height: 26px;
    }
    
    #colorPicker {
        width: 26px;
        height: 26px;
    }
}

.settings-dropdown {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

.settings-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #8c6440;
    color: white;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.settings-toggle:hover {
    background-color: rgba(50, 50, 50, 0.7);
}

.settings-content {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 15px;
    width: 180px;
    display: none;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #666;
}

.settings-dropdown.active .settings-content {
    display: flex;
}

.slider-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slider-control label {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.slider-control input[type="range"] {
    width: 100%;
    accent-color: #8c6440;
    cursor: pointer;
}

.bg-color-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bg-color-control label {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.bg-color-control input[type="color"] {
    width: 100%;
    height: 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
}

.reset-button {
    background-color: #8c6440;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
    width: 100%;
}

/* Add margin between buttons */
.reset-button + .reset-button {
    margin-top: 10px;
}

.reset-button:hover {
    background-color: #a57b54;
}

.reset-button:active {
    background-color: #6e4e32;
} 

/* Highlight static brushes on hover to indicate editability */
.color-item:not([class*='-brush']):not(.custom):hover {
    border: 2px dashed #fff;
    cursor: pointer;
    box-shadow: 0 0 0 2px #fff3, 0 2px 6px rgba(0,0,0,0.12);
} 

/* Ensure active static brushes always have a solid border, even on hover */
.color-item.active:not([class*='-brush']):not(.custom),
.color-item.active:not([class*='-brush']):not(.custom):hover {
    border: 2px solid #fff !important;
} 

.color-item.add-brush-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: #222;
    border: 2px dashed #888;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border 0.2s, transform 0.1s;
}
.color-item.add-brush-btn .add-icon {
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
}
.color-item.add-brush-btn:hover {
    background: #444;
    border-color: #fff;
    transform: scale(1.1);
} 

.color-item.add-cycling-brush-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    border: 2px solid #4e54c8;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, border 0.2s, transform 0.1s;
}
.color-item.add-cycling-brush-btn .add-icon {
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
}
.color-item.add-cycling-brush-btn:hover {
    background: linear-gradient(135deg, #8f94fb 0%, #4e54c8 100%);
    border-color: #fff;
    transform: scale(1.1);
} 

/* Make the Transparent PNG checkbox label visible in the dark settings menu */
label:has(#transparentPngCheckbox) {
    color: #fff;
    font-size: 12px;
} 