/* CodeMirror Overrides for Retro Terminal Theme */

/* Reset CodeMirror elements to their default styling */
.CodeMirror,
.CodeMirror-scroll,
.CodeMirror-sizer,
.CodeMirror-gutter,
.CodeMirror-gutters,
.CodeMirror-linenumber {
    font-family: monospace !important;
    text-shadow: none !important;
    background-color: inherit !important;
    border-color: inherit !important;
}

/* Reset all CodeMirror syntax highlighting */
.CodeMirror .cm-keyword,
.CodeMirror .cm-operator,
.CodeMirror .cm-variable,
.CodeMirror .cm-variable-2,
.CodeMirror .cm-variable-3,
.CodeMirror .cm-builtin,
.CodeMirror .cm-atom,
.CodeMirror .cm-number,
.CodeMirror .cm-def,
.CodeMirror .cm-string,
.CodeMirror .cm-string-2,
.CodeMirror .cm-comment,
.CodeMirror .cm-tag,
.CodeMirror .cm-meta,
.CodeMirror .cm-qualifier,
.CodeMirror .cm-property,
.CodeMirror .cm-attribute,
.CodeMirror .cm-header,
.CodeMirror .cm-quote,
.CodeMirror .cm-hr,
.CodeMirror .cm-link,
.CodeMirror .cm-error {
    color: initial !important;
}

/* Restore specific syntax highlighting colors */
.CodeMirror .cm-keyword { color: #708 !important; }
.CodeMirror .cm-atom { color: #219 !important; }
.CodeMirror .cm-number { color: #164 !important; }
.CodeMirror .cm-def { color: #00f !important; }
.CodeMirror .cm-variable { color: black !important; }
.CodeMirror .cm-variable-2 { color: #05a !important; }
.CodeMirror .cm-variable-3, .cm-s-default .cm-type { color: #085 !important; }
.CodeMirror .cm-property { color: black !important; }
.CodeMirror .cm-operator { color: black !important; }
.CodeMirror .cm-comment { color: #a50 !important; }
.CodeMirror .cm-string { color: #a11 !important; }
.CodeMirror .cm-string-2 { color: #f50 !important; }
.CodeMirror .cm-meta { color: #555 !important; }
.CodeMirror .cm-qualifier { color: #555 !important; }
.CodeMirror .cm-builtin { color: #30a !important; }
.CodeMirror .cm-tag { color: #170 !important; }
.CodeMirror .cm-attribute { color: #00c !important; }
.CodeMirror .cm-header { color: blue !important; }
.CodeMirror .cm-hr { color: #999 !important; }
.CodeMirror .cm-link { color: #00c !important; }
.CodeMirror .cm-error { color: #f00 !important; }

/* Ensure CodeMirror background is appropriate */
.CodeMirror {
    background-color: white !important;
}

/* Ensure CodeMirror text is visible */
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
    color: black !important;
}

/* Fix for CodeMirror cursor */
.CodeMirror-cursor {
    border-left: 1px solid black !important;
}

/* Fix for CodeMirror selection */
.CodeMirror-selected {
    background-color: #d9d9d9 !important;
}
