.keyboard {
    position: fixed;
    left: 50%; /* Posiziona il div al 50% della larghezza della finestra */
    bottom: 0;
    width: 65%;
    padding: 5px 0;
    background: #ffffffa9;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    transition: bottom 0.4s;
    box-sizing: border-box; /* Aggiungi per gestire il padding */
    transform: translateX(-47%); /* Sposta l'elemento indietro di metà della sua larghezza */    
    border-radius: 15px; /* Arrotonda i bordi */

}


.keyboard--hidden {
    bottom: -100%;
}

.keyboard__keys {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra i tasti */
    text-align: center;
}

.keyboard__key {
    height: 45px;
    width: 6%;
    max-width: 90px;
    margin: 3px;
    border-radius: 4px;
    border: none;
    background: rgba(141, 138, 138, 0.949);
    color: #151414;
    font-size: 1.05rem;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    box-sizing: border-box; /* Aggiungi per gestire il padding */
}

.keyboard__key:active {
    background: rgba(16, 83, 127, 0.752);
}

.keyboard__key--wide {
    width: 12%;
}

.keyboard__key--extra-wide {
    width: 36%;
    max-width: 500px;
}

.keyboard__key--activatable::after {
    content: '';
    top: 10px;
    right: 10px;
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

.keyboard__key--active::after {
    background: #08ff00;
}

.keyboard__key--dark {
    background: rgba(0, 0, 0, 0.25);
}

/* Aggiungi una classe per gestire l'interruzione di riga */
.keyboard__key--line-break {
    flex-basis: 100%; /* Forza l'interruzione di riga */
    height: 0; /* Nasconde l'altezza */
    margin: 0; /* Rimuove il margine */
}

/* Stili per la finestra di dialogo personalizzata */
.custom-prompt {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px; /* Aumenta il padding */
    border: 1px solid #ccc;
    z-index: 10000;
    width: 800px; /* Imposta la larghezza desiderata */
    height: 400px; /* Imposta l'altezza desiderata */
    border-radius: 10px; /* Aggiungi un bordo arrotondato */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Aggiungi una leggera ombra */
}

.custom-prompt__message {
    margin-bottom: 20px; /* Aumenta il margine inferiore */
    font-size: 18px; /* Aumenta la dimensione del testo */
}

.custom-prompt__input {
    width: calc(100% - 20px); /* Larghezza dell'input meno il padding */
    padding: 10px;
    margin-bottom: 20px; /* Aumenta il margine inferiore */
    border: 1px solid #ccc;
    border-radius: 5px; /* Aggiungi un bordo arrotondato */
    font-size: 16px; /* Aumenta la dimensione del testo */
}

.custom-prompt__buttons {
    display: flex;
    justify-content: flex-end;
}

.custom-prompt__buttons {
    display: flex;
    justify-content: center; /* Centra i pulsanti */
    margin-top: 70px; /* Aggiungi spazio sopra i pulsanti */
}

.custom-prompt__button {
    padding: 40px 60px; /* Aumenta il padding */
    margin: 0 40px; /* Aggiungi margine tra i pulsanti */
    border: none;
    cursor: pointer;
    border-radius: 8px; /* Aumenta il raggio del bordo */
    font-size: 24px; /* Aumenta la dimensione del font */
    min-width: 150px; /* Imposta una larghezza minima */
}

.custom-prompt__button--ok {
    background: #4CAF50;
    color: white;
}

.custom-prompt__button--cancel {
    background: #f44336;
    color: white;
}


