@font-face {
    font-family: 'OCRB';
    src: url('ocr-b.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #f0f0f0;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 10px;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #555;
}

input[type=text], input[type=date], select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

button {
    width: 50%;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #C2143D;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #AE1134;
}

.mrz-box {
    margin-top: 20px;
    background: #222;
    color: #0f0;
    font-family: 'OCRB', monospace;
    font-size: 20px;
    letter-spacing: 2px;
    padding: 15px;
    border-radius: 6px;
    white-space: pre;
    text-align: center;
    user-select: all;
}

.canvas-container {
    margin-top: 30px;
    width: 100%;
    text-align: center;
}

#idCardCanvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
}
