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

body {
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: #fff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #4CAF50;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    justify-content: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

label {
    font-weight: bold;
    color: #ccc;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #444;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

input[type="file"], select, input[type="color"] {
    padding: 8px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
}

input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 2px;
}

.canvas-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 10px;
    margin-bottom: 30px;
}

canvas {
    border: 3px solid #555;
    border-radius: 10px;
    background: #fff;
    image-rendering: pixelated;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#originalCanvas {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    width: auto;
    height: auto;
}

#gradientCanvas {
    /* No size limits */
}