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

body {
    margin: 0;
    font-family: "Arial", Helvetica, sans-serif;
    background-color: #000;
}

body.bg-dark {
    background-color: #000;
}

body.bg-dark .switcher {
    color: white;
}

body.bg-dark .base {
    background-color: #202020;
}

body.bg-dark .key {
    border-color: #666 #333 black #333;
    background-color: #202020;
}

body.bg-dark .col {
    color: #ff0000;
    border-color: #ff0000;
}

body.bg-white {
    background-color: #fff;
}

body.bg-white .switcher {
    color: black;
}

body.bg-white .base {
    background-color: #282828;
}

body.bg-white .key {
    border-color: #777 #555 #555 #555;
    background-color: #3a3a3a;
}

body.bg-white .col {
    color: #990000;
    border-color: #990000;
}

body.board-white {
    background-color: #fff;
}

body.board-white .switcher {
    color: black;
}

body.board-white .base {
    background-color: #c5c5c5;
}

body.board-white .key {
    color: black;
    border-color: #999 #777 #666 #777;
    background-color: #f3f3f3;
    line-height: 1.2;
}

body.board-white .col {
    color: #900000;
    border-color: #900000;
}

body.board-white .green {
    background: #009900 !important;
    border-color: #009900 !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto;
}

body.board-white .yellow {
    background: yellow !important;
    border-color: yellow !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto;
}

body.board-white .red {
    background: red !important;
    border-color: red !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto;
}



.base {
    position: relative;
    transform: scale(0.7);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(30, 30px);
    grid-template-rows: repeat(5, 60px);
    grid-gap: 5px;
    border-bottom: 3px solid #777;
    border-radius: 10px;
    background-color: #202020;
}

@media (max-width: 768px) {
    .base {
        transform: scale(0.5);
    }
}

@media (max-width: 540px) {
    .base {
        transform: scale(0.3);
    }
}

.base .stand {
    position: absolute;
    z-index: -1;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    border-bottom: 4px solid #777;
    border-radius: 0 0 100% 100%;
    background-color: inherit;
    transition: all 200ms ease;
}

.base .stand.open {
    height: 180px;
}

.key {
    padding-top: 17px;
    grid-column: span 2;
    text-align: center;
    font-size: 20px;
    color: white;
    cursor: pointer;
    border-color: #666 #333 black #333;
    border-style: solid;
    border-width: 1px 2px 4px 2px;
    border-radius: 5px;
    background-color: #202020;
}

.key:active,
.key.active {
    transform: translateY(4px) scale(0.98);
    border-bottom-width: 2px;
}

.key:focus {
    outline: none;
}

.key svg {
    fill: black;
}

.key.col {
    color: red;
    border-color: red;
}

.key.red {
    color: red !important;
    border-color: red !important;
}

.key.red svg {
    fill: #ff0000;
}

.key.green {
    color: #00ff00 !important;
    border-color: #00ff00 !important;
}

.key.green svg {
    fill: #00ff00;
}

.key.delete {
    grid-column: span 4;
}

.key.tab {
    grid-column: span 3;
}

.key.backslash {
    grid-column: span 3;
}

.key.capslock {
    grid-column: span 4;
}

.key.return {
    grid-column: span 4;
}

.key.leftshift {
    grid-column: span 5;
}

.key.rightshift {
    grid-column: span 5;
}

.key.leftctrl {
    grid-column: span 3;
}

.key.command {
    grid-column: span 2;
    padding-top: 14px;
}

.key.rightctrl {
    grid-column: span 3;
}

.key.gr {
    grid-column: span 3;
}

.key.space {
    grid-column: span 13;
}

.switcher {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    text-transform: uppercase;
    color: white;
}
.board-white .simple-keyboard-preview {
    border: 5px solid dimgray;
    background: white;
    position: relative;
    clear: both;
    top: 15px;
}
.bg-dark .simple-keyboard-preview {
    background: #2e2e2e;
    border: 10px solid rgba(0,0,0,.1);
}
.simple-keyboard-preview {
    margin: auto;
    text-align: center;
    transition: background .3s ease-in-out;
    height: 100px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    padding: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 90%;
}
.simple-keyboard-preview textarea {
    word-spacing: 3px;
    font-family: "Arial", Helvetica, sans-serif;
    font-size: 18px;
}
.simple-keyboard-preview .preview-word {
    position: absolute;
    text-align: right;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: white;
    padding: 10px 15px;
    word-spacing: 3px;
    overflow-y: hidden;
    font-family: "Arial", Helvetica, sans-serif;
    font-size: 20px;
}
.board-white .simple-keyboard-preview .preview-word .typed{
    color: red;
    font-weight: 100;
}
.board-white .simple-keyboard-preview .preview-word .typing{
    color: #555;
    font-weight: 100;
}
.bg-dark .simple-keyboard-preview .preview-word .typed{
    color: red;
    font-weight: 100;
}
.bg-dark .simple-keyboard-preview .preview-word .typing{
    color: white;
    font-weight: 100;
}
.bg-dark .key-input {
    color: white;
}
.board-white .key-input {
    color: #555;
}
.key-input {
    text-align: right;
    color: hsla(0,0%,100%,.9);
    background: 0 0;
    border: none;
    outline: 0;
    font-family: monospace;
    width: 100%;
    height: 100%;
    font-size: 18px;
}
textarea {
/*    overflow: auto;*/
    resize: vertical;
}
.keyboard-panel {
    padding-top: 15px;
}
.bg-dark .pkey {
    background-color: white!important;
    color: #333!important;
}
/*.board-white .pkey {
    background-color: yellow !important;
}*/
.char-key {
    padding: 5px!important;
    text-align: left;
}

.spaceCursor {
    background: yellow;
    opacity: .9;
    margin: 0px 3px;
}

.checkDiv{
    display: flex;
    align-items: center;
}   

#myCheck{
    width: 20px;
    height: 20px;
}

.ml-10{
    margin-left: 10px;
}

.mb-20{
    margin-bottom: 20px;
}

.redIcon{
    color: red;
    margin-left: 10px;
}