@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --cor1t: #333333AA;
    --cor2t: #333333;
    --cor1: #ffffff;
    --cor2: #ff301e;
    --cor3: #006eba;
    --cor4: #003d79;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--cinza);
}

body {
    background: url("../img/Fundo2.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Red Hat Display", sans-serif;
}

main {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    background-color: var(--cor3);
    background: url("../img/Fundo.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

a {
    color: var(--branco);
}

#p-regulamento {
    position: absolute;
    color: white;
    right: 1%;
    bottom: 6.5%;
    width: fit-content;
    height: auto;
    font-weight: 600;
    font-size: 0.9vw;
}

#p-cada500 {
    position: absolute;
    color: white;
    left: 20.5%;
    bottom: 11.5%;
    width: fit-content;
    height: auto;
    font-weight: 600;
    font-size: 0.95vw;
    text-align: center;
}

.form-cpf {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 5vw;
    left: 18vw;
    gap: 2px;
    background: var(--cor1);
    width: 25%;
    height: 25%;
    padding: 20px 0;
    border-radius: 10px;
    box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.169);
    animation: none;
}

.form-cpf h1 {
    width: 90%;
    font-size: 1.3vw;
    text-align: center;
    color: var(--cor3);
    font-weight: 900;
    margin-bottom: 20px;
}

.form-consulta {
    display: none;
    position: absolute;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 4vw;
    background: var(--cor1);
    padding: 20px;
    width: 30%;
    height: fit-content;
    max-height: 60%;
    border-radius: 10px;
    gap: 20px;
    box-shadow: 5px 10px 15px rgba(0, 0, 0, 0.169);
    animation: slideDown 1s ease;
    color: black;
}

.form-consulta h1 {
    font-size: 2vw;
    color: var(--cor3);
}

#btn-fechar {
    width: 90%;
    display: flex;
    justify-content: end;
    cursor: pointer;
    position: absolute;
    top: 5%;
}

tbody {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

table td {
    text-align: center;
}

table th {
    font-size: 1vw;
}

table #numeros {
    display: flex;
    flex-direction: column;
    overflow: auto;
    max-height: 30vh;
    font-size: 1vw;
}

#input-cpf {
    color: black;
    border: none;
    width: 70%;
    height: 15%;
    transition: ease 0.5s;
    background: none;
    border-bottom: 2px solid rgb(202, 202, 202);
    font-size: 0.9vw;
    font-family: "Red Hat Display", sans-serif;
    margin-bottom: 20px;
}

#input-cpf::placeholder {
    color: rgb(148, 148, 148);
}

label {
    width: 70%;
    text-align: start;
}

.consulta-btn {
    padding: 10px;
    border: none;
    width: 70%;
    border-radius: 15px;
    background-color: var(--cor3);
    color: var(--cor1);
    transition: ease 0.5s;
    cursor: pointer;
    font-size: 0.9vw;
    font-family: "Red Hat Display", sans-serif;
    font-weight: 500;
}

.consulta-btn.desabilitado {
    background-color: rgba(128, 128, 128, 0.177);
    color: rgba(128, 128, 128, 0.364);
    cursor: auto;
}

.consulta-btn:hover {
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.303);
    background-color: var(--cor2);
}

.consulta-btn.desabilitado:hover {
    box-shadow: none;
    background-color: rgba(128, 128, 128, 0.177);
}


#input-cpf:focus {
    outline: none;
    transform: scale(1.05);
}

footer {
    position: absolute;
    bottom: 2%;
    color: var(--cor1);
    text-align: center;
}

.loading {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: var(--cor1);
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: var(--cor3) #0000;
    animation: l16 1s infinite linear;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}

.loader::before {
    border-color: var(--cor2) #0000;
    animation: inherit;
    animation-duration: .5s;
    animation-direction: reverse;
}

.loader::after {
    margin: 8px;
}

@keyframes l16 {
    100% {
        transform: rotate(1turn)
    }
}

@keyframes popUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes error {
    0% {
        transform: translateX(0%);
    }

    25% {
        transform: translateX(3%);
    }

    50% {
        transform: translateX(-3%)
    }

    100% {
        transform: translateY(0%);
    }
}

@media screen and (max-width: 768px) {
    body {
        background: url("../img/FundoMobile.png");
        background-size: cover;
        background-position-x: bottom;
    }

    main {
        background: url("../img/Fundo2Mobile.png");
        background-size: contain;
        background-position-y: bottom;
        background-repeat: no-repeat;
    }

    #p-regulamento {
        font-size: 2.3vw;
        right: initial;
        bottom: 4.5%;
    }

    #p-cada500 {
        font-size: 2.7vw;
        right: initial;
        bottom: 8.5%;
    }

    .form-cpf {
        left: auto;
        top: 5%;
        width: 90%;
        height: 25%;
    }

    .form-cpf h1 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    #input-cpf {
        font-size: 15px;
        height: 25%;
        background: none;
        margin-bottom: 15px;
    }

    .consulta-btn {
        width: 70%;
        font-size: 15px;
        padding: 15px;
    }

    .form-consulta {
        padding: 6% 0;
        top: 25%;
        width: 80%;
        max-height: 60%;
    }

    table {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-consulta h1 {
        font-size: 25px;
        max-width: 90%;
    }

    tbody {
        width: 80%;
    }

    table th {
        font-size: 20px;
        max-width: 80%;
        font-weight: 600;
    }

    table td {
        font-size: 20px;
    }

    table #numeros {
        gap: 8px;
    }

    #btn-fechar {
        width: 90%;
        top: 6%;
    }

    footer {
        bottom: 0;
        font-size: 10px;
    }

}