@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document
  url-prefix("http://www.google.com/search?"),
  url-prefix("http://images.google.com/images?")
{

  #gbar, #guser, .gbh, #gb, /* user and alternate search links */

  #logo,#sft td.tc:first-child > a[title^="Go to Google"],
  #nav ~ div.clr,  #footer, table.ft, /* footer, including bottom search box */
  body > center, /* post-footers */
  #navbar div[id^="n"], #navbar div[class^="n"], #nav span, /* navigation link images */
  #prs, /* redundant display of type of search */
  #sft table td + td, /* advanced, prefs */
  #sft input[type="submit"], /* submit button */
  #sft .tb tr + tr, #sft + div + .bt + div > font, /* image search preferences */
  #sft + div:not([class]):not([id]), /* image labeler link */
  #res > br, /* extra space */
  #res ~ a, #res ~ a#logo ~ div, /* no results, so the html breaks */


  .ra, /* ads? */
  #rhsline, #tads /* sponsored links */
  { display: none !important; }

  * { font-size: inherit !important; }

  table, td, body > div, #ssb p,
  div.s,
  #ssb
  {
    background: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  a:link, a:visited { text-decoration: none !important; }
  a:link:hover, a:visited:hover { text-decoration: underline !important; }

  form#tsf, form#tsf table,
  #sft input[type="text"]
  {
    width: 100% !important;
  }

  #ssb, #resultStats { opacity: 0.4 !important; font-size: 70% !important; }
  #ssb p { text-align: left !important; }

  .r { font-size: 120% !important; }
  .j .a, .j .a ~ * /* bottom line of results */
  {
    font-size: 80% !important;
  }

  #navbar td, #nav td { padding: 0 2px !important; }
  #navbar a , #nav a  { padding: 0 0.2em !important; }

}


@-moz-document url-prefix("http://images.google.com/images?")
{
  #sft ~ table.t.bt td:not([id]) /* image size selector */
  { display: none !important; }
}

/* 20090908 */