/* CSS Document */

/* general stuff */

* {
	margin: 0;
	border: 0;
	padding: 0;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background-color: #FFFFEA; 
	min-width: 800px;
}

/* topbar stuff */

div.usamtstop {
  	position: relative;
	margin-left: 0;
	margin-right: 0;  /* was 10px */
	background-image: url(/Images/PageBorders/TemplateTopBack.jpg);
	background-repeat: repeat-x;
}

div.usamtslogo {
	position: absolute;
	top: 0;
	left: -1px;  /* adjustment from 0 in AoPS */
}

/* deprecated */
div.usamtspeople {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
}

.usamtstitlebar {
	position: absolute;
	top: 30px;
	right: 20px;  /* was 53 with the people */
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-style: italic;
	font-size: 24px;
	font-weight: bolder;
	color: #ffffea;
	z-index: 3;
}

/* deprecated */
div.usamtstitleshadow {
	position: absolute;
	right: 52px;
	top: 32px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-style: italic;
	font-size: 24px;
	font-weight: bolder;
	color:  #555555;/* #202835;*/
	z-index: 1;
}

div.usamtstop p.usamtsname {
	text-align: left;
	margin-left: 220px;
	margin-right: auto;
	position: relative;
	z-index: 3;
}

/* end topbar stuff */

/* start mainpage stuff */

div.usamtsmainpage {
	position: relative;
	top: 52px;
	background-image: url(/Images/PageBorders/TemLBack.gif);
	background-repeat: repeat-y;
	margin-left: 12px;
	min-height: 500px;  /* try this here DP */
}
 
div.usamtsbody {
	position: relative;
	top: -20px; /*-50px;*/  /* was 0 */  /* similar stuff in other main blocks */
	left: 0;
	margin-left: 153px;  /* so background starts in right place */
	margin-right: 20px;
	margin-bottom: -10px;
/*	width: auto;  */ /* maybe was not expanding */
	padding: 20px;
	background-color: #FFFFFB;  /* was FFFFEA */
	border: 5px solid #600;  /*#202835;*/
	-moz-border-radius: 20px;
	z-index: 10;
	/*min-height: 400px;/*  /* so left-side menu has enough space */
	/* moved above to usamtsmainpage */
}

div.usamtsbody p {
	margin: 1ex 0;
}

/*
div.usamtsbody img {
	padding: 4px;
}
*/

div.usamtsbodymenu {
	position: relative;
	top: -50px;  /* was -50 */
	z-index: 100;
}

div.usamtsbodytext {
	position: relative;
	padding: 0 10px 0 10px;
}

div.usamtsbodytext ul {
	margin-left:20px;
}

div.usamtsbodytext ol {
	margin-left:20px;
}

div.usamtsbodytext input {
	border:3px;
	border-color:#000000;
}

div.usamtsbodytext textarea {
	border:1px;
	border-color:#000000;
}

div.usamtsbodyannounce {
	position: relative;
	top: -20px;
	margin: 0px 50px -30px 180px;  /* top was 20px */
	padding: 2px;
	border-width: 5px;
	border-color: #AAAAAA;
	border-style: outset;
	text-align: center;
	font-family: Georgia, "Times New Roman", Times, serif !important;
	font-size: 13px;  /* mainly for wiki */
	z-index: 500;  /* to bring to top for links */
}

div.usamtshighlightbox {
	width: 90%;
	margin-left: auto;
	margin-right: auto; 
	border: 2px outset black;
/*	background-color: #990000;
	color: #FFFFEA;
*/
	background-color: #FCC;
	text-align: center;
	font-weight: bolder;
	padding: 2px;
}
	
/*div.usamtshighlightbox a {
	color: #FFFFEA;
}*/

/* end mainpage stuff */

/* near bottom and bottom */

div.usamtsnearbottom {
	position: relative;
	top: -20px;
	margin: 60px 0 0 0;
}

div.usamtsnbleft {
	border-left: 12px;
	border-color: #FFFFEA;  /*#384A5F;*/
	border-style: solid;
}

div.usamtsnbright {
	position: absolute;
	top: 20px; 
	right: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	/*color: white;*/
	margin-right: 20px;
	margin-top: 15px;
}

div.usamtsnbright a {
	text-decoration: none;
	/*color: white;*/
}

div.usamtsnbright a:hover {
	color: #6CEB92;
}

/* bottom bar */

div.usamtsbottom {
	position: relative; 
	top: -20px;
	height: 59px; 
	margin: 25px 0 0 0;  /* right margin was 0 */
	background-image: url(/Images/PageBorders/TemBotBack.jpg);
	background-repeat: repeat-x;
	background-position: bottom;
	z-index: 10;  /* added to fix Opera bug on some pages */
}

/* these next two used to have bottom: -3px */

div.usamtsbottomleft {
	position: absolute; 
	left: 0;
	bottom: 0; 
	margin-left: 0px;
	border-left: 12px;
	border-color: #FFFFEA; /*#384A5F;*/
	border-style: solid;
}

div.usamtsbottomright {
	position: absolute;
	right: 0;
	bottom: 0; 
}

/* for forms */
form input[type='text'], form input[type='password'] {
	border: 1px groove black; 
}

form input[type='submit'] {
	border: 1px solid black !important;
}

/* begin bottom bar navigation */
.usamtsbotnavigation {
	background-color:#91A4BD;
	border-color:#1F2834;
	border-style:outset;
	border-width:2px;
	color:#ffffea;
	min-height:2ex;
	padding:5px;
}
.usamtsbotnavigationleft {
	float:left;
}
.usamtsbotnavigationright {
	float:right;
}
.usamtsbotnavigationcenter {
	float:none;
	text-align:center;
}
.usamtsbotnavigation a {
	color:#ffffea;
}
/* end bottom bar navigation */

/* top bar advertising */
.usamtsadvert {
	position: relative;
	top: -65px;  /* was -70 */
	margin: 20px 50px 3px 180px;
	padding: 2px;
	font-size: 14px !important;
	height: 63px;
	vertical-align: middle;
	background-color: #F5F8FC;
	border-width: 5px;
	border-color: #1f3456;
	border-style: outset;
	z-index: 10;
}

.usamtsadvert td {
	text-align: center;
	font-family: Georgia, "Times New Roman", Times, serif !important;
}


/* shopping cart thingy at the top */

.usamtstitlecart {
	display: inline;
	font-size: 12px;
	font-style: normal;
}

.usamtstitlecart a {
	color: #EEFFFF;
	text-decoration: none;
}

.usamtstitlecart a:hover {
	color: #6CEB92;
	text-decoration: none;
}

/* added 6/6/06 to let page expand to enclose forum */

/*
div.usamtsbody {
	overflow: scroll;
}
*/

/* past problems tables */

table.usamtspastprobs {
	width: 100%;
	border: 2px solid red;
}

table.usamtspastprobs td, table.usamtspastprobs th {
	border: 1px solid black;
}

/* rules list */

ol.usamtsrules {
	margin-top: 10px;
}

ol.usamtsrules li {
	margin: 5px 0;
}

ol.usamtsrules h4 {
	margin-left: -20px;
}

/* registration form */

form.register select, form.register input {
	border: 1px solid #999;
}


form.register table tr {
	height: 30px;
}

div.usamtsscoreheader, div.usamtsmischeader {
	background-color: #900;
	color: #FFFFEA;
	text-align: center;
	font-weight: bold;
	width: 100%;
}

div.usamtsleaderssubheader {
	background-color: #384A5F;
	color: #EAFFFF;
	text-align: center;
	font-weight: bold;
	width: 100%;
}

/* leaderboard */

table.usamtsleaders {
	width: 100%;
}

table.usamtsleaders tr.evenrow {
	background-color: #FFFFEA;
}

table.usamtsleaders tr.oddrow {
	background-color: #FFFFC0;
}

table.usamtsleaders td {
	width: 50%;
}

table.usamtsstats {
	width: 100%;
}

table.usamtsstats tr, table.usamtsstats tr td {
	margin: 5px 0;
}

/* admin tables */

table.usamtsadmin {
	width: 100%;
}

table.usamtsadmin td {
	border-left: 1px solid black;
	border-top: 1px solid black;
}

table.usamtsadmin tr.evenrow {
	background-color: #FFB;
}

table.usamtsadmin tr.oddrow {
	background-color: #FFE;
}

table.usamtsadminscores {
	width: 75%;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
}

table.usamtsadminscores td {
	border-left: 1px solid black;
	border-top: 1px solid black;
	height: 30px;
	text-align: center;
}

/* FAQ */

ol.usamtsfaqanswers li, ul.usamtschangelist li {
	margin: 10px 0;
}

div.error { 
	margin: 0em 2em 1em 2em; 
	padding: 1em; 
	/*color: #f00; */
	border: 2px solid red; 
	background-color:white;
}

.small {
    font-size           : .8em;
}

.errors {
    color               : #d00;
    font-weight         : bold;
    border              : 2px solid #a00;
    padding             : .5em 1em;
    margin              : 0 2em 1em 2em;
}

.headerbar {
	background-color: #600;
	color: #ffffea;
	padding: 2px;
	font-weight: bold;
	font-size: 14px;
}

.error-box {
	color: darkred;
	background-color: #f2dede;
	padding: 10px;
	border-left: 10px solid darkred;
	margin-bottom : 10px;
}
.success-box {
	color: #448;
	background-color: #def2de;
	padding: 10px;
	border-left: 10px solid green;
	margin-bottom : 10px;
}
