body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

.container {
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-container {
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#buttonWrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}


h1 {
    text-align: center;
    margin-bottom: 20px;
}

#imageWrapper {
    position: relative;
    display: inline-block;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
}

#imageWrapper img {
    max-width: 100%;
    max-height: 480px;
    display: block;
    margin: 0 auto;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
}

#fileInput {
    display: none;
}

.upload-btn, .detect-btn {
    position: relative;
    z-index: 1;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

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

.detect-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.error-message {
    margin-top: 10px;
}
