body, table, input, textarea, select {
	font: 10pt "Segoe UI", Tahoma, Arial, Sans-serif;
}

body {
	background-color: #eee;
	background-position: center -160px;
	background-repeat: no-repeat;
	color: #333;
	margin: 0;
}

body.graphic_page {
	background-position: center top;
}

body.mceContentBody {
	background: #fff;
}

body.printview {
	background: #fff;
}

/* GENERAL (images/links etc) */

a {
	color: #438219;
	background-color: transparent;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, span.h3 {
	display: block;
	font-family: "Trebuchet MS", Arial, Sans-serif;
	font-weight: normal;
	margin: 6px 0 2px 0;
}
h1 {
	font-size: 15pt;
	color: #444;
}
h2 {
	font-size: 12pt;
	font-weight: bold;
	color: #444;
}
h3, span.h3 {
	font-size: 11pt;
	color: #222;
}

img {
	border: 0;
}

span.date {
	width: 100px;
	height: 20px;
}

.small {
	font-size: 8pt;
	color: #666;
}

#content .inactive,
#content .inactive span {
	color: #777;
}

#content .inactive .small,
#content .inactive .subtext {
	color: #999;
}

p.error {
	background: transparent url("images/icons/exclamation.png") center left no-repeat;
	padding-left: 20px;
}

p.info {
	background: transparent url("images/icons/information.png") center left no-repeat;
	padding-left: 20px;
}

a.button,
input.button {
	display: block;
	padding: 3px 10px 3px 10px;
	float: left;
	clear: left;
	min-width: 60px;
	text-align: center;
	background-color: #438219;
	color: #fff;
	cursor: pointer;
	border: none;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

td, th {
	text-align: left;
	padding-right: 4px;
}
td.top, th.top {
	vertical-align: top;
}

div.quote,
p.quote {
	background: transparent url("images/quote.png") top right no-repeat;
	margin: 1px 0 1px 0;
	padding: 1px 1px 1px 10px;
	border-left: 5px solid #ccc;
	border-right: 5px solid #ccc;
}
div.quote_dedication {
	margin-left: 0;
	font-size: 8pt;
	border-bottom: 1px dotted #888;
}
/* Prevent overlaid images. */
div.quote div.quote {
	background-image: none;
}

div.quotetop, /* forum */
div.quotemain { /* forum */
	border-left: 5px solid #aaa;
	border-right: 1px solid #ccc;
	padding: 2px;
}
div.quotetop { /* forum */
	margin-bottom: 0;
	background-color: #ccc;
	font-size: 8pt;
	background-position: right -5px;
}
div.quotemain { /* forum */
	margin-top: 0;
	background-image: none;
	border-bottom: 1px solid #ccc;
}

/* PAGE HEADER */

#header {
	height: 220px;
	background: transparent url("images/header.png") top left repeat-x;
	color: #ddd;
}
body.graphic_page #header {
	/*height: 400px;*/
	height: 320px;
}

#header a {
	color: #fff;
}
#header a:hover,
#header a.selected {
	color: #b2de90;
}

.pagewidth {
	width: 1000px !important;
	margin: 0 auto 0 auto;
}

#af_logo {
	position: relative;
	height: 100%;
	background: transparent url("images/af_logo_large.png") 0 -22px no-repeat;
}
body.graphic_page #af_logo {
	background-position: 0 30px;
}

#header ul {
	float: right;
	list-style-type: none;
	padding: 0;
	margin-top: 10px;
}
#header ul li {
	float: left;
}
#header ul li a {
	display: block;
	margin: 0;
	padding: 4px;
	border-left: 1px solid #bbb;
	font-size: 11pt;
	text-decoration: none;
}
#header ul li:first-child a {
	border-left: none;
}

/* PAGE CONTENT */

#content {
	position: relative;
	background: transparent url("images/content.png") top left repeat-x;
}
#content_fill {
	position: absolute;
	left: 0;
	right: 0;
	top: 520px;
	bottom: 0;
	background-color: #2c3543;
	z-index: -1;
}
body.graphic_page #content_fill {
	/*top: 700px;*/
	top: 620px;
}

#canvas {
	background: transparent url("images/canvas.png") top left repeat;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding-bottom: 20px;
	min-height: 280px;
	border-bottom: 1px solid #000;
	border-right: 1px solid #444;
}

#mainbar {
	position: relative;
	clear: none;
	width: 625px !important;
	padding: 12px 2px 2px 20px;
}

.clear {
	clear: both;
}

.block {
	display: block;
}

/* SIDEBAR */

#sidebar {
	position: relative;
	float: right;
	clear: none;
	width: 300px !important;
	margin-left: 30px;
	padding: 12px 20px 2px 2px;
}

#sidebar h2 {
	clear: left;
}

#sidebar div.clear {
	height: 10px;
	border-bottom: 1px solid #ccc;
}

#sidebar a.sidebar {
	display: block;
	float: left;
	padding: 2px 2px 2px 11px;
	background: transparent url("images/sidebar_arrow.png") center left no-repeat;
	color: #63a232;
	width: 40%;
	font-weight: bold;
}
#sidebar a.selected {
	color: #000;
}

#sidebar ul.sort {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
#sidebar ul.sort a {
	display: block;
	float: left;
	clear: both;
	padding: 2px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
#sidebar ul.sort a.selected {
	color: #fff;
	background-color: #63a232;
}

/* PAGE FOOTER */

#footer {
	text-align: center;
	font-size: 8pt;
	color: #aaa;
	padding: 4px;
}
#footer a {
	color: #ccc;
	text-decoration: none;
}

.popupmenu {
	position: absolute;
	background-color: #fff;
	z-index: 9999;
	border: 1px solid #ccc;
	padding: 1px;
}
.popupmenu a,
.popupmenu span {
	display: block;
	padding: 2px;
}
.popupmenu span {
	cursor: default;
}
.popupmenu a:hover {
	text-decoration: none;
	color: #fff;
	background-color: #63a232;
}

a.new_messages {
	color #fff;
	font-weight: bold;
}

div.notification {
	position: absolute;
	text-align: center;
	padding-bottom: 12px;
	background: transparent url("images/notification_bottom.png") bottom center no-repeat;
}
div.notification div.message {
	text-align: left;
	background: #fff url("images/icons/information.png") 4px 5px no-repeat;
	color: #000;
	font-size: 10pt;
	padding: 4px 4px 4px 22px;
	border-left: 1px solid #bbb;
	border-top: 1px solid #bbb;
	border-right: 1px solid #999;
	cursor: pointer;
}
div.notification div.message:hover {
	color: #63a232;
}

/* TEXT EDITOR */

textarea.text_edit {
	width: 100%;
	height: 30em;
}

input.text_edit {
	width: 80px;
}

div.editable {
	position: relative;
}
div.editable a.text_edit {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 99;
	
	opacity: 0.3;
	filter: alpha(opacity=30);
	-moz-opacity: 0.3;
	-khtml-opacity: 0.3;
}
div.editable:hover a.text_edit {
	opacity: 1.0;
	filter: alpha(opacity=100);
	-moz-opacity: 1.0;
	-khtml-opacity: 1.0;
}

/* EVENTS */

a.event {
	display: block;
	padding: 0 2px 2px 0;
	margin: 2px;
	text-decoration: none;
	color: #333;
}
a.event span.title {
	display: block;
	font-weight: bold;
	color: #438219;
}
a.event:hover span.title {
	text-decoration: underline;
}
a.event span.info {
	display: block;
	font-size: 8pt;
	color: #777;
}

div.events_sidebar {
	float: right;
	width: 40%;
	min-height: 100px;
	padding-left: 10px;
	border-left: 2px solid #eee;
}

table.event_participants_printview {
	border-collapse: collapse;
}
table.event_participants_printview th,
table.event_participants_printview td {
	border: 1px solid #ccc;
}

/* NEWS */

a.news {
	display: block;
	float: left;
	width: 48%;
	padding: 0 2px 2px 0;
	margin: 2px;
	text-decoration: none;
	color: #333;
}
a.news span.title {
	display: block;
	font-weight: bold;
	color: #438219;
}
a.news:hover span.title {
	text-decoration: underline;
}
a.news span.info {
	display: block;
	font-size: 8pt;
	color: #777;
}

/* GARAGE */

a.car {
	display: block;
	text-decoration: none;
	margin-bottom: 4px;
}
#mainbar a.car {
	margin-bottom: 10px;
	float: left;
	width: 50%;
	height: 54px;
	white-space: nowrap;
	overflow: hidden;
}
a.car:hover span.name {
	text-decoration: underline;
}
.car span.h3 {
	color: #438219;
	margin: 0;
	width: 251px;
	height: 1.3em;
	overflow: hidden;
}

a.car:hover span.h3 {
	text-decoration: underline;
}

img.car_icon {
	background-color: #fff;
	padding: 1px;
	border: 1px solid #bbb;
	border-right: 1px solid #999;
	border-bottom: 1px solid #999;
	float: left;
	margin-right: 2px;
	margin-bottom: 2px;
}

#mainbar a.car img.car_icon {
	margin-bottom: 50px;
}

#sidebar img.car_icon {
	width: 32px;
	margin-bottom: 0;
}

#content .inactive img.car_icon {
	opacity: 0.5;
	filter: alpha(opacity=50);
	-moz-opacity: 0.5;
	-khtml-opacity: 0.5;
}

#sidebar span.subtext {
	display: none;
}

.no_owner_name .owner {
	display: none;
}

h1.car {
	margin-bottom: -2px;
}

#sidebar a.car span.h3 {
	font-size: 10pt;
}

/* USERS */

img.avatar {
	background-color: #fff;
	padding: 1px;
	border: 1px solid #bbb;
	border-right: 1px solid #999;
	border-bottom: 1px solid #999;
	float: left;
	margin-right: 4px;
	margin-bottom: 50px;
}

.userpane {
	display: block;
	position: relative;
	overflow: hidden;
	float: left;
	height: 70px;
	width: 33%;
	padding: 1px;
	margin-bottom: 10px;
	color: #666;
	font-size: 8pt;
	white-space: nowrap;
}
.userpane span.h3 {
	color: #438219;
	margin: 0;
}
a.userpane:hover {
	text-decoration: none;
}
a.userpane:hover span.h3 {
	text-decoration: underline;
}
#sidebar .userpane {
	width: 100%;
}

a.userlink {
	display: block;
	position: relative;
	float: left;
	padding: 2px;
	margin: 0 4px 4px 0;
	background-color: #eee;
	border: 1px solid #bbb;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

div.signature {
	clear: left;
	padding-left: 25px;
	font-size: 7pt;
	color: #444;
	background-color: #f4f4f4;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

/* PAGINATION */

div.pagination {
	float: right;
	margin-top: -24px;
}

div.pagination span,
div.pagination a {
	float: left;
	display: block;
	padding: 2px 4px 2px 4px;
}
div.pagination a:hover {
	text-decoration: none;
	color: #fff;
	background-color: #63a232;
}
div.pagination span {
	cursor: default;
}
div.pagination .selected {
	font-weight: bold;
}

/* BACKGROUND MANAGEMENT */

div.backgroundthumb {
	float: left;
	margin-right: 4px;
	margin-bottom: 10px;
	text-align: center;
	line-height: 1em;
	font-size: 8pt;
	cursor: pointer;
}
div.backgroundthumb:hover {
	color: #438219;
}
div.backgroundthumb img {
	background-color: #fff;
	padding: 1px;
	border: 1px solid #bbb;
	border-right: 1px solid #999;
	border-bottom: 1px solid #999;
}

div.backgroundcurrent {
	font-weight: bold;
}
div.backgroundselected img {
	padding: 0;
	border: 2px solid #438219;
}

div.backgrounddisabled div.backgroundthumb {
	opacity: 0.5;
	filter: alpha(opacity=50);
	-moz-opacity: 0.5;
	-khtml-opacity: 0.5;
}

/* FILE UPLOAD */

span.upload {
	display: block;
	position: relative;
	float: left;
	overflow: hidden;
	cursor: pointer;

	padding: 2px 10px 2px 10px;
	margin: 0 4px 4px 0;
	color: #000;
	background-color: #eee;
	border: 1px solid #bbb;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
span.upload:hover {
	color: #fff;
	background-color: #438219;
}
span.upload input {
	position: absolute;
	opacity: 0;
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	cursor: pointer;
}
span.upload_working,
span.upload_pending {
	display: block;
	position: relative;
	float: left;

	padding: 2px 5px 2px 22px;
	margin: 0 4px 4px 0;
	color: #000;
	background: #eee url("images/ajaxload.gif") 2px center no-repeat;
	border: 1px solid #bbb;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
span.upload_pending {
	padding: 2px 22px 2px 5px;
	background: #eee url("images/icons/cross.png") right center no-repeat;
	cursor: pointer;
}
span.upload_pending:hover {
	color: #fff;
	background-color: #438219;
}

/* ADVERTISEMENTS */

/* various banner sizes */
div.banner {
	width: 468px;
	height: 60px;
	padding: 0;
	overflow: hidden;
}
div.skyscraper {
	width: 120px;
	height: 600px;
	padding: 0;
	overflow: hidden;
}
div.smallscraper {
	width: 120px;
	height: 240px;
	padding: 0;
	overflow: hidden;
}
div.smallrectangle {
	width: 180px;
	height: 150px;
	padding: 0;
	overflow: hidden;
}
div.smallsquare {
	width: 200px;
	height: 200px;
	padding: 0;
	overflow: hidden;
}
div.linkunit200x90 {
	width: 200px;
	height: 90px;
	padding: 0;
	overflow: hidden;
}
div#googlead {
	margin: 10px auto 2px auto;
}

/* ad positioning */
div#autofans_ad {
	position: absolute;
	left: 0;
	top: 10px;
	padding: 3px 3px 3px 11px;
	background: transparent url("images/ad_bg.png") top left no-repeat;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

div.ad_listing {
	position: relative;
	clear: left;
	margin-bottom: 10px;
}
div.ad_listing a.ad_meta {
	padding: 2px;
	display: block;
	float: right;
}

/* ad management */
input.searchfield {
	width: 200px;
	padding: 2px 2px 2px 22px;
	color: #000;
	background: #fff url("images/icons/find.png") 2px center no-repeat;
	border: 1px solid #bbb;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

input.searchhint {
	color: #888;
	font-style: italic;
}

div.stats_wide,
div.stats_narrow {
	border: 1px solid #999;
	background-color: #fff;
	padding: 2px;
}

div.stats_bar {
	position: relative;
	float: left;
	height: 200px;
	width: 17px;
	border-right: 1px dotted #eee;
}
div.stats_wide div.stats_bar {
	width: 36px;
}
div.stats_bar:hover {
	background-color: #f8f8f8;
}

div.stats_bar div {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0 1px 0 1px;
	text-align: center;
}

div.stats_indicator {
	background-color: #63a232;
}
div.stats_bar:hover div.stats_indicator{
	background-color: #6bae3a;
}

span.stat_max {
	display: block;
	float: left;
	border-top: 1px solid #999;
	padding-left: 4px;
	text-align: right;
	min-width: 30px;
}

#adGraph {
	position: relative;
	margin-top: 20px;
}

/* FORUM TOPIC INTEGRATION */

div.forumpost {
	margin-bottom: 5px;
	padding: 2px;
	color: #000;
	background-color: #eee;
}

div.forumpost_author {
	font-weight: bold;
	background-color: #ccc;
}

div.forumpost_post {
	max-height: 125px;
	overflow: auto;
	padding: 4px;
}
