body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 20px;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.drag-drop-hint {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 20px;
    color: #007bff;
    font-style: italic;
    font-size: 0.9em;
}

.upload-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 2px dashed #ccc;
    padding: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
}

.upload-section.drag-over {
    background-color: #e3f2fd;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.upload-section::after {
    content: 'Drop image here';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #007bff;
    font-size: 1.5em;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.logo-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 300px;
    height: auto;
    margin-left: 90px;

}

.upload-section.drag-over::after {
    opacity: 1;
}

.upload-section.drag-over .upload-button,
.upload-section.drag-over #fileName {
    opacity: 0.3;
}

.upload-section input[type="file"] {
    display: none;
}

.upload-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 15px;
}

.upload-button:hover {
    background-color: #0056b3;
}

#fileName {
    font-style: italic;
    color: #555;
}

.image-preview-container {
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #fdfdfd;
}

#imagePreview, #imageCanvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: block;
    margin: 0 auto;
}

.controls {
    background-color: #f0f8ff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.control-group select,
.control-group input[type="text"],
.control-group input[type="range"] {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
}

.control-group input[type="range"] {
    padding: 0;
    height: 25px;
    vertical-align: middle;
}

.control-group span {
    margin-left: 10px;
    font-weight: bold;
    color: #007bff;
}

.color-box {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    border-radius: 4px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
}

button#processButton {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button#processButton:hover {
    background-color: #0056b3;
}

.message {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.processed-image-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #e9f7ef;
}

.processed-image-section h2 {
    color: #007bff;
    margin-bottom: 20px;
}

#processedImage {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#downloadLink {
    display: inline-block;
    background-color: #17a2b8;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#downloadLink:hover {
    background-color: #138496;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        margin: 15px;
        padding: 20px;
    }

    .upload-section {
        flex-direction: column;
    }

    .upload-button {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }

    #fileName {
        text-align: center;
        width: 100%;
    }

    .control-group input[type="text"],
    .control-group select {
        width: 100%;
    }
}