/*
	*** Start base template ***
	The following are common to all pages
*/

/* null margins and padding to give good cross-browser baseline */
html,body,address,blockquote,div,
form,fieldset,embed,object,
h1,h2,h3,h4,h5,h6,
hr,ul,li,menu,ol,ul,
table,tr,td,th,p,img {
	margin:0;
	padding:0;
}

img, fieldset {
	border:none;
}

body {
	padding-right:0.5px; /* fix firefux rounding errors */
	font:normal 85%/140% arial,helvetica,sans-serif;
	color:#FFF;
	background:#000 url(images/bodyBackground.gif);
	text-align:center;
}

img {
	border:none;
}

a {
	color:#EEE;
}

a:visited {
	color:#ACF;
}

a:active,
a:hover {
	text-decoration:none;
	color:#DEF;
	background:#444;
	outline:none;
}

a:active,
a:focus {
	outline:none;
}

#container {
	padding:16px 0;
	margin:0 auto;
	text-align:left;
}

.narrow {
	width:960px;
}

.wide {
	width:1160px;
}

#header {
	position:relative;
	height:75px;
	margin-right:12px;
	padding-left:16px;
	font:bold 38px/65px sans-serif;
	color:#FFF;
	background:url(images/containerBorders.gif) top left no-repeat;
}

#header i {
	position:absolute;
	top:0;
	right:-12px;
	width:16px;
	/*
		extra 4px width gives 4px overlap, compensates for gecko
		being a retard on calculating 'right'
	*/
	height:75px;
	background:url(images/containerBorders.gif) top right no-repeat;
}

#header span {
	position:absolute;
	top:0;
	left:8px;
	width:320px;
	height:75px;
	background:url(images/logo.jpg) 0 0 no-repeat;
}

#welcomeText {
	position:absolute;
	top:9px;
	left:340px;
	width:608px;
	height:60px;
	overflow:auto;
	font:normal 12px/14px arial,helvetica,sans-serif;
	color:#FFF;
}

#mainMenu {
	list-style:none;
	overflow:hidden; /* wrap floats */
	height:32px; /* trip haslayout to wrap floats in IE */
	font:bold 16px/32px arial,helvetica,sans-serif;
	color:#FFF;
	background:#459 url(images/menu.png) 0 -32px repeat-x;
	border:solid #000;
	border-width:1px 0;
}

#mainMenu li {
	display:inline;
}

#mainMenu a,
#mainMenu span {
	float:left;
	height:32px;
	padding:0 16px 0 24px;
	margin-right:-12px;
	position:relative;
	color:#FFF;
	background:url(images/menu.png) 0 0 no-repeat;
	border-right:2px solid #000;
}

#mainMenu .first a {
	padding-left:16px;
	background-position:-16px 0;
}

#mainMenu a {
	text-decoration:none;
	background-position:0 0;
}

#mainMenu a:active,
#mainMenu a:hover {
	background-position:0 -96px;
}

#mainMenu .first a:active,
#mainMenu .first a:hover {
	background-position:-16px -96px;
}

#mainMenu span {
	background-position:0 -64px;
}

#mainMenu .current a {
	background-position:-16px -64px;
}

#columnWrapper {
	position:relative;
	overflow:hidden; /* wrap floats */
	zoom:1; /* haslayout, wrap floats IE */
	padding:8px 0;
	background:#414142;
	border-bottom:2px solid #000;
}

#contentWrapper {
	width:100%;
	float:right;
}

#content {
	overflow:hidden; /* wrap floats */
	zoom:1; /* haslayout wrap floats IE */
	padding-bottom:12px;
}

.narrow #content {
	margin:0 0 0 208px;
}

.wide #content {
	margin:0 200px 0 208px;
}

#sideBar {
	float:right;
	text-align:center;
	width:208px;
	margin-right:-208px;
}

.narrow #sideBarPart2 {
	margin:0;
	left:0;
}

#sideBarPart1,
#sideBarPart2 {
	float:right;
	width:208px;
}

.narrow #sideBarPart2 {
	margin:0;
	left:0;
}

.wide #sideBarPart2 {
	position:relative;
	margin-left:-208px;
	left:1160px;
}

#sideBar .adBox,
#sideBar .randomBox,
#sideBar .popularBox,
#sideBar .contactBox {
	/* set these together for convenience */
	width:192px;
	margin:0 auto;
}

#sideBar .adBox .top,
#sideBar .adBox .bottom,
#sideBar .randomBox .bottom,
#sideBar .popularBox .bottom,
#sideBar .contactBox .bottom {
	height:16px;
	font-size:1px; /* prevent IE min-size error - just in case */
	background:url(images/commonBackgrounds.gif) 0 0 no-repeat;
}

#sideBar .adBox .bottom {
	height:21px;
	background-position:0 -16px;
}

#sideBar .popularBox {
	padding-bottom:8px;
}

#sideBar .randomBox h2,
#sideBar .popularBox h2,
#sideBar .contactBox h2 {
	font:bold 14px/16px arial,helvetica,sans-serif;
	color:#ABC;
	background:url(images/commonBackgrounds.gif) 0 -40px no-repeat;
	border-bottom:2px solid #000;
}

#sideBar .popularBox h2,
#sideBar .contactBox h2 {
	height:20px;
	padding:12px 0 0 18px;
	text-align:left;
}

#sideBar .randomBox h2 {
	height:22px;
	padding-top:8px;
	text-align:center;
	background-position:0 -94px;
}

#sideBar .randomBox .bottom,
#sideBar .popularBox .bottom {
	height:13px;
	background-position:0 -80px;
}

#sideBar .contactBox .bottom {
	height:21px;
	background-position:0 -16px;
}

#sideBar .adBox .content,
#sideBar .randomBox ul,
#sideBar .popularBox ul,
#sideBar .contactBox ul {
	padding-top:8px;
	background:#222;
	border-left:3px solid #333;
	border-right:3px solid #000;
}

#sideBar .randomBox ul,
#sideBar .popularBox ul,
#sideBar .contactBox ul {
	list-style:none;
	text-align:left;
	padding:2px 4px 2px 32px;
	font:normal 12px/16px arial,helvetica,sans-serif;
	vertical-align:middle;
	border-top:2px solid #333;
}

#sideBar .randomBox li,
#sideBar .popularBox li,
#sideBar .contactBox li {
	display:inline; /* make IE behave */
}

#sideBar .randomBox a,
#sideBar .popularBox a,
#sideBar .contactBox a {
	display:block;
	position:relative;
	padding:6px 0;
	text-decoration:none;
}

#sideBar .randomBox a img,
#sideBar .popularBox a img,
#sideBar .contactBox a img {
	position:absolute;
	left:-28px;
	top:0;
	width:16px;
	height:16px;
	padding:6px 8px 6px 4px;
	background:#222;
}

#sideBar .randomBox a:active img,
#sideBar .randomBox a:hover img,
#sideBar .popularBox a:active img,
#sideBar .popularBox a:hover img,
#sideBar .contactBox a:active img,
#sideBar .contactBox a:hover img {
	background:#444;
}

#footer {
	width:100%; /* haslayout */
	clear:both; /* not that we should have to */
	border-top:2px solid #55C;
}

#footer .border {
	position:relative;
	height:24px;
	margin-right:12px;
	padding-left:12px;
	text-align:center;
	font:normal 12px/24px arial,helvetica,sans-serif;
	color:#48C;
	background:url(images/containerBorders.gif) bottom left no-repeat;
}

#footer .border div {
	position:absolute;
	top:0;
	right:-12px;
	width:16px;
	height:24px;
	background:url(images/containerBorders.gif) bottom right no-repeat;
}

.errorBox {
	padding-right:8px;
}

.errorBox h1 {
	padding-bottom:4px;
	margin-bottom:8px;
	font:bold 32px/40px arial,helvetica,sans-serif;
	border-bottom:2px solid #28C;
}

/*
	*** end base template ***

	*** start unique template ***
	The following are all unique to the pages they are on
*/

.homeCategory {
	float:left;
	width:368px;
	padding:0 8px 8px 0;
}

.homeCategory h2 {
	font:bold 18px/22px arial,helvetica,sans-serif;
	border-left:3px solid #4351A0;
	border-bottom:2px solid #000;
}

.homeCategory h2 a {
	display:block;
	padding:6px 0 2px 10px;
	text-decoration:none;
	background:#262F7A url(images/commonBackgrounds.gif) top right no-repeat;
}

.homeCategory h2 a:active,
.homeCategory h2 a:hover {
	/*
		we SHOULD only have to set the background-color here, but IE6/earlier doesn't
		render this right, so we have to redeclare the whole thing
	*/
	background:#24A url(images/commonBackgrounds.gif) top right no-repeat;
}

.categoryContent {
	list-style:none;
	overflow:hidden; /* wrap floats */
	zoom:1; /* haslayout wrap floats IE */
	padding-bottom:8px; /* avoid collapsing margin */
	background:#222;
	border-style:solid;
	border-width:2px 3px 3px;
	border-color:#333 #000 #000 #333;
}

.categoryContent li img {
	float:left;
	width:50px;
	height:50px;
	margin-right:12px;
}

.categoryContent li {
	height:50px;
	margin:8px 0 0 8px;
	border:3px solid;
	border-color:#000 #505058 #505058 #000;
	font-size:16px;
	line-height:50px;
}

.categoryContent li a {
	display:block;
	position:relative;
	overflow:hidden;
	white-space:nowrap;
	height:50px; /* trip haslayout */
	text-decoration:none;
	background:#404048;
}

.categoryContent li a:active,
.categoryContent li a:hover {
	background:#264;
}

.homeCategory li {
	width:340px;
	display:block;
}

.homeCategory .morelink {
	height:7px;
	text-align:right;
	position:relative;
	border:solid #333;
	border-width:2px 0 0 3px;
}

.homeCategory .morelink a {
	position:absolute;
	left:0;
	top:0;
	width:340px;
	height:26px;
	padding-right:25px;
	text-decoration:none;
	font:14px/24px arial,helvetica,sans-serif;
	color:#FFF;
	background:url(images/commonBackgrounds.gif) bottom right no-repeat;
}

.homeCategory .morelink a:active,
.homeCategory .morelink a:hover {
	color:#AF0;
}

.category {
	padding:0 8px 8px 0;
}

.category h1 {
	font:bold 18px/22px arial,helvetica,sans-serif;
	border-left:3px solid #4351A0;
	border-bottom:2px solid #000;
	padding:6px 0 2px 10px;
	background:#262F7A url(images/commonBackgrounds.gif) top right no-repeat;
}

.category li {
	width:351px;
	float:left;
	display:inline;
}

#game {
	margin-right:8px;
}

#game h1 {
	position:relative;
	zoom:1; /* haslayout */
	padding:10px 56px;
	text-align:center;
	font:bold 24px/28px arial,helvetica,sans-serif;
	background:url(images/commonBackgrounds.gif) -272px -38px no-repeat;
}

#game h1 span {
	position:absolute;
	top:0;
	right:0;
	width:76px;
	height:48px;
	background:url(images/commonBackgrounds.gif) -1972px -38px no-repeat;
}

.valueClickAd {
	clear:both;
	text-align:center;
	padding-top:24px;
}

#game .flashGame {
	text-align:center;
	padding-top:8px;
}

#game .valueClickAd {
	padding:8px 0;
}

#game .flashGame,
#game .valueClickAd,
#game .addMe,
#game p {
	background:#222;
	border-left:3px solid #333;
	border-right:3px solid #000;
}

#game p {
	padding:0 8px 1em;
}

#game .addMe {
	overflow:hidden; /* wrap floats */
	zoom:1; /* haslayout, wrap floats IE */
	padding-bottom:4px;
	border-bottom:3px solid #000;
}

#game .addMe h3 {
	float:left;
	width:128px;
	padding:10px 0 10px 12px;
	text-align:center;
	font:bold 18px/22px arial,helvetica,sans-serif;
}

#game .addMe textarea {
	width:576px;
	height:96px;
	margin:8px 0 8px 12px;
	font:normal 14px/16px monospace;
}

#twitter {
	margin-bottom:6px;
}

#twitter a {
	background:transparent;
}

#devMessage {
	padding:8px;
	margin:8px 16px 16px 8px;
	color:#FF8;
	background:#800;
	border:2px dashed #FF0;
}

#contactForm {
	width:720px;
	margin:0 auto;
}

#contactForm .requiredNotice {
	position:relative;
	z-index:100;
	padding:0 16px 2px 0;
	text-align:right;
	font:normal 14px/32px arial,helvetica,sans-serif;
	color:#FF0;
}

#contactForm .fieldSetWrapper {
	padding:16px;
	background:#222;
	border:solid;
	border-width:0 2px 2px 2px;
	border-color:#333 #000 #000 #333;
}

#contactForm fieldset {
	position:relative;
	padding-top:2px;
	z-index:1;
	font:normal 16px/18px arial,helvetica,sans-serif;
}

#contactForm legend span {
	position:absolute;
	top:-50px;
	left:-18px;
	width:716px;
	padding:5px 0;
	text-indent:16px;
	font:bold 18px/22px arial,helvetica,sans-serif;
	border-style:solid;
	border-width:0 2px 2px;
	border-color:#000 #128 #000 #4351A0;
	background:#459 url(images/menu.png) 0 -32px repeat-x;
}

#contactForm label {
	display:block;
	position:relative;
}

#contactForm label b {
	position:absolute;
	top:1px;
	left:128px;
	color:#FF0; 
}

#contactForm label input,
#contactForm label select {
	position:absolute;
	top:0;
	left:144px;
	width:400px;
}

#contactForm label textarea {
	position:absolute;
	top:0;
	left:144px;
	width:532px;
	height:240px;
}

#contactForm .messageLabel {
	display:block;
	height:248px;
	margin-bottom:-44px;
}

#contactForm .submit {
	position:relative;
}

#contactForm label input,
#contactForm label select,
#contactForm label textarea {
	font:normal 16px/18px arial,helvetica,sans-serif;
}

#contactForm .v_error {
	background:#FF8;
}

#contactError {
	padding:16px;
	margin:8px 16px 16px;
	text-align:center;
	color:#FF0;
	background:#800;
	border:2px dashed #FF0;
}