/* Please see the article */

.editing, #highlighting {
    /* Both elements need the same text and space styling so they are directly on top of each other */
    padding: 10px;
    margin: 0;
    border: 0;
    width: 100%;
    height: 150px;
    min-height: 53px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}
.editing, #highlighting, #highlighting * {
    /* Also add text styles to highlighing tokens */
    tab-size: 2;
    font-size: 15pt;
    tab-size: 1pt;
    line-height: 25pt;
    font-family: unset;

    word-wrap: break-word;
    text-wrap: wrap;
    white-space: pre-wrap;
}


#limit-desc-text {
    position: absolute; 
    right: 5pt; 
    bottom: 5pt; 
    backdrop-filter: blur(5px); 
    padding-left: 5pt; 
    padding-right: 5pt; 
    border-radius: 10pt; 
    background: #90909030;
    text-indent: 0;
}


/* Move the textarea in front of the result */

#highlighting {
    z-index: 0;
    border-radius: 10pt;
    text-indent: -33.5pt;
    border: var(--panel-border);
}
code.invisible-highlighting {
    opacity: 0;
}
textarea.invisible-highlighting {
    color: white;
}


/* Make textarea almost completely transparent */

.editing {
    background: #ffffff00;
    color: rgba(0, 204, 255, 0);
    caret-color: red;
    resize: none;
    z-index: 1;
}

/* Paragraphs; First Image */
p code {
    border-radius: 2px;
    background-color: #eee;
    color: #111;
}


/* Syntax Highlighting from prism.js starts below, partly modified: */

/* PrismJS 1.23.0
https://prismjs.com/download.html#themes=prism-funky&languages=markup */
/**
* prism.js Funky theme
* Based on “Polyfilling the gaps” talk slides http://lea.verou.me/polyfilling-the-gaps/
* @author Lea Verou
*/

code[class*="language-"],
pre[class*="language-"] {
    font-size: 1em;
    text-align: left;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;

    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;

    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
    padding: .4em .8em;
    margin: .5em 0;
    overflow: auto;
    background: var(--panel-on-page-background);
}

code[class*="language-"] {
    color: white;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
    padding: .2em;
    border-radius: .3em;
    box-shadow: none;
}

.token {
    border-radius: 2pt;
    padding-top: 3pt;
    padding-bottom: 3pt;
    background-color: #484B5B;
}

.token.img {
    color: #FF6885;
}

.token.url {
    color: #FF6868;
}

.token.link {
    color: #FF6885;
}

.token.list {
    color: #8368FF;
}

.token.point {
    color: #FB68FF;
}

.token.bold {
    color: #6896FF;
    font-weight: bold;
    letter-spacing: -0.5pt;
}

.token.italic {
    color: #68C8FF;
    font-style: italic;
}

.token.title {
    color: #68B0FF;
    background-color: rgb(60, 60, 60);
}

.token.punctuation {
    color: #FFCC68;
    font-weight: normal;
    font-style: normal;
}

/* Plugin styles: Diff Highlight */
pre.diff-highlight.diff-highlight > code .token.deleted:not(.prefix),
pre > code.diff-highlight.diff-highlight .token.deleted:not(.prefix) {
    background-color: rgba(255, 0, 0, .3);
    display: inline;
}

pre.diff-highlight.diff-highlight > code .token.inserted:not(.prefix),
pre > code.diff-highlight.diff-highlight .token.inserted:not(.prefix) {
    background-color: rgba(0, 255, 128, .3);
    display: inline;
}

/* End of prism.js syntax highlighting*/