body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-y: auto;
    height: 100%;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

#scan {
    padding: 10px 20px;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
}

#file {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

#divScanner {
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    position: relative;
}

#container {
    width: 100%;
    height: 100%;
}

#result {
    height: 150px;
    margin-top: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
}

.license-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.license-row label {
    font-size: 14px;
    white-space: nowrap;
}

.license-row input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px;
    font-size: 14px;
}

.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    background: linear-gradient(to right, #FF0000 0%, #FF8000 17%, #FFFF00 33%, #00FF00 50%, #00FFFF 67%, #0080FF 83%, #0000FF 100%);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#imageContainer {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
    margin: 0;
    max-height: none;
}

#imageContainer canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}