.uir-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f4f4f9;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
}

#image-preview-container {
    width: 100%;
    height: 400px;
    margin-top: 10px;
    border: 1px solid #ccc;
    overflow: hidden;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

button, select, input {
    margin: 10px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #333;
    width: 80%;
    display: block;
    box-sizing: border-box;
}

button {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#download-link {
    margin-top: 10px;
    color: #28a745;
    text-decoration: none;
    display: block;
}

#download-link:hover {
    color: #218838;
}

/* Switch Button Styling */
.resize-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2.5px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #007BFF;
}

input:checked + .slider:before {
    transform: translateX(24px);
}
