* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    text-align: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    color: #e0e0e0;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
}

.keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #0f0f1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    width: fit-content;
    margin: 0 auto;
}

.key-row {
    display: flex;
    gap: 8px;
}

.key {
    width: 50px;
    height: 50px;
    background: rgba(220, 53, 53, 0.25);
    border: 1.5px solid rgba(220, 53, 53, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #d0d0d0;
    transition: all 0.15s ease;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 8px rgba(220, 53, 53, 0.2);
}

.key:hover {
    background: rgba(220, 53, 53, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 12px rgba(220, 53, 53, 0.3);
}

.key.active {
    background: rgba(52, 211, 153, 0.4);
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: inset 0 0 12px rgba(52, 211, 153, 0.3), 0 0 16px rgba(52, 211, 153, 0.25);
}

.key.wide {
    width: 75px;
}

.key.extra-wide {
    width: 100px;
}

.spacebar {
    width: 400px;
}

.key span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.1;
}

@media (max-width: 1200px) {
    .keyboard {
        transform: scale(0.85);
        transform-origin: center;
    }
}

@media (max-width: 900px) {
    .keyboard {
        transform: scale(0.75);
        transform-origin: center;
    }
}

.footer {
    margin-top: 40px;
    font-size: 12px;
    color: #8a8a9e;
    letter-spacing: 0.5px;
}

.footer a {
    color: #34d399;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #6ee7b7;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .keyboard {
        transform: scale(0.6);
        transform-origin: center;
    }
}
