﻿/***********************************************************
  CSS com classes para serem utilizadas em outros projetos tambem.

***********************************************************/
@import url('https://fonts.googleapis.com/css2?family=Freckle+Face&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* GERAL */
    --cor-base: #6D4C41;
    --cor-secundaria: #65684C;
    --cor-fundo: #F2EFE4;
    --cor-texto: #333333;
    --cor-branco: #ffffff;
    --cor-preto: #000000;
    --cor-botao: #226d2c;
    /* CARACTERISTICAS GERAIS */
    --cor-carac-fundo: #B7B597;

    /* HEXAPODA */
}

.cor-base {
    background-color: var(--cor-base);
}

.cor-secundaria {
    background-color: var(--cor-secundaria);
}

.cor-carac-fundo {
    background-color: var(--cor-carac-fundo);
}

.cor-fundo {
    background-color: var(--cor-fundo);
}

.cor-branco {
    background-color: var(--cor-branco);
}

.cor-preto {
    background-color: var(--cor-preto);
}

.cor-botao {
    background-color: var(--cor-botao);
}

.cor-texto {
    color: var(--cor-texto);
}

* {
    -webkit-box-sizing: border-box !important; /* Safari/Chrome */
    -moz-box-sizing: border-box !important; /* Firefox */
    box-sizing: border-box !important; /* IE8+/ Opera */
}

html {
    scroll-behavior: smooth;
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    margin: 2em 0 1.3em 0;
    padding: 0;
    text-align: center;
    font-family: 'Freckle Face', Arial;
    font-weight: lighter;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.8em;
}

h4 {
    font-size: 1.4em;
    text-align: left;
}
strong {
    font-weight: 900;
}
.navbar {
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 3em;
    background-color: #5b5934;
    position: sticky;
    top: -10px;
    left: 0;
    z-index: 1000;
    padding-top: 10px;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0;
}

    .navbar a {
        color: var(--cor-branco);
        transition: color 0.2s ease;
        font-size: 0.9em;
    }

        .navbar a:hover {
            color: var(--cor-preto);
            transition: color 0.2s ease;
        }
body {
    margin: 0;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-weight: 500;
    line-height: 150%; /* define a altura da linha de texto */
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
}

    body p {
        margin: 0 0 1em 0;
        word-break: break-word;
        text-align-last: left;
    }

a {
    color: #3d7dc6;
    text-decoration: none;
}

ul {
    padding-inline-start: 1em;
}

.content-wrap {
    max-width: 1000px;
    margin: auto;
    /* permite que elementos tenham posições ABSOLUTAS dentro do cabeçalho */
    position: relative;
}

hr {
    height: 1px;
    border-width: 0;
    border-top: 1px solid;
    border-top-color: #bbbbbb;
    width: 100%;
    display: inline-block;
}

/* Instala a fonte open sans */
/*@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    src: url('../fonts/open-sans/OpenSans-Light.ttf');
}
*/

/**************************************** 
 RECURSOS PARA LAYOUT EM COLUNAS 
*****************************************/
/* Linha para criar as colunas */
.row {
    display: flex;
    display: -webkit-flex; /* Safari */
    flex-direction: row;
    justify-content: space-evenly;
}

    .row li {
        margin: 0.5em 0;
    }

.imagem img {
    max-width: 240px;
    max-height: 240px;
}

.col-12 {
    width: 100%;
}

.col-11 {
    width: 91.66666666%;
}

.col-10 {
    width: 83.3333333%;
}

.col-9 {
    width: 75%;
}

.col-8 {
    width: 66.66666667%;
}

.col-7 {
    width: 58.33333333%;
}

.col-6 {
    width: 50%;
}

.col-5 {
    width: 41.66666667%;
}

.col-4 {
    width: 33.33333333%;
}

.col-3 {
    width: 25%;
}

.col-2 {
    width: 16.66666667%;
}

.col-1 {
    width: 8.33333333%;
}

/*[class^="col-"] {
    margin-bottom: 16px;
}*/

.zoom {
    background-color: var(--cor-branco);
}

    .zoom p {
        font-size: 0.8em;
        margin: 0;
    }

    .zoom:hover {
        transition: ease all 0.2s;
        transform: scale(105%)
    }

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-center {
    border-radius: 60px;
    margin: 2em 0;
    transition: all 0.2s ease;
    width: 400px;
    height: 400px;
    background-color: transparent;
}

    .zoom-center:hover {
        transform: scale(1.3);
        transition: all 0.2s ease;
        margin: 3em 0;
        background-color: #ffffffa2;
    }

.card-horizontal {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 15px;
}

    .card-horizontal .left-side {
        width: 55%;
    }

    .card-horizontal .right-side {
        width: 45%;
    }

    .card-horizontal img {
        width: 100%;
        height: auto;
        border-radius: inherit;
    }

    .card-horizontal h2 {
        font-size: 1.2em;
        margin-top: 10px;
    }

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
    height: 100%;
}

/*******************************************************************
    BOX
*******************************************************************/
.caixa {
    width: 400px;
    height: 400px;
    background-color: var(--cor-preto);
    opacity: 0.4;
}

.box {
    height: 100%;
    position: relative;
    transition: ease all 0.2s;
}

.box-footer {
    position: absolute;
    right: 14px;
    bottom: 14px;
    font-size: 0.8em;
}

.botao {
    transition: all ease 0.3s;
    padding: 0.3em 0.5em;
    border: 2px solid var(--cor-secundaria);
    background-color: var(--cor-secundaria);
    border-radius: 6px;
    color: var(--cor-branco);
}

    .botao:hover {
        transition: all ease 0.3s;
        background-color: var(--cor-branco);
        color: var(--cor-preto);
    }

.shadow {
    box-shadow: rgba(149, 157, 165, 0.4) 0px 8px 24px;
}

.box-link .box:hover {
    background-color: #eeeeee;
}

.padding-14 {
    padding: 14px;
}

.min-height-300px {
    min-height: 300px;
}

.border {
    border-radius: 10px;
}

.margin-right-20 {
    margin-right: 20px;
}

.margin-top-60 {
    margin-top: 60px;
}

.margin-top-60 {
    margin-top: 60px;
}

.margin-top-120 {
    margin-top: 120px;
}

.margin-bottom-120 {
    margin-bottom: 120px;
}

.text-align-right {
    text-align: right;
}


/*******************************************************************
CONTROLES DE FORMULÁRIOS
********************************************************************/

label {
    margin-top: 20px;
    display: block;
    max-width: 100%;
    font-size: 12px;
    text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    color: #555555;
    font-size: 16px;
    padding: 10px;
    width: 100%;
    resize: none;
    outline: none;
}

input[type="submit"],
input[type="button"],
button {
    margin-top: 30px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    color: white;
    background-color: #355bc6;
    font-size: 16px;
    padding: 10px 20px;
}

    input[type="submit"]:hover,
    input[type="button"]:hover,
    button:hover {
        background-color: #293b90;
        color: white;
    }


.botao-delete {
    background-color: #ff6a00 !important;
}

    .botao-delete:hover {
        background-color: #ff4500 !important;
    }

.botao-editar {
    background-color: #498b47 !important;
}

    .botao-editar:hover {
        background-color: #37a533 !important;
    }

.botao-inserir {
    background-color: #355bc6 !important;
}

    .botao-inserir:hover {
        background-color: #293b90 !important;
    }

/*******************************************************************
LAYOUT DE MíDIAS
tem que ser as ultimas definições
********************************************************************/

@media only screen and (min-width: 1600px) {
    body, html {
        font-size: 1.2em;
    }

    .content-wrap {
        max-width: 1400px;
    }

    .conteudo {
        max-width: 1400px;
    }

    .grid-2x2 {
        width: 100%;
    }

    /* Caracteristicas Gerais */

    .zoom-center {
        width: 500px;
        height: 500px;
    }
}

@media only screen and (max-width: 768px) {

    /* 
        SELETORES DE ATRIBUTOS [] 
        https://www.w3schools.com/css/css_attribute_selectors.asp 
    */

    [class^="col-"] {
        width: 100%;
    }

    [class=content-wrapper] {
        padding: 0px;
        margin: 6px;
    }

    [class*="box-border"] {
        border: 0px;
        padding: 0px;
    }

    [class*="box-padding-16"] {
        border: 0px;
        padding: 0px;
    }

    [class=dp-hr] {
        display: inline-block;
    }

    /* FORMS ****************/

    .form-input {
        border: 0px;
        padding: 0px;
        padding-top: 20px;
        /*border-radius: 0;*/
    }

    .form-view {
        border: 0px;
        padding: 0px;
        padding-top: 1px;
        /*border-radius: 0;*/
    }

        .form-view .ht {
            display: none;
        }

    .side-panel {
        padding-left: 0 !important;
    }

    /* MENU RESPONSIVO ****************/
    .menu {
        display: none;
    }

    .menu-mobile-buttons {
        display: inline-block;
    }

    .logotype {
        float: right;
    }

    [class=logotype-img] {
        max-width: 240px;
    }
}

/* CONFIGURAÇÃO DA IMPRESSÃO */
@media print {
    body * {
        visibility: hidden;
    }

    #Printable * {
        visibility: visible;
    }
}
