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

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

#ce_symbol {
    width: 40px;
    height: 40px;
    background-image: url("/images/traicorder-ui-v2/lang/it/ce-symbol.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-align: end;
    margin-left: 60px;
}

.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) 0%);
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.hidden {
  display: none !important;
}

.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);
}

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

.modal-content-instructions {
    margin: 23% auto;
    padding: 20px;
    border: 10px solid #30a0e3;
    width: 32%;
    text-align: center;
    border-radius: 20px;
    background-color: #0B1D29;
    color: white;
    font-size: 15px;
    text-align: justify;
}

.keyboard-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 620px;
    top: 70px;
    width: 80%;
    overflow: auto;
}

.nation-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 327px;
    top: 70px;
    width: 80%;
    overflow: auto;
}

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

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

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

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

.keyboard-modal-content {
    margin: 0;
    border: 3px solid #30a0e3;
    text-transform: uppercase !important;
}

.input-modal-content{
    color: #00a0e3; 
    font-size: 25px; 
    display: flex; 
    justify-content: center; 
    align-items: center
}

.diabet-modal-content{
    color: #00a0e3; 
    font-size: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center"
}

.ht-modal-content{
    color: #00a0e3; 
    font-size: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center"
}

.phone-modal-content{
    color: #00a0e3; 
    font-size: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center"
}

.nation-modal-content{
    color: #00a0e3; 
    font-size: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center"
}

#loginBox{
    background-color: #0B1D29;
    color: white;
    text-align: center;
}

#logo {
    padding: 9%;
}

#button-start {
    width: 12rem;
    height: 12rem;
    background-color: #0B1D29;
    border-radius: 15%;
}

#button-checkup {
    width: 7.5rem;
    height: 7.5rem;
    background-color: #0B1D29;
    border-radius: 15%;
}

#button-termini {
    cursor: pointer;
    width: 9rem;
    height: 9rem;
    background-color: #0B1D29;
    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%;
}

.info-index-icon {
    height: 65px;
    width: auto;
}

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

#startButtonImage {
    height: 115px;
}

#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: 618px;
    height: 412px;
    background-repeat: no-repeat;
    background-size: cover;
}

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

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

#text-trattamento{
    color: yellow;
    font-size: 25px;
    margin-bottom: 190px;
}

#text-medical-device{
    color: white;
    font-size: 16px;
}

#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;
}

.text-alert-brightness {
    color: #00a0e3; 
    font-size: 25px; 
    display: flex; 
    justify-content: center; 
    align-items: center
}

.text-alert-quality {
    margin-top: 20px; 
    color:#00a0e3; 
    font-size:25px; 
    display:flex; 
    justify-content:center; 
    align-items:center
}

.text-alert-faceloss{
    margin-top: 60px; 
    color: #00a0e3; 
    font-size: 25px; 
    display: flex; 
    justify-content: center; 
    align-items: center
}

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

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

#scan-val-bp {
    top: 150px;
    left: 987px;
    color: #e31e24;
    font-size: 48px;
}

#scan-val-sp {
    top: 520px;
    left: 80px;
    color: #30a0e3;
    font-size: 60px;
}

#scan-val-rr {
    top: 520px;
    left: 987px;
    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 2.png");
}

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

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

body.lang-en #step4 {
    background-image: url("/images/traicorder-ui-v2/lang/en/Anamnesi Cornice3 2.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: 27rem;
    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: 65%;
    height: 45rem;
    background-repeat: no-repeat;
    background-size: contain;
    margin-top: 15px;
}

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-left-anamnesis {
    width: 50% !important;
    margin-left: 30px;
}

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

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

.row-right {
    position: absolute;
    top: 395px;
    left: 650px;
    width: 42% !important;
}

.result-row-right {
    position: absolute;
    top: 415px;
    left: 620px;
    width: 45% !important;
}
.cardiovascular-risk-chart {
    position: absolute;
    top: 96px;
    left: 640px;
    border: 2px solid #3e608a;
    border-radius: 15px;
    padding: 10px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 23%;
}

.metabolic-risk-chart {
    position: absolute;
    top: 228px;
    left: 640px;
    border: 2px solid #3e608a;
    border-radius: 15px;
    padding: 10px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 23%;
}

.wellness-chart {
    position: absolute;
    top: 95px;
    left: 910px;
    border: 2px solid #3e608a;
    border-radius: 15px;
    padding: 10px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 15%;
    height: 223px;
}

.risk-bar {
  flex: 1;
  height: 20px;
  background-color: transparent;
  overflow: hidden;
}

.risk-bar-fill {
  width: 0%;
  height: 100%;
  display: block;
  will-change: width;
}

@keyframes fillToTarget {
  0%   { width: 0% }
  60%  { width: 90% }
  100% { width: calc(var(--target, 0) * 1%); }
}

.risk-value {
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}

#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: 100%;
    height: 55px;
    background-color: #0B1D29;
    border-radius: 25px 25px 0 0;
    color: #448DD2;
    padding: 10px 30px 10px 10px; /* top right bottom left */
    border: none;
}

#box-nazione {
    cursor: pointer;
    width: 100%;
    height: 55px;
    background-color: #0B1D29;
    border-radius: 0 0 25px 25px;
    color: #448DD2;
    padding: 10px 30px 10px 10px; /* top right bottom left */
    border: none;
}

.user-nation-box{
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  gap: .5rem;              /* spazio tra titolo e valore */
  width: 100%;
  height: 7rem;
  background: #0B1D29;
  color: #E9F4FF;          /* testo chiaro, visibile */
  border: none;
  border-radius: 25px;
  padding: 10px 16px;
  text-align: left;
}

/* header riga con titolo + icona */
.user-nation-box > .user-nation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -24px;
}

/* #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,
#box-gender:focus,
#box-birth-date:focus {
  outline: none;
}

#box-altezza{
    cursor: pointer;
    width: 7rem;
    height: 7rem;
    background-color: #0B1D29;
    border-radius: 15%;
    color: #448DD2;
    border: none;
}

#box-gender{
    cursor: pointer;
    width: 7rem;
    height: 7rem;
    background-color: #0B1D29;
    border-radius: 15%;
    color: #448DD2;
    border: none;
}

#box-birth-date{
    cursor: pointer;
    width: 7rem;
    height: 7rem;
    background-color: #0B1D29;
    border-radius: 15%;
    color: #448DD2;
    border: none;
}


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

#box-numero-telefono{
    cursor: pointer;
    width: 100%;
    height: 7rem;
    background-color: #0B1D29;
    border-radius: 25px;
    color: #448DD2;
    padding: 10px;
    border: none;
}

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

#box-peso{
    cursor: pointer;
    width: 7rem;
    height: 7rem;
    background-color: #0B1D29;
    border-radius: 15%;
    color: #448DD2;
    border: none;
}

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

#button-fumatore{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-iperteso{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-farmaci{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-diabetico{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-asmatico{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-allergico{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-anemico{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-cardiopatico{
    cursor: pointer;
    width: 110px;
    height: 110px;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
}


#button-avanti{
    cursor: pointer;
    width: 7rem;
    height: 7rem;
    background-color: #0B1D29;
    margin-top: 50px;
    border-radius: 15%;
    color: white;
    border: none;
}

#button-avanti-tessera {
    cursor: pointer;
    width: 10rem;
    height: 10rem;
    background-color: #0B1D29;
    border-radius: 15%;
    color: white;
    border: none;
    position: absolute;
    top: 335px;
    left: 760px;
}

.button-tastierino {
    color: white;
    background-color: #259192;
    width: 100%;
    height: 40px;
    border-radius: 13px;
    font-size: 35px;
    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%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.body-input {
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    width: 74%;
    height: 25%;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.body-scanned {
    color: white;
    border-radius: 5px;
    width: 74%;
    height: 25%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

#heigthInput {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
}

#weightInput {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
}

#fiscalCodeInput {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

#phoneInput {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

#nationSearch {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

#birthDateInputDay {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

#birthDateInputMonth {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

#birthDateInputYear {
    min-height: 40px;
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.birth-date-label {
    color: #30a0e3;
    font-size: 11px;
    text-transform: lowercase;
    text-align: center;
    margin-bottom: -46px;
}

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

.phone-scanned {
    color: white;
    border-radius: 5px;
    border-radius: 5px;
    width: 74%;
    height: 20%;
    font-size: 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 0;
    margin-left: -5px;
    margin-right: 5px;
}

.fiscal-code-text {
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    width: 170px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    text-transform: uppercase;
    min-height: 23px;
    margin-top: 5px;
}

.nation-text {
    background-color: white;
    color: #0B1D29;
    border-radius: 5px;
    width: 170px;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    text-transform: uppercase;
    min-height: 23px;
    margin-top: 5px;
}

#nationModal .modal-content {
  height: 492px;
  display: flex;
  flex-direction: column;
}

#nationList {
  flex: 1; /* riempie lo spazio rimanente */
  overflow-y: auto;
}

/* Contenitore lista nazioni */
#nationList {
    scrollbar-width: auto;          /* Firefox */
    scrollbar-color: #ca2974 rgba(255,255,255,0.1);
}

/* WebKit scrollbar */
#nationList::-webkit-scrollbar {
    width: 18px;                    /* 👈 PIÙ SPESSA */
}

#nationList::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

#nationList::-webkit-scrollbar-thumb {
    background-color: #ca2974;
    border-radius: 10px;
    border: 4px solid rgba(255,255,255,0.1); /* aumenta area touch */
}

#nationList::-webkit-scrollbar-thumb:hover {
    background-color: #e03b88;
}

#nationList {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

#genderInput,
#birthDateInput {
  display: none;
}

.gender-text {
    color: white;
    border-radius: 5px;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    margin-bottom: -10px;
}

.birth-date-text {
    color: white;
    border-radius: 5px;
    width: 170px;
    height: 23px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
    text-transform: uppercase;
}

.fiscal-code-scanned {
    color: white;
    border-radius: 5px;
    width: 170px;
    height: 23px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 4px;
    text-transform: uppercase;
    margin-bottom: -10px;
}

.nation-scanned {
    color: white;
    border-radius: 5px;
    width: 170px;
    height: 23px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 10px;
    text-transform: uppercase;
    margin-bottom: -10px;
}

.weight-scanned {
    background-color: transparent;
    color: white;
    border-radius: 5px;
    width: 170px;
    height: 23px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    text-transform: uppercase;
}

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

.focus-error {
    box-shadow: 0 0 0 3px 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:#0B1D29!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: 7.5rem;
    height: 7.5rem;
    background-color: #0B1D29;
    margin-top: 30px;
    border-radius: 15%;
    color: white;
    border: none;
    margin-left: 30px;
}

#result-button-indietro{
    cursor: pointer;
    width: 7.5rem;
    height: 7.5rem;
    background-color: #0B1D29;
    margin-top: 30px;
    border-radius: 15%;
    color: white;
    border: none;
    margin-left: 30px;
}

.result-info-button {
    margin-top: 15px;
    background-image: url("/images/traicorder-ui-v2/lang/it/tasto-info.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.index-info-button {
    padding-left: 0px;
}


.vital-param-box {
    height: 60px;
    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: 70px;
    border-radius: 13px;
    background: rgb(1,3,2);
    background: linear-gradient(to right, #004a68 0%, #686e8e 72%, #ae90b0 100%);
    vertical-align: middle;
    align-items: center;
    display: flex;
    justify-content: start;
    width: 81.5%;
}

.live_canvas{
    width: 650px !important; height: 487.5px !important;
}

.info-age {
    padding-top: 0px;
    padding-left: 10px;
}

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

.psico-index-param-box{
    height: 70px;
    color: white;
    font-size: 18px;
    border-radius: 13px;
    background: rgb(1,3,2);
    background: linear-gradient(to right, #06445f 0%, #1f5072 72%, #3b5e88 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: #30a0e3;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}

.vital-icon {
    height: 35px;
    width: auto;
}

.age-icon {
    height: 60px;
    width: auto;
}

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

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

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

.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: 5px 30px 5px 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: 70px;
    right: 977px;
    width: 100px;
    height: 57px;
    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%;
    }
}

#quality-scan-bar {
    position: absolute;
    top: 607px;
    right: 498px;
    width: 134px;
    height: 16px;
    background-color: #ffeb3d;
    border-radius: 10px;
}

.spo2-icon {
    position: fixed;
    top: 440px;
    right: 984px;
    width: 63px;
    height: 60px;
    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: 75px;
    width: 65px;
    height: 63px;
    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: 440px;
    right: 75px;
    width: 65px;
    height: 52px;
    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 );
    }
}

.video-scan-1 {
    position: absolute;
    left: 25px;
    top: 35px;
}

.video-scan-2 {
    position: absolute;
    left: 945px;
    top: 45px;
}

.video-scan-3 {
    position: absolute;
    left: 35px;
    top: 415px;
}

.video-scan-4 {
    position: absolute;
    left: 946px;
    top: 410px;
}

.video-result-1 {
    position: absolute;
    top: 85px;
    left: 685px;
}

.video-result-2{
    position: absolute;
    top: 35px;
    left: 620px;
}

.video-result-3 {
    position: absolute;
    top: 40px;
    left: 650px;
}

#ambientLightModal {
    display: block;
    position: absolute;
    top: 170px;
    left: 340px;
}

#ambientLightModalContent{
    height: 335px;
}

#faceLostModal {
    display: block;
    position: absolute;
    top: 170px;
    left: 340px;
}

#faceLostModalContent{
    height: 335px;
}

#qualityIssueModal {
    display: block;
    position: absolute;
    top: 170px;
    left: 340px;
}

#qualityIssueModalContent{
    height: 335px;
}

.istruzioni-uso{
    position: absolute;
    top: 300px;
    left: 685px;
    color: white;
}

/* BACKDROP sfocato */
.risk-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3);
  display: none; /* nascosto di default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* CONTENITORE MODALE */
.risk-modal {
  background: white;
  border-radius: 20px;
  background-color: #0B1D29;
  border: 4px solid #30a0e3;
  max-width: 700px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  margin: 15% auto;    
  animation: fadeIn 0.3s ease-in-out;
}

/* CONTENUTO TESTO */
.risk-modal-title {
  font-size: 22px;
  color: #3e9c9e;
  font-weight: bold;
  margin-bottom: 15px;
}

.risk-modal-text-up {
  font-size: 16px;
  color: white;
  text-align: justify;
  margin-top: 15px;
}

.risk-modal-text-down {
  font-size: 16px;
  color: white;
  margin-top: 20px;
}


.risk-modal-btn:hover {
  transform: scale(1.05);
}

.risk-modal-btn-yes {
    background: none;
    color: white;
    font-size: 20px;
    border-radius: 10px;
    border: 3px solid white;
    width: 80px;
    height: 80px;
}

.risk-modal-btn-no {
    background: none;
    color: white;
    font-size: 20px;
    border-radius: 10px;
    border: 3px solid white;
    width: 80px;
    height: 80px;
}


/* Animazione */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}