
* {
    font-family: Calibri, sans-serif !important; 
}

.version-number {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #888; /* Colore grigio per non renderlo troppo evidente */
    opacity: 0.7; /* Leggera trasparenza */
    font-family: Arial, sans-serif;
    text-align: end;
}

.step {
    display: none; /* Nascondi tutti i div degli step */
}
.step.active {
    display: block; /* Mostra solo il div dello step attivo */
}

.content-block {
    background: radial-gradient(circle, rgba(37,45,51,1)0%, rgba(0,0,0,1) 30%);
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-result {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 963px;
    top: 239px;
    transform: translate(-50%, -50%);
}

.popup-result img {
    display: block;
    height: auto;
    transform: scale(0.97);
}

.custom-bg-success {
    background-color: #00a0e3 !important; /* Azzurro */
}

.modal-content {
    margin: 15% auto;
    padding: 20px;
    border: 10px solid #00a0e3;
    width: 50%;
    text-align: center;
    border-radius: 20px;
    background-color: #252d33;
    color: white;
    font-size: 15px;
    text-align: justify;
}

#loginBox{
    background-color: #3A4245;
    color: white;
    text-align: center;
}

#logo {
    padding: 5%;
}

#button-start {
    width: 20rem;
    height: 20rem;
    background-color: #3A4245;
    border-radius: 15%;
}

#button-checkup {
    width: 10rem;
    height: 10rem;
    background-color: #3A4245;
    border-radius: 15%;
}

#button-termini {
    cursor: pointer;
    width: 10rem;
    height: 10rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
}

#cross {
    width: 50%;
    height: 50%;
    border: 10px;
    border: 5px solid white;
    border-radius: 15%;
    padding: 10%;
    margin-top: 20px;
}

#cross-checkup {
    width: 50%;
    height: 50%;
    border: 10px;
    border: 5px solid white;
    border-radius: 50%;
    padding: 10%;
    margin-bottom: 13px;
}

.icon {
    width: 75%;
    height: 75%;
    
}

.info-icon {
    padding: 10%;
}


#start{
    cursor: pointer;
    font-size: 30px;
    color: white;
    margin-top: 4rem;
    text-align: center;
}

#check-up {
    cursor: pointer;
    font-size: 25px;
    color: white;
    text-align: center;
}

#button-start:active, #button-termini:active, #button-tastierino {
    background-color: #2E3D45;
}

.bgt-primary {
    background-color: #ca2974 !important;
}


#box-trattamento {
    width: 700px;
    height: 518px;
    background-repeat: no-repeat;
    background-size: cover;
}

body.lang-it #box-trattamento {
    background-image: url("/images/traicorder-ui-v2/lang/it/Trattamento dati Cornice.png");
}

body.lang-en #box-trattamento {
    background-image: url("/images/traicorder-ui-v2/lang/en/Trattamento dati Cornice.png");
}

#text-trattamento{
    color: white;
    font-size: 30px;
    margin-bottom: 250px;
}

#text-scan {
    color: red;
    font-size: 50px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center !important;
    margin-top: 15px;
    animation: blinker 2s linear infinite;
}

.scan-values {
    position: absolute;
    font-size: 50px;
    font-weight: 600;
    color: white;
}

#scan-val-hr {
    top: 200px;
    left: 70px;
    color: #009846;
    font-size: 60px;
}

#scan-val-bp {
    top: 200px;
    left: 1140px;
    color: #e31e24;
    font-size: 55px;
}

#scan-val-sp {
    top: 630px;
    left: 70px;
    color: #00A0E3;
    font-size: 60px;
}

#scan-val-rr {
    top: 630px;
    left: 1147px;
    color: #ef7f1a;
    font-size: 60px;
}

@keyframes blinker {
    50% {
      opacity: 0;
    }
}

#step2 {
    padding-top: 5%;
}

#step3, #step4 {
    background-repeat: no-repeat;
}

/* Lingua italiana */
body.lang-it #step3 {
    background-image: url("/images/traicorder-ui-v2/lang/it/Anamnesi info tessera.png");
}

body.lang-it #step4 {
    background-image: url("/images/traicorder-ui-v2/lang/it/Anamnesi Cornice3.png");
}

/* Lingua inglese */
body.lang-en #step3 {
    background-image: url("/images/traicorder-ui-v2/lang/en/Anamnesi info tessera.png");
}

body.lang-en #step4 {
    background-image: url("/images/traicorder-ui-v2/lang/en/Anamnesi Cornice3.png");
}



#box2{
    background-color: rgb(69, 72, 79, 0.4);
    padding: 3%;
    border-radius: 5%;
}

.justified-text {
    color: white;
    text-align: justify; /* Giustifica il testo */
    text-align-last: justify; /* Giustifica anche l'ultima riga */
    width: 100%; /* Assicura che il paragrafo occupi tutta la larghezza disponibile */
    font-size: 22px;
}

.justified-text:after {
    content: ""; /* Aggiungi un contenuto vuoto dopo il testo */
    display: inline-block;
    width: 100%; /* Questo forza l'ultima riga ad occupare tutta la larghezza disponibile */
}


#box3{
    margin-top: 75px;
    width: 45rem;
    height: 45rem;
    background-color: rgb(69, 72, 79, 0.4);
    padding: 3%;
    font-size: 1.3rem;
    border-radius: 5%;
    text-align: center;
    
}

#box-check-up {
    width: 65%;
    height: 31rem;
    background-repeat: no-repeat;
    background-size: contain;
}

body.lang-it #box-check-up {
    background-image: url("/images/traicorder-ui-v2/lang/it/Istruzioni check up.png");
}

body.lang-en #box-check-up {
    background-image: url("/images/traicorder-ui-v2/lang/en/Istruzioni check up.png");
}

#box-checkup-terminato {
    width: 47%;
    height: 45rem;
    background-repeat: no-repeat;
    background-size: contain;
}

body.lang-it #box-checkup-terminato {
    background-image: url("/images/traicorder-ui-v2/lang/it/check-up-terminato.png");
}

body.lang-en #box-checkup-terminato {
    background-image: url("/images/traicorder-ui-v2/lang/en/check-up-terminato.png");
}

.row-left {
    width: 50% !important;
    margin-left: 70px;
}

.row-left2 {
    width: 50% !important;
    margin-left: 75px;
}

.row-left4 {
    width: 50% !important;
    margin-left: 90px;
}

.row-right {
    position: absolute;
    top: 490px;
    left: 740px;
    width: 45% !important;
}

.result-row-right {
    position: absolute;
    top: 490px;
    left: 760px;
    width: 45% !important;
}

.wellness-chart {
    position: absolute;
    top: 173px;
    left: 875px;
    width: 45% !important;
}

#box-scan {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
    background-size: 1230px;
}

body.lang-it #box-scan {
    background-image: url("/images/traicorder-ui-v2/lang/it/Cornice rilevamento.png");
}

body.lang-en #box-scan {
    background-image: url("/images/traicorder-ui-v2/lang/en/Cornice rilevamento.png");
}


#box-codice-fiscale{
    cursor: pointer;
    width: 85%;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 25px;
    color: white;
    padding: 10px;
    border: none;
    padding-right: 30px;
}

/* #box-codice-fiscale:focus-within {
    box-shadow: 0 0 0 3px #259192 !important;
} */

#box-peso:focus,
#box-altezza:focus,
#box-numero-telefono:focus,
#box-codice-fiscale:focus {
  outline: none;
}

#box-altezza{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

/* #box-altezza:focus-within {
    box-shadow: 0 0 0 3px #259192 !important;
} */

#box-numero-telefono{
    cursor: pointer;
    width: 85%;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 25px;
    color: white;
    padding: 10px;
    border: none;
}

/* #box-numero-telefono:focus-within {
    box-shadow: 0 0 0 3px #259192 !important;
} */

#box-peso{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

/* #box-peso:focus-within {
    box-shadow: 0 0 0 3px #259192 !important;
} */

#button-fumatore{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-iperteso{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-farmaci{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-diabetico{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-asmatico{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-allergico{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-avanti{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    margin-top: 15px;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-avanti-tessera {
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    border-radius: 15%;
    color: white;
    border: none;
    position: absolute;
    top: 520px;
    left: 1075px;
}

.button-tastierino{
    color: white;
    background-color: #259192;
    width: 100%;
    height: 52px;
    border-radius: 20px;
    font-size: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    gap: 8px;
}

.custom-radio input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #ccc;
    background-color: white;
    display: inline-block;
    /* transition: background-color 0.2s, border-color 0.2s; */
}

.custom-radio input:checked + .checkmark {
    background-color: #ca2974;
    border-color: #ca2974;
}

.highlight {
    background-color: #ca2974 !important;
}

.icon2 {
    width: 75%;
    height: 75%;
    padding: 2%;
}

.body-input {
    background-color: white;
    color: #3A4245;
    border-radius: 5px;
    width: 70%;
    height: 20%;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.phone-input {
    background-color: white;
    color: #3A4245;
    border-radius: 5px;
    width: 70%;
    height: 20%;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fiscal-code-text {
    background-color: white;
    color: #3A4245;
    border-radius: 5px;
    width: 210px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 33px;
    text-transform:uppercase
}

.fiscal-code-scanned {
    color: white;
    border-radius: 5px;
    width: 210px;
    height: 35px;
    font-size: 25px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 33px;
    text-transform:uppercase
}

.focus-box {
    box-shadow: 0 0 0 5px #ca2974 !important;
}

.focus-error {
    box-shadow: 0 0 0 5px red !important;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.bgt-dark{
    background-color:#3A4245!important
}

.loader {
    width: 100px;
    aspect-ratio: 1;
    --_c:no-repeat radial-gradient(farthest-side,#25b09b 92%,#0000);
    background: 
      var(--_c) top,
      var(--_c) left,
      var(--_c) right,
      var(--_c) bottom;
    background-size: 25px 25px;
    animation: l7 1s infinite;
  }
@keyframes l7 {to{transform: rotate(.5turn)}}

#result-step1 {
    background-repeat: no-repeat;
}
#result-step2 {
    background-repeat: no-repeat;
    background-position-x: 3px;
}
#result-step3 {
    background-repeat: no-repeat;
    background-position-x: 21px;
}
#result-step4 {
    background-repeat: no-repeat;
    background-position-x: 21px;
}

body.lang-it #result-step1 {
    background-image: url("/images/traicorder-ui-v2/lang/it/Cornice Risultati1.png");
}

body.lang-it #result-step2 {
    background-image: url("/images/traicorder-ui-v2/lang/it/Cornice Risultati2.png");
}

body.lang-it #result-step3 {
    background-image: url("/images/traicorder-ui-v2/lang/it/Cornice Risultati3.png");
}

body.lang-it #result-step4 {
    background-image: url("/images/traicorder-ui-v2/lang/it/Cornice Risultati4.png");
}

body.lang-en #result-step1 {
    background-image: url("/images/traicorder-ui-v2/lang/en/Cornice Risultati1.png");
}

body.lang-en #result-step2 {
    background-image: url("/images/traicorder-ui-v2/lang/en/Cornice Risultati2.png");
}

body.lang-en #result-step3 {
    background-image: url("/images/traicorder-ui-v2/lang/en/Cornice Risultati3.png");
}

body.lang-en #result-step4 {
    background-image: url("/images/traicorder-ui-v2/lang/en/Cornice Risultati4.png");
}


#result-step5 {
}

#result-button-avanti{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    margin-top: 30px;
    border-radius: 15%;
    color: white;
    border: none;
    margin-left: 30px;
}

#result-button-indietro{
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    background-color: #3A4245;
    margin-top: 30px;
    border-radius: 15%;
    color: white;
    border: none;
    margin-right: 30px;
}

.vital-param-box {
    height: 60px;
    width: 90%;
    border-radius: 13px;
    background: rgb(1,3,2);
    background: linear-gradient(to right, #008dd2 0%, #00252b 72%, #00252b 100%);
    vertical-align: middle;
    align-items: center;
    display: flex;
    justify-content: start;
    margin-top: 15px;
}

.age-param-box{
    height: 100px;
    border-radius: 13px;
    background: rgb(1,3,2);
    background: linear-gradient(to right, #c87486 0%, #615057 72%, #615057 100%);
    vertical-align: middle;
    align-items: center;
    display: flex;
    justify-content: start;
}

.index-param-box{
    height: 80px;
    color: white;
    font-size: 22px;
    border-radius: 13px;
    background: rgb(1,3,2);
    background: linear-gradient(to right, #c87486 0%, #615057 72%, #615057 100%);
    vertical-align: middle;
    align-items: center;
    display: flex;
    justify-content: start;
}

.psico-index-param-box{
    height: 80px;
    color: white;
    font-size: 22px;
    border-radius: 13px;
    background: rgb(1,3,2);
    background: linear-gradient(to right, #793c91 0%, #2b2a35 72%, #1d2124 100%);
    vertical-align: middle;
    align-items: center;
    display: flex;
    justify-content: start;
}

.bar-param-box {
    /* background-color: #232427;
    border-radius: 15px;
    height: 80px; */
}

.risk-label {
    color: white;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}

.vital-param-title {
    color: white;
    font-size: 28px;
}

.vital-param-value {
    color: white;
    font-size: 30px;
}

.face-age-param-value {
    color: white;
    font-size: 70px;
}

.keyboard-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #171C20;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.keyboard-row {
    display: flex;
    margin: 5px 0;
}

.key {
    background-color: #2E3D45;
    color: #fff;
    border: solid 1.5px white;
    padding: 12px 30px 12px 30px;
    margin: 9px;
    font-size: 25px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.key:hover {
    background-color: #259192;
}

#space {
    flex: 1;
}

.fc-icon {
    position: fixed;
    top: 80px;
    right: 1100px;
    width: 145px;
    height: 82px;
    background-image: url('/images/traicorder-ui-v2/Tracciato per Pagina pre e misurazione.png');
    background-size: cover;
}

.fc-icon::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%; /* Partenza da sinistra fuori dall'icona */
    width: 12px;
    height: 100%;
    background-color: black;
    opacity: 0.7;
    animation: scan-bar 1.5s linear infinite;
}

@keyframes scan-bar {
    0% {
        left: -70%;
    }
    100% {
        left: 90%;
    }
}

.spo2-icon {
    position: fixed;
    top: 501px;
    right: 1122px;
    width: 83px;
    height: 79px;
    background-image: url('/images/traicorder-ui-v2/Saturazione per Pagina pre e Misurazione.png');
    background-size: cover;
    animation: respirazione 4s infinite;
}

.blood-pressure-icon {
    position: fixed;
    top: 70px;
    right: 58px;
    width: 90px;
    height: 86px;
    background-image: url('/images/traicorder-ui-v2/Pressione per Pagina pre e Misurazione.png');
    background-size: cover;
    animation: battito 1.2s infinite;
}

.resp-rate-icon {
    position: fixed;
    top: 495px;
    right: 50px;
    width: 100px;
    height: 80px;
    background-image: url('/images/traicorder-ui-v2/Frequenza respiratoria per Pagina pre e Misurazioe.png');
    background-size: cover;
    animation: respirazione 4s infinite;
}

@keyframes respirazione {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.20);
    }
}

@keyframes battito {
    0%
    {
      transform: scale( .90 );
    }
    20%
    {
      transform: scale( 1 );
    }
    40%
    {
      transform: scale( .90 );
    }
    60%
    {
      transform: scale( 1 );
    }
    80%
    {
      transform: scale( .90 );
    }
    100%
    {
      transform: scale( .90 );
    }
}