﻿/* DEFINIZIONI GENERALI */
:root {
    --main-bg-color: rgba(0, 149, 82, 1);
    --alt-bg-color: rgba(51, 204, 153, 1);
    --main-padding: 15px;
    /* --main-bg-color: rgba(0, 149, 82, 1);*/
    /*    --alt-bg-color: rgba(51, 204, 153, 1);*/
}

body {
    background-color: rgba(0, 149, 82, 1);
    align-content: center;
    align-items: center;
    text-align: center;
}

header {
    background-color: rgba(0, 149, 82, 1);
}

main {
    background-color: rgba(0, 149, 82, 1);
    align-content: center;
    align-items: center;
    text-align: center;
}

.colore_principale {
    background-color: rgba(0, 149, 82, 1);
}

.colore_alternativo {
    background-color: rgba(51, 204, 153, 1);
}

.miopannelli {
    width: 100%;
    max-width:600px;
    background-color: var(--alt-bg-color);
    border-bottom: none;
    border-top: solid;
    border-left: solid;
    border-right: solid;
    padding-top: 10px;
    padding-bottom: 10px;
}

.miotestoSTD {
    font: 16px Tahoma;
    color: black;
}

.miotestoPLS {
    font: 18px Tahoma bold;
    color: red;
}

.miotestoLBL {
    font: 16px Tahoma;
    color: black;
}

.pulsanti {
    min-width: 100px;
    width: 30%;
    min-height: 30px;
}

.mioBCKGROUND {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10000px;
    background-color: black;
    z-index: 1000;
}

* {
    box-sizing: border-box;
    vertical-align: middle;
}

.testami {
    background-color: black;
    border: double;
}

.icFont {
    font: bold 18px Tahoma, arial;
}

.icLabelTitoloBox {
    font: italic bold 32px Tahoma, arial;
    padding-bottom: 50px;
}
.icLabelStandard {
    font: bold 18px Tahoma, arial;
}
.icLabelTiny {
    font: bold 12px Tahoma, arial;
}

.icPulsante {
    border-radius: 4px;
    width: 90%;
    max-width: 200px;
    min-width: 50px;
    min-height: 35px;
    box-shadow: lightblue 5px 3px;
    margin: 10px 10px 10px 10px;
    font: normal 18px Tahoma, arial;
    padding: 5px 0px 5px 0px;
}
.icPulsantePlain {
    border-radius: 4px;
    width: 90%;
    max-width: 200px;
    min-width: 50px;
    min-height: 35px;
    margin: 10px 0px 10px 0px;
    font: normal 18px Tahoma, arial;
    padding: 5px 0px 5px 0px;
}
.icTextBox {
    width: 95%;
    font: normal 16px Tahoma, arial;
    height: 32px;
    min-height: 30px;
    line-height: 32px;
    text-align: center;
    background-color: white;
}
.icTextBox.Tiny {
        width: 85%;
        font: normal 12px Tahoma, arial;
        min-height: 20px;
        height: 20px;
        line-height: 20px;
 }
.icTextBoxMultiLine {
        width: 95%;
        font: normal 16px Tahoma, arial;
        text-align: center;
        background-color: white;
        min-height: 5em;
}
    
.icDropDown {
        width: 95%;
        min-height: 30px;
        font: normal 18px Tahoma, arial;
        background-color: white;
    }
/* Imposta la dimensione del carattere per gli elementi option all'interno dei DropDownList con la classe "icTest" */
    .icDropDown option {
        font: normal 18px Tahoma, arial; /* Imposta la dimensione del carattere desiderata per gli elementi option */
    }

.icImage {
    width: 20%;
    height: 20%;
    min-width: 96px;
    min-height: 96px;
}

.icImageButton {
    width: 32px;
    height: 32px;
}

.BCKground {
    position: absolute;
    margin: 0; /* Rimuove il margine predefinito del body */
    top: 0px;
    left: 0px;
    height: 100vh; /* Imposta l'altezza del body al 100% dell'altezza del viewport */
    width: 100vw;
    display: flex; /* Utilizza Flexbox per centrare l'elemento verticalmente e orizzontalmente */
    flex-direction: column; /* Imposta il layout dei figli in una colonna */
    justify-content: center; /* Centra l'elemento orizzontalmente */
    align-items: center; /* Centra l'elemento verticalmente */
    z-index: 99;
    border: solid lightblue;
    background-color: antiquewhite;
    opacity: 0.95;
}

/* DEFINIZIONI GENERALI FINE */

/* DEFINIZIONI COLONNE RESPONSIVE GRIDVIEW */
[class*="col-"] {
    float: left;
    width: 100%; /* Imposta una larghezza di default */
    box-sizing: border-box; /* Imposta box-sizing per includere padding e bordo */
    padding: 5px; /* Modifica questo valore secondo le tue preferenze */
    min-height: 20px !important; /* Altezza minima per entrambe le versioni */
    height: 100%; /* Imposta l'altezza al 100% per evitare che l'altezza minima venga ignorata */
}

.row::after {
    content: "";
    clear: both;
    display: table;
    padding: 0;
}

/* Regole della versione Flexbox */
.row.flex {
    display: flex;
    flex-wrap: wrap;
    width:100%;
    align-items:center;
}

.row.flex [class*="col-"] {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    min-height: 20px !important; /* Altezza minima per entrambe le versioni */
    height: 100%; /* Imposta l'altezza al 100% per evitare che l'altezza minima venga ignorata */
}

.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

.col-85pc {
    width: 85%;
}

.col-15pc {
    width: 15%;
}

.flexBox {
    /* CONTENITORE DELLE RIGHE */
    width: 90%;
    border: 3px solid red;
    padding: 5px;
}

/* DEFINIZIONI COLONNE RESPONSIVE GRIDVIEW FINE */

/* DEFINIZIONI POPUT MSG UTENTI */
.alertBox {
    position: absolute;
    top: 100px;
    left: 50%;
    width: 500px;
    margin-left: -250px;
    background-color: yellow;
    border: 3px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 4px 8px;
    align-content: center;
    text-align: center;
    z-index: 100001;
}

.alertBoxInput {
    position: absolute;
    top: 100px;
    left: 50%;
    width: 50%;
    margin-left: -250px;
    background-color: yellow;
    border: 3px double #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 4px 8px;
    align-content: center;
    text-align: center;
    z-index: 11;
}

.AlertBoxMessage {
    border: 1px solid red;
    padding: 2px 2px;
}
/* DEFINIZIONI POPUT MSG UTENTI FINE */

.MsgBackground {
    background-color: Black;
    opacity: 0.8;
}
/* filter: alpha(opacity=90);*/

.MsgPopup {
    background-color: var(--alt-bg-color);
    border-width: 3px;
    border-style: double;
    border-color: black;
    padding-top: 10px;
    padding-left: 10px;
    width: 400px;
    height: 250px;
}

@media only screen and (max-width: 359px) {
    /* For mobile phones: */
    .alertBox {
        top: 10%;
        left: 25%;
        width: 50%;
        margin-left: 0px;
        padding: 2px 4px;
    }

    [class*="col-"] {
        padding: 2px;
        width: 100%;
    }

    .coppia {
        width: 50%;
    }

    .pulsanti {
        min-width: 100px;
        width: 100%;
    }

    .icImage {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
}
