/* Corpo */

html,body {
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

*, *::before, *::after {
    box-sizing: border-box;
}

header, footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color:#033497;
}

header {
    border-bottom: 10px solid #033497;
    gap: 2%;
}

nav {
    display: flex;
    flex-grow: 1;
    align-items: end;
    justify-content: flex-end;
    gap: 2%;
    align-items: center;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #DDDDFF/* url('/user/imagens/fundo.png') repeat center center fixed*/; /* background: #DDDDFF url('/user/imagens/fundo.png') no-repeat center center fixed; */
    background-size: 10% auto; /* background-size: cover; */
    flex-grow: 1;
    overflow-y: auto;
    font: normal 90% arial;
}

fieldset {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    padding: 0px 10px;
}

legend {
    font: bold 1.1em arial;
    border: 1px solid #777777;
    border-radius: 3px;
    background-color: #FBFBFBFF;
    margin: 0px auto 5px auto;
    text-transform: uppercase;
    
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    break-inside: avoid-column;
    max-width: 880px;
    align-self: center;
    background-color: #FFFFFFCC;
    padding: 5px;
    outline: 1px solid #000000;
    border-radius: 5px;
}

input, button, select {
    min-height: 25px;
}



p {
    padding: 0px;
    margin: 0px;
}

a {
    color: #000000;
    text-decoration: none;
}

hr {
    width: 100%;
    height: 1px;
    border: none;
    background-color: #000000;
    margin: 10px 0;
}

label {
    white-space: nowrap;
}

footer {
    border-top: 10px solid #033497;
}

header img, footer img {
    object-fit: contain;
    max-width: 20%;
    max-height: 100px;
    border: 1px solid #000000;
}

header img {
    margin-right: auto;
}

header a {
    font: bold 100% arial;
    /*flex-grow: 1;*/
    color:#FFFFFF;
    text-decoration: none;
    text-align: center;
}

header a:last-child {
    padding-right: 2%;
}

nav input {
    width: 100%;
    display: none;
}

footer p {
    font: normal 70% arial;
    flex-grow: 1;
    color:#FFFFFF;
    padding: 0px 70px 0px 0px;
    text-align: center;
}

/* Alertas */

#id_Mensagem_Erro {
    color: #AA0000;
}

#id_Mensagem_Sucesso {
    color: #00AA00;
}

#id_Mensagem_Erro, #id_Mensagem_Sucesso {
    font: normal 1em arial;
}

#id_Mensagem_Erro, #id_Mensagem_Sucesso {
    margin-top: 5px;
}

#id_Toggle_Password, #id_Toggle_Check_Password {
    background: #FFFFFF url('/user/imagens/icone_Olho_Fechado.png') no-repeat center center;
    background-size: contain;
    border: 1px solid #000000;
    padding: 0px;
    border-radius: 2px;
    width: 25px;
    font-size: 0;
}

#id_Toggle_Password.class_Olho_Aberto, #id_Toggle_Check_Password.class_Olho_Aberto {
    background: #FFFFFF url('/user/imagens/icone_Olho_Aberto.png') no-repeat center center;
    background-size: contain;
}

/* Carregando Body */

.class_Carregando > *:not(#id_Loading) {
    display: none;
}

/* Carregando Caminhão */

#id_Loading {
    display: flex;
    position: fixed;
    flex-direction: column;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content:center;
    align-items: center;
    background-color: #000000CC;
    color: white;
    font-size: 2em;
    text-align: center;
    font-weight: bold;
    text-shadow: 3px 3px 6px #000000FF;
}

#id_Terreno {
    width: 100vw;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

#id_Caminhao {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    animation: carregando_Caminhao_Viagem infinite linear;
}

#id_Carroceria {
    width: 43px;
    height: 6px;
    background-color: #FFCD00;
    border-radius: 3px 0px 0px 0px;
    position: absolute;
    bottom: 5px;
    left: 2px;
    border-left: 1px solid #000000;
    border-bottom: 1px solid #000000;
    border-top: 1px solid #000000;
}

#id_Cabine {
    width: 25px;
    height: 30px;
    background-color: #FFCD00;
    border-radius: 0px 4px 4px 0px;
    position: absolute;
    bottom: 5px;
    left: 45px;
    border: 1px solid #000000;
}

#id_Janela {
    width: 15px;
    height: 12px;
    background-color: gray;
    border-radius: 0px 2px 0px 0px;
    position: absolute;
    bottom: 15px;
    left: 7px;
    border: .7px solid #555555;
}

.class_Roda {
    width: 10px;
    height: 10px;
    background-color: #222222;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    border: 1px solid #000000;
}

.class_Calota {
    width: 6px;
    height: 6px;
    background-color: #AAAAAA;
    border-radius: 50%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0.5px solid #777777;
}

#id_Roda_Frente {
    left: 45px;
}

#id_Roda_Tras_1 {
    left: 16px;
}

#id_Roda_Tras_2 {
    left: 5px;
}

#id_Cacamba {
    position: absolute;
    left: 1px;
    bottom: 13px;
    transform-origin: 0px 10px;
    animation: carregando_Caminhao_Descarga infinite linear;
    width: 40px;
    height: 20px;
    background-color: #FFCD00;
    border-radius: 0px 0px 2px 2px;
    border: 1px solid #000000;
}

#id_Protecao_Cabine_Lateral {
    width: 3px;
    height: 8px;
    background-color: #FFCD00;
    position: absolute;
    left: 36.5px;
    bottom: 20px;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
    border-top: 1px solid #000000;
}

#id_Protecao_Cabine_Topo {
    width: 7px;
    height: 3px;
    background-color: #FFCD00;
    position: absolute;
    left: 40px;
    bottom: 24.5px;
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    border-top: 1px solid #000000;
}

#id_Areia {
    position: absolute;
    bottom: 0;
    left: calc(50vw - 55px); 
    transform-origin: bottom;
    transform: scaleY(0); 
    animation: carregando_Caminhao_Areia infinite ease-out;
    clip-path: polygon(50% 0, 0% 100%, 100% 100%);
    width: 25px;
    height: 15px;
    background-color: #C2B280;
    background-image: repeating-radial-gradient(#F0E68C 1px,transparent 2px, #E3BC9A 3px);
    background-size: 1px 1px;
}

/* Carregando Imagem */

.class_Carregando_Imagem {
    max-width: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    color: transparent;
    background: conic-gradient(#000000 0deg, #FFFFFF 360deg);
    mask: radial-gradient(farthest-side, #00000000 80%, #000000 81%);
    margin: 10px;
    animation: carregando_Imagem_Giro 1s linear infinite;
}


.class_Carregando_Imagem img {
    display: none !important;
}

/* Telas Pequenas */

@media screen and (max-width: 950px) {

    header, footer {
        display: block;
    }

    nav {
        justify-content: space-between; 
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 5px;
        max-height: 100%;
        padding: 0px 10px;
    }

    nav input {
        display: block;
        cursor: pointer;
    }

    nav a {
        display: none;
    }

    nav.small_Nav a {
        display: flex;
        width: 100%;
    }
    
    header a:last-child {
        padding-right: 0%;
    }
    
    header img, footer img {
        object-fit: contain;
        max-width: 100%;
    }
    
    footer p {
        padding: 0px;
    }
}

/* Animações */

@keyframes carregando_Imagem_Giro {
    0% {transform: rotate(0deg)}
    100% {transform: rotate(360deg)}
}

@keyframes carregando_Caminhao_Viagem {
    0% {transform: translateX(calc(0vw - 50px))}
    30% {transform: translateX(calc(50vw - 30px))}
    70% {transform: translateX(calc(50vw - 30px))}
    99.99% {transform: translateX(100vw)}
    100% {transform: translateX(-100%)}
}

@keyframes carregando_Caminhao_Descarga {
    0% {transform: rotate(0deg)}
    35% {transform: rotate(0deg)}
    45% {transform: rotate(-60deg)}
    55% {transform: rotate(-60deg)}
    65% {transform: rotate(0deg)}
    100% {transform: rotate(0deg)}
}

@keyframes carregando_Caminhao_Areia {
    0% {transform: scaleY(0)}
    35% {transform: scaleY(0)}
    45% {transform: scaleY(1)}
    98% {transform: scaleY(1)}
    100% {transform: scaleY(0)}
}