@font-face {
font-family: 'FontAwesome';
src: url(//crtp.edu.pe/home/wp-content/plugins/tecladogriegok/assets/fonts/fontawesome-webfont.woff2) format('woff2'),
url(//crtp.edu.pe/home/wp-content/plugins/tecladogriegok/assets/fonts/fontawesome-webfont.woff) format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}  :root { --color-principal: #333;
--color-fondo-claro: #f5f5f5;
--color-tecla: #e0e0e0;
--color-tecla-activa: #4CAF50;
--color-texto: #000;
--color-texto-activo: white;
--color-copiar: #fffacd;
--color-copiado: #4CAF50;
--color-especial: #d0e0ff;
--color-limpiar: #ffdddd;
--color-dead-key: #ffcccb;
--color-dead-key-activo: #ff6666; --tamano-gap: 7px;
--padding-contenedor: 20px;
--padding-teclado: 14px;
--border-ancho: 2px;
--border-radio: 5px; --tamano-fuente-principal: 33.6px;
--tamano-fuente-tecla: 25.2px;
--tamano-fuente-tecla-especial: 18px;
--tamano-fuente-griego: 16.8px; --tamano-tecla: 70px;
--ancho-tecla-espacio: 420px;
--ancho-tecla-larga: 98px; --ancho-tecla-muy-larga: 126px; } body .teclado-griego-container {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
padding: var(--padding-contenedor);
background-color: var(--color-fondo-claro);
margin: 0;
touch-action: manipulation;
} body .teclado-griego-container .text-display {
width: 1160px;
max-width: none;
height: 210px;
min-height: 100px;
margin: 0 auto 20px;
padding: var(--padding-teclado);
font-size: var(--tamano-fuente-principal);
border: var(--border-ancho) solid var(--color-principal);
border-radius: var(--border-radio);
background-color: white;
resize: none;
text-align: left;
line-height: 1.5;
overflow-y: auto;
box-sizing: border-box;
white-space: pre-wrap;
} body .teclado-griego-container .keyboard-container {
width: 100%;
overflow-x: auto;
padding-bottom: 10px;
-webkit-overflow-scrolling: touch;
} body .teclado-griego-container .keyboard {
display: flex;
flex-direction: column;
gap: var(--tamano-gap);
margin: 0 auto;
padding: var(--padding-teclado);
min-width: min-content;
}
body .teclado-griego-container .keyboard-row {
display: flex;
gap: var(--tamano-gap);
justify-content: center;
flex-wrap: nowrap;
} body .teclado-griego-container .key {
width: var(--tamano-tecla);
height: var(--tamano-tecla);
min-width: 56px; min-height: 56px;
display: flex;
justify-content: center;
align-items: center;
background-color: var(--color-tecla);
border: var(--border-ancho) solid var(--color-texto);
border-radius: var(--border-radio);
font-size: var(--tamano-fuente-tecla);
font-weight: bold;
color: var(--color-texto);
cursor: pointer;
user-select: none;
transition: all 0.1s ease; position: relative;
touch-action: manipulation;
}
body .teclado-griego-container .key:active,
body .teclado-griego-container .key.active {
background-color: var(--color-tecla-activa);
color: var(--color-texto-activo);
transform: translateY(2px) scale(0.95);
} body .teclado-griego-container .key.space {
width: var(--ancho-tecla-espacio);
}
body .teclado-griego-container .key.tab,
body .teclado-griego-container .key.caps,
body .teclado-griego-container .key.shift {
width: var(--ancho-tecla-larga);
}
body .teclado-griego-container .key.enter,
body .teclado-griego-container .key.backspace {
width: var(--ancho-tecla-muy-larga);
} body .teclado-griego-container .key.copy,
body .teclado-griego-container .key.special,
body .teclado-griego-container .key.clear {
width: var(--ancho-tecla-muy-larga);
min-width: var(--ancho-tecla-muy-larga);
height: var(--tamano-tecla);
font-size: var(--tamano-fuente-tecla-especial);
display: flex; justify-content: center;
align-items: center;
}
body .teclado-griego-container .key.copy {
background-color: var(--color-copiar);
transition: all 0.3s ease;
}
body .teclado-griego-container .key.copy.copied {
background-color: var(--color-copiado);
color: var(--color-texto-activo);
}
body .teclado-griego-container .key.special {
background-color: var(--color-especial);
}
body .teclado-griego-container .key.clear {
background-color: var(--color-limpiar);
} body .teclado-griego-container .greek-char {
position: absolute;
bottom: 7px;
right: 7px;
font-size: var(--tamano-fuente-griego);
color: var(--color-texto);
font-weight: bold;
}
body .teclado-griego-container .key.active .greek-char {
color: var(--color-texto-activo);
} body .teclado-griego-container .dead-key {
background-color: var(--color-dead-key);
}
body .teclado-griego-container .dead-key.active {
background-color: var(--color-dead-key-activo);
animation: pulse 0.5s ease-in-out; }
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
} @media (max-width: 768px) { body .teclado-griego-container .text-display {
width: 95%;
font-size: 7vw;
height: 21vw;
}
body .teclado-griego-container .key {
width: 11.2vw;
height: 11.2vw;
font-size: 5.6vw;
}
body .teclado-griego-container .key.copy,
body .teclado-griego-container .key.special,
body .teclado-griego-container .key.clear {
width: 23vw;
min-width: 23vw;
font-size: 14px; }
body .teclado-griego-container .greek-char {
font-size: 3.5vw;
}
body .teclado-griego-container .key.tab,
body .teclado-griego-container .key.caps,
body .teclado-griego-container .key.shift {
width: 16.8vw;
}
body .teclado-griego-container .key.enter,
body .teclado-griego-container .key.backspace {
width: 23vw;
}
body .teclado-griego-container .key.space {
width: 56vw;
}
} body .teclado-griego-container .key.tecla-deshabilitada {
opacity: 0.5;
pointer-events: none;
}
body .teclado-griego-container .key.vocal-activa {
background-color: var(--color-dead-key-activo);
color: var(--color-texto-activo);
animation: pulse 0.5s ease-in-out;
}
body .teclado-griego-container .key.active {
background-color: var(--color-tecla-activa);
color: var(--color-texto-activo);
}
body .teclado-griego-container .key.copied {
background-color: var(--color-copiado);
color: var(--color-texto-activo);
} #modal-griego {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
#modal-contenido {
background: white;
padding: 20px;
border-radius: var(--border-radio);
max-width: 90%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
#modal-contenido button {
background-color: var(--color-tecla);
border: var(--border-ancho) solid var(--color-principal);
border-radius: var(--border-radio);
padding: 10px;
margin: 5px 0;
font-size: var(--tamano-fuente-tecla);
cursor: pointer;
transition: all 0.2s ease;
}
#modal-contenido button:hover {
background-color: var(--color-tecla-activa);
color: var(--color-texto-activo);
}
#btn-salir-modal {
position: absolute;
top: 20px;
right: 20px;
padding: 10px 15px;
background-color: var(--color-limpiar);
border: none;
border-radius: var(--border-radio);
cursor: pointer;
font-weight: bold;
} .elementor-widget-icon i.fa,
.elementor-widget-icon i.fas,
.elementor-widget-icon i.far,
.elementor-widget-icon i.fab {
font-family: 'FontAwesome' !important;
}