@charset "UTF-8";


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

:root {
    --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;
}

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: column;
    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;
}

textarea {
    padding: .2rem;
    font-family: monospace;
    font-size: 1rem;
    width: 80vmin;
    height: 10ch;
    min-width: 10chporn;
    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,
textarea:focus-visible {
    outline: 2px solid rgb(0, 140, 210);
    outline-offset: 3px;
}


#div_txt {
    min-height: fit-content;
    width: fit-content;
    max-width: 80vmin;
    margin: 1rem;
    padding: 1rem;
    resize: both;
    text-wrap: wrap;
    overflow-y: scroll;
    outline: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: .2rem;
}

#texto {
    font-family: 'Courier New', Courier, monospace;
    color: black;
    font-size: 1.3rem;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
    padding: 0;
    margin: 0;
    font-weight: 600;
}

#texto::after {
    content: "|";
    font-weight: bolder;
    color: black;
    font-family: 'Courier New', Courier, monospace;
    animation: piscando .6s infinite step-end alternate;
}

@keyframes piscando {
    50% {
        color: 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;
}
