* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    overflow-y: scroll;
    background-color: black;
}
html, body {
    height: 100%;
}
body {
    font-family: Verdana, Helvetica, Arial, Sans-Serif;
    font-size: 87.5%;
    line-height: 24px;
    color: #464646;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(stars.png);
    background-position: center;
    filter: opacity(25%);
    pointer-events: none;
}
#page {
    filter: invert(1);
    padding: 20px;
}
.hidden {
    display: none;
}

.editor-container {
    margin-bottom: 20px;
}
.editor-pane {
    display: inline-block;
    vertical-align: top;
    width: 31vw;
    height: 350px;
    margin: 0 10px 10px 0;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.2s;
    resize: both;
    overflow: hidden;
}
.editor-pane.focused {
    border-color: #057cb5;
}
.editor-pane-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}
.editor-title {
    flex: 1;
    font-weight: bold;
    font-size: 1em;
    color: #057cb5;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 4px 6px;
    font-family: inherit;
}
.editor-title:hover {
    border-color: #ccc;
}
.editor-title:focus {
    outline: none;
    border-color: #057cb5;
    background: #fff;
}
.delete-pane {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.delete-pane:hover {
    background: #c0392b;
}
.editor-textarea {
    display: block;
    width: 100%;
    height: calc(100% - 35px);
    box-sizing: border-box;
    background: #dddc;
    font-family: Verdana, Helvetica, Arial, Sans-Serif;
    color: #464646;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    overflow: auto;
}
.editor-textarea:focus {
    background: #ddd;
    outline: none;
}

#action {
    text-align: left;
    margin-bottom: 20px;
}
#action button {
    padding: .5em;
    font-size: 1.2em;
    min-width: 2em;
    vertical-align: middle;
    cursor: pointer;
}
.button {
    display: inline-block;
    padding: 0 5px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 5px;
}

#kb-keyboard {
    line-height: 20px;
    font-size: 1em;
}
#kb-keyboard button {
    float: left;
    display: block;
    margin: 1px;
    height: 3em;
    text-align: center;
    color: gray;
}
#kb-keyboard .kb-label-natural {
    color: #e0115f;
}
#kb-keyboard .kb-label-shift {
    color: #057cb5;
}
#kb-keyboard .kb-label-natural,
#kb-keyboard .kb-label-shift {
    margin-top: -5px;
    line-height: 20px;
    text-align: center;
    cursor: default;
}
#kb-keyboard .kb-label-reference {
    color: gray;
    font-size: .9em;
    line-height: 12px;
    text-align: left;
    cursor: default;
}
#kb-keyboard .kb-recessed span {
    color: #3C0;
}
#kb-keyboard .kb-recessed-hover span {
    color: #ffd800;
}
#kb-keyboard .kb-clear {
    clear: both;
}

input[type='checkbox'] {
    display: none;
}
.wrap-collapsible {
    margin: 1.2rem 0;
}
.lbl-toggle {
    display: block;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    color: #757575;
    background: #e4e4e4;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.25s ease-out;
}
.lbl-toggle:hover {
    color: #000;
}
.lbl-toggle::before {
    content: ' ';
    display: inline-block;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid currentColor;
    vertical-align: middle;
    margin-right: .7rem;
    transform: translateY(-2px);
    transition: transform .2s ease-out;
}
.toggle:checked + .lbl-toggle::before {
    transform: rotate(90deg) translateX(-3px);
}
.collapsible-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height .25s ease-in-out;
}
.toggle:checked + .lbl-toggle + .collapsible-content {
    max-height: 650px;
    overflow: scroll;
}
.toggle:checked + .lbl-toggle {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.collapsible-content .content-inner {
    background: rgba(0, 105, 255, .2);
    border-bottom: 1px solid rgba(0, 105, 255, .45);
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    padding: .5rem 1rem;
}
.info-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 105, 255, .3);
}

@media only screen and (max-width: 640px) {
    .editor-pane {
        width: 100%;
    }
    #kb-keyboard button {
        width: 88px;
    }
    #kb-keyboard .kb-key {
        width: 43px;
    }
}
@media only screen and (min-width: 641px) {
    #kb-keyboard {
        width: 630px;
    }
    #kb-keyboard button {
        line-height: 2.75em;
    }
    #kb-keyboard .kb-key {
        width: 40px;
    }
    #kb-keyboard #kb-backspace {
        width: 78px;
    }
    #kb-keyboard #kb-tab {
        width: 62px;
    }
    #kb-keyboard #kb-k25 {
        width: 56px;
    }
    #kb-keyboard #kb-caps-lock {
        width: 76px;
    }
    #kb-keyboard #kb-enter {
        width: 84px;
    }
    #kb-keyboard #kb-left-shift {
        width: 46px;
    }
    #kb-keyboard #kb-right-shift {
        width: 114px;
    }
    #kb-keyboard #kb-space {
        width: 246px;
        text-align: center;
    }
    #kb-keyboard #kb-right-ctrl,
    #kb-keyboard #kb-right-alt,
    #kb-keyboard #kb-escape {
        width: 62px;
    }
    #kb-keyboard #kb-left-ctrl,
    #kb-keyboard #kb-left-alt {
        width: 60px;
    }
}
