@namespace url(http://www.w3.org/1999/xhtml);

/* ---------------------------------------------	*
 * Style:   Cheggit - Site overhaul		*
 * Author:  Diddle				*
 * ---------------------------------------------	*
 * May 5th, 2011:				*
 * 	- Removed Direct Download Block		*
 * 						*
 * April 10th, 2011:				*
 * 	- Moved some elements to better align	*
 * 						*
 * March 9th, 2011:				*
 * 	- Fixed search box display		*
 * 						*
 * July 8th, 2010:				*
 * 	- Fixed user control box display		*
 * 	- Fixed Welcome Page link removal again	*
 * 						*
 * May 27th, 2010:				*
 * 	- Removed Hardware Request		*
 * 	- Fixed Welcome Page link removal	*
 * 						*
 * May 2nd, 2009:				*
 * 	- Removed new Apple Macbook Ads		*
 * 						*
 * April 2nd, 2009:				*
 * 	- Fixed new torrent search box		*
 * 	- Various bugfixes and small changes	*
 * 						*
 * February 26th, 2009:				*
 * 	- Removed newly introduced link icons	*
 * 	- Fixed user profile pages' top missing	*
 * 						*
 * January 13th, 2008:				*
 * 	- Moved download/upload link down	*
 * 						*
 * January 10th, 2009:				*
 * 	- Made compatible with widescreen 	*
 * 	  resolutions 	 	 	 	*
 * 	- Fixed width of pages for widescreens 	*
 * 						*
 * June 18th, 2008:				*
 * 	- Layout of navbar now matches the rest	*
 * 						*
 * November 6th, 2007:				*
 * 	- Initial version			*
 * ---------------------------------------------	*/

@-moz-document domain("cheggit.net") {

	#frame {
		position: relative !important;
		top: 44px !important;
		width: 1225px !important;
		border-bottom: none !important;
		margin: 0 auto !important;
	}

	#cheader {
		position: fixed !important;
		top: 0px !important;
		width: 1217px !important;
		z-index: 3 !important;
		margin: 0px !important;
		padding-top: 15px !important;
		padding-left: 13px !important;
		border-top: none !important;
		border-bottom: 3px solid black !important;
	}

	#cleft {	
		position: fixed !important;
		width: 200px !important;
		top: 92px !important;
		z-index: 1 !important;
	}


	#cright > div {
		position: fixed !important;
		z-index: 5 !important;
		border-bottom: none !important;
		text-align: center !important;
		width: auto !important;
	}
	#cright > #usercontrolbox {
		top: 58px !important;
	}
	#cright > #searchfacility {
		position: relative !important;
		top: 46px;
		z-index: 1 !important;
	}
	#cright > #torrentcontrols,
	#cright > #browsetorrentsmenu {
		top: 58px !important;
		margin-left: 370px !important;
	}
	#cright > #attentionbox {
		left: 0px !important;
		top: 0px !important;
	}
	#cright > #didyou {
		top: 83px !important;
		border-bottom: 1px solid silver !important;
		border-top: none !important;
	}
	#cright > #loginbox {
		height: 21px !important;
		padding: 0px !important;
		top: 58px !important;
	}
	#cright > div > ul > li,
	#cright > #loginbox > #loginForm > p { padding: 0px 5px !important; }
	#cright > #loginbox > #loginForm > ul > li { padding: 0px !important; }
	#cright > #loginbox > #loginForm > p,
	#cright > #loginbox > #loginForm > ul > li > label { margin: 0px !important; vertical-align: 15% !important; }


	h2#pagetitle {
		position: fixed !important;
		top: 5px !important;
		z-index: 4 !important;
		width: auto !important;
		padding-left: 3px !important;
	}


	#navbar {
		position: relative !important;
		top: 43px !important;
		right: 5px !important;
		border: 1px solid silver !important;
		border-bottom: 0px !important;
		margin-bottom: 5px !important;
		padding: 3px !important;
		margin: 0px !important;

		font-family: Verdana, Helvetica, Arial, Sans-Serif !important;
		font-size: 11px !important;
		font-weight: bold !important;
		letter-spacing: 0px !important;
		line-height: normal !important;
	}
	#navbar > ul > li.dimmed { padding: 0px 4px !important; }
	#navbar > ul > li,
	#navbar > ul > li > a { text-transform: capitalize !important; }



	table.torrentlist { margin: 11px 0px !important; }

	#ccenter { z-index: 2 !important; width: 1000px !important; }

	#drawcontent { position: relative !important; top: 30px !important; }

	a[href*="torrents.php?torrentid"]:visited { color: #770044 !important; }

	#content_frame { margin-top: 10px !important; border: 1px solid silver !important; }


	#usercontrolbox > ul > li:first-child + li + li + li,				/* Donate link */
	#usercontrolbox > ul > li:first-child + li + li + li + li + li + li + li,		/* Welcome page link */
	iframe,										/* Almost all advertisement */
	tr.breakrow,									/* Advertising in torrent list */
	a.adHeadline,									/* Advertisement */
	#directdl,									/* Direct Download Block */
	#cright > hr,									/* Pointless horizontal lines */
	#cright > * > p,								/* Unnecessary text in the menubar */
	#classifiedpanel,								/* Link and button advertisement on the left */
	#cleft > div[style*="margin-top: 30px"],					/* Apple MacBook Banner */
	#pagetitle + p.dimmed,								/* Hashcode */
	#cright > #torrentcontrols img,							/* Images next to torrent detail links */
	#cright > div[id^="userinfobox"],						/* Share ratio box */
	#drawcontent > *:not(div):not(iframe) { display: none !important; }		/* Everything that's not useful content */

	iframe[src*="babble"] { display: inline !important; border: 1px solid silver !important; } /* Fix for the frontpage's news iframe and add a border */

}


@-moz-document
 url(http://cheggit.net/),
 url-prefix(http://cheggit.net/upload.php),
 url-prefix(http://cheggit.net/myprofile.php),
 url-prefix(http://cheggit.net/users.php?userid=) {
	div#frame { top: 55px !important; }
}


@-moz-document
 url-prefix(http://cheggit.net/tags.php),
 url-prefix(http://cheggit.net/browsetorrents.php) {

	div#cright > div#torrentcontrols {
		margin-left: 0px !important;
		top: 20px !important;
		height: 20px !important;
		overflow: hidden !important;
		border-bottom: 1px solid silver !important;
	}

	div#torrentcontrols form		{ width: 250px !important; text-align: left !important; }
	div#torrentcontrols form > div		{ display: inline !important; }
	div#torrentcontrols #tag_search_string	{ width: 125px !important; }

	div#torrentcontrols input[type="checkbox"] { position: relative !important; top: 2px !important; left: -2px !important; }

	div#torrentcontrols p { display: none !important; }
}