.learning-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.display {
    font-size: min(120px, 25vw);
    margin: 20px;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 120px;
    text-align: center;
    width: 95%;
    max-width: 600px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e0e0e0;
    color: #2c3e50;
    font-weight: 700;
}

.progress {
    width: 90%;
    max-width: 800px;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    margin: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.3s ease;
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    width: 90%;
    max-width: 800px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px;
}

.key {
    padding: min(15px, 3vw);
    font-size: min(24px, 5vw);
    text-align: center;
    background-color: #e0e0e0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-weight: 700;
}

.key:hover {
    background-color: #d0d0d0;
}

.key:active {
    background-color: #c0c0c0;
    transform: scale(0.95);
}

.key.correct {
    background-color: #2ecc71;
    color: white;
}

.key.wrong {
    background-color: #e74c3c;
    color: white;
}

@media (max-width: 768px) {
    .keyboard {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
        padding: 10px;
    }

    .key {
        padding: min(12px, 2.5vw);
        font-size: min(20px, 4.5vw);
    }

    .display {
        font-size: min(100px, 20vw);
        padding: 20px;
        min-height: 150px;
        margin: 15px;
    }
} 