* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    min-height: 100dvh;
    width: 100dvw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000428;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to left, #004e92, #000428);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to left, #004e92, #000428);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

h1 {
    color: white;
    font-style: normal;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 3rem;
}

p {
    color: #00ff00;
    font-style: normal;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 3rem;
}



.typing-container {
    font-size: 3em;
    white-space: nowrap;
    /* Asegura que el texto no se rompa en varias líneas */
    overflow: hidden;
    /* Oculta el texto que excede el ancho */
    border-right: .15em solid orange;
    /* Cursor parpadeante */
    box-sizing: border-box;
    /* Incluye el padding y el border en el ancho total */
}

/* Animación para el cursor parpadeante */
.typing-container.active {
    animation:
        typing 3.5s steps(40, end),
        /* Ajusta la duración y el número de pasos */
        blink-caret .75s step-end infinite;
}

/* Solo para el texto que se está tipeando */
.typing-text {
    display: inline-block;
    /* Para que el borde derecho del cursor funcione */
}


/* Keyframes para la animación de tipeado */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* Keyframes para la animación del cursor parpadeante */
@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: orange;
    }
}