.virtual-keyboard {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    gap: 5px;
}

.virtual-key {
    min-width: 35px;
    height: 45px;
    margin: 0 2px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-transform: uppercase;
}

.virtual-key:active {
    background-color: #e0e0e0;
}

.keyboard-toggle {
    position: fixed;
    bottom: 80px;
    right: 10px;
    width: 45px;
    height: 45px;
    padding: 8px;
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.keyboard-toggle:hover {
    background-color: #f0f0f0;
}

/* Specific styling for special keys */
.virtual-key[data-key="⌫"],
.virtual-key[data-key="⌦"] {
    min-width: 50px;
    background-color: #e0e0e0;
    font-size: 20px;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .virtual-key {
        min-width: 28px;
        height: 40px;
        font-size: 16px;
        padding: 4px;
        margin: 0 1px;
    }

    .virtual-keyboard {
        padding: 5px;
    }
    
    .keyboard-toggle {
        bottom: 70px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
