body {
    margin: 0;
    overflow: hidden; /* Oculta el scroll si el canvas es más grande */
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00; /* Verde Matrix */
    background-color: #000; /* Fondo negro */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    text-align: center;
}

.matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Asegura que el fondo Matrix esté detrás del contenido */
}

#matrixCanvas {
    display: block;
    background: #000; /* Fondo del canvas, por si acaso */
}

.error-container {
    position: relative;
    z-index: 1; /* Asegura que el contenido del error esté encima del Matrix */
    padding: 20px;
    background: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente para el texto */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5); /* Sombra verde */
}

h1 {
    font-size: 4em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.loader {
    border: 4px solid rgba(0, 255, 0, 0.3);
    border-top: 4px solid #00ff00;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00ff00;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
    margin-top: 10px;
}

.button:hover {
    background-color: #00cc00;
    color: #fff;
}