* {
    box-sizing: border-box;
}
:root {
    --bg: white;
    --hoverBG: rgb(228, 228, 228);
    --color: black;
    --light: #c8ccd0;
    --hover: rgb(255, 0, 0);
    /* --link: rgb(7, 7, 7); */
    --icon: brown;
    --border: 1px solid #c8ccd0;
    --higlight-border: 1px solid #047ffa;

}
input, button, textarea {
    padding: 5px;
    outline: none;
    border: var(--border);
}
input:hover, input:focus, button:focus, textarea:focus {
    border: var(--higlight-border);
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--color);
}

.overlay {
    position: fixed;
    z-index: 10;
    visibility: visible;
    top: 0;
    height: 100vh;
    width: 100%;
    background: rgba(116, 116, 116, 0.4);
    transition: visibility .3s ease-in-out;
}
.hidden {
    visibility: hidden;
}
hr {
    border: var(--border);
}
.row {
    margin-right: 0px;
    margin-left: 0px;
    display: flex;
    flex-direction: row;
}
.col {
    margin: 5px;
}
.katex-mathml {
    display: none;
}
blockquote {
    background: rgb(44, 44, 44);
    color: var(--light);
    border-left: 10px solid rgb(20, 20, 20);
    padding: 10px;
}

td, th {
    border: var(--border);
    padding: 7px;
}

@media (max-width: 699.9px) {
    
    ::-webkit-scrollbar {
        width: 0px;
        display: none;
    }
    
    #editor-toolbar  {
        --toolbar-height: 50px;
    }
    #editor-toolbar button.lg {
        display: none;
    }
}

@media (min-width: 700px) {
    
    #editor-toolbar  {
        --toolbar-height: 50px;
    }
}
#editor {
    --ewidth: 100%;
    --ebg: white;
    position: relative;
    width: var(--ewidth);
    margin-top: 10px;
}
#editor-toolbar  {
    width: var(--ewidth);
    background: var(--ebg);
    height: var(--toolbar-height);
    border: var(--border);
    padding: 3px;
    display: flex;
    flex-direction: row;
}
#editor-toolbar button {
    height: var(--toolbar-height-3px);
    cursor: pointer;
    margin-right:5px;
    padding: 0px 10px;
    background: var(--ebg);
    color: var(--color);
    border: 1px solid var(--ebg);
}
#editor-toolbar button:hover, #editor-toolbar button:active, #editor-toolbar button.active {
    color: var(--icon);
    background: var(--hoverBG);
    border: var(--border);
}
#editor-textarea textarea {
    width: 100%;
    resize: none;
    padding: 10px;
    background: var(--bg);
    color: var(--color);
    display: flex;
    flex-direction: row;
    align-content: center;
}


.editor-prompt {
    display: none;
    border: var(--border);
    border-top: none;
    position: absolute;
    width: 100%;
    z-index: 2;
    padding: 16px;
    background-color: #FFF;
    box-shadow: 0 2px 8px rgba(59,64,69,0.1);

}
.editor-prompt.open {
    display: block;
}

#keyboard {
    background: white;
    position: fixed;
    z-index: 2;
    bottom: 0px;
    display: flex;
    flex-direction: column;
    border-top: 3px solid grey;
    width: 100%;
}


#keyboard #keyboard-ribbon{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#keyboard .rows{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#keyboard #keyboard-ribbon input{
    border: 4px solid transparent;
    font-size: 15px;
    cursor: pointer;
    padding: 5px;
    background: none;
    margin: 0px 10px;
}

#keyboard .tab-button.active {
    border-bottom: 4px solid blue;
}

#keyboard ul {
    padding: 0px;
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 2px 0px;
}

#keyboard ul .key {
    
    height: 50px;
    width: 50px;
    font-size: 20px;
    margin-right: 5px;

    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    vertical-align: top;
    text-align: center;
    float: left;
    cursor: pointer;

    border: 1px solid rgb(228, 228, 228);
    border-bottom-color: grey;
    border-radius: 5px;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

#keyboard ul .key:hover {
    background: rgb(228, 228, 228);
}