/*
Name:       Duotone-DarkSpace
Author:     adapted from: Simurai (https://github.com/simurai/duotone-dark-space-syntax/)

CodeMirror template by Jan T. Sott (https://github.com/idleberg), adapted by Bram de Haan (https://github.com/atelierbram/)
*/

.cm-s-duotone-darkspace-cm.CodeMirror { background: #24242e; color: #5b5b76; }
.cm-s-duotone-darkspace-cm div.CodeMirror-selected { background: #515167 !important; }
.cm-s-duotone-darkspace-cm .CodeMirror-gutters { background: #24242e; border-right: 0px; }
.cm-s-duotone-darkspace-cm .CodeMirror-linenumber { color: #515167; }

/* Cursor - some of these styles need to be removed: hardcoded these into the base16-builder template because base16 does not support alpha channels */
.cm-s-duotone-darkspace-cm .CodeMirror-cursor { border-left: 1px solid hsla(0, 100%, 100%, 0.25); border-right: .5em solid hsla(0, 100%, 100%, 0.25); }
.cm-s-duotone-darkspace-cm .CodeMirror-activeline-background { background: #2f2f3c; }
.cm-s-duotone-darkspace-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(0, 100%, 100%, 0.25); }

/* default Dark */
.cm-s-duotone-dark-cm .CodeMirror-cursor { border-left: 1px solid hsla(30, 100%, 66%, 0.5); border-right: .5em solid hsla(20, 100%, 66%, .5); }
.cm-s-duotone-dark-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(30, 100%, 66%, 0.5); }

/* DarkSea */
.cm-s-duotone-darksea-cm .CodeMirror-cursor { border-left: 1px solid hsla(160, 100%, 66%, 0.5); border-right: .5em solid hsla(160, 100%, 66%, .5); }
.cm-s-duotone-darksea-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(160, 100%, 66%, 0.5); }

/* DarkSpace */
.cm-s-duotone-darkspace-cm .CodeMirror-cursor { border-left: 1px solid hsla(20, 100%, 66%, 0.5); border-right: .5em solid hsla(20, 100%, 66%, .5); }
.cm-s-duotone-darkspace-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(20, 100%, 66%, 0.5); }

/* DarkEarth */
.cm-s-duotone-darkearth-cm .CodeMirror-cursor { border-left: 1px solid hsla(42, 100%, 66%, 0.5); border-right: .5em solid hsla(42, 100%, 66%, .5); }
.cm-s-duotone-darkearth-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(42, 100%, 66%, 0.5); }

/* DarkForest */
.cm-s-duotone-darkforest-cm .CodeMirror-cursor { border-left: 1px solid hsla(70, 100%, 66%, 0.5); border-right: .5em solid hsla(70, 100%, 66%, .5); }
.cm-s-duotone-darkforest-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(70, 100%, 66%, 0.5); }

/* DarkCave */
.cm-s-duotone-darkcave-cm .CodeMirror-cursor { border-left: 1px solid hsla(50, 100%, 66%, 0.5); border-right: .5em solid hsla(50, 100%, 66%, .5); }
.cm-s-duotone-darkcave-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(50, 100%, 66%, 0.5); }

/* DarkDesert */
.cm-s-duotone-darkdesert-cm .CodeMirror-cursor { border-left: 1px solid hsla(24, 100%, 66%, 0.5); border-right: .5em solid hsla(24, 100%, 66%, .5); }
.cm-s-duotone-darkdesert-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(24, 100%, 66%, 0.5); }

/* DarkHeath */
.cm-s-duotone-darkheath-cm .CodeMirror-cursor { border-left: 1px solid hsla(35, 100%, 66%, 0.5); border-right: .5em solid hsla(35, 100%, 66%, .5); }
.cm-s-duotone-darkheath-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(35, 100%, 66%, 0.5); }

/* DarkMeadow */
.cm-s-duotone-darkmeadow-cm .CodeMirror-cursor { border-left: 1px solid hsla(100, 100%, 66%, 0.5); border-right: .5em solid hsla(100, 100%, 66%, .5); }
.cm-s-duotone-darkmeadow-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(100, 100%, 66%, 0.5); }

/* DarkPark */
.cm-s-duotone-darkpark-cm .CodeMirror-cursor { border-left: 1px solid hsla(190, 100%, 66%, 0.5); border-right: .5em solid hsla(190, 100%, 66%, .5); }
.cm-s-duotone-darkpark-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(190, 100%, 66%, 0.5); }

/* DarkLake */
.cm-s-duotone-darklake-cm .CodeMirror-cursor { border-left: 1px solid hsla(329, 100%, 66%, 0.5); border-right: .5em solid hsla(329, 100%, 66%, .5); }
.cm-s-duotone-darklake-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(329, 100%, 66%, 0.5); }

/* DarkPool */
.cm-s-duotone-darkpool-cm .CodeMirror-cursor { border-left: 1px solid hsla(343, 100%, 66%, 0.5); border-right: .5em solid hsla(343, 100%, 66%, .5); }
.cm-s-duotone-darkpool-cm .cm-fat-cursor .CodeMirror-cursor { background: hsla(343, 100%, 66%, 0.5); }

/* end cursor */
.cm-s-duotone-darkspace-cm span.cm-atom, .cm-s-duotone-darkspace-cm span.cm-number, .cm-s-duotone-darkspace-cm span.cm-keyword, .cm-s-duotone-darkspace-cm span.cm-variable, .cm-s-duotone-darkspace-cm span.cm-attribute, .cm-s-duotone-darkspace-cm span.cm-quote, .cm-s-duotone-darkspace-cm span.cm-hr, .cm-s-duotone-darkspace-cm span.cm-link { color: #fe8c52; }

.cm-s-duotone-darkspace-cm span.cm-property { color: #767693; }
.cm-s-duotone-darkspace-cm span.cm-punctuation, .cm-s-duotone-darkspace-cm span.cm-unit, .cm-s-duotone-darkspace-cm span.cm-negative { color: #dd672c; }
.cm-s-duotone-darkspace-cm span.cm-string { color: #f97c3e; }
.cm-s-duotone-darkspace-cm span.cm-operator { color: #f36e2b; }
.cm-s-duotone-darkspace-cm span.cm-positive { color: #5151e6; }

.cm-s-duotone-darkspace-cm span.cm-variable-2, .cm-s-duotone-darkspace-cm span.cm-variable-3, .cm-s-duotone-darkspace-cm span.cm-string-2, .cm-s-duotone-darkspace-cm span.cm-url { color: #5151e6; }
.cm-s-duotone-darkspace-cm span.cm-def, .cm-s-duotone-darkspace-cm span.cm-tag, .cm-s-duotone-darkspace-cm span.cm-builtin, .cm-s-duotone-darkspace-cm span.cm-qualifier, .cm-s-duotone-darkspace-cm span.cm-header, .cm-s-duotone-darkspace-cm span.cm-em { color: #ebebff; }
.cm-s-duotone-darkspace-cm span.cm-bracket, .cm-s-duotone-darkspace-cm span.cm-comment { color: #5b5b76; }
/* using #f00 red for errors, don't think any of the colorscheme variables will stand out enough, ... maybe by giving it a background-color ... */
/* .cm-s-duotone-darkspace-cm span.cm-error { background: #5151e6; color: #fe8c52; } */
.cm-s-duotone-darkspace-cm span.cm-error, .cm-s-duotone-darkspace-cm span.cm-invalidchar { color: #f00; }

.cm-s-duotone-darkspace-cm span.cm-header { font-weight: normal; }
.cm-s-duotone-darkspace-cm .CodeMirror-matchingbracket { text-decoration: underline; color: #ebebff !important; }
