@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

@-moz-document url-prefix(http://), url-prefix(https://), url-prefix(ftp://){


/* Universal - sets color of text, border */

* {
color: #edede9 !important; 
border-color: #1b1b1b !important;
outline-color: #edede9 !important;
text-shadow: none !important;}

html *:after ,
html *:before

{color: #8bd24c !important;
border-color: #1b1b1b !important;
background: none transparent !important}

/*No background images. try to exclude icons, other misc items. */

*:not(:empty):not([onclick*="open"]):not(IMG):not(SPAN):not([class*="icon"]):not([id*="icon"]):not([class*="stars"]):not([id*="stars"]):not([id*="rating"]):not([class*="rating"]):not([class*="SPRITE"]):not([id*="SPRITE"]):not([id*="lbImage"])

{ background-image: none !important }


/* Text selecting color */

*::-moz-selection
{color: #82ea74 !important;
background: #191919 !important}


/* Link */

a[href],
a[href] *{ 

/* color: #1499e6 !important; */  /* old blue color */
color: #a70a37 !important;
background-color: transparent !important;
border-color: #1e1e1e !important;}

a[href]:hover:not([href="#"]),
a[href]:hover *{

color: #550022 !important; 
background-color: #1b1b1b !important;
border-color: #1e1e1e !important}

[href="#"]:hover {color:#550022 !important} /*No background color*/

/* Event Handlers/Attributes */

[onclick],
[ondblclick],
[onmousedown]

{color: #272727 !important;
background-color: transparent !important;
text-indent: 0 !important}

[onclick]:hover,
[ondblclick]:hover,
[onmousedown]:hover

{color: #212121 !important;
background-color: #1b1b1b !important}


/* Visited links */

a:visited {color: #b6c17b !important}


/* Make images transparent */

IMG           { opacity: .9 !important }
IMG:hover     { opacity: 1 !important  }


/* Basic Bodies */

HTML, BODY {  background: none #1b1b1b !important  }


/* Make descendents of the body element transparent.  Formerly "DIV + SPAN" rules. */

BODY * {background-color: transparent !important}

DIV[id]:not([class*="layer"]):not(#lightbox-nav):not(#imageContainer) {background-color: inherit !important}

SPAN:not(:empty):not([class*="icon"]):not([id*="icon"]):not([class*="star"]):not([id*="star"]):not([id*="rating"]):not([class*="rating"]):not([class*="Sprite"]):not([class*="sprite"]) {

background-image: none !important; 
border-color: #428342 !important}

/* Try to contrast containers against the background that are well within the DOM tree */

html:root > BODY > * > * > * > *:not(INPUT):not([onclick]) > DIV:not(:empty):not([id])

{background: none #1b1b1b !important}


/* Text Presentation */

DFN, FONT, B, I, P, BIG, SMALL, STRONG, EM, CENTER { background-color: transparent !important }

MARK,
CODE, PRE,
BLOCKQUOTE, BLOCKQUOTE > DIV > *,
[class*="quote"],
TD[style*="inset"][class="alt2"]   {  background-color: #1d1d1d !important }


/* Headings */

H1, H2  { 

background: none #191919 !important;
-moz-border-radius: 5px !important;
-webkit-border-radius: 5px !important;} 

H3 {

background: none #1b1b1b !important;
-moz-border-radius: 5px !important;
-webkit-border-radius: 5px !important;} 

H4 {

background: none #191919 !important;
-moz-border-radius: 5px !important;
-webkit-border-radius: 5px !important;} 

H5, H6 {background: none #191919 !important}

/* Headers with links*/

h1 a[href],
h2 a[href],
h3 a[href],
h4 a[href],
h5 a[href],
h6 a[href]   {color: #acca1c !important}


/* Lists */

DT     {background-color: #1b1b1b !important}

DL, DD { background-color: #1b1b1b !important}

LI, UL {background-color: inherit !important}

LI A:not([class*="icon"]):not([id*="icon"]):not([onclick]),
DT A:not([class*="icon"]):not([id*="icon"]):not([onclick])

{background-image: none !important; text-indent: 0 !important}


/* list Item highlight */

LI[class*="item"] A:hover,
LI[class*="item"]:hover,

[class*="menuitem"]:hover  /* Not list item, but still useful*/

{background-color: #191919 !important}


/* Tables, cells */

TABLE, COLGROUP, COL, THEAD, TBODY, TFOOT {

background-color: #1c1c1c !important;
border-color: #161616 !important}

CAPTION {background-color: #191919 !important}

TABLE[border="0"]:not([class]) {background-color: inherit !important}
TABLE[WIDTH] {background-color: #191919 !important}


TH   {background-color: #1c1c1c !important}
TR,TD:not([id])   {background-color: #1b1b1b !important}
TD[colspan] {background-color: #1b1b1b !important}


/*Textarea-type*/

TEXTAREA, 
INPUT:not([type]),
INPUT[type="text"],
INPUT[type="password"]{

color:  #edede9  !important;
background: none #1b1b1b !important;
border-color: #181818 !important;
border-style: solid !important;
-moz-border-radius: 0 !important;
-moz-appearance: none !important;
opacity: 1 !important}


/*Button-type*/

INPUT[type="RESET"],
INPUT[type="submit"], 
INPUT[type="button"],
INPUT[type="file"],
BUTTON:not(:empty)

{-moz-appearance: none !important;
background: none #1b1b1b !important;
border-color: #1b1b1b !important;
color: #c4c4c4 !important;}

INPUT[type="RESET"]:hover,
INPUT[type="submit"]:hover, 
INPUT[type="button"]:hover, 
BUTTON:not(:empty):hover{

background-color: #1b1b1b !important;
color: #dad8d2 !important}

INPUT[type="image"] {opacity: .85 !important}
INPUT[type="image"]:hover {opacity: .95 !important}

/* Drop-down menu */

SELECT, OPTION{

background:#191919 !important;
border-color:#191919 !important;
color:#d0cfc2 !important;
-moz-appearance:none !important;}

/***************
* Misc *********/

ADDRESS {background: none #1d1d1d !important}

IFRAME, FIELDSET, LEGEND, LABEL, FORM  {background: none transparent !important}

NOBR {background-color: #1b1b1b !important}

HR {background-color: #151515 !important}


/* Remove Rounded Corners, Borders, Spacer, Padding images */

IMG[src*="spacer"]:empty,
[id*="round"]:empty,
[id*="bottom"]:empty, [class*="bottom"]:empty,
[id*="top"]:empty, [class*="top"]:empty,
[class*="spacer"]:empty

{background-image: none !important;}


/* Menus and Navigation */

NAV *, 
MENU *,

/*Common naming conventions - in case previous declarations fail to give solid BG*/

[class*="open"],
[id*="Dropdown"],
[id*="dropdown"],
[class*="Dropdown"],
[class*="dropdown"],
[id*="menu"]:not(SELECT),
[class*="menu"]:NOT(SELECT),
[class*="tooltip"],
[class*="popup"], 
[id*="popup"],

/* Notes, details, etc.  Maybe useful */

[class*="note"],
[class*="detail"],
[class*="description"]

{ background-color: #1c1c1c !important }


/* Also common */

[class*="content"] {background-color: inherit !important}


/* Headers, Logos */

[id*="masthead"] a,[id*="header"] a,
[id*="logo"] a, [class*="logo"] a

{text-indent: 0 !important;}

}


/*********************
About...**************/

@-moz-document url(about:blank) {

html, html * {
  background: none #1b1b1b !important;
  color: #d2d2d2 !important;}

}

@-moz-document url-prefix("about:neterror") {

html, body {background-color: #1b1b1b !important; color: #d2d2d2 !important}
#errorPageContainer {background-color: #1b1b1b !important; border-color: #2f2323 !important}
#errorPageContainer button {opacity: .8 !important}

/*resurrect pages FF extension*/

#resurrect {background-color: #1b1b1b !important; border-color: #2f2323 !important} 

}
