* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: monospace;
    background-color: black;
    color: white;
    overflow-x: hidden;
}

main {
    width: 100%;
    height: 100%;
}

#hero {
    width: 100%;
    height: 100vh;
    padding: 55px 38px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),url(".img/tv-grey-noise.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.conteudo {
    display: flex;
    flex-direction: column;
}

.linha1,
.linha2,
.linha3 {
    display: flex;
    align-items: baseline;
}

.linha1,
.linha2 {
    font-size: 4.3rem;
    font-weight: bold;
    line-height: 1.1;
}

.linha3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
    letter-spacing: 2px;
}

.texto,
.cursor {
    font-family: monospace;
}

.texto {
    display: inline-block;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.cursor {
    margin-left: 2px;
    opacity: 0;
}

/* animação linha 1 */
.linha1 .texto {
    animation: digitar1 2.8s steps(12, end) forwards;
}

.cursor1 {
    animation: mostrar 0s forwards, esconder 0s 2.8s forwards, piscar 0.8s step-end 4;
}

/* animação linha 2 */
.linha2 .texto {
    animation: digitar2 3s steps(15, end) 2.9s forwards;
}

.cursor2 {
    animation: mostrar 0s 2.9s forwards, esconder 0s 5.9s forwards, piscar 0.8s step-end 2.9s 4;
}

/* animação linha 3 */
.linha3 .texto {
    animation: digitar3 4s steps(43, end) 6s forwards;
}

.cursor3 {
    animation: mostrar 0s 6s forwards, piscar 0.8s step-end 6s infinite;
}

@keyframes digitar1 {
    from {
        width: 0;
    }
    to {
        width: 12ch;
    }
}

@keyframes digitar2 {
    from {
        width: 0;
    }
    to {
        width: 15ch;
    }
}

@keyframes digitar3 {
    from {
        width: 0;
    }
    to {
        width: 53ch;
    }
}

@keyframes mostrar {
    to {
        opacity: 1;
    }
}

@keyframes esconder {
    to {
        opacity: 0;
    }
}

@keyframes piscar {
    50% {
        opacity: 0;
    }
}

@media (max-width: 900px) {
    #hero {
        padding: 40px 20px;
    }

    .linha1,
    .linha2 {
        font-size: 2.4rem;
    }

    .linha3 {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}