@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("bitme.org") {

	body {
		margin: 8px !important;
		font-family: "Open Sans", Tahoma, sans-serif !important;
	}

	/* table header text */
	td.colhead a {
		color: #fff !important;
	}

	/* table header */
	td.colhead {
		background: #900 !important;
		border: 2px solid #600 !important;
	}

	/* center align "Upped by" column header */
	form[action="/browse.php"] + p + table tr:first-child > td.colhead:last-child {
		text-align: center !important;
	}

	/* left column headings */
	td.embedded h2 {
		background: #000 !important;
		color: #fff !important;
		padding-left: 0.5em !important;
		margin-bottom: 0 !important;
	}

	/* main content background */
	table.main {
		background: #fff !important;
	}

	/* name, ratio stats, date, etc. at very top of page (info section) */
	td.tablea table {
		background: #222 !important;
		color: #ddd !important;
	}

	/* text color for very top info section */
	td.tablea table a,
	td.tablea table font[color="#000000"],
	td.tablea table font[color="black"] {
		color: #fff !important;
	}

	/* more text colors for very top info section */
	td.tablea table font[color="darkred"] {
		color: #f00 !important;
	}

	/* and more text colors for very top info section */
	td.tablea table font[color="blue"] {
		color: #f00 !important;
	}

	/* "border" of the very top info section */
	td.tablea {
		background: #222 !important;
		border: 1px solid #333 !important;
		padding: 0.3em 0.7em !important;
	}

	/* menu bar background*/
	table.menubarbackground {
		background: #000 !important;
	}

	/* remove left and right padding of menu bar */
	table.menubarbackground td[style^="padding-right: 60px; padding-left: 60px;"] {
		padding: 0 !important;
	}

	/* menu bar */
	table.menubartextbackground {
		background: #000 !important;
	}

	/* menu bar link text */
	.menunavigation a,
	td.menunavigation font {
		color: #fff !important;
		display: block !important;
		padding-bottom: 3px !important;
	}

	/* hide stuff */
	img[src="/logo.gif"],                      /* top logo */
	table.menu > tbody > tr:first-child,       /* spacer */
	table.menu > tbody > tr:first-child + tr,  /* spacer */
	body > br:first-child                      /* unnecessary blank line */
	{
		display: none !important;
	}

	/* don't change img widths */
	.btn, img {
		width: auto !important;
		height: auto !important;
	}

	/* search box text input- increase width */
	.main[width="750"] form > p > input[type="text"] {
		width: 525px !important;
	}

	/* remove line breaks after search box */
	.main[width="750"] ~ br {
		display: none !important;
	}

	/* category checkboxes - wider and higher with no scrollbar */
	form[action="/browse.php"] div[style] {
		width: 100% !important;
		height: auto !important;
	}

	/* category checkboxes - allow more than 7 per line */
	form[action="/browse.php"] div[style] table.bottom tr {
		display: inline !important;
	}

	/* category checkboxes - allow more than 7 per line */
	form[action="/browse.php"] div[style] table.bottom tr td.bottom {
		display: inline-block !important;
	}

	form[action="/browse.php"] + p + table,     /* browse torrent list */
	form[action="/browse.php"] + p,             /* pager, prev, next */
	table.main[width="750"],                    /* search box container */
	form[action="/browse.php"] > table.bottom   /* category buttons/checkmarks */
	{
		width: 90% !important;
	}

	/* white border on browse list */
	form[action="/browse.php"] + p + table td {
		border: 1px solid #fff !important;
	}

	/* colorize odd table rows in browse list */
	form[action="/browse.php"] + p + table tr:nth-child(odd) {
		background: #f6f6f6 !important;
	}

	/* align category buttons to the top in browse list */
	form[action="/browse.php"] + p + table .latest {
		vertical-align: top !important;
	}

	/* drop shadow on category buttons in browse list */
	form[action="/browse.php"] + p + table .latest a[href^="?cat="] img {
		margin-top: 8px !important;
		box-shadow: 2px 2px 3px #999 !important;
	}

	/* drop shadow on category buttons */
	.catlink > img {
		box-shadow: 2px 2px 3px #999 !important;
	}
	
	/* when browsing, change link text to tooltip text, so it's not so cut off (needs fixing) */
/* 	form[action="/browse.php"] + p + table > tbody > tr:nth-child(n+2) > td:nth-child(2) > a {
		visibility: hidden !important;
	}
	
	form[action="/browse.php"] + p + table > tbody > tr:nth-child(n+2) > td:nth-child(2) > a::before {
		visibility: visible !important;
		content: attr(title) !important;
		font-weight: bold !important;
	}
*/
	
}

@-moz-document url-prefix("http://www.bitme.org/details.php") {

	h1 + table > tbody > tr:first-child * {
		background: #000 !important;
		color: #fff !important;
		font: 1em Arial !important;
	}

	h1 + table > tbody > tr:first-child > td:first-child {
		font-weight: bold !important;
	}

}