body {
    font-family: sans-serif;
    background-color: #000000;
    /* Fondo negro */
    color: #f8fafc;
    /* Texto claro */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Ocultar el desbordamiento del fondo */
}

.container {
    text-align: center;
    position: relative;
    /* Para posicionar el botón */
}

#animated-text {
    font-size: 4em;
    font-weight: bold;
    color: #f00;
    /* Rojo brillante, estilo Atari */
    text-shadow:
        -2px -2px 0 #0ff,
        /* Cian */
        2px -2px 0 #0ff,
        -2px 2px 0 #0ff,
        2px 2px 0 #0ff;
    letter-spacing: 0.1em;
    animation: flicker 1.5s infinite alternate, glow 1.5s infinite alternate;
    position: relative;
    /* Para que el texto esté sobre el fondo */
    z-index: 2;
    /* Asegurar que el texto esté visible */
}

@keyframes flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        text-shadow:
            -2px -2px 0 #0ff,
            2px -2px 0 #0ff,
            -2px 2px 0 #0ff,
            2px 2px 0 #0ff;
        opacity: 1;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

@keyframes glow {
    0% {
        color: #f00;
    }

    100% {
        color: #ff0;
        /* Amarillo brillante */
    }
}

#change-text-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #f0f;
    /* Magenta */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    /* Para que el botón esté sobre el fondo */
    z-index: 2;
    /* Asegurar que el botón esté visible */
}

#change-text-btn:hover {
    background-color: #c0f;
}

.modal {
    display: none;
    position: fixed;
    z-index: 3;
    /* Asegurar que el modal esté sobre el fondo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Más oscuro */
}

.modal-content {
    background-color: #111;
    /* Más oscuro */
    color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 5px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type=text] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    /* Más oscuro */
    color: #fff;
    box-sizing: border-box;
}

button[type=submit] {
    background-color: #0f0;
    /* Verde */
    color: black;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button[type=submit]:hover {
    background-color: #0a0;
}

/* Fondo 3D con líneas */
body::before {
    content: "";
    position: fixed;
    top: initial;
    left: 0;
    width: 100vw;
    height: 200%;
    background: linear-gradient(to bottom right,
            #f00 0%, #f00 5%,
            transparent 5%, transparent 10%,
            #0f0 10%, #0f0 15%,
            transparent 15%, transparent 20%,
            #00f 20%, #00f 25%,
            transparent 25%, transparent 30%,
            #ff0 30%, #ff0 35%,
            transparent 35%, transparent 40%,
            #f0f 40%, #f0f 45%,
            transparent 45%, transparent 50%,
            #0ff 50%, #0ff 55%,
            transparent 55%, transparent 60%,
            #fff 60%, #fff 65%,
            transparent 65%, transparent 70%,
            #888 70%, #888 75%,
            transparent 75%, transparent 80%,
            #444 80%, #444 85%,
            transparent 85%, transparent 90%,
            #222 90%, #222 95%,
            transparent 95%, transparent 100%);
    transform-origin: center center;
    transform: perspective(500px) rotateX(75deg) translateZ(-200px);
    /* Ajustar estos valores */
    animation: zoom 10s linear infinite;
    z-index: 1;
    /* Detrás del texto y el botón */
    pointer-events: none;
    /* Evitar que interfiera con los clics */
}

@keyframes zoom {
    0% {
        transform: perspective(500px) rotateX(75deg) translateZ(-200px) scale(1);
    }

    100% {
        transform: perspective(500px) rotateX(75deg) translateZ(-200px) scale(1.5);
        /* Aumentar el zoom */
    }
}
