#keyboardInputMaster,
#keyboardInputMaster thead tr td span:hover,
#keyboardInputMaster thead tr td strong:hover {
    background-color: #ddd
}

#keyboardInputMaster {
    position: absolute;
    border-top: 1px solid #eee;
    border-right: 1px solid #6e6e6e;
    border-bottom: 1px solid #6e6e6e;
    border-left: 1px solid #eee;
    border-radius: .4em;
    -moz-border-radius: .4em;
    -webkit-border-radius: .4em;
    box-shadow: 0 2px 10px #444;
    -moz-box-shadow: 0 2px 10px #444;
    -webkit-box-shadow: 0 2px 10px #444;
    opacity: .95;
    filter: alpha(opacity=95);
    text-align: left;
    z-index: 1000000;
    width: auto;
    margin: 0;
    line-height: normal
}

#keyboardInputMaster * {
    position: static;
    color: #000;
    background: 0 0;
    font: 400 11px Arial, sans-serif;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    line-height: 1.3em
}

#keyboardInputMaster.keyboardInputSize1 * {
    font-size: 9px
}

#keyboardInputMaster.keyboardInputSize3 * {
    font-size: 13px
}

#keyboardInputMaster.keyboardInputSize4 * {
    font-size: 16px
}

#keyboardInputMaster.keyboardInputSize5 * {
    font-size: 20px
}

#keyboardInputMaster thead tr td,
#keyboardInputMaster thead tr th {
    padding: .4em .3em .2em;
    background-color: #51a463;
    white-space: nowrap
}

#keyboardInputMaster thead tr th {
    text-align: left;
    width: 170px
}

#keyboardInputMaster thead tr th abbr {
    font-size: 1.3em;
    font-weight: 700;
    text-decoration: none;
    margin-right: 4%;
    vertical-align: middle
}

#keyboardInputMaster thead tr th label input,
#keyboardInputMaster thead tr th select {
    margin-right: 3%;
    border: 1px inset #888;
    background-color: #f6f6f6;
    vertical-align: middle;
    font-size: inherit
}

#keyboardInputMaster thead tr th label input {
    width: 1.1em;
    height: 1.1em
}

#keyboardInputMaster thead tr td {
    text-align: right;
    vertical-align: middle
}

#keyboardInputMaster thead tr td span,
#keyboardInputMaster thead tr td strong {
    display: inline-block;
    padding: 0 .5em;
    height: 1.5em;
    line-height: 1.5em;
    border-top: 1px solid #e5e5e5;
    border-right: 1px solid #5d5d5d;
    border-bottom: 1px solid #5d5d5d;
    border-left: 1px solid #e5e5e5;
    background-color: #ccc;
    cursor: pointer;
    margin: 0 0 0 .3em;
    border-radius: .3em;
    -moz-border-radius: .3em;
    -webkit-border-radius: .3em
}

#keyboardInputMaster thead tr td strong {
    font-weight: 700
}

#keyboardInputMaster tbody tr td {
    text-align: left;
    padding: .2em .3em .3em
}

#keyboardInputMaster tbody tr td div {
    text-align: center;
    position: relative;
    height: 0
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout {
    height: auto;
    zoom: 1
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table {
    height: 1.8em;
    white-space: nowrap;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table.keyboardInputCenter {
    width: auto;
    margin: 0 auto
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td {
    vertical-align: middle;
    padding: 0.8em 1em;
    white-space: pre;
    font-family: 'Lucida Console', 'Arial Unicode MS', monospace;
    border-top: 1px solid #e5e5e5;
    border-right: 1px solid #5d5d5d;
    border-bottom: 1px solid #5d5d5d;
    border-left: 1px solid #e5e5e5;
    background-color: #eee;
    cursor: default;
    min-width: .75em;
    border-radius: .2em;
    -moz-border-radius: .2em;
    -webkit-border-radius: .2em
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td.last {
    width: 99%
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td.space {
    padding: 0 4em
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td.alive {
    background-color: #ccd
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td.target {
    background-color: #ddc
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td.hover {
    border-top: 1px solid #d5d5d5;
    border-right: 1px solid #555;
    border-bottom: 1px solid #555;
    border-left: 1px solid #d5d5d5;
    background-color: #ccc
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td.dead,
#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td.pressed,
#keyboardInputMaster thead tr td span.pressed {
    border-top: 1px solid #555;
    border-right: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
    border-left: 1px solid #555;
    background-color: #ccc
}

#keyboardInputMaster tbody tr td div#keyboardInputLayout table tbody tr td span {
    display: block;
    text-align: center;
    font-size: .6em;
    white-space: pre
}

#keyboardInputMaster tbody tr td div var {
    position: absolute;
    bottom: 0;
    right: 0;
    font-weight: 700;
    font-style: italic;
    color: #444
}

.keyboardInputInitiator {
    margin: 0 3px;
    vertical-align: middle;
    cursor: pointer
}