/* Text Colors */
/* General */
html,
body,
div.boardBanner,
#menu,
input:not(.jsColor),
textarea,
a.summary,
.pages.cataloglink a,
.pages strong>a,
#qr-filename-container,
#post-preview,
.post-last,
.pln,
select,
.captcha-root,
#t-root,
.tegaki-label,
.dd-menu ul,
.boxbar,
.postblock {
  color: " + $SS.theme.textColor.hex + " !important;
}
/* Names */
.nameBlock:not(.capcodeMod)>.name,
.com,
.post-author {
  color: " + $SS.theme.nameColor.hex + " !important;
}
.nameBlock.capcodeMod {
  color: #800080 !important;
}
.id_admin,
.nameBlock.capcodeAdmin span.name {
  color: #F00 !important;
}
/* Tripcodes */
.nameBlock>.postertrip,
.post-tripcode,
.tag {
  color: " + $SS.theme.tripColor.hex + " !important;
}
/* Links */
a:not(s>a),
s:hover>a:not(:hover),
.typ,
.atn,
body.is_catalog .button,
:root.catalog-mode .button,
.options-button,
.tegaki-tb-btn {
  color: " + $SS.theme.linkColor.hex + " !important;
}
#header-bar #notifications a {
  color: #ffffff !important;
}
a:hover,
body.is_catalog .button:hover,
:root.catalog-mode .button:hover,
.lit,
#header-bar #notifications a:hover,
.tegaki-tb-btn:hover,
#import-link>.options-button:hover {
  color: " + $SS.theme.linkHColor.hex + " !important;
}
/* Header */
#header-bar,
a.current {
  color: " + $SS.theme.headerColor.hex + " !important;
}
#header-bar a:not(.current) {
  color: " + $SS.theme.headerLColor.hex + " !important;
}
#header-bar a:hover {
  color: " + $SS.theme.headerLHColor.hex + " !important;
}
#custom-board-list .current {
  border-bottom: 1px solid rgba(" + $SS.theme.linkColor.rgb + ",1) !important;;
}
#custom-board-list .current:hover {
  border-bottom: 1px solid rgba(" + $SS.theme.linkHColor.rgb + ",1) !important;;
}
/* Greentext */
.postMessage>.quote,
s:hover .quote,
.str,
.atv,
.new,
.catalog-thread > .comment > .quote {
  color: " + $SS.theme.quoteColor.hex + " !important;
}
/* Subject and Option labels */
.subject,
.replytitle,
.teaser b,
.post-subject,
.option.header .option-title,
.kwd,
.tab-label {
  color: " + $SS.theme.titleColor.hex + " !important;
}
.option.header {
  font-size: 140%;
}
/* Board Title */
.boardTitle {
  color: " + $SS.theme.boardColor.hex + " !important;
  text-shadow: none !important;
}
/* Backlinks */
.backlink, 
.backlink.deadlink {
  color: " + $SS.theme.blinkColor.hex + " !important;
}
:root.backlink-shadow .backlink {
  text-shadow: 1px 1px 5px;
}
.quotelink {
  color: " + $SS.theme.qlColor.hex + " !important;
}
/* Code Tags */
.prettyprint,
.catalog-code {
  background: none repeat scroll 0 0 rgba(" + $SS.theme.codeBackground + ") !important;
  border: 1px solid rgba(" + $SS.theme.codeBorder + ") !important;
}
.pun {
  color: rgba(" + $SS.theme.textColor.rgb + ",.4) !important;
}
::-webkit-input-placeholder {
  color: rgba(" + $SS.theme.textColor.rgb + ",.4) !important;
}
#qr .field::-moz-placeholder,
::-moz-placeholder,
#qr-no-file {
  color: rgba(" + $SS.theme.textColor.rgb + ",.4) !important;
}
/* Backgrounds */
body {
  background: " + $SS.theme.bgImg.get() + $SS.theme.bgColor.hex + " !important;
}
.reply,
body.is_catalog .panel,
:root.catalog-mode .panel,
.dialog,
#post-preview,
#tegaki,
.boxbar,
:root.op-background .op:not(.inline .op),
.flashListing tr:nth-of-type(2n+1):not(.highlightPost),
.dd-menu ul,
:root.catalog-hover-expand .catalog-container:hover > .post {
  background: rgba(" + $SS.theme.mainColor.rgb + "," + $SS.theme.replyOp + ")!important;
}
.tab-label,
#fourchanx-settings,
#oneechan-options {
  background: rgb\(" + $SS.theme.mainColor.rgb + ") !important;
}
:root.recolor-even .thread>.replyContainer:nth-of-type(even):not(.hidden) .post:not(.reply:target, .inline>.postContainer>.post),
.flashListing tr:nth-of-type(2n):not(.highlightPost) {
  background: rgb\(" + $SS.theme.mainColor.shiftRGB(-10) + "," + $SS.theme.replyOp + ") !important;
}
:root:not(.header-gradient) #header-bar {
  background: rgba(" + $SS.theme.headerBGColor.rgb + "," + $SS.theme.navOp + ") !important;
}
:root.header-gradient #header-bar {
  background: linear-gradient(rgb\(" + $SS.theme.headerBGColor.shiftRGB(15) + "),rgba(" + $SS.theme.headerBGColor.rgb + "," + $SS.theme.navOp + ")) !important;
}
:root.header-shadow #header-bar {
  box-shadow: none !important;
}
:root:not(.fixed) #header-bar {
  background: none !important;
}
.options-button,
.qr-link,
.pages.cataloglink,
.pages strong>a,
input[value='Next'],
input[value='Previous'] {
  background: linear-gradient(rgb\(" + $SS.theme.mainColor.shiftRGB(15) + "),rgb(" + $SS.theme.mainColor.rgb + ")) !important;
}
.options-button:hover,
.import-input:hover + .options-button,
.pages strong>a:hover,
.dd-menu li:hover,
input[value='Next']:hover,
input[value='Previous']:hover {
  background: rgb\(" + $SS.theme.mainColor.shiftRGB(15) + ");
}
.focused.entry {
  background: rgb\(" + $SS.theme.mainColor.shiftRGB(10) + ") !important;
}
.qr-link:hover,
:root.vertical-qr #qr .move {
  background: rgb\(" + $SS.theme.mainColor.rgb + ");
}
input[type=text]:not(.jsColor),
input.field,
#qr input,
textarea,
.riceCheck,
#qr-filename-container,
select,
.captcha-root,
#t-root {
  background: " + $SS.theme.inputColor.hex + " !important;
  transition: background .2s, color .2s, border-color .2s, width .2s !important;
}
input[type=checkbox],
.riceCheck {
  background: rgb\(" + $SS.theme.inputColor.shiftRGB(25) + ") !important;
}
input[type=text]:not(.jsColor):hover,
input.field:hover,
#qr input:hover,
.riceCheck:hover,
#qr-filename-container:hover,
textarea:hover,
select:hover,
.captcha-root:hover,
#t-root:hover {
  background: rgb(" + $SS.theme.inputColor.hover + ") !important;
}
hr {
  background-image: linear-gradient(to left, rgba(" + $SS.theme.brderColor.rgb + ",0), rgb(" + $SS.theme.brderColor.rgb + "), rgba(" + $SS.theme.brderColor.rgb + ",0));
}
#unread-line {
  background-image: linear-gradient(to left, rgba(" + $SS.theme.unreadColor.rgb + ",0), rgb(" + $SS.theme.unreadColor.rgb + "), rgba(" + $SS.theme.unreadColor.rgb + ",0));
}
.inline {
  background: rgba\(" + $SS.theme.mainColor.shiftRGB(-16) + ",.8)!important;
}
:root.post-info .reply>.postInfo {
  background: rgba\(" + $SS.theme.mainColor.shiftRGB(-16) + ",.2);
  border-bottom: 1px solid rgb\(" + $SS.theme.mainColor.shiftRGB(4) + ");
}
/* Borders */
.reply,
:root.op-background .op:not(#qp .op, .inline .op),
.dd-menu ul {
  border-width: 0 1px 1px 0;
  border-style: solid;
}
:root.borders-all .reply,
:root.borders-all.op-background .op {
  border-width: 1px !important;
}
:root.borders-none .reply,
:root.borders-none.op-background .op {
  border: 0 !important;
}
#menu,
.catalog-thumb {
  border-radius: 0 !important;
}
:root.rounded-corners .reply,
:root.rounded-corners.op-background .op,
:root.rounded-corners .dialog:not(#header-bar),
:root.rounded-corners .inline,
:root.rounded-corners #thread-stats
:root.rounded-corners #updater,
:root.rounded-corners #menu,
:root.rounded-corners .thumb,
:root.rounded-corners #bannerCnt img,
:root.rounded-corners .fileThumb img:not(.full-image),
:root.rounded-corners .catalog-thumb,
:root.rounded-corners .dd-menu ul,
:root.rounded-corners .pages.cataloglink,
:root.rounded-corners .pages strong>a,
:root.rounded-corners input[value='Next'],
:root.rounded-corners input[value='Previous'],
:root.rounded-corners.werkTyme .catalog-thread:not(:hover),
:root.rounded-corners.werkTyme:not(.catalog-hover-expand) .catalog-thread,
:root.rounded-corners.catalog-hover-expand .catalog-container:hover > .post,
:root.rounded-corners.catalog-hover-expand .catalog-container:hover .catalog-reply  {
  border-radius: 3px !important;
}
:root.post-info.rounded-corners .reply>.postInfo,
:root.rounded-corners #qr,
:root.rounded-corners:root.vertical-qr #qr > .move {
  border-radius: 3px 3px 0 0 !important;
}
:root:not(.rounded-corners) #post-preview {
  border-radius: 0 !important;
}
.reply,
:root.op-background .op,
.dialog,
.entry,
.inline,
fieldset,
#post-preview,
.flashListing td:not(:last-of-type):not(.postblock),
:root.vertical-qr #qr .move,
#qr select,
select {
  border-color: " + $SS.theme.brderColor.hex + " !important;
}
.dd-menu li {
  border-bottom: " + $SS.theme.brderColor.hex + " !important;
}
input,
textarea,
.riceCheck,
#qr-filename-container,
.captcha-img,
:root.vertical-qr #qr .move,
#qr select,
select,
.postblock,
#post-preview,
.captcha-root,
#t-root,
.dd-menu ul,
:root.werkTyme .catalog-thread:not(:hover),
:root.werkTyme:not(.catalog-hover-expand) .catalog-thread,
:root.catalog-hover-expand .catalog-container:hover > .post,
:root.catalog-hover-expand .catalog-container:hover .catalog-reply {
  border: 1px solid " + $SS.theme.inputbColor.hex + " !important;
}
.options-button,
.qr-link,
.pages.cataloglink,
.pages strong>a,
input[value='Next'],
input[value='Previous'] {
  border-style: solid;
  border-width: 1px;
  border-color: rgb\(" + $SS.theme.mainColor.shiftRGB(-15) + ") rgb\(" + $SS.theme.mainColor.shiftRGB(-15) + ") rgb\(" + $SS.theme.mainColor.shiftRGB(-30) + ") !important;
}
a.quotelink.forwardlink, a.backlink.forwardlink {
  border-bottom: 1px dashed;
}
input[type=text]:focus,
input.field:focus,
#qr input:focus,
textarea:focus,
#qr-filename-container:focus,
#qr-filename-container.focus,
select:focus,
.captcha-root:focus,
#t-root:focus {
  border: 1px solid " + $SS.theme.linkColor.hex + " !important;
}
#search-box:hover,
#index-search:hover,
.captcha-img:hover {
  border-color: " + $SS.theme.linkColor.hex + " !important;
}
#header-bar {
  border: none !important;
}
.flashListing td:not(:last-of-type):not(.postblock) {
  border-width: 1px;
  border-style: solid;
}
:root.header-highlight #custom-board-list .current:hover,
:root.header-highlight #custom-board-list .current {
  border-bottom: none !important;
}
/* 4chan X Menu */
.suboption-list > div:last-of-type {
  background: rgba(" + $SS.theme.mainColor.rgb + "," + $SS.theme.replyOp + ")!important;
}
.suboption-list > div::before,
.suboption-list::before {
  border-color: " + $SS.theme.brderColor.hex + " !important;
  left: 0.5em !important;
}
/* Shadows */
#navlinks a {
  text-shadow:" + $SS.theme.mainColor.hex + " -1px -1px,
  " + $SS.theme.mainColor.hex + " 1px -1px,
  " + $SS.theme.mainColor.hex + " -1px 1px,
  " + $SS.theme.mainColor.hex + " 1px 1px,
  " + $SS.theme.mainColor.hex + " -1px 0,
  " + $SS.theme.mainColor.hex + " 1px 0,
  " + $SS.theme.mainColor.hex + " 0 -1px,
  " + $SS.theme.mainColor.hex + " 0 1px,
  rgba(0,0,0,.6) 0 2px 4px,
  rgba(0,0,0,.6) 0 0 2px;
}
.thumb {
  box-shadow: 0 0 5px rgba(0,0,0,.25);
}
#qr,
#thread-watcher {
  box-shadow: 1px 1px 3px rgba(0,0,0,.1) !important;
}
/* Closed Threads */
.closed {
  margin-top: 10px;
  color: red;
}
/* /f/ */
#swf-embed-header.postblock {
  border: 1px solid " + $SS.theme.brderColor.hex + " !important;
  background-color: rgba(" + $SS.theme.headerBGColor.rgb + "," + $SS.theme.navOp + ") !important;
  color: " + $SS.theme.linkColor.hex + " !important;
}
#swf-embed-close {
  right: 1px !important;
}
/* 4chan XT: fxtwitter embed card */
.fxt-card {
  color: " + $SS.theme.textColor.hex + " !important;
  background-color: rgba(" + $SS.theme.bgColor.rgb + "," + $SS.theme.replyOp + ") !important;
  border: 1px solid " + $SS.theme.brderColor.hex + " !important;
}
/* Alternative Spoiler Color */
:root.alt-spoiler .span.spoiler,
:root.alt-spoiler s,
:root.alt-spoiler s:not(:hover)>a,
:root.alt-spoiler s:not(:hover)>.linkify {
  color: #fff;
  background: none repeat scroll 0 0 #fff;
}
:root.alt-spoiler span.spoiler:hover,
:root.alt-spoiler s:hover,
:root.alt-spoiler span.spoiler:focus,
:root.alt-spoiler s:focus {
  color: #000;
}