@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document url-prefix(http://www.google.com/search?)
{

/* -----------------------------------------------
 * Properties that affect the entire search results page
 * ----------------------------------------------- */

body 
{ 
  background: #9F968B !important; 
  overflow-x: hidden !important; 
}
font { color: black !important; }


/* -----------------------------------------------
 * Default colors for all links
 * ----------------------------------------------- */

a, a > u { text-decoration: none !important; }
a:link { color: #0000CC!important; }
a:visited { color: #4b8745!important; }
a:active { color: #92CDFF!important; }
a:hover { color: #CC0099!important; }


/* -----------------------------------------------
 * Squeeze header and change font color
 * ----------------------------------------------- */

div[id='gb'] 
{ 
  background: #9F968B !important;   
  border: none !important;
}
a[class^='gb'] 
{ 
  background: none !important;
  color: black !important;
  height: 21px !important;
  border-top: none !important;
}
a[class^='gb']:hover
{ 
  background: grey !important;
  color: #EFEFEF !important;
}
span[class='gbts']
{
  position: relative !important;
  top: -5px !important;
}
span[class='gbma'] { border-color: black transparent transparent !important; }
span[id='gbztms']
{ 
  height: 18px !important; 
  border: none !important;
  color: black !important;
}
span[class='gbtcb'] { background: white !important; }
span[class='gbtcb'] { display: none !important; }
span[class='gbtb2'] 
{ 
  background: #5E5E5E !important; 
  height: 2px !important;
}
span[id='gbi4m1'] { color: black !important; }
li[class='gbt gbtb'] { border: none !important; }
div[id='gb'] { max-height: 10px !important; }
div[id^='gbx'] { display: none !important; }
div[id^='gbz'] { height: 21px !important; }
div[id^='gbg'] { height: 21px !important; }
span[id='gbgs4'] 
{ 
  position: relative !important;
  top: 0px !important;
  background: #9F968B !important;   
  border: none !important;
  height: 12px !important;
}
span[id='gbi4']
{ 
  position: relative !important;
  top: -5px !important;
}
span[id='gbi4']:hover { background: grey !important; }
div[id='gbd4'] 
{ 
  border: 2px solid #837565 !important;
  top: 22px !important;
  background: #CED7C8 !important;  
}
li[class='gbt gbtb gbto'] 
{ 
  border: none !important; 
  height: 34px !important; 
}
table[id='gbmpal']:hover { background: #9F968B !important; }
table[id='gbmpal']:hover a[id='gb_71'] { color: white !important; }


/* -----------------------------------------------
 * Reposition "more" drop down menu
 * ----------------------------------------------- */

div[id='gbd']
{
  position: absolute !important;
  top: 19px !important;
  left: 366px !important;
  background: #CED7C8 !important;  
  border: 2px solid #837565 !important;
}
div[class='gbm'] a { color: #404040 !important; }
div[class='gbm'] a:link:hover 
{ 
  color: white !important; 
  background: #9F968B !important;
}
div[class='gbd'] { border: 1px solid #837565 !important; }


/* -----------------------------------------------
 * Reposition multi-login box
 * ----------------------------------------------- */

form[name='gmLoginForm'] 
{ 
  position: relative !important;
  left: 1px !important;
  top: -2px !important;
  font-size: 12px !important;
}

/* -----------------------------------------------
 * Remove Google logo from results page
 * ----------------------------------------------- */

#logo { display: none !important; }


/* -----------------------------------------------
 * Remove Google sidebar
 * ----------------------------------------------- */

#leftnav { display: none; }

#center_col 
{ 
  margin-left: 0px !important;
  border-left: none !important;
}


/* -----------------------------------------------
 * Main search box area
 * ----------------------------------------------- */

td[class='lst-td'] { border: none !important; }
form[id='tsf'] div div[class='tsf-p'] table { border: none !important; }
div[class='ds'] { border: none !important; }
div[class='lsbb'] { border: none !important; }

div[id='foot'] div div form table tbody tr td[class='lst-td']
{ display: none !important; }

/* Search box */
::-moz-selection 
{ 
  background: #3399FF !important;
  color: white !important; 
}
input[class='lst']
{
  -moz-appearance: none !important;   
  border: solid 1px black !important;
  padding-left: 10px !important;
  padding-right: 9px !important;
  background: #CED7C8 !important;
  color: black !important;
  font-size: 15px !important;
  font-weight: normal !important;
  -moz-border-radius: 10px !important;
  position: absolute !important;
  height: 17px !important;
  top: -17px !important;
  left: -162px !important;
  width: 340px !important;
  z-index: 120 !important;
}
input[class='lst']:hover 
{ 
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAXCAMAAAAfmM5EAAAABGdBTUEAALGPC/xhBQAAAwBQTFRFs7Oz2tra6Ojo6+vr7e3t7u7u7+/v8vLy8/Pz9fX19/f3+vr6+/v7/f39////AAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFSE67wAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAUGFpbnQuTkVUIHYzLjUuN6eEncwAAAAwSURBVBhXrc3JAQAQAMTAuG/9l4ulBPPJM3BZwQneh40opHxQhCo0oY+DKZ/ytkYWcN0FVfFzBecAAAAASUVORK5CYII=") repeat-x 0px -1px !important;
  opacity: 1 !important; 
}

/* Position of drop down search menu */
div[class='gac_od'] 
{ 
  background: none !important; 
  border: none !important; 
  z-index: 105 !important;
}
div[class='gac_od'] div[class='gac_id']
{
  position: relative !important;
  top: -1px !important;
  left: 7px !important; 
  width: 341px !important;
  border: solid 2px black !important;
}
table[class='gac_m'] { background: #F8F8F8 !important; }
table[class='gac_m'] tbody tr[class='gac_b'] td[class^='gac_c']
{   
  background: #9F968B !important; 
  color: white !important;
}
td[class^='gac_c']
{ 
  padding-left: 11px !important;
  padding-bottom: 2px !important;
  height: 18px !important;
  font-size: 91% !important;  
}


/* -----------------------------------------------
 * Move "Advanced Search" and number of results
 * ----------------------------------------------- */

div[id='subform_ctrl'] div:first-child
{
  position: relative !important;
  color: #404040 !important;
  font-size: 11px !important;
  background: #CED7C8 !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  padding-left: 7px !important;
  padding-right: 7px !important;
  -moz-border-radius: 7px !important;
  border: 1px black solid !important;
}
div[id='subform_ctrl'] div[style="float:right"]
{
  position: absolute !important;
  top: 27px !important;
  left: 377px !important;  
}
div[id='subform_ctrl'] div:hover { background: #BFBFBF !important; }
html body#gsr div#main div#cnt div#subform_ctrl div div#resultStats
{
  position: absolute !important;
  top: 27px !important;
  left: 489px !important;
}
html body#gsr div#main div#cnt div#subform_ctrl div div#resultStats nobr { margin-right: -3px !important; }
div[id='subform_ctrl'] div a { color: #404040 !important; }


/* -----------------------------------------------
 * Page number navigation bar
 * ----------------------------------------------- */

/* Positions navigation bar and adds background color to cells */
#nav
{
  display: block !important;
  position: fixed !important;
  top: 7px !important;
  right: 7px !important;
  background: #CED7C8 !important;
  -moz-border-radius: 10px !important; 
  border: 1px solid black !important;
  height: 23px !important;
  z-index: 103 !important;  
}
#nav tr { margin-left: 15px !important; }
div[id='sfcnt'] div[class='lsd'] { display: none !important; }

/* Pushes numbers down */
html body#gsr div#main div#cnt div#foot.tsf-p div#navcnt table#nav tbody tr td { line-height: 23px !important; }
html body#gsr div#main div#cnt div#foot.tsf-p div#navcnt table#nav tbody tr td a[class='fl']
{
  position: relative !important;
  margin-top: 0px !important;
}
html body#gsr div#main div#cnt div#foot.tsf-p div#navcnt table#nav tbody tr td a[class='pn']
{
  position: relative !important;
  margin-top: -1px !important;
}

/* Removes Goooooogle pic from navigation bar */
span[class^='csb'] { display: none !important; }

/* Color and font of numbers */
#nav td
{
  font-size: 16px !important;
  font-weight: bold !important;   
  color: #AFAFAF !important;
}

/* Color and weight for numbers of other pages, padding so anywhere within cells may be clicked */
table[id^=nav] > tbody > tr > td > a
{
  color: #5E5E5E !important;
  padding-left: 12px !important;
  padding-right: 12px !important; 
}
table[id^=nav] > tbody > tr > td > a:hover { color: #EF00D3 !important; }

/* Adjustments to margins around Previous link */
table[id='nav'] { padding-left: 14px !important; }

table[id='nav'] tbody tr td[class='b'] a[class='pn'] span:last-child { margin-right: -4px !important; }
table[id='nav'] tbody tr td[class='b'] a[class='pn'] span:last-child { margin-left: -2px !important; }


/* -----------------------------------------------
 * Remove "Did you mean to search for:"
 * ----------------------------------------------- */

div[id='res'] div[class='med'] p { display: none !important; }
div[id='res'] p[class='ssp']
{
  position: absolute !important;
  top: -93px !important; 
  font-size: 14px !important;
  left: 433px !important;
  width: 626px !important;
  z-index: 145 !important;
  height: 17px !important;
  background: #CED7C8 !important;
  border: 1px solid black !important;
  -moz-border-radius: 10px !important;
  padding-top: 3px !important;
  padding-left: 12px !important;
  line-height: 14px !important;
}
div[id='res'] p[class='sp_cnt']
{
  position: absolute !important;
  top: -98px !important; 
  left: 393px !important;
  font-size: 11px !important;
  z-index: 102 !important;
  width: 626px !important;
  height: 19px !important;
  background: #CED7C8 !important;
  border: 1px solid black !important;
  -moz-border-radius: 10px !important;
  padding-top: 0px !important;
  padding-bottom: 1px !important;
  padding-left: 12px !important;
}
div[id='res'] p[class='sp_cnt'] nobr
{
  position: relative !important;
  top: 3px !important;
}
div[id='res'] p[class='sp_cnt'] nobr:first-child
{
  position: relative !important;
  top: 3px !important;
}
span[id='topstuff']
{
  position: absolute !important;
  top: 46px !important; 
  left: 0px !important;
}
span[id='topstuff'] p { width: 400px !important; }
div[id='res'] p[class='ssp']:first-child { display: none !important; }
div[id='ires'] ol li div[class='med'] ul { display: none !important; }
div[id='res'] p[class='sp_cnt']:first-child nobr { visibility: hidden !important; }


/* ---------------------------------------------------------
 * Don't know what this controls anymore, but it's necessary
 * --------------------------------------------------------- */

div[id='cnt']
{
  position: absolute !important;
  top: 0px !important;
  left: 0px !important;
}


/* -----------------------------------------------
 * Search results
 * ----------------------------------------------- */

div[id='res'] div ol 
{ 
  position: relative !important; 
  top: -40px !important;
  left: -10px !important;
  z-index: 103 !important;
}
div[id='res'] { margin-right: -556px !important; }

/* Multiple columns */
#res.med > div { -moz-column-count: 3 !important; }
#rso { -moz-column-count: 3 !important; }

/* Cells */
table[class='ti'] tbody tr td p { display: none !important; }
.g 
{
  border: solid 1px black !important;
  width: 441px !important;
  -moz-border-radius: 10px !important;
  background: #fdfcf7 !important;
  margin-top: 6px !important;
  margin-bottom: 6px !important;
  margin-left: 0px !important;
  margin-right: 3.5px !important;
}
.g:hover 
{
  border: solid 1px #000000 !important;
  background: #FFFBBF !important;  
}
div.s 
{ 
  overflow: hidden!important; 
  font-size: 14px !important; 
}

/* Padding within cells */
li.g 
{ 
  overflow: auto !important; 
  padding-left: 0.9em !important; 
  padding-right: 0.7em !important; 
  padding-top: 0.6em !important; 
  padding-bottom: 0.7em !important; 
}

/* News results padding */
div[id='multi_column_view'] table tr td li[class='g'] table[class='ts']:last-child tbody tr td a img { margin-left: .5em; }

/* Videos padding */
div[id='multi_column_view'] table tr td li[class='g'] div:last-child { padding-left: .7em !important; }
div[id='multi_column_view'] table tr td li[class='g'] table[class='ts']:first-child tbody tr td a img { margin-left: 0em !important; }
div[id='multi_column_view'] table tr td li[class='g'] table[class='ts'] 
{ 
  margin-top: 0.3em !important; 
  margin-bottom: -.5em !important; 
}
ol[id='rso'] li[class='g w0'] div[class='s'] span[class='gl'] { display: none !important; }
div[class='csb mbi'] { display: none !important; }
button[title='Comment'] { display: none !important; }
button[title='Promote'] { display: none !important; }
button[title='Remove'] { display: none !important; }


/* -----------------------------------------------
 * Removing stuff I don't find useful
 * ----------------------------------------------- */

/* "Searches related to" */
div[id='brs'] div[class='med'] { display: none !important; }
/* Remove scholarly articles results */
div[id='res'] div[class='e'] { display: none !important; }
/* Ad box */
table[id='mboxEnd'] { display: none !important; }
/* Remove "Related searches:" and "Searches related to:" */
table[id='brs'] caption[class='med nobr'] { display: none !important; }
div[id='trev'] table[class='ts'] tbody tr { display: none !important; }
/* Remove "More results from answers..." */
div[id='res'] div ol li[class='g w0'] div[class='s'] div[class='fc'] p { display: none !important; }
/* Remove SearchWiki notes */
div[id='wml'] { display: none !important; }
/* Remove SearchWiki notes */
div[id='scTopOfPageRefinementLinks']
{ 
  display: none !important; 
  position: relative !important;
  top: 15px !important;
  left: 7px !important;
}
/* Remove product rating stars */
ol[id='rso'] li[class='g w0'] div[class='s'] div[class='f'] nobr table[class='ti'] tbody tr td p { display: none !important; }
div[class='f'] nobr table[class='ti'] tbody tr td p { display: none !important; }
/* Blue bar after "Results for:" */
div[id='res'] div ol li hr { display: none !important; }
/* Remove "In order to show you the..." */
p[id='ofr'] { display: none !important; }
/* Map */
html body#gsr div#main div#cnt div#nr_container div#rhs div#rhs_block div#rhs_map { display: none !important; }
/* Ads */
html body#gsr div#main div#cnt div#nr_container div#rhs { display: none !important; }
/* Alternative Search Suggestions */
html body#gsr div#main div#cnt div#nr_container div#center_col div#res.med div#brs { display: none !important; }
/* Related searches */
html body#gsr div#main div#cnt div#nr_container div#center_col div#res.med div#topstuff div#trev.std { display: none !important; }
/* Search tips */
div[class='std stp'] { display: none !important; }


/* ------------------------------------------
 * File type (ex: [PDF] at left to page link) 
 * ------------------------------------------ */

.g .w { color: #B88A00 !important; }


/* -----------------------------------------------
 * Results of images of...
 * ----------------------------------------------- */

div.e > a > img
{
  max-height: 35px !important;
  width: 8% !important;
  height: 8% !important;
}


/* -----------------------------------------------
 * Special search boxes
 * ----------------------------------------------- */

#saddr { width: 125px !important; }     /* Google Maps search box */
#nqsbq { display: none !important; }     /* Very rare seach box, I found searching Last.fm at Google, change value if you have an overflow */
div[id='res'] div ol li p[class='g'] { display: none !important; }


/* -----------------------------------------------
 * Related searches
 * ----------------------------------------------- */

#brs td { font-size: 0 !important; }


/* -----------------------------------------------
 * Other elements removed from page
 * ----------------------------------------------- */

#footer,span[id='xjs'] div[class='std'] nobr,#np,#nf,#nc,.nr,#nn,#nl,div[id='brs'] div[class='brs_col'] p,.std img,#res table body tr td img,#tads,#mbEnd { display: block !important; }

div[id='res'] div[class='med'] ul,div[id='res'] div[class='med'] p:first-child+p,div[id='foot'] div p { display: none !important; }

div[id='fll'] { display: none !important; }

/* Search & Clear buttons */
input[type='Submit']:first-child { display: block !important; }
input[type='Submit']:last-child { display: none !important; }
table[id='nav'] tbody tr td[class='cur']
{
  padding-right: 0px !important;
  padding-left: 0px !important;
}

table[id='nav'] tbody tr td[class='b']:last-child { padding-right: 18px !important; }

}
