pre[class*="language-"] {
    background-color: #2d2d2d !important;
    
    color: #f8f8f2;

    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;

    padding: 1em;
    margin: .5em 0;

    overflow: auto;

    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

pre[class*="language-"] > code {
    color: inherit;
    font-family: inherit;
    background: none; 
    text-shadow: none;
}

/* Container overflow and boundary safety */
body, .tinymce-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.tinymce-content img, body img {
    max-width: 100% !important;
    height: auto !important;
}

.tinymce-content table, body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Headings */
.tinymce-content h1, body h1 { font-size: 1.75rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: 0.75rem; }
.tinymce-content h2, body h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.2rem; margin-bottom: 0.6rem; }
.tinymce-content h3, body h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.5rem; }
.tinymce-content h4, body h4 { font-size: 1.1rem; font-weight: 600; margin-top: 0.85rem; margin-bottom: 0.4rem; }
.tinymce-content h5, body h5 { font-size: 1rem; font-weight: 600; margin-top: 0.75rem; margin-bottom: 0.35rem; }
.tinymce-content h6, body h6 { font-size: 0.875rem; font-weight: 600; margin-top: 0.75rem; margin-bottom: 0.35rem; }

/* Strikethrough */
.tinymce-content s, .tinymce-content del, .tinymce-content strike,
body s, body del, body strike {
    text-decoration: line-through;
}

/* Ordered Lists */
ol, .tinymce-content ol {
    list-style-type: decimal;
    margin-left: 20px;
    padding-left: 20px;
    margin-bottom: 1rem;
}
ol ol, .tinymce-content ol ol {
    list-style-type: lower-alpha;
    margin-bottom: 0;
}
ol ol ol, .tinymce-content ol ol ol {
    list-style-type: lower-roman;
    margin-bottom: 0;
}

/* Unordered Lists */
ul, .tinymce-content ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 20px;
    margin-bottom: 1rem;
}
ul ul, .tinymce-content ul ul {
    list-style-type: circle;
    margin-bottom: 0;
}
ul ul ul, .tinymce-content ul ul ul {
    list-style-type: square;
    margin-bottom: 0;
}

li, .tinymce-content li {
    margin-bottom: 8px;
    list-style-type: inherit;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8292a2;
    font-style: italic;
}

.token.punctuation {
    color: #f8f8f2;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #ff6188;
}

.token.boolean,
.token.number {
    color: #ae81ff; 
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a6e22e; 
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
    color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
    color: #66d9ef;
}

.token.keyword {
    color: #ff6188; 
    font-weight: bold;
}

.token.regex,
.token.important {
    color: #fd971f;
    font-weight: bold;
}

pre[class*="language-"].line-numbers {
    padding-left: 3.8em;
    counter-reset: start;
}
.line-numbers .line-numbers-rows {
    position: absolute;
    pointer-events: none;
    top: 1em;
    font-size: 100%;
    left: -3.8em;
    width: 3em;
    letter-spacing: -1px;
    border-right: 1px solid #555;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.line-numbers-rows > span {
    pointer-events: none;
    display: block;
    counter-increment: start;
}
.line-numbers-rows > span:before {
    content: counter(start);
    color: #8292a2;
    display: block;
    padding-right: 0.8em;
    text-align: right;
}

.copy-to-clipboard-button {
    position: absolute;
    /* top: 0; */
    right: 0;
    transform: translateX(-55%);
    background: #555;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    font-size: 12px;
    font-family: sans-serif;
    border-radius: 4px;
    opacity: 1;
}
pre:hover .copy-to-clipboard-button {
    opacity: 1;
}
.copy-to-clipboard-button:hover {
    background: #666;
}