/* Estilo del cuerpo */

/* Define la fuente Verdana */
@font-face {
    font-family: 'Verdana';
    src: url('fonts/verdana.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Define la variante en negrita de Verdana */
@font-face {
    font-family: 'Verdana';
    src: url('fonts/verdana-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


body {
    font-family: 'Verdana',Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    flex-direction: column;
  }
  
  /* Contenedor del formulario */
  .form-container {
    background-color: rgb(196, 197, 197);
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column; /* Alineación vertical */
    align-items: center; /* Centrar los elementos horizontalmente */
    gap: 10px; /* Espaciado entre los elementos */
    border-radius: 5px;
}
  
  .form-container input {
    margin: 5px;
    padding: 8px;
    font-size: 16px;
    width: 200px;
  }
  
  .form-container button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .error-message {
    color: red;
    font-size: 14px;
  }
  
  /* Contenedor de los cuadros */
  .container {
    display: flex;
    flex-wrap: wrap; /* Permitir que los divs se ajusten automáticamente */
    justify-content: center; /* Centrar horizontalmente los divs */
    gap: 10px; /* Espaciado entre los divs */
}
  
  .hidden {
    display: none;
  }
  
  .box {
    width: 5cm;
    height: 5.5cm;
    background-image: url('background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
  }
  
  .overlay {
    position: relative;
    top: 33%;
    left: 8%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    font-weight: bold; /* Mantiene el texto en negrita */
    font-family: Verdana; /* Cambia la fuente a Verdana */
    color: black; /* Color negro */
    display: inline-block; /* Cambia el contenedor a bloque en línea */
    transform: scale(1, 1.4); /* Estira hacia abajo */
    text-shadow: none; /* Elimina el efecto de sombra */
}

.text-overlay {
    position: relative;
    top: 39%; /* Ajusta la posición debajo de los números */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-family: Verdana;
    color: black;
    text-align: center;
    text-shadow: none;
    font-weight: bold;
}

.mileage-overlay {
    position: relative;
    top: 42%; /* Ajusta la posición debajo del texto personalizado */
    left: 41%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-family: Verdana;
    color: rgb(48, 47, 47);
    text-align: center;
    text-shadow: none;
    font-weight: bold;
    letter-spacing: -1px;
}

@media print {
    body {
        -webkit-print-color-adjust: exact; /* Forza los colores y fondos en impresión (Chrome, Safari) */
        print-color-adjust: exact; /* Forza los colores y fondos en impresión (estándar) */
    }

    .box {
        background-image: url('background.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
}

.print-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    align-self: center; /* Asegurar que el botón se alinee al centro horizontalmente */
    display: block; /* Forzar que ocupe toda la fila */
}

.print-button:hover {
    background-color: #45a049;
}
