body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    background-color: #f0f0f0;
}

h1 {
    margin-top: 20px;
    color: #333;
}

#controls {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

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

button, .file-upload-btn {
    font-size: 16px;
    padding: 10px 20px;
    margin: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover, .file-upload-btn:hover {
    background-color: #45a049;
}

canvas, img {
    border: 1px solid #ccc;
    box-sizing: border-box;
    max-width: 100%;
}

#outputImage {
    cursor: pointer;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: white; /* Add a white background */
    padding: 20px; /* Add some padding */
    border-radius: 10px; /* Add some border radius */
    position: fixed; /* Fixed position */
    top: 50%; /* Position from the top half of the screen */
    left: 50%; /* Position from the left half of the screen */
    transform: translate(-50%, -50%); /* Translate the position of the modal to the center of the screen */
    margin: auto;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}