/* 
 * First we'll do the general page information, including the two types of div 
 * and the main container div. 
 */

body {
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	margin-right: 0px;
	width: 99%;
	
	background-color: rgba(235, 235, 235, 0.0);
}

#page {
	background-image: url("images/page_background.jpg");
	background-repeat:no-repeat;
	background-color: #A6A6A6;
	background-attachment: fixed;
	background-position: center center;
}

body,td,th {
	font-family: Arial, Helvetica, sans-serif;
}

div.container {
	position: relative;
	padding: 0px;
	
	background-color: #E2E2E2;
	
	background-color: rgba(226, 226, 226, 0.6);
}

div.element {
	padding: 0px;
}

p.italic_block{
	font-style: italic;
}

#outer_container {
	position: absolute;
	width: 962px;
	height: 99%;
	border-style: solid;
	border-color: #A6A6A6;
	border-width: 1px;
}

#small_link {
	font-size: small;
}

/* 
 * Next is the header, this contains the logo, current car/track, current top 5
 * standings, menu bar.
 */

#header_container {
	clear:both;
	overflow: auto;
	border-bottom: 5px solid #A6A6A6;	
	width: 100%;
	
	background-color: rgba(255, 255, 255, 1.0);
}

#header_container element {
    background-color: #FFFFFF;
}

/* Logo */

#logo_container {
	width: 24%;
	float: left;
}

#logo_container img {
	width: 228px;
}

/* Current Car */

#current_car_container {
	width: 24%;	
	padding: 1% 0% 0% 1%;
	float: left;
}

#current_car_container img {
	max-width: 228px;
	max-height: 192px;
}

/* Current track */

#current_track_container {
	width: 24%;
	padding: 1% 0% 0% 1%;
	float: left;	
}

/* Current Standings (top 5) */
#current_standings_container {
	width: 24%;
	padding: 1% 0% 0% 1%;
	float: left;
}

#top5_table {
	border-left: 1px solid #DDDDDD;
	border-top: 1px solid #DDDDDD;
	border-collapse: collapse;	
	
	font-size: small;
	width: 90%;
}

#top5_table  td {
	border-right: 1px solid #DDDDDD;
	border-bottom: 1px solid #DDDDDD;
	padding: 3px;
}

#top5_table  th {
	border-right: 1px solid #DDDDDD;
	border-bottom: 1px solid #DDDDDD;
	text-align: center;
	padding: 2px;
}

/* Menu container/list */
#menu_container {
	clear: both;
	padding: 1% 1% 1% 1%;
	
	background-color: rgba(255, 255, 255, 1.0);
}

#menu_container ul {
	float: right;
	list-style: none;
	font-size: small;
}

#menu_container li {
	height: 2em;
	line-height: 2em;
	width: 6em;
	display: block;
	border: 0.1em solid #A6A6A6;
	margin: 0 0.25em;
	color: #0d2474;
	
	float: left;
	text-align: center;
}

#login_container {
	float: left;
	font-size: small;
}

#error_text {
	font-size: x-small;
	color: red;
}

label.login {
	width: 5em;
	float: left;
	text-align: right;
	margin-right: 0.5em;
	display: block;
}

/* Section for the main area, this is essentially just a container div and an iframe */

#main_container {
	clear:both;
	overflow: auto;
	width: 100%;
}

#main_frame {
	border: none;
	width: 99.5%;
	height: 98%;
}

/* News */

#news_page {
	width: 90%;
	margin-left: 5%;
	margin-top: 1%;
}

#news_entry {
	overflow: auto;
	border: 1px solid #666666;
	padding: 0% 2% 0% 2%;
}

#news_header {
	font-size: small;
	font-style: italic;
}

#news_footer {
	font-size: small;
	font-style: italic;
	text-align: right;
}

#news_text {

}

/* Rules */

#rules_div {
	width: 90%;
	margin-left: 5%;
}

#rules_list{
	padding-bottom: 1%;
}

/* Schedule */

#schedule_div {
	width: 90%;
	margin-left: 5%;
}

#schedule_div li {
	padding: 1%;
}

#week_header {
	font-style: italic;
}

/* Standings page/table */

#last_update {
	margin-left: 5%;
	font-style: italic;
}

#full_standings {
	border-left: 1px solid #666666;
	border-top: 1px solid #666666;
	border-collapse: collapse;	
	
	font-size: small;
	width: 90%;
	margin-left: 5%;
}

#full_standings  td {
	border-right: 1px solid #666666;
	border-bottom: 1px solid #666666;
	padding: 3px;
}

#full_standings  th {
	border-right: 1px solid #666666;
	border-bottom: 1px solid #666666;
	text-align: center;
	padding: 2px;
}

/* Password Page */
#password_div {
	margin-left: 5%;
	width: 90%;
}

#last_updated {
	font-style: italic;
}

label.race_pass {
	width: 7em;
	float: left;
	text-align: left;
	margin-right: 0.5em;
	display: block;
}

/* Registration page */

#new_registration {
	float: left;
	margin-left: 5%;
	width: 50%;
	font-size: small;
}

label.new_user {
	width: 9em;
	float: left;
	text-align: left;
	margin-right: 0.5em;
	display: block;
}

#recover_password {
	float: left;
	margin-left: 5%;
	width: 35%;
	font-size: small;
}

/* Account Settings */
#account_settings {
	margin-left: 5%;
	width: 90%;
	font-size: small;
}

label.change_pass {
	width: 7em;
	float: left;
	text-align: left;
	margin-right: 0.5em;
	display: block;
}

/* Admin Panel */
#admin_page {
	clear: both;
	margin-left: 5%;
	width: 90%;
}

#admin_sidebar {
	overflow: auto;
	display: block;
	float: left;
	width: 25%;
}

#admin_panel {
	overflow: auto;
	display: block;
	float: left;
	width: 75%;
}

#message_div {
	font-size: small;
}

/* Section for the page footer -- unofficial iRacing... */
#footer_container {
	border-top: 5px solid #A6A6A6;
	clear: both;
	overflow: auto;
	width: 100%;
}

#sponsor_list {
	padding-left: 0.5%;
	padding-right: 2%;
	padding-top: 0.5%;
	overflow: auto;
	float: left;
	width: 30%;
	font-size: small;
}

#silverado_logo {
	padding-right: 2%;
	padding-left: 2%;
	padding-top: 0.5%;
}


#iracing_bit {
	padding-right: 0.5%;
	float: right;
	clear: right;
	font-size: xx-small;
}

#iracing_img {
	padding-right: 0.5%;
	padding-top: 0.5%;
	clear: right;
	float: right;
	width: 243px;
	height: 55px;
}

/* Sections for various links/types and some general settings as well */

a:link { color: #249; text-decoration: none; }
a:visited { color: #249; text-decoration: none; }
a:hover { color: blue; text-decoration: none; }
a:active { color: blue; text-decoration: none; }

a.img_lnk img { border: none; }