/* 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;
    min-width: 345px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body{
    //opacity: 0;
}

header, footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color:#033497;
    max-height: 250px;
    min-height: min-content;
}

header {
    gap: 2%;
    padding: 3px;
}

nav {
    display: flex;
    flex-grow: 1;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2%;
    align-items: center;
    padding-right: 5px;
}

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;
    container-type: size;
}

fieldset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    padding: 10px;
}

/*legend {
    font: bold 1.1em arial;
    text-transform: uppercase;
}*/

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    break-inside: avoid-column;
    max-width: 940px;
    align-self: center;
    padding: 5px;
    overflow-x: auto;
}

article>table {
    margin: auto;
}

input, button, select {
    min-height: 25px;
    cursor: pointer;
}

button, input[type="button"] {
    user-select: none;
    background-color: #EFEFEF;
    color: #000000;
    border: 1px solid #767676;
    border-radius: 2px;
    padding: 2px 6px;
    font-family: Arial, sans-serif;
    font-size: 13.3px;
    text-align: center;
}

button:hover, input[type="button"]:hover {
    background-color: #E5E5E5;
    border-color: #4F4F4F;
}

button:active, input[type="button"]:active {
    background-color: #D5D5D5;
    box-shadow: inset 0 1px 2px #0000001A;
}

h3 {
    margin: 5px 0px 5px 0px;
    font: bold 1.1em arial;
    text-transform: uppercase;
}

p {
    padding: 10px 0px 0px 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;
}

img {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

header img {
    object-fit: contain;
    max-width: 20%;
    margin-right: auto;
    max-height: 100px;
    min-width: 160px;
}

header a {
    font: bold 100% arial;
    /*flex-grow: 1;*/
    color:#FFFFFF;
    text-decoration: none;
}

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: 10px 70px;
    text-align: center;
}

p:empty {
    display: none; 
}

input:placeholder-shown {
    background-color: #FFFFFF !important;
}

input:invalid:not(:placeholder-shown) {
    background-color: #FFBBBB !important;
}

input:valid:not(:placeholder-shown, [type="submit"]) {
    /*background-color: #DDFFDD;*/
}

[title] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation; 
}

/* Alertas */

#id_Mensagem_Erro {
    max-width: 270px;
    color: #AA0000;
}

#id_Mensagem_Sucesso {
    max-width: 270px;
    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, #id_Loading *, div:has(#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: 750px) {

    nav {
        justify-content: space-between; 
        flex-wrap: nowrap;
        flex-direction: column;
        gap: 5px;
        max-height: 100%;
        padding: 10px 10px;
        align-items: flex-end;
    }

    header {
        align-items: center;
    }

    nav input {
        display: block;
        background-color: #bbbbbb; /* 33b2f0; */
        border: 1px solid #000000;
        border-radius: 3px;
    }

    nav a {
        display: none;
    }

    nav.small_Nav a {
        display: block;
        width: 100%;
        text-align: right;
    }
    
    header a:last-child {
        padding-right: 0%;
    }
    
    header img {
        max-width: 60%;
        max-height: 100px;
    }
    
    #id_Input_Nav {
        background-color: #00000000;
        border: none;
        text-align: right;
        color: #FFFFFF;
        font: bold 150% arial;
        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)}
}