/* Virtual keyboard caa */
.virtual-keyboard-container {
    width: 58%;
    position: fixed;
    bottom: 0;
    /* left: 0; */
    right: 21%;
    background: #283046;
    padding: 10px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    /* border-radius: 8px 8px 0 0; */
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 10px;
}

.keyboard-close-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.keyboard-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    /* gap: 5px; */
    /* max-width: 800px; */
    margin: 0 auto;
}

.keyboard-key {
    background: #14141459;
    color: #eeeeee;
    border: 1px solid rgb(57, 64, 83);
    border-radius: 1px;
    padding: 6px 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.keyboard-key:hover {
    background: #141414ec;
    color: rgb(255, 255, 255);
}
.keyboard-key.shift:hover {
    background: #141414ec;
    color: rgb(255, 255, 255);
}

.shift-active{
    background: #141414ec;
    color: rgb(255, 255, 255);
}

.keyboard-key:active {
    background: #d0d0d0;
}

.keyboard-key.backspace {
    grid-column: span 2;
}

.keyboard-key.space {
    grid-column: span 6;
}
.keyboard-key.shift{
    color: #000000;
}
.keyboard-key.shift,
.keyboard-key.caps,
.keyboard-key.close {
    background: #14141459;
    color: #eeeeee
}

.keyboard-key.enter {
    grid-column: span 2;
}

/* Target the last row specifically */
.keyboard-grid > .keyboard-key:nth-last-child(-n+4) {
    display: flex;
    justify-content: center;
    gap: 5px;
    width: 100%;
}
#armenianKeyboard {
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    pointer-events: auto;
}

#armenianKeyboard * {
    pointer-events: none;
}

#armenianKeyboard button {
    pointer-events: auto;
}
@media (max-width: 768px) {
    .keyboard-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .keyboard-key {
        padding: 8px;
        font-size: 12px;
    }

    .keyboard-grid > .keyboard-key:nth-last-child(-n+4) .keyboard-key {
        min-width: 40px;
    }

    .keyboard-grid > .keyboard-key:nth-last-child(-n+4) .keyboard-key.space {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .keyboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .keyboard-key {
        padding: 6px;
        font-size: 11px;
    }
    .keyboard-grid > .keyboard-key:nth-last-child(-n+4) .keyboard-key {
        min-width: 30px;
        padding: 4px;
    }

    .keyboard-grid > .keyboard-key:nth-last-child(-n+4) .keyboard-key.space {
        max-width: 150px;
    }
}
#oldCaptcha img {
    height: 30px !important;
}
/* Armenian Virtual Keyboard Styles */
#armenianKeyboard {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: #2c3e50;
padding: 10px;
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
z-index: 1000;
display: none;
/* border-top-left-radius: 20px;
border-top-right-radius: 20px; */
transition: transform 0.3s ease;
}

.keyboard-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 10px;
border-bottom: 1px solid #3d5267;
margin-bottom: 10px;
}

.keyboard-title {
color: white;
font-weight: 600;
font-size: 1.1rem;
display: flex;
align-items: center;
gap: 10px;
}

.keyboard-close-btn {
background: #e74c3c;
color: white;
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
font-size: 1.2rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
}

.keyboard-close-btn:hover {
background: #c0392b;
transform: scale(1.05);
}

#keyboardLayout {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 6px;
width: 100%;
}

.keyboard-key {
background: #34495e;
color: white;
border: none;
border-radius: 8px;
padding: 12px 0;
font-size: 1.1rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 3px 0 #2c3e50;
transition: all 0.1s;
user-select: none;
font-family: 'Noto Sans Armenian', Arial, sans-serif;
height: 45px;
}

.keyboard-key:active {
transform: translateY(3px);
box-shadow: none;
background: #3d5267;
}

.keyboard-key.shift {
background: #3498db;
grid-column: span 2;
}

.keyboard-key.space {
background: #27ae60;
grid-column: span 5;
}

.keyboard-key.enter {
background: #9b59b6;
grid-column: span 2;
}

.keyboard-key.backspace {
background: #e74c3c;
grid-column: span 2;
}

.keyboard-key.special {
background: #f39c12;
}

/* Responsive adjustments */
@media (max-width: 768px) {
#keyboardLayout {
    gap: 4px;
}

.keyboard-key {
    padding: 10px 0;
    font-size: 1rem;
    height: 40px;
}
}

@media (max-width: 480px) {
.keyboard-key {
    padding: 8px 0;
    font-size: 0.9rem;
    border-radius: 6px;
    height: 38px;
}

.keyboard-title {
    font-size: 0.9rem;
}

.keyboard-close-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
}
}

/* Animation for keyboard appearance */
@keyframes slideUp {
from {
    transform: translateY(100%);
}
to {
    transform: translateY(0);
}
}

#armenianKeyboard[style*="block"] {
animation: slideUp 0.3s ease;
}

/* Key press animation */
@keyframes keyPress {
0% {
    transform: translateY(0);
    box-shadow: 0 3px 0 #2c3e50;
}
50% {
    transform: translateY(3px);
    box-shadow: none;
}
100% {
    transform: translateY(0);
    box-shadow: 0 3px 0 #2c3e50;
}
}

.keyboard-key:active {
    animation: keyPress 0.15s ease;
}

/* Add Armenian font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;700&display=swap');

