@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("userscripts.org") {
  /**
   * General Settings...
   */
  body {
    background: #654  !important;
    color:      #ccc  !important;
  }
  h1, h2, h3, h4, h5, h6 {
    color:  #edc  !important;
  }
  h1, h2 {
    padding-right:  0.5ex  !important;
    padding-left:   0.5ex  !important;
  }
  h3 {
    background:   #605040      !important;
    padding:      0.5ex 0.75ex !important;
    color:        #eed         !important;
    border-color: #6f5c48      !important;
  }

  a:link {
    text-decoration: underline  !important;
    color:           #ffc       !important;
  }
  a:visited {
    color: #ffc  !important;
  }
  a:focus,
  a:active,
  a:hover {
    background-color: #876  !important;
    text-decoration:  none  !important;
    color:            #ffe  !important;
  }

  table {
    border: solid 1px #876  !important;
  }
  th {
    background-color: #543  !important;
    color:            #cba  !important;
    border-color:     #876  !important;
  }
  td {
    border-color: #876  !important;
  }
  tr.spacer {
    display:  none;
  }

  input[type="text"],
  input.text,
  input.title,
  textarea,
  select {
    background: #ddc  !important;
    border:     none  !important;
  }
  input[type="text"],
  input.text,
  input.title,
  textarea {
    padding:  0.25ex 0.5ex  !important;
  }
  em,
  strong {
    font-weight:  600         !important;
    font-style:   normal      !important;
    background:   transparent !important;
    color:        #fff        !important;
  }
  em {
    font-weight:  400    !important;
    font-style:   italic !important;
    color:        #eee   !important;
  }
  label {
    color: #cba  !important;
  }
  code {
    background-color: transparent !important;
    color:            #bb9        !important;
  }



  #uservoice-feedback-tab {
    opacity: 0.125;
  }
  #uservoice-feedback-tab:focus,
  #uservoice-feedback-tab:hover {
    opacity: 0.25;
  }


  /**
   * Header and Footer Sections...
   */
  #footer,
  #header {
    background: #543  !important;
    height:     auto  !important;
  }
  #header .container {
    height: 32px  !important;
  }
  #header img {
    position: absolute;
    clip:     rect(4px 40px 56px 2px);
  }
  #header #navbox {
    background:           #c60  !important;
    border-bottom-color:  #b50  !important;
    border-top-color:     #d70  !important;
   -moz-box-shadow: -3px 0 3px rgba(0,0,0,.5);
  }
  #header #nav #mainmenu {
    margin-left:  48px  !important;
  }
  #header #nav #mainmenu a {
    background:   #b50        !important;
    padding:      1px 7px 3px !important;
    color:        #ffc        !important;
    border-color: #a40 #d70 #d70 #a40 !important;
    text-shadow:  0 1px 1px #654      !important;
  }
  #header #nav #mainmenu a:focus,
  #header #nav #mainmenu a:hover {
    background:   #c60  !important;
    border-color: #c60  !important;
    text-shadow:  1px 1px 2px #321  !important;
  }

  #userbox {
    line-height: 24px !important;
    padding:     0    !important;
  }
  #userbox > br {
    display:  none;
  }
  #userbox #homeMenu {
    padding-right:  0.5ex  !important;
    padding-left:   0.5ex  !important;
    background:     #765   !important;
    border:         solid 1px #876      !important;
    border-color:   #876 #654 #654 #876 !important;
   -moz-box-shadow: #543 2px 2px 3px;
  }
  #userbox #homeMenu > li > a {
    padding-right:  0.5ex  !important;
    padding-left:   0.5ex  !important;
  }

  #header #script_search {
    padding-top: 0     !important;
    margin-top:  3px   !important;
    width:       230px !important;
  }
  #header #script_search #script_q {
    line-height:  17px    !important;
    padding:      2px 7px !important;
    margin:       0 5px   !important;
    height:       auto    !important;
    border:       solid 1px #cc9  !important;
   -moz-border-radius: 5px;
   -moz-box-shadow:    inset 1px 1px 1px rgba(0,0,0,.5);
  }
  #header #script_search #script_q_label {
    position:  absolute    !important;
    margin:   -3ex 0 0 2ex !important;
    color:     inherit     !important;
  }

  #root {
    margin-bottom: -3ex  !important;
  }
  #root #root_footer {
    height: 5ex  !important;
  }
  #footer {
    margin-top: 0       !important;
    overflow:   hidden  !important;
    color:      inherit !important;
    border-top: solid 3px #960  !important;
  }
  #footer .col,
  #footer p {
    padding:  0  !important;
    margin:   0  !important;
  }


  /**
   * Content Section...
   */
  #header #mainmenu .active {
    background-image: -moz-linear-gradient(top, #321, #432 50%, #4c3b2a)  !important;
   -background-color: #4c3b2a  !important;
    box-shadow:       inset 0 3px 6px -3px rgba(0,0,0,.75)  !important;
    border-color:     rgba(255,255,255,.125)  !important;
  }
  #section {
    background-color:     #4c3b2a  !important;
    box-shadow:           inset 0 1px 4px rgba(0,0,0,.375)  !important;
    border-bottom-color:  rgba(255,255,255,.25)  !important;
  }
  #script-nav > .current {
    background-color: #654  !important;
    box-shadow:       0 -2px 4px -2px rgba(0,0,0,.375)  !important;
    border-radius:    4px 4px 0 0;
    border-color:     rgba(255,255,255,.125)  !important;
  }

  #content {
      border-left: solid 0px #876 !important;
      border-top:  solid 0px #876 !important;
  }

  body#site-home #browser-news li {
    height:     auto  !important;
    min-height: 32px  !important;
  }
  body#site-home #browser-news li.webkit {
    background-size:  24px 24px  !important;
  }

  #right {
    background: transparent !important;
      padding-left: 20px;
      width:        210px;
    color:      inherit     !important;
  }
  #right h6 {
    border-color: #876  !important;
  }

  #heading,
  #script-nav {
    background: transparent !important;
    color:      inherit     !important;
  }
  #heading > #details {
    color:  #ccc  !important;
  }
  #script-nav > li {
    background: transparent  !important;
    color:      #fff         !important;
  }
  #script-nav > li span {
    color:  #ccc  !important;
  }
  .pagination a,
  .subnav     a {
    padding-right:  0.5ex   !important;
    padding-left:   0.375ex !important;
    background:     #654 -moz-linear-gradient(top, #6e5d4c 50%, #654 100%) !important;
    border:         solid 1px transparent  !important;
   -moz-box-shadow: 1px 1px 0px rgba(0,0,0,.25);
  }
  .pagination a:focus,
  .subnav     a:focus,
  .pagination a:hover,
  .subnav     a:hover {
    background: #765 -moz-linear-gradient(top, #7f6e5d 50%, #6e5d4c 100%) !important;
  }
  .pagination .current,
  .subnav     .current {
    background:   #654  !important;
    color:        #cc9  !important;
    border-color: #543 #765 #765 #543  !important;
    text-shadow: -1px -1px 1px rgba(0,0,0,.25);
   -moz-box-shadow: inset 1px 1px 3px rgba(0,0,0,.25);
  }
  .pagination .disabled,
  .subnav     .disabled {
    text-shadow: -1px -1px 1px rgba(0,0,0,.5);
    color:        #987;
  }

  #review-list .overview .count,
  #review-list .overview,
  #about-summary .details,
  #about-summary #topics table {
    background: #765  !important;
    color:      #ccc  !important;
  }
  #review-list .overview {
    background: transparent  !important;
  }

  a.userjs,
  a.greenbutton,
  .greenbutton {
    text-decoration: none  !important;
    background:   #996 -moz-linear-gradient(top, #876 33%, #543 100%)  !important;
    display:      inline   !important;
    padding:      2px 16px !important;
    margin:       5px 3px  !important;
    border:       solid 1px #654  !important;
    border-color: #543 #543 #432  !important;
    text-shadow:  1px 1px 2px #321;
  }
  a.userjs:focus,
  a.userjs:hover,
  .greenbutton:focus,
  .greenbutton:hover {
   -moz-box-shadow: 0 0 5px 1px #cba;
    border-color:   #654 #654 #543  !important;
  }

  body.scripts #screenshots {
    background:   #876  !important;
    border-color: #654 #987 #987 #654  !important;
  }
  body.wide #content {
    overflow-x: visible  !important;
  }
  #content pre#source {
    margin-bottom:  0    !important;
    overflow:       auto !important;

    background-color: #d8d4d0 !important;
    box-shadow:       0 1px 6px 1px rgba(0,0,0,.375);
    margin:           0 5px   !important;
    color:            #654;
    border:           none    !important;
  }

  body.messages #content li.unread,
  .vcard,
  .inv {
    background: #736251  !important;
    color:      inherit  !important;
  }
  .date,
  .posts {
    color:  inherit  !important;
  }
  .posts .topic {
    background:   transparent  !important;
    margin-top:   0  !important;
    text-shadow:  0 1px 1px rgba(0,0,0,.5);
  }

  .button_or {
    color: #cba  !important;
  }
  .inlinehelp {
    background-color: transparent !important;
    color:            #998        !important;
  }

  .errorExplanation,
  #uso,
  .notice {
    background:   #863         !important;
    position:     relative     !important;
    margin:       5px 5px 15px !important;
    color:        #eed         !important;
    border-color: #986 #653 #653 #986  !important;
   -moz-box-shadow: 2px 2px 3px rgba(0,0,0,.25);
   -moz-border-radius: 1px;
  }
  .notice.info {
    background:   #875  !important;
  }
  #uso h2,
  #uso {
    color:  #ffc  !important;
  }
  #uso {
    background: rgba(255,255,170,.25) !important;
    padding:    10px 0  !important;
  }
  #uso li {
    background: rgba(255,225,0,.25) !important;
  }

  .errorExplanation {
    background-color: #854  !important;
    color:            #cbb  !important;
    border-color:     #876 #654 #654 #876  !important;
  }
  .errorExplanation h2 {
    background-color: #622  !important;
    color:            #caa  !important;
    border-bottom:    solid #876 1px  !important;
  }

  #lightbox-nav-btnPrev,
  #lightbox-nav-btnNext {
    background-color: transparent  !important;
  }
  #lightbox-nav-btnPrev:focus,
  #lightbox-nav-btnPrev:hover {
    background: url('http://userscripts.org/images/lightbox-btn-prev.gif') no-repeat left 15%  !important;
  }
  #lightbox-nav-btnNext:focus,
  #lightbox-nav-btnNext:hover {
    background: url('http://userscripts.org/images/lightbox-btn-next.gif') no-repeat right 15%  !important;
  }
}