:root {
    --primary-color: #0073e6;
    --secondary-color: #005bb5;
    --bg-color: #f9fafb;
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    box-sizing: border-box; /* Para incluir padding y borde en el cálculo total del tamaño */
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

form {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 600px;
    transition: background 0.3s;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    margin-top: 15px;
    width: 100%;
    font-size: 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

pre {
    background-color: #000000;  /* Fondo negro */
    color: #00FF00;             /* Texto verde */
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;      /* Permite que el texto se ajuste sin envolver de forma no deseada */
    word-wrap: break-word;      /* Asegura que las palabras largas no se desborden */
    overflow-x: auto;           /* Permite desplazamiento horizontal si es necesario */
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: var(--primary-color);
    color: white;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
}

ol {
    text-align: left;
    padding-left: 20px;
}

code {
    background: #eee;
    padding: 3px 6px;
    border-radius: 5px;
    display: block;
    background-color: #f4f4f4;  /* Fondo claro para destacar el código */
    color: #333;                 /* Color de texto oscuro */
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: auto;            /* Desplazamiento horizontal si es necesario */
    white-space: pre-wrap;       /* Ajuste automático de líneas largas */
    margin-top: 20px;            /* Separación superior para mayor claridad */
    border: 1px solid #ccc;      /* Borde sutil para distinguir el área del código */
    text-align: left;            /* Alinear el texto a la izquierda */
}

code::selection {
    background-color: #0073e6;  /* Fondo azul para selección */
    color: white;               /* Texto blanco cuando se selecciona */
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

#info {
    max-width: 700px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    text-align: center;
    transition: background 0.3s;
}

h2, h3 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    form {
        width: 95%;
    }
    pre {
        width: 95%;
    }
    #info {
        width: 90%;
    }
}
