@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@100&family=Oswald&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Finlandica:wght@600&display=swap');

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: url(../../img/bg.jpg);
    background-size: cover;
    color: aliceblue;

}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    background-color: transparent;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    align-content: flex-start;
}

.btnIni {
    margin-top: 10px;
    text-decoration: none;
    text-align: center;
    border: 1px solid white;
    width: 80px;
    color: white;
    background: #D70040;
}

.btnIni:hover {
    color: black;
    background: #ffffff;
}

main {

    display: grid;
    align-items: start;
    justify-content: center;

}

.container {
    border: 1px solid #D70040;
    margin-top: 20px;
    max-width: 700px;
    max-height: 300px;
    background-color: rgb(255, 255, 255);
    width: 100vw;
    height: 100vh;
}

.recibo {
    color: black;
}

.forCab {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-content: stretch;
    align-items: center;
}

.forCab h3 {
    text-align: center;
    width: 100%;
    border-top: 1px solid;
    border-bottom: 1px solid;


}

.forCab img {
    margin: 0;
    padding-top: 10px;
    padding-bottom: 0;
}

.lblData {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    font-family: 'Finlandica', sans-serif;
    margin-right: 10px;
    margin-top: 0;
    margin-bottom: 5px;
}


.lblValor {
    font-family: 'Finlandica', sans-serif;
    display: flex;
    justify-content: flex-end;
    margin-right: 10px;
    flex-direction: row;
    align-content: flex-start;
    align-items: center;

}

.lblValor input {
    text-align: center;
    width: 100px;
    max-width: 100px;
    font-family: 'Finlandica', sans-serif;
}

.lblPagador {
    margin-top: 5px;
    font-family: 'Finlandica', sans-serif;
    display: flex;
    justify-content: space-between;
    margin-right: 10px;
    margin-left: 10px;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;

}

.lblPagador label {
    font-size: 10px;
    text-align: end;


}

.btnNome {
    width: 300px;
    max-width: 300px;

}

.btnDocumento {
    width: 150px;
    max-width: 150px;
}

.lblReferente {
    margin-top: 5px;
    font-family: 'Finlandica', sans-serif;
    display: flex;
    justify-content: space-between;
    margin-right: 10px;
    margin-left: 10px;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;

}

.lblReferente label {
    font-size: 10px;
    text-align: end;
}

.lblReferente input {
    width: 86.5%;
    max-width: 86.5%;
}

.lblEmissor {
    margin-top: 5px;
    font-family: 'Finlandica', sans-serif;
    display: flex;
    justify-content: space-between;
    margin-right: 10px;
    margin-left: 10px;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;

}

.lblEmissor label {
    font-size: 10px;
    text-align: end;


}

.btnEnviar {
    margin-top: 10px;
    font-family: 'Finlandica', sans-serif;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    align-items: center;
}




footer {
    flex-shrink: 0;
    background-color: transparent;
    width: 100%;
    height: 10vh;
}

#print {
    display: none;
}

.container-print {
    padding: 0;
    margin-top: 2vh;
    max-width: 700px;
    max-height: 350px;
    width: 100vw;
    height: 100vh;
    color: black;
}

.print {
    color: black;
}

#getEmissor {
    text-decoration: underline;
}

.celular {
    display: none;
}

.s1 {
    margin: 0;
    padding: 0;
    border: 0;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    justify-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.s2 {
    margin: 0;
    padding: 0;
    border: 0;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-content: stretch;
    align-items: center;
}

.s3 {
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    flex-flow: row wrap;
    place-content: stretch flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.s4 {
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

.s5 {
    text-align: center;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    flex-direction: row;
}

.s6 {
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: flex-start;

}

#getDocEmissor {
    margin: 0;
    padding: 0;
}

.btnprint {
    background-color: #D70040;
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 80px;
    height: 40px;
}

.btnprint:hover {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}


@media print {
    header {
        display: none;
    }

    .container {
        display: none
    }

    .btnprint {
        display: none;
    }
}

@media screen and (max-width: 680px) {
    header {
        display: none;
    }

    main {
        display: none;
    }

    footer {
        display: none;
    }


    .celular {
        background-color: blueviolet;
        height: 100%;
        max-width: 700px;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
    }

    .cel-container {
        display: flex;
        width: 100%;
    }

    #app {
        background: #000;
        height: 100vh;
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-size: cover;
        background-position: center;

    }

    #wrapper {
        text-align: center;

    }

    #phone {
        font-size: 5em;
        margin: 0.25em;

    }

    .sub {

        color: #D70040;
        letter-spacing: 1em;
    }

    .glitch {

        position: relative;
        color: #fff;
        letter-spacing: 0.5em;
        animation: glitch-skew 1s infinite linear alternate-reverse;
    }

    .glitch::before {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        left: 2px;
        text-shadow: -2px 0 #ff00c1;
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim 5s infinite linear alternate-reverse;
    }

    .glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        left: -2px;
        text-shadow: -2px 0 #ff00c1, 2px 2px #ff00c1;
        clip: rect(44px, 450px, 56px, 0);
        animation: glitch-anim2 5s infinite linear alternate-reverse;
    }

    @keyframes glitch-anim {
        0% {
            clip: rect(57px, 9999px, 93px, 0);
            transform: skew(0.36deg);
        }

        5% {
            clip: rect(90px, 9999px, 2px, 0);
            transform: skew(0.34deg);
        }

        10% {
            clip: rect(48px, 9999px, 94px, 0);
            transform: skew(0.35deg);
        }

        15% {
            clip: rect(93px, 9999px, 13px, 0);
            transform: skew(0.44deg);
        }

        20% {
            clip: rect(74px, 9999px, 62px, 0);
            transform: skew(0.45deg);
        }

        25% {
            clip: rect(20px, 9999px, 28px, 0);
            transform: skew(0.89deg);
        }

        30% {
            clip: rect(32px, 9999px, 96px, 0);
            transform: skew(0.72deg);
        }

        35% {
            clip: rect(17px, 9999px, 34px, 0);
            transform: skew(0.5deg);
        }

        40% {
            clip: rect(46px, 9999px, 61px, 0);
            transform: skew(0.98deg);
        }

        45% {
            clip: rect(3px, 9999px, 87px, 0);
            transform: skew(0.88deg);
        }

        50% {
            clip: rect(27px, 9999px, 80px, 0);
            transform: skew(0.26deg);
        }

        55% {
            clip: rect(74px, 9999px, 51px, 0);
            transform: skew(0.32deg);
        }

        60% {
            clip: rect(22px, 9999px, 18px, 0);
            transform: skew(0.6deg);
        }

        65% {
            clip: rect(50px, 9999px, 20px, 0);
            transform: skew(0.76deg);
        }

        70% {
            clip: rect(100px, 9999px, 37px, 0);
            transform: skew(0.95deg);
        }

        75% {
            clip: rect(1px, 9999px, 75px, 0);
            transform: skew(0.46deg);
        }

        80% {
            clip: rect(41px, 9999px, 24px, 0);
            transform: skew(0.14deg);
        }

        85% {
            clip: rect(58px, 9999px, 11px, 0);
            transform: skew(0.41deg);
        }

        90% {
            clip: rect(64px, 9999px, 11px, 0);
            transform: skew(0.86deg);
        }

        95% {
            clip: rect(11px, 9999px, 24px, 0);
            transform: skew(0.45deg);
        }
    }

    @keyframes glitch-anim2 {
        0% {
            clip: rect(55px, 9999px, 14px, 0);
            transform: skew(0.18deg);
        }

        5% {
            clip: rect(20px, 9999px, 47px, 0);
            transform: skew(0.66deg);
        }

        10% {
            clip: rect(44px, 9999px, 11px, 0);
            transform: skew(0.43deg);
        }

        15% {
            clip: rect(52px, 9999px, 11px, 0);
            transform: skew(0.74deg);
        }

        20% {
            clip: rect(27px, 9999px, 17px, 0);
            transform: skew(0.8deg);
        }

        25% {
            clip: rect(77px, 9999px, 70px, 0);
            transform: skew(0.11deg);
        }

        30% {
            clip: rect(77px, 9999px, 25px, 0);
            transform: skew(0.26deg);
        }

        35% {
            clip: rect(44px, 9999px, 51px, 0);
            transform: skew(0.01deg);
        }

        40% {
            clip: rect(17px, 9999px, 39px, 0);
            transform: skew(0.6deg);
        }

        45% {
            clip: rect(97px, 9999px, 46px, 0);
            transform: skew(0.87deg);
        }

        50% {
            clip: rect(58px, 9999px, 87px, 0);
            transform: skew(0.2deg);
        }

        55% {
            clip: rect(46px, 9999px, 88px, 0);
            transform: skew(0.63deg);
        }

        60% {
            clip: rect(90px, 9999px, 56px, 0);
            transform: skew(0.23deg);
        }

        65% {
            clip: rect(17px, 9999px, 44px, 0);
            transform: skew(0.21deg);
        }

        70% {
            clip: rect(70px, 9999px, 100px, 0);
            transform: skew(0.5deg);
        }

        75% {
            clip: rect(88px, 9999px, 63px, 0);
            transform: skew(0.82deg);
        }

        80% {
            clip: rect(23px, 9999px, 22px, 0);
            transform: skew(0.11deg);
        }

        85% {
            clip: rect(4px, 9999px, 28px, 0);
            transform: skew(0.08deg);
        }

        90% {
            clip: rect(63px, 9999px, 95px, 0);
            transform: skew(0.23deg);
        }

        95% {
            clip: rect(95px, 9999px, 35px, 0);
            transform: skew(0.74deg);
        }
    }

    @keyframes glitch-skew {
        0% {
            transform: skew(-3deg);
        }

        10% {
            transform: skew(-2deg);
        }

        20% {
            transform: skew(0deg);
        }

        30% {
            transform: skew(-2deg);
        }

        40% {
            transform: skew(5deg);
        }

        50% {
            transform: skew(4deg);
        }

        60% {
            transform: skew(-1deg);
        }

        70% {
            transform: skew(3deg);
        }

        80% {
            transform: skew(-3deg);
        }

        90% {
            transform: skew(0deg);
        }
    }

    .button2 {
        position: relative;
        display: inline-block;
        padding: 5px 10px;
        border-radius: 4px;
        color: white;
        text-decoration: none;
        text-transform: uppercase;
        overflow: hidden;
        margin: 25px;
        font-family: "Roboto", sans-serif;
        filter: hue-rotate(0deg);
        border: 1px solid #ff3a3a;
        transition: all 0.1s linear;
    }

    .button2:hover {
        border: 1px solid transparent;
    }

    .button2:hover span {
        position: absolute;
        display: block;
    }

    .button2:hover span:nth-child(1) {
        filter: hue-rotate(0deg);
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, #ff3a3a);
        animation: animate1 1s linear infinite;
    }

    @keyframes animate1 {
        0% {
            left: -100%;
        }

        50%, 100% {
            left: 100%;
        }
    }

    .button2:hover span:nth-child(2) {

        top: -100%;
        right: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, transparent, #ff0000);
        animation: animate2 1s linear infinite;
        animation-delay: 0.25s;
    }

    @keyframes animate2 {
        0% {
            top: -100%;
        }

        50%, 100% {
            top: 100%;
        }
    }

    .button2:hover span:nth-child(3) {

        bottom: 0;
        right: 0;
        width: 100%;
        background: linear-gradient(270deg, transparent, #ff0000);
        animation: animate3 1s linear infinite;
        animation-delay: 0.5s;
    }

    @keyframes animate3 {
        0% {
            right: -100%;
            height: 3px;
        }

        50%, 100% {
            height: 2px;
            right: 100%;
        }
    }

    .button2:hover span:nth-child(4) {

        bottom: -100%;
        left: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(360deg, transparent, #ff0000);
        animation: animate4 1s linear infinite;
        animation-delay: 0.75s;
    }

    @keyframes animate4 {
        0% {
            bottom: -100%;
        }

        50%, 100% {
            bottom: 100%;
        }
    }

}



/* TESTES */

.page {
    width: 21cm;
    min-height: 29.7cm;
    padding: 2cm;
    margin: 1cm auto;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.subpage {
    padding: 1cm;
    border: 5px red solid;
    height: 256mm;
    outline: 2cm #FFEAEA solid;
}

@page {
    size: A4;
    margin: 0;
}

@media print {
    .page {
        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        background: initial;
        page-break-after: always;
    }
}