@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* ******************************************* */
/* To address add-on page conflicts with style */  
/* ******************************************* */

@-moz-document url("about:addons")
{
page
{
 position: relative !important;
 top: 220px !important;
 background: lightgrey !important;
}
}

@-moz-document url(chrome://browser/content/browser.xul)
{

/* ********************************************* */
/* Change appearance of Firefox application menu */  
/* ********************************************* */

#appmenu-button > .button-box > .button-menu-dropmarker { opacity: .9 !important; }
#appmenu-button:hover:not([open]) > .button-box > .button-menu-dropmarker { opacity: 1 !important; }
#main-window #appmenu-button
{
  background-image: url("http://img412.imageshack.us/img412/4058/blueicony.png"),-moz-radial-gradient(center bottom, farthest-side, hsla(210,48%,90%,.5) 10%, hsla(210,48%,90%,0) 70%),
                    -moz-radial-gradient(center bottom, farthest-side, hsla(211,70%,83%,.5), hsla(211,70%,83%,0)),
                    -moz-linear-gradient(hsl(211,33%,32%), hsl(209,53%,10%) 95%) !important;
  border-color: hsla(210,59%,13%,.9) !important;
  box-shadow: 0 1px 0 hsla(210,48%,90%,.15) inset,
              0 0 2px 1px hsla(210,48%,90%,.4) inset,
              0 -1px 0 hsla(210,48%,90%,.2) inset !important;
  border-color: rgba(0,0,0,.4);
  background-repeat: no-repeat !important;
  background-position: 4px center, right center, -2px -1px, 0, 0, 0, 0!important;
  padding: 5px 5px 1px 0 !important;
  margin-left: 3px !important;
  margin-bottom: -1px !important;
  min-height: 21px !important;
  height: auto !important;
  min-width: 36px !important;
  width: auto !important;
  -moz-transition: opacity 0.3s ease-in-out !important;
  opacity: 1.0;
  border: none !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset,
              0 0 1.5px 1px rgba(250,234,169,.7) inset,
              0 -1px 0 rgba(250,234,169,.5) inset;
}
#main-window #appmenu-button:hover
{
  background-image: url("http://img412.imageshack.us/img412/4058/blueicony.png"),-moz-radial-gradient(center bottom, farthest-side, hsla(202,100%,85%,.5) 10%, hsla(202,100%,85%,0) 70%),
                    -moz-radial-gradient(center bottom, farthest-side, hsla(205,100%,72%,.7), hsla(205,100%,72%,0)),
                    -moz-linear-gradient(hsl(208,98%,34%), hsl(213,87%,20%) 95%) !important;
  border-color: hsla(214,89%,21%,.9) !important;
  box-shadow: 0 1px 0 hsla(205,100%,72%,.15) inset,
              0 0 2px 1px hsla(205,100%,72%,.5) inset,
              0 -1px 0 hsla(205,100%,72%,.2) inset !important;
  border-color: rgba(0,0,0,.4);
}
#main-window #appmenu-button[open]
{
  background-image: url("http://img412.imageshack.us/img412/4058/blueicony.png"),-moz-radial-gradient(center bottom, farthest-side, hsla(275,100%,95%,.5) 10%, hsla(275,100%,95%,0) 70%),
                    -moz-radial-gradient(center bottom, farthest-side, hsla(275,50%,72%,.7), hsla(275,100%,72%,0)),
                    -moz-linear-gradient(hsl(275,89%,34%), hsl(275,87%,20%) 95%) !important;

  border-color: hsla(214,89%,21%,.9) !important;
  box-shadow: 0 1px 0 hsla(205,100%,72%,.15) inset,
              0 0 2px 1px hsla(205,100%,72%,.5) inset,
              0 -1px 0 hsla(205,100%,72%,.2) inset !important;
  border-color: rgba(0,0,0,.4);
}
#main-window #appmenu-button .button-text { display: none !important; }
#main-window:not([inFullscreen]) #appmenu-button-container 
{ 
  position: relative !important;
  z-index: 1;
}


/* ********************************* */
/* Adjusting height and font of tabs */
/* ********************************* */

.tabbrowser-tabs 
{ 
  margin-bottom: -1px !important;  
  max-height: 24px !important; 
}
tab
{ 
  color: white !important;
  font-weight: 600 !important;
  text-shadow: black 1px 1px 1px;
  margin-top: 1px !important;
}
.tab-close-button { margin-bottom: 3px !important; }
.tab-text { margin-top: -1px !important; }
.tab-icon-image { margin-top: -2px !important; }


/* ************************************************** */
/* Adjusting new tab button and tab scrolling buttons */
/* ************************************************** */

.tabs-newtab-button,
#TabsToolbar > #new-tab-button
{
  list-style-image: url("http://imageshack.us/a/img696/5226/newtab5.png") !important;
  -moz-image-region: rect(4px, 16px, 18px, 0) !important;
  margin-top: 3px !important;
  margin-bottom: 0px !important;
}
.tabs-newtab-button:hover,
#TabsToolbar > #new-tab-button:hover
{
  list-style-image: url("http://imageshack.us/a/img696/5226/newtab5.png") !important;
  -moz-image-region: rect(4px, 32px, 18px, 16px) !important;
  margin-top: 3px !important;
  margin-bottom: 0px !important;
}


/* ******************************************** */
/* Layer pinned tabs between navigation toolbar */
/* ******************************************** */

.tabbrowser-tabs .tabbrowser-tab[pinned] { height: 22px !important; }


/* *********************************************** */
/* Remove "List all tabs" and "Group tabs" buttons */
/* *********************************************** */

#alltabs-button { display: none !important; }
#tabview-button { display: none !important; }


/* ******************************* */
/* Remove red Tab Utilities border */
/* ******************************* */

/* Remove red Tab Utilities border */
.tabbrowser-tabs:not([highlightLocked]) .tabbrowser-tab[locked] 
{
  outline: 0px solid red !important;
  outline-offset: -1px !important;
  -moz-outline-radius: 4px !important;
}


/* ***************************************** */
/* Adds padding to bottom of navigation bar  */
/* ***************************************** */

#navigator-toolbox
{ 
  margin-bottom: -1px !important; 
}
#nav-bar
{ 
  margin-bottom: -4px !important; 
  border: none !important;
}
#nav-bar > #urlbar-container
{ 
  margin-top: -5px !important;
  border: none !important;
}
#nav-bar > toolbarbutton { margin-top: -5px !important; }
#nav-bar > #unified-back-forward-button { margin-top: -5px !important; }


/* ************************* */
/* Adding gradient to urlbar */
/* ************************* */

.urlbar-frontcap { padding-top: 2px !important; }
#urlbar
{ 
  font-family: verdana !important;
  font-size: 11px !important;
  margin-top: 1px !important;
  height: 22px !important;
  background: url("http://img690.imageshack.us/img690/5281/barshade12p.png") repeat-x center !important;  
  opacity: .65 !important;  
  border: none !important;
}
#urlbar:hover
{ 
  background: url("http://img690.imageshack.us/img690/5281/barshade12p.png") repeat-x center !important;  
  opacity: .85 !important;  
  border: none !important;
}
#urlbar[focused="true"]
{ 
  background: url("http://img690.imageshack.us/img690/5281/barshade12p.png") repeat-x center !important;  
  opacity: .99 !important;  
  border: none !important;
}
#identity-box 
{ 
padding-top: 3px !important; 
padding-bottom: 3px !important;
margin-right: -5px !important;
background: none !important; 
border: none !important; 
}


/* *************************************************** */
/* Changes color of dropdown menus (including url bar) */
/* *************************************************** */

/* Removes buttons */
#star-button { display: none !important; }
.autocomplete-history-dropmarker { display: none !important; }

/* Changes url bar dropdown menu colors and removes margin/padding */
#PopupAutoCompleteRichResult richlistitem,#PopupAutoCompleteRichResult richlistitem *
{
  margin: 0px !important;
  color: white !important;
  padding-top: 2px;
  padding-bottom: 2.2px;
  font-family: Segoe UI, SegoeUI, calibri, verdana, helvetica, tahoma, Arial !important;
  font-size: 11px !important; 
  background: #0f0f14 url("http://img203.imageshack.us/img203/7473/panelc.png") repeat-x center !important;
}
#PopupAutoCompleteRichResult richlistitem .ac-site-icon 
{ 
  height: 17px !important; 
  width: 13px !important; 
  padding-right: 1px !important;
}

/* Changes borders of url bar dropdown menu rows */
#PopupAutoCompleteRichResult richlistitem
{ 
  border-top: solid 1px black !important;
  border-bottom: solid 1px grey !important;
  border-left: solid 1px grey !important;
  border-right: solid 1px grey !important;
}
#PopupAutoCompleteRichResult richlistitem[selected="true"] { border: solid 1px #00C7F9 !important; }

/* Hides space, and unnecessary items, thereby shrinking url bar dropdown rows */
#PopupAutoCompleteRichResult richlistitem .ac-result-type-bookmark,
#PopupAutoCompleteRichResult richlistitem .ac-extra,
#PopupAutoCompleteRichResult richlistitem .ac-url-box  { display: none !important; }

/* Shifts url bar dropdown row favicons & titles */
#PopupAutoCompleteRichResult richlistitem .ac-title { margin-left: 5px !important; }
#PopupAutoCompleteRichResult richlistitem .ac-site-icon { margin-left: 5px !important; }

/* Shades search bar and changes font colors */
.searchbar-textbox { opacity: 0.75 !important; }
.searchbar-textbox:hover { opacity: 0.91 !important; }
.searchbar-textbox[focused="true"] { opacity: 0.98 !important; }
#searchbar .autocomplete-textbox-container 
{ 
  color: grey !important; 
  font-family: verdana !important;
  font-size: 11px !important;
}
#searchbar .autocomplete-textbox-container:hover { color: #1F1F1F !important; }
#searchbar .autocomplete-textbox-container[focused=true] { color: black !important; }

/* Removes border from searchbar dropdown menu panel */
panel { border: none !important; }

/* Changes color of searchbar dropdown menu */
.autocomplete-treebody::-moz-tree-row { background: black url("http://img203.imageshack.us/img203/7473/panelc.png") repeat-x center !important; }
.autocomplete-treebody::-moz-tree-row(selected) 
{ 
  background: black url("http://img203.imageshack.us/img203/7473/panelc.png") repeat-x center !important; 
  border: 1px solid #00C7F9 !important;
}
.autocomplete-treebody::-moz-tree-cell-text 
{ 
  margin-left: -3px !important; 
  color: white !important; 
}
.autocomplete-treebody::-moz-tree-cell-text(selected) { color: #00C7F9 !important; }


/* ***************************** */
/* More colorful toolbar buttons */
/* ***************************** */

#home-button .toolbarbutton-icon
{
  list-style-image: url("http://img838.imageshack.us/img838/4746/toolbar1.png") !important;
  -moz-image-region: rect(4px, 118px, 20px, 97px) !important;
}
#undoclosetab-button .toolbarbutton-icon
{ 
  list-style-image: url("http://img217.imageshack.us/img217/5035/toolbar3.png") !important;
  -moz-image-region: rect(0px, 0px, 0px, 0px) !important;
}
#back-button .toolbarbutton-icon
{ 
  list-style-image: url("http://img163.imageshack.us/img163/5042/backln.png") !important;
  -moz-image-region: rect(0px, 0px, 0px, 0px) !important;
}
#forward-button .toolbarbutton-icon
{ 
  list-style-image: url("http://img808.imageshack.us/img808/8484/forwardrr.png") !important;
  -moz-image-region: rect(0px, 0px, 0px, 0px) !important;
}
#print-button .toolbarbutton-icon
{
  list-style-image: url("http://img707.imageshack.us/img707/3443/printer.png") !important;
-moz-image-region: rect(-1px, 18px, 16px, -2px) !important;
}
#history-button .toolbarbutton-icon
{
  list-style-image: url("http://img202.imageshack.us/img202/15/historysmallr.png") !important;
  -moz-image-region: rect(2px, 23px, 21px,0px) !important;
}
#bookmarks-button .toolbarbutton-icon
{
  list-style-image: url("http://img822.imageshack.us/img822/1372/bookmarksmenubuttonsmal.png") !important;
  -moz-image-region: rect(1px, 17px, 16px, -2px) !important;
}
.toolbarbutton-1 { opacity: 0.95 !important; }
.toolbarbutton-1:hover { opacity: 1 !important; }


/* ************************** */
/* Autohide add-on/status bar */
/* ************************** */

/* Autohides add-on bar */
#addonbar-closebutton { display: none !important; }
#main-window[sizemode="maximized"] #addon-bar { right: 18px !important; }
#addon-bar
{
  position: fixed !important;
  right: 20px !important;
  bottom: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  margin-right: 2px !important;
  padding-top: 3px !important;
  border-radius: 4px 4px 0 0;
  border: 0 !important;
  border-left: 1px solid #0000FF !important;
  border-right: 1px solid #0000FF !important;
  border-top: 1px solid #0000FF !important;
  -moz-transition: bottom .7s .6s ease-in, opacity .7s .6s ease-in !important;
  background: -moz-linear-gradient(top,rgba(0,0,0,1),rgba(0,0,0,.4)) !important
}
#addon-bar:hover
{
  bottom: 0 !important;
  opacity: 1 !important;
  -moz-transition: bottom .8s .2s ease-out, opacity .8s .2s ease-in !important;
}

/* Adjusts position of icons in addon bar and not status bar */
#stylish-custom-toolbar-manage { visibility: hidden !important; }
#addon-bar:hover #stylish-custom-toolbar-manage { visibility: visible !important; }
#stylish-custom-toolbar-manage
{ 
  position: relative !important; 
  top: -1px !important; 
  padding-left: 4px !important;
}
#zotero-toolbar-button { visibility: hidden !important; }
#addon-bar:hover #zotero-toolbar-button { visibility: visible !important; }
#zotero-toolbar-button
{ 
  position: relative !important; 
  top: -2px !important; 
}
#downbarMini { visibility: hidden !important; }
#addon-bar:hover #downbarMini { visibility: visible !important; }
#downbarMini
{ 
  position: relative !important; 
  top: -3px !important; 
}
statusbarpanel#cookiemonster-status { padding-right: 3px !important; }
}


/* ********************* */
/* Autohide Find Toolbar */
/* ********************* */

#browser-bottombox 
{
  background: none !important;
  border-top: 0px !important;
  -moz-border-top-colors: none !important;
  position: fixed !important;
  bottom: 0 !important;
}

#FindToolbar 
{
  border: none !important;
  background: none !important;  
}

#FindToolbar .findbar-container 
{
  margin-bottom: -2px !important;
  border-radius: 4px 4px 0 0 !important;
  border-top: 1px solid #0000FF !important; 
  border-left: 1px solid #0000FF !important; 
  border-right: 1px solid #0000FF !important; 
  opacity: 1 !important;
  background: -moz-linear-gradient(top,rgba(0,0,0,1),rgba(0,0,0,.5)) !important; 
}

#FindToolbar .find-status-icon:not([status="notfound"]):not([status="wrapped"]) { display: none !important; }

#FindToolbar .find-status-icon[status="notfound"] + .findbar-find-status,
#FindToolbar .find-status-icon[status="wrapped"] + .findbar-find-status { padding-right:5px !important; }

#FindToolbar .find-status-icon[status="notfound"],
#FindToolbar .find-status-icon[status="wrapped"] { margin-left: -1px !important; }

#FindToolbar .find-status-icon:not([status="notfound"]):not([status="wrapped"]) + .findbar-find-status {
  display:none !important; }

