* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.upload-container {
    border: 3px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-container:hover, .upload-container.dragover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

#uploadBtn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    transition: background-color 0.3s;
}

#uploadBtn:hover {
    background-color: #2980b9;
}

.editor-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.canvas-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#blurSlider {
    flex-grow: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 4px;
}

#blurSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

#blurSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#resetBtn {
    background-color: #e74c3c;
}

#resetBtn:hover {
    background-color: #c0392b;
}

#prevImageBtn, #nextImageBtn {
    background-color: #2ecc71;
}

#prevImageBtn:hover, #nextImageBtn:hover {
    background-color: #27ae60;
}

#prevImageBtn:disabled, #nextImageBtn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#imageCountDisplay {
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.upload-hint {
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .canvas-container {
        flex-direction: column;
        align-items: center;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
    }
}