/**************** body and tag styles ****************/

body {
  margin: 25px 0;
  background-color: #E3DCC0;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9em;
}
		  
h1 {
  font-size: 1.6em;
  margin-bottom:15px;
  margin-top:15px;	  
}
					
h2 {
  font-size: 1.4em;
  margin-bottom:10px;
}

h3 {
  font-size: 1em;
  font-weight:bold;
  padding-top:15px;
  margin-bottom:10px;
}
		
a:link, a:visited {
  color:#2756CC;
  text-decoration: none;
  font-weight: normal;
}

a:link:hover, a:visited:hover {
  color:#2756CC;
  font-weight: normal;
  text-decoration: underline;
}

td{
  vertical-align:top;
  border:0;
}

.error{
  color:#FF0000;
  font-weight:bold;
}

.icon{
  height:15px;
  border:0px;
  margin-right:5px;
}

hr{
  border:1px solid #CCCCCC;
  border-bottom:0;
  margin-top:3px;
  margin-bottom:3px;
}

.no_border{
  border:0px;
}

/**************** filter styles ****************/
#filter{
  padding:0;
  margin:0;
}
#filter_table{
  margin-top:25px;
  width:100%;
  border-collapse:collapse;
}
#filter_table td{
  width:50%;
  border:0;
  vertical-align:bottom;
}

/**************** message box styles **************/

#messagebox { 
  width: 800px;
  background-color: white;
  margin: 20px auto;
  padding: 15px 25px;
  font-size: 1em;
  color: black;
  border: 2px dashed red;
  text-align: center;
}

/**************** container styles ****************/
#container {
  width: 800px;
  clear:both;
  background-color: #FFFFFF;
  margin: 0 auto 0 auto;
  position:relative;
  padding-left:25px;
  padding-right:25px;
  text-align:left;
  padding-top:15px;
  padding-bottom:15px;
  font-size: 1em;
  height:100%;
  color: #000000;
  border:1px solid #666666;   
}
/**************** sidebar styles ****************/

#sidebar {
}

/**************** login styles ****************/
#login {
  text-align:left;
  vertical-align:top;
}
  	  	  

/***************** search styles ***************/
#search {
  text-align:right; width:100%;
}

/**************** header styles ****************/
#header {
  width: 850px;
  margin: 0 auto 0 auto;
  font-size: 1em;
  line-height: 1.6em;
  color: #333333;
}
#headertext {
  width:33%; 
  float:left;
}

#header p { 
  margin: 0px;
  color: #666666;
}
#header a{
  font-weight:bold;
}
#header a:hover{
  font-weight:bold;
}

#logo{
  width:33%;
  float: left;
  text-align:center;
  padding-bottom:25px;
}
#search{
  width:34%;
  float:right;
  text-align:right;
  padding-bottom:25px;
}


/**************** menu styles ****************/
#nav{
  width:70%; 
  float:left;
}
#login_link{
  float:right;
}


/**************** profile styles ****************/
.info_field_right{
  float:left;
  margin-top:15px;
  margin-bottom:15px;
  margin-right:5px;
}
.info_field_left{
  float:left;
  margin-bottom:15px;
  clear:both;
}
#authinfo, #stats{
  border-collapse:collapse;
  margin-right:15px;
  margin-bottom:15px;
}
#authinfo th, td, #stats th, td{
  padding-left:5px;
  padding-right:5px;
  border:1px solid #CCCCCC;
}
table.info{
  border-collapse:collapse;
}
#update_info table{
  border-collapse:collapse;
}
#update_info td{
  border:0;
}
#update_info form{
  border:2px;
}

/**************** source styles ****************/
#source_frame{
  width:500px;
  height:400px;
  border:1px solid #000000;
}	
#course_info{
  border-top:1px solid #CCCCCC;
}

#filetree, #solved, #judge_table, #problem_list, #search_list, #standings, #students, #teachers, #submissions{
  border-collapse:collapse;
  margin-top:15px;
  width:100%;
}  

#filetree th, #solved th, #judge_table th, #problem_list th,  #search_list th, #standings th, #students th, #teachers th, #submissions th{
  padding-left:5px;
  padding-right:5px;
  padding-top:3px;
  padding-bottom:0px;
  border-bottom:2px solid #AAAAAA;
  border-top:2px solid #AAAAAA;
  border-right:1px solid #CCCCCC;
  border-left:1px solid #CCCCCC;
}  
#filetree td, #solved td, #judge_table td, #problem_list td,  #search_list td, #standings td, #students td, #teachers td, #submissions td{
  padding-left:5px;
  padding-right:5px;
  padding-top:3px;
  padding-bottom:0px;
  border:1px solid #CCCCCC;
} 
.accepted{
  color:#00AA33;
  margin:0;
  padding:0;
}
.rejected{
  color:#FF0000;
  margin:0;
  padding:0;
}
.status {
  text-align:center;
}
.runtime {
  text-align:right;
}
.unjudged{
  margin:0;
  padding:0;
}
td.solved{
  background-color:#99FF99;
}
td.attempted{
  background-color:#FF9999;
}
td.partial{
  background-color:#FFFF99;
}
/**************** judge submit ****************/
#submit_table table{
  border-top:1px solid #CCCCCC;
}
#submit_table td{
  padding-top:15px;
  border:0px;
}
/**************** judge styles ****************/
table.prev_next{
  width:100%; 
  border-collapse:collapse; 
  margin:0;
}
td.prev_next_l{
  width:25%; 
  text-align:left; 
  vertical-align:middle;
  border:0px; 
  padding-top:5px;
  padding-bottom:0px;
  padding-left:0px;
}
td.prev_next_c{
  width:50%; 
  text-align:center;
  vertical-align:middle;
  border:0px; 
  padding-top:5px;
  padding-bottom:0px;
  padding-left:0px;
}
td.prev_next_r{
  width:25%; 
  text-align:right; 
  vertical-align:middle;
  border:0px; 
  padding-top:5px;
  padding-bottom:0px;
  padding-left:0px;
}

/**************** footer styles ****************/


/**************** footer styles ****************/
#footer {
  margin:auto;
  padding-top: 5px;
  width: 850px;
  color:#333333;  
  font-size: 1em;
  clear:both;
  border-top:1px solid #CCCCCC;
}
		  

/************* submission styles *********/
#extrainfo p { 
	border:1px solid #CCCCCC; 
	padding:5px;
}

#extrainfo a {color:red; }


/************* print styles **************/

@media print {

  a { text-decoration:none; }
  /*
     #login_link, #nav  { display:none; }
  */
  #header {display:none; }

  body { background-color: white;}

  #teachernav, #adminnav, #studentnav { display:none; }
  
  #container {
    width: 100%;
    height:100%;
    color: #000000;
    border:none;
    padding: 0px;
  }
  
}
