body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    text-align: center;
}

h1 {
    color: #333;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
}

.controls-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
}

input[type="file"],
label,
button {
    margin: 10px 0;
}

label {
    display: block;
    cursor: pointer;
    font-size: 16px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
}

button:hover {
    background: #0056b3;
}

.preview-container {
    width: 300px;
    text-align: center;
}

#imageContainer {
    width: 250px;
    height: 250px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
}

#imageContainer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkbox-group label {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 5px;
    width: 200px;
    margin: 5px;
    text-align: center;
    border: 1px solid #ccc;
}

.checkbox-group label:hover {
    background: #e0e0e0;
}

#resizedImages img {
    max-width: 90%;
    margin: 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    padding: 5px;
}

#downloadAllButton {
    display: none;
    background: #28a745;
}

#downloadAllButton:hover {
    background: #218838;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

#bgColorPicker {
    width: 100%;
    height: 50px;
    margin-top: 5px;
    padding: 5px;
    border: none;
    border-radius: 5px;
    background: #f8f9fa;
    cursor: pointer;
}