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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.upload-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.upload-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #2980b9;
}

#imageInput {
    display: none;
}

#fileName {
    margin-left: 15px;
    color: #7f8c8d;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

.control-group {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.control-group label {
    margin-right: 10px;
    font-weight: bold;
}

#pixelateBtn, #downloadBtn {
    display: block;
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 20px auto;
}

#pixelateBtn:hover, #downloadBtn:hover {
    background-color: #27ae60;
}

#pixelateBtn:disabled, #downloadBtn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
}

.image-box {
    text-align: center;
    margin: 10px;
    flex: 1;
    min-width: 300px;
}

.image-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

#originalImage, #resultCanvas {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .image-container {
        flex-direction: column;
    }
    
    .image-box {
        width: 100%;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    max-width: 350px;
}

.notification.info {
    background-color: #3498db;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.warning {
    background-color: #f39c12;
}

.notification.error {
    background-color: #e74c3c;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
} 