body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #121212; /* Changed to dark background */
    color: white;
}

.container {
    text-align: center;
    background: #1f1f1f; /* Darker container background */
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    width: 90%; /* To prevent image from taking up full page */
    max-width: 800px; /* Limit the max width */
}

h1 {
    margin-bottom: 20px;
}

.comparison-container {
    position: relative;
    overflow: hidden;
    border: 2px solid #28a745; /* Green border */
    margin: 20px auto;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; /* Centered slider by default */
    width: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: ew-resize;
    z-index: 10;
}

.label {
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
}

.before-label {
    top: 10px;
    left: 10px;
    z-index: 20;
}

.after-label {
    top: 10px;
    right: 10px;
    z-index: 20;
}

#download-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#download-btn:hover {
    background-color: #218838;
}
