* { /*adicionar em todos arquivos CSS*/
    box-sizing: border-box; /* o * invoca todos elementos da página. No caso aqui, pedindo para incluir nas dimensões da box o padding e a borda */
    margin: 0; /* reseta a margin padrão do navegador*/
    padding: 0; /* reseta o padding padrão do navegador*/ 
    /*sempre rodar o autoprefix (favoritos) quando usar flex no css*/
    /* sempre fazer a pagina usando os 3 tipos de layout (float + inline) (flex) (grid)
    float + inline vem antes
    @supports (display: flexbox) { flex CSS }
    @supports (display: grid) { grid CSS }
    tem que as vezes usar width: auto caso tenha alguma predifinição de tamanho em um dos tipos */
}
body {
    margin: 0;
    padding: 0;
}
a {text-decoration: none;}
a:visited { text-decoration: none; }
a:active { text-decoration: none; }
.top-header {
    position: fixed;
    width: 100vw;
    height: 19vh;
    top: 0%;
    left: 0%;
    background-color: white;
    text-align: center;
    z-index: 900;
}
.top-th {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2vw;
}
.left-th {
    max-width: 67vw;
    max-height: 12vh;
    padding-top: 3vw;
    padding-left: 3vw;
}
.left-th img {
    max-width: 100%;
}
.right-th {
    padding-top: 3vw;
    width: 19vw;
    height: 12vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.bottom-th {
    min-width: 2vh;
}
.right-th img {
    height: 4vh;
}
.login-wrapper {
    width: 6vh;
}
.login-th {
    background-color: #BE1E20;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    height: 8vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 3vw;
}
.login-th img {
    width: 5vh;
    margin-left: 2vw;
}
#panel-th {
    margin-top: 1.7vw;
    display: inline-block;
    background-color: #BE1E20;
    color: white;
    font-family: Doto;
    font-weight: bold;
    font-size: 2.1vh;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-header a {
    font-family: "Orbitron", serif;
    color: #BE1E20;
    font-size: 2.1vh;
}
.title{
    margin-top: 24vh;
    padding-bottom: 1vh;
    font-family: "Orbitron", serif;
    text-align: center;
    text-shadow: #160404 1px 0 1px;
    color: #BE1E20;
    font-size: 2vh;
    background-color: white;
}
main{
    /*background-color: #dfdfdf;
    text-shadow: #160404 1px 0 2px;*/
    color: #BE1E20;
}
.col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-bottom: solid 2px #BE1E20;
    margin-bottom: 5vh;
}
.col p {
    font-family: "Orbitron", serif;
    font-size: 3vh;
    text-align: center;
    width: 90%;
    margin: 2.5%;
}
.col img {
    width: 50%;
    margin: 5%;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}
.cat-title {
    text-align: center;
    margin: 2vh;
}
.carousel-container {
    display: flex;
    flex-direction: row;
    position: relative;
    margin: auto;
    overflow: hidden;
}
.carousel{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Oculta barra de rolagem no Firefox */
    -ms-overflow-style: none; /* Oculta no IE/Edge */
}
.carousel div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 40vw;
    padding-bottom: 1.5vh;
}
.carousel::-webkit-scrollbar {
    display: none; /* Oculta no Chrome e Safari */
}
.carousel-container p, .carousel-container a {
    color: #BE1E20;
    font-family: "Orbitron", serif;
    font-size: 2.5vh;
    text-align: center;
    width: 90%;
    margin: 2.5%;
}
.carousel img {
    width: 70%;
    margin: 5%;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}
.carou-btn {
    color: #BE1E20;
    font-family: "Orbitron", serif;
    font-size: 6vh;
    margin: 5px;
    cursor: pointer;
}
.seg {
    border-top: solid 20px #d82124;
    margin-bottom: 3vh;
}
.seg p {
    padding-bottom: 1vh;
    font-family: "Orbitron", serif;
    text-align: center;
    color: #BE1E20;
    font-size: 3.5vh;
    background-color: white;
}
.seg div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.seg div img {
    width: 15vw;
}
.cont {
    border-top: solid 20px #d82124;
    padding-bottom: 1vh;
    font-family: "Orbitron", serif;
    text-align: center;
    color: #BE1E20;
    font-size: 2.5vh;
    background-color: white;
}
.cont-h {
    font-size: 3.5vh;
}
.cont a {
    color: #BE1E20;
}
footer {
    background-color: #d82124;
    padding: 1.7vh;
    color: white;
    font-size: 1.7vh;
    text-align: center;
}
footer a {
    background-color: #d82124;
    color: white;
    font-size: 1.7vh;
}
.title2 {
    margin-top: 24vh;
    padding-bottom: 1vh;
    font-family: Helvetica, Arial, sans-serif;
    text-align: center;
    text-shadow: none;
    color: #BE1E20;
    font-size: 2vh;
    background-color: white;
}
.login {
    display: flex;
    width: 80%;
    flex-direction: column;
    justify-content: space-around;
    margin-top: 3vh;
    margin-right: auto;
    margin-left: auto;
}
.login-form {
    font-family: "Orbitron", serif;
    text-align: center;
    color: white;
    font-size: 2.5vh;
    background-color: #BE1E20;
    margin-bottom: 3vh;
    padding-top: 1vh;
    padding-bottom: 1.5vh;
    border-radius: 8px;
}
.login-form button {
    height: 2.4vh;
    vertical-align: bottom;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    background-color: #BE1E20;
    border: solid 2px white;
}
#user-login-span {
    display: none;
}
.sign {
    display: flex;
    flex-direction: column;
}
.sign div {
    margin-bottom: 1vh;
}
.sign p {
    font-size: 1.7vh;
    vertical-align: top;
}
.sign a {
    font-size: 1.7vh;
    color: white;
}
.sign button {
    vertical-align: center;
    border-radius: 5px;
    background-color: white;
    color: #BE1E20;
    font-family: "Orbitron", serif;
    text-align: center;
    font-size: 2.5vh;
    padding: 3px;
    margin: 20px;
    height: auto;
}
.invia {
    width: 100%;
    height: 100%;
}
.login-text {
    font-family: Helvetica, Arial, sans-serif;
    text-align: center;
    color: #BE1E20;
    font-size: 2.5vh;
    background-color: white;
    width: 80%;
    margin-bottom: 3vh;
    margin-left: auto;
    margin-right: auto;
}
.login-text li {
    margin-bottom: 2vh;
}
.impostazioni {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-around;
}
.impostazioni p {
    font-family: "Orbitron", serif;
    color: #BE1E20;
    font-size: 3vh;;
    margin-bottom: 1.5vh;
}
.impostazioni a {
    font-family: Helvetica, Arial, sans-serif;
    color: white;
    border-radius: 4px;
    background-color: #BE1E20;
    font-size: 2.5vh;
    margin-bottom: 2vh;
    width: 60%;
    cursor: pointer;
}
#vendite, #clienti, #prodotti {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.ui-dialog { z-index: 1000 !important ;}
.left-screen, .right-screen {
    font-size: 2.2vw;
    width: 90%;
    display: flex;
    flex-direction: column;
    min-height: auto;
}
.left-screen div {
    min-height: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.left-screen a {
    border: solid 2px red;
    border-radius: 8px;
    cursor: pointer;
    padding: 0.4rem;
    font-weight: bold;
    background-color: rgb(255, 234, 231);
}
.left-screen img {
    cursor: pointer;
}
.coupons {
    font-size: 2.2vw;
    width: 90%;
    display: flex;
    flex-direction: column;
    min-height: auto;
}
.coupons div {
    min-height: 2.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.coupons table {
    margin-bottom: 1rem;
}
.csl:hover {
    background-color: lightgray;
    cursor: pointer;
}
.right-screen form, .right-screen div {
    display: flex;
    flex-direction: column;
    margin: 0px auto 0.5rem auto;
    text-align: center;
    line-height: 2.5rem;
    width: 90%;
}
.right-screen button {
    margin: 2rem;
    padding: 1rem;
}
.right-screen img {
    margin: auto;
    width: 12rem;
}
.product {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-family: Helvetica, Arial, sans-serif;
    color: #BE1E20;
    border-radius: 4px;
    background-color: white;
    font-size: 3vh;
    margin-bottom: 2vh;
    text-align: center;
}
.product div {
    margin: 10px;
}
.product img {
    width: 70%;
    margin: 2%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}
#points {
    text-align: center;
    margin: 2rem;
    font-family: "Orbitron", serif;
    font-size: 3.5vh;
    background-color: #BE1E20;
    color: white;
    border-radius: 8px;
}
#coupons {
    text-align: center;
    margin: 2rem;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 2vh;
}
.available {
    border: solid, #BE1E20, 1px;
    border-radius: 8px;
    font-size: 2.5vh;
}
#coupons div {
    margin: 1rem;
}
#purchases {
    text-align: center;
    margin: 2rem;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 2vh;
}
.purchases {
    width: 100%;
    border: solid, #BE1E20, 1px;
    border-radius: 8px;
    margin: 0.5rem;
    line-height: 1.5rem;
}
.ISP-TU {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    font-family: Helvetica, Arial, sans-serif;
    border: solid #BE1E20 1px;
    border-radius: 8px;
}
.ISP-TU h1 {
    text-align: center;
    margin-bottom: 1rem;
}
.ISP-TU h3 {
    text-align: center;
    margin-bottom: 1rem;
}
.ISP-TU p {
    line-height: 1.2rem;
    text-indent: 1.5rem;
    margin-bottom: 0.5rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 500px) and (orientation: portrait) {
    .top-header {
        height: 24vh;
    }
    .left-th {
        max-height: 17vh;
    }
    .left-th img {
        max-width: 100%;
    }
    .right-th {
        padding-top: 3vw;
        width: 19vw;
        height: 12vh;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }
    .bottom-th {
        min-width: 2vh;
    }
    .right-th img {
        height: 4vh;
    }
    .login-wrapper {
        width: 7.5vh;
    }
    .title{
        margin-top: 25vh;
        padding-top: 5vh;
    }
    .login-form {
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }
    footer{
        background-color: #d82124;
        padding: 1.7vh;
        color: white;
        font-size: 1.7vh;
        text-align: center;
        min-height: 10vh;
    }
    footer a {
        background-color: #d82124;
        color: white;
        font-size: 1.7vh;
    }
}
@media (orientation: landscape) {
    html {
        background-color: black;
    }
    body {
        margin: 0;
        padding: 0;
        margin-right: 15%;
        margin-left: 15%;
        background-color: white;
    }
    .top-header {
        position: fixed;
        width: 70%;
        height: 32vh;
        top: 0%;
        left: 0%;
        margin-right: 15%;
        margin-left: 15%;
        background-color: white;
        text-align: center;
    }
    .top-th {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 0;
        padding: 0vw;
        height: 25vh;
        align-items: start;
        padding-top: 3vh;
    }
    .left-th {
        max-width: 35vw;
        max-height: 12vh;
        padding-top: 0;
        padding-left: 5vw;
        margin-right: 10vw;
    }
    .left-th img {
        max-width: 100%;
    }
    .right-th {
        padding-top: 0;
        width: 13vw;
        height: 20vh;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: right;
    }
    .right-th img {
        height: 7vh;
    }
    .login-wrapper {
        width: 5vw;
    }
    .login-th {
        background-color: #BE1E20;
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
        height: 10vh;
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin-top: 3vw;
    }
    .login-th img {
        width: 6vh;
        margin-left: 1vw;
    }
    #panel-th {
        width: 100%;
        margin-top: 0.7vh;
        display: inline-block;
        background-color: #BE1E20;
        color: white;
        font-family: Doto;
        font-weight: bold;
        font-size: 2.6vh;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .top-header a {
        font-family: "Orbitron", serif;
        color: #BE1E20;
        font-size: 3.5vh;
    }
    .title{
        margin-top: 30vh;
        padding-top: 5vh;
        font-family: "Orbitron", serif;
        text-align: center;
        text-shadow: #160404 1px 0 1px;
        color: #BE1E20;
        font-size: 5vh;
        background-color: white;
    }
    main{
        /*background-color: #dfdfdf;
        text-shadow: #160404 1px 0 2px;*/
        color: #BE1E20;
    }
    .col {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        border-bottom: solid 2px #BE1E20;
        margin-bottom: 5vh;
    }
    .col p {
        font-family: "Orbitron", serif;
        font-size: 4.5vh;
        text-align: center;
        width: 90%;
        margin: 2.5%;
    }
    .col img {
        width: 30%;
        margin: 5%;
        border-radius: 50%;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    }
    .cat-title {
        text-align: center;
        margin: 2vh;
        font-size: 4.5vh;
    }
    .carousel-container {
        display: flex;
        flex-direction: row;
        position: relative;
        margin: auto;
        overflow: hidden;
    }
    .carousel{
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Oculta barra de rolagem no Firefox */
        -ms-overflow-style: none; /* Oculta no IE/Edge */
    }
    .carousel div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-width: 20vw;
        padding-bottom: 1.5vh;
    }
    .carousel::-webkit-scrollbar {
        display: none; /* Oculta no Chrome e Safari */
    }
    .carousel-container p, .carousel-container a {
        color: #BE1E20;
        font-family: "Orbitron", serif;
        font-size: 3vh;
        text-align: center;
        width: 90%;
        margin: 2.5%;
    }
    .carousel img {
        width: 55%;
        margin: 5%;
        border-radius: 10px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    }
    .carou-btn {
        color: #BE1E20;
        font-family: "Orbitron", serif;
        font-size: 7vh;
        margin: 15px;
        cursor: pointer;
    }
    .seg {
        border-top: solid 20px #d82124;
        margin-bottom: 6vh;
    }
    .seg p {
        padding-bottom: 1vh;
        font-family: "Orbitron", serif;
        text-align: center;
        color: #BE1E20;
        font-size: 5vh;
        background-color: white;
    }
    .seg div {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding-left: 20%;
        padding-right: 20%;
    }
    .seg div img {
        width: 5vw;
    }
    .cont {
        border-top: solid 20px #d82124;
        padding-bottom: 1vh;
        font-family: "Orbitron", serif;
        text-align: center;
        color: #BE1E20;
        font-size: 4vh;
        background-color: white;
    }
    .cont-h {
        font-size: 5vh;
    }
    .cont a {
        color: #BE1E20;
    }
    footer{
        background-color: #d82124;
        padding: 1.7vh;
        color: white;
        font-size: 2.5vh;
        text-align: center;
        min-height: 15vh;
    }
    footer a {
        background-color: #d82124;
        color: white;
        font-size: 2.5vh;
    }
    .title2 {
        margin-top: 32vh;
        padding-top: 5vh;   
        font-family: Helvetica, Arial, sans-serif;
        text-align: center;
        text-shadow: none;
        color: #BE1E20;
        font-size: 4vh;
        background-color: white;
    }
    .login {
        display: flex;
        width: 90%;
        flex-direction: row-reverse;
        justify-content: space-around;
        align-items: center;
        margin-top: 3vh;
        margin-right: 5%;
        margin-left: 5%;
    }
    .login-form {
        font-family: "Orbitron", serif;
        text-align: center;
        align-items: center;
        color: white;
        font-size: 4vh;
        background-color: #BE1E20;
        margin-bottom: none;
        padding-top: none;
        margin-top: 14vh;
        padding-bottom: none;
        border-radius: 8px;
        width: 45%;
        height: 16vh;
    }
    .login-form input {
        width: 14vw;
        height: 4vh;
    }
    .login-form button {
        height: 4.5vh;
        vertical-align: bottom;
        border-top-right-radius: 50%;
        border-bottom-right-radius: 50%;
        background-color: #BE1E20;
        border: solid 2px white;
    }
    #user-login-span {
        display: contents;
        font-size: 2vh;
    }
    .sign {
        display: flex;
        flex-direction: column;   
        font-family: "Orbitron", serif;
        text-align: center;
        color: white;
        font-size: 3vh;
        background-color: #BE1E20;
        margin-bottom: none;
        padding-top: none;
        margin-top: auto;
        padding-bottom: none;
        border-radius: 8px;
        width: 45%;
        height: auto;
    }
    .sign div {
        margin-bottom: 1vh;
    }
    .sign p {
        display: flex;
        font-size: 2vh;
    }
    .sign a {
        font-size: 2vh;
        color: white;
    }
    #keep-signed-toggle {
        margin-right: -5vw;
        height: 2.5vh;
    }
    #password-toggle {
        margin-right: -5vw;
        height: 2.5vh;
    }
    .sign button {
        vertical-align: center;
        border-radius: 5px;
        background-color: white;
        color: #BE1E20;
        font-family: "Orbitron", serif;
        text-align: center;
        font-size: 3vh;
        padding: 3px;
        margin: 20px;
        height: auto;
    }
    .invia {
        width: 100%;
        height: 100%;
    }
    .login-text {
        font-family: Helvetica, Arial, sans-serif;
        text-align: center;
        color: #BE1E20;
        font-size: 4vh;
        background-color: white;
        margin-bottom: 3vh;
        margin-left: auto;
        margin-right: auto;
        width: 45%;
    }
    .login-text li {
        margin-bottom: 2vh;
    }
    .impostazioni {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: space-around;
        width: 50%;
        margin: auto;
    }
    .impostazioni p {
        font-family: "Orbitron", serif;
        color: #BE1E20;
        font-size: 4vh;;
        margin-bottom: 1.5vh;
    }
    .impostazioni a {
        font-family: Helvetica, Arial, sans-serif;
        color: white;
        border-radius: 4px;
        background-color: #BE1E20;
        font-size: 3vh;
        margin-bottom: 2vh;
        width: 60%;
        cursor: pointer;
    }
    #vendite, #clienti, #prodotti {
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    .left-screen, .right-screen {
        font-size: 1.1vw;
        width: 45%;
        display: flex;
        flex-direction: column;
        min-height: 88vh;
    }
    .left-screen div {
        min-height: 2.5rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .left-screen a {
        border: solid 2px red;
        border-radius: 8px;
        cursor: pointer;
        padding: 0.4rem;
        font-weight: bold;
        background-color: rgb(255, 234, 231);
    }
    .left-screen img {
        cursor: pointer;
    }
    .csl:hover {
        background-color: lightgray;
        cursor: pointer;
    }
    .coupons {
        font-size: 1.3vw;
        width: 90%;
        display: flex;
        flex-direction: column;
        min-height: 88vh;
    }
    .coupons div {
        min-height: 2.5rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .coupons table {
        margin-bottom: 2rem;
        margin-left: auto;
        margin-right: auto;
    }
    .right-screen form, .right-screen div {
        display: flex;
        flex-direction: column;
        margin: 2rem auto 0.5rem auto;
        text-align: center;
        line-height: 2.5rem;
        width: 90%;
    }
    .right-screen button {
        margin: 2rem;
        padding: 1rem;
    }
    .right-screen img {
        margin: auto;
        width: 12rem;
    }
    .product {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        font-family: Helvetica, Arial, sans-serif;
        color: #BE1E20;
        border-radius: 4px;
        background-color: white;
        font-size: 4vh;
        margin-bottom: 2vh;
        text-align: center;
    }
    .product div {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 15%;
        margin-right: 15%;
    }
    .product img {
        width: 45%;
        margin: 0%;
        margin-top: 4%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 10px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    }
    #points {
        text-align: center;
        margin: 2rem;
        font-family: "Orbitron", serif;
        font-size: 4vh;
        background-color: #BE1E20;
        color: white;
        width: 50%;
        border-radius: 8px;
        margin-left: auto;
        margin-right: auto;
    }
    #coupons {
        text-align: center;
        margin: 2rem;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 2vh;
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }
    .available {
        border: solid, #BE1E20, 1px;
        border-radius: 8px;
        font-size: 3.5vh;
    }
    #coupons div {
        margin: 1rem;
    }
    #purchases {
        text-align: center;
        margin: 2rem;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 3vh;
    }
    .purchases {
        width: 70%;
        border: solid, #BE1E20, 1px;
        border-radius: 8px;
        margin: 1rem;
        margin-left: auto;
        margin-right: auto;
        line-height: 2.5rem;
    }
}

