body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #f0f2f5;
    color: #333;
}

.editor-container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
}

.controls {
    margin: 20px 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    color: #fff;
    padding: 0.75em 1.5em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1em;
}

.file-label svg {
    margin-right: 10px;
}

.file-label:hover {
    background-color: #439b46;
    transform: translateY(-2px);
}

.controls input[type="file"] {
    display: none;
}

.image-controls {
    margin: 20px;
    padding: 0.65em;
    background: #fff;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-controls label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

.image-controls input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
    accent-color: #4CAF50; /* Green color for the slider */
}

.image-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    color: #fff;
    background-color: #4CAF50;
    text-decoration: none;
    padding: 0.75em 1.5em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.image-controls button svg {
    margin-right: 10px;
}

.image-controls button:hover {
    background-color: #01c301;
    transform: translateY(-2px);
}

canvas {
    display: block;
    margin-top: 20px;
    border: 2px solid #333;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.range-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-value {
    background-color: #4CAF50;
    color: #fff;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    font-size: 0.9em;
    margin-left: 0.5em;
}

@media (max-width: 600px) {
    .file-label, .image-controls label, .image-controls input[type="range"], .image-controls button {
        width: 90%;
    }
}
