@charset "UTF-8";


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

:root {
    --bgc: white;
    --height_header: 5.5rem;
    --height_main: calc(100vh - var(--height_footer) - var(--height_header));
    --height_footer: 4rem;

    --numero_caracteres: 19;
    --numero_caracteres_ch: 19ch;
    --tempo_digitacao: 3s;
}

body {
    background-color: var(--bgc);
}

header,
hgroup {
    display: flex;
    flex-direction: column;
    min-height: var(--height_header);
    width: 100%;
    justify-content: center;
    text-align: center;
    box-shadow: 0px 0px 0px 2px black
}

h1 {
    font-size: 2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-wrap: balance;
    margin: .5rem;
    margin-bottom: 0
}

@media (max-width: 350px) {
    h1 {
        font-size: 1.5rem
    }
}

header p {
    font-size: 1rem;
    font-family: sans-serif;
    margin: 0 1rem .5rem;
    text-wrap: pretty
}

main {
    display: flex;
    flex-direction: column-reverse;
    min-height: var(--height_main);
    width: 100%;
    justify-content: center;
    align-items: center;
}

form {
    display: grid;
    width: 100%;
    place-items: center;
}

#form_txt {
    display: flex;
    width: 100%;
    text-align: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

label {
    display: inline-block;
    width: clamp(25ch, 50%, 45ch);
    text-wrap: wrap;
    font-family: monospace;
    font-weight: normal;
    font-size: 1rem;
}

input[type=text] {
    padding: .2rem;
    font-family: monospace;
    font-size: 1rem;
    max-width: 21ch;
    margin: .5rem;
    border: 1px solid grey;
    border-radius: .2rem;

    outline: 1px solid transparent;
    outline-offset: -3px;
    transition: all 200ms linear;
}

input[type=submit] {
    width: 6rem;
    font-family: monospace;
    font-size: 1rem;
    font-weight: normal;
    margin: 1rem;
    border-radius: .2rem;
    border: 1px solid rgb(100, 100, 100);
    padding: .5rem;

    outline: 1px solid transparent;
    outline-offset: -3px;
    transition: all 200ms linear;
}

input[type=submit]:focus-visible,
input[type=text]:focus-visible {
    outline: 2px solid rgb(0, 140, 210);
    outline-offset: 3px;
}


#div_txt {
    min-height: 1.5rem;
    margin: 1rem;
}

main #texto {
    font-family: 'Courier New', Courier, monospace;
    color: black;
    font-size: 1.3rem;
    width: 0;
    padding: 0;
    margin: 0;
    line-height: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 4px 0 0 0 black;
    animation: digitando var(--tempo_digitacao) 1s steps(var(--numero_caracteres)) infinite alternate, piscando .6s infinite step-end alternate;
}

@keyframes digitando {
    from {
        width: 0;
    }

    to {
        width: var(--numero_caracteres_ch)
    }
}

@keyframes piscando {
    50% {
        box-shadow: 4px 0 0 0 transparent
    }
}

footer {
    display: grid;
    height: var(--height_footer);
    place-items: center;
}

footer p {
    background-image: linear-gradient(90deg, black 0% 50%, white 50% 100%);
    background-size: 200%;
    background-position: right;
    background-clip: text;
    color: rgba(0, 0, 0, 0.0);
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    letter-spacing: .08rem;
    padding: 1px 0px;
    position: relative;
    transition: all .2s linear !important;
}

footer:hover p,
footer:hover p::after {
    background-position: left;
    transition: all 6s steps(18) !important;
}
