body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
}

.keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #333;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.key {
    background: linear-gradient(to bottom, #555, #444);
    color: white;
    padding: 15px;
    margin: 3px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 #333, 0 6px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    position: relative;
}

.key:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #333, 0 3px 3px rgba(0, 0, 0, 0.3);
}

.key.active {
    background: linear-gradient(to bottom, #ffcc00, #e6b800);
    color: #333;
    box-shadow: 0 2px 0 #ccaa00, 0 3px 3px rgba(0, 0, 0, 0.3);
}

.key.space {
    width: 50px;
}

.key.backspace,
.key.tab,
.key.caps,
.key.enter,
.key.shift,
.key.fn,
.key.ctrl,
.key.option,
.key.command {
    width: 100px;
}

.key.left-shift,
.key.right-shift,
.key.left-ctrl,
.key.right-ctrl,
.key.left-option,
.key.right-option,
.key.left-command,
.key.right-command {
    width: 80px;
}

/* Special styling for modifier keys */
.key.fn,
.key.ctrl,
.key.option,
.key.command {
    background: linear-gradient(to bottom, #666, #555);
    font-size: 12px;
}

.key.fn:active,
.key.ctrl:active,
.key.option:active,
.key.command:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #444, 0 3px 3px rgba(0, 0, 0, 0.3);
}

.key.fn.active,
.key.ctrl.active,
.key.option.active,
.key.command.active {
    background: linear-gradient(to bottom, #ffcc00, #e6b800);
    color: #333;
    box-shadow: 0 2px 0 #ccaa00, 0 3px 3px rgba(0, 0, 0, 0.3);
}