@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("debian.org") {

  html, body, #footer, #inner, #logo, #main, #outer, td p, form, h1, h2, h3,
  h4, h5, h6, tt, code, pre, .contentcell, .footer, table, th, #header,
  #breadcrumbs, button, select, textarea, .shortbugstatusextra,
  div.table-of-contents {
    background-color: #222 !important;
    color: #ccc !important; /* was #222 */
  }

  p { max-width: 35em !important; }

  /* more font colors */
    em, p.section a:link, p.section a:visited { color: #eee !important; }

    .editbar li a, .vcurrent { color: #222 !important; }

    h1, h2 { text-shadow: 2px 2px #484848 !important; }

      /* next color was #686868 (lighter, so made darker) */
    .msgreceived { color: #979797; }

  /* more background colors */    
      /* The next color was f5f6f7. */
    pre, #pnavbar { background-color: #2c2b2a !important; }

    pre {
      border-radius: .5em !important;
      border: .06em solid #3f3d3a !important; /* was d2d3d7 */
      padding: 1em !important;
    }

    .channel { background-color: #333 !important; }

    ul.outline, .footer address {
      background-color: #444 !important; /* was #ddd */
      border-radius: 5px !important;
    }

    #logo { background-color: #666666 !important; }

    li.wikilink { background: none repeat scroll 0 0 gray !important; }

    h1 ~ table td > img { display: none !important; }

    button, select, textarea { border: #666 1px solid !important; }

    div.tip, div.important, div.warning, div.note, div.trans-note {
      background-color: #656522 !important; 
      /* was #FFFFCB so I moved the first four up to keep it yellowish */
    }

  /* some link rules */
    a:link, #pdownload a:link, .link, .link abbr, .link abbr:hover { 
      color: #C70036 !important;
      text-decoration: none !important;
    }

    a:visited, #pdownload a:visited {
      color: #6C5464 !important;
      text-decoration: none !important;
    }

    a:hover { text-decoration: underline !important; }

    h1 ~ table td > a > img {
      background: #555 !important;
      border: 1px solid #777 !important;
      color: #ccc !important;
      -moz-border-radius: 5px !important;
    }
    h1 ~ table td > a:hover > img {
      background: #222 !important;
      color: #fff !important;
    }

    h1 a:link, h2 a:link { text-shadow: 2px 2px #400011 !important; }
    h1 a:visited, h2 a:visited { text-shadow: 2px 2px #2b2228 !important; }

    /* navigation bar */
    #navbar a:hover {
      background-color: #2c2b2a  !important; /* Debian's is #f5f6f7. */
      border-left: 1px solid #C70036 !important;
      border-right: 1px solid #C70036 !important;
    }
    #navbar a:visited:hover {
      background-color: #2c2b2a  !important; /* Debian's is #f5f6f7. */
      border-left: 1px solid #6C5464 !important;
      border-right: 1px solid #6C5464 !important;
    }

    /* Debian's color for next rule is #F0F0F4. */
    .toc a:hover { background-color: #32322d !important; }

    /* download link font color on front page */
    span.download a { color: #339900 !important; }
    span.download a:hover { color: white !important; }

    /* link color style rules for http://db.debian.org/ */
    th a:link { color: #000084 !important; }
    th a:hover { color: #f000ff !important; }
    th a:active { color: #ff0000 !important; }
    th a:visited { color: #000044 !important; }

    /* RSS logo */
    a.rss_logo { color: #FFFFFF !important; }
    a.rss_logo:hover { color: #FF6600 !important; }

    /* tips, warnings, notes and important links */
    div.tip a:link, div.important a:link, div.warning a:link,
    div.note a:link, div.trans-note a:link {
      color: #400011 !important;
    }
    div.tip a:visited, div.important a:visited,
    div.warning a:visited, div.note a:visited,
    div.trans-note a:visited {
      color: #2b2228 !important;
    }

    .reltable a:link { color: #000066 !important; }

    /* fixes search boxes' text */
    input:focus {
      color: #333333 !important;
    }
}

@-moz-document url("http://www.debian.org/") {
  h1 { background-color: inherit !important; }
  em { color: inherit !important; }
}