iframe {
  
  border: 0;
  
}

div img table {
  
  margin: 0;
  border: 0;
  padding: 0;
  border-spacing: 0;
}

table {
  border-collapse: collapse;
}


img {
  
  display: block;
  
}

body {
  
  background-color: #990000;
  color: #222;
  font-family: Helvetica, Arial, Verdana, sans-serif;
  font-size: 9pt;
  margin: 0;
  background-position:top;
  background-repeat:repeat-x;
}

a {
  
  color: #990000;
  text-decoration: none;
  
}

a:hover {
  
  color: #990000;
  text-decoration: underline;
  
}

a, a img, img a {
	border:none;
	outline:none;
}

#header h1 {
 
  margin: 0;
  color: #444444;
  font-size: 24pt;
  font-weight: bold;
  margin: 3px;
  
}

#header_logo_box {
  float: left;
}


h1 {
  
  margin: 0;
  color: #222;
  font-size: 24pt;
  font-weight: normal;
  margin: 10px;
  border-left: 1px solid #990000;
  border-bottom: 1px solid #990000;
  padding: 5px;
  width: 900px;
  
}

h2 {
  
  margin: 0;
  color: #444444;
  font-size: 14pt;
  font-weight: normal;
  margin: 3px;
  
}

h3 {
  
  margin: 0;
  color: #444444;
  font-size: 12pt;
  font-weight: normal;
  margin: 3px;
  
}

.inline, li img {
  
  display: inline;
  
}

.clear {
  
  clear: both;
  
}

#page_wrapper {
  
  width: 1160px;
  margin: auto;
  color: #000000;
  overflow: visible;
  margin-top:20px;
  margin-bottom:50px;
  -moz-border-radius: 5px;
  border-radius: 5px;

}
/*********************************************************************/
/*** HEADER  ***/
/*********************************************************************/

#welcome_box {

  background: url('/stort/images/alert-overlay.png') #222 repeat-x;
  padding: 0 5px 10px 5px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  color: #FFF;
  border: 2px solid #000;
	
}

#stort_header {
  position:relative;
  margin:0px 0 15px 150px;
  width: 965px;
	text-shadow: 0 -3px 3px rgba(0,0,0,0.5);
	top: -10px;
  
}

#header_logged_box {
  padding: 5px;
  width: 400px;
  margin-bottom: 5px;
}

#logo_image {
  border-right: 5px #FFF solid;
}

#header_login_button {
  top: -5px;
}

#header_score_label, #header_score, #header_level_label, #header_level, #header_logged_box, #header_users_online {
  
  font-size: 18pt;
  font-weight: bold;
  float: left;
}

#header_users_online {
  font-size: 12pt;
  margin: 10px 100px 0 0;
}

#header_level_label, #header_score_label {
  margin: 9px 5px 0 10px;
  font-size: 14pt;
}

#header_score, #header_level {
  margin-top: 5px;
}

#header_login_button {
  position: relative;
  top: -5px;
  margin-left: 10px;
}

#logout_button {
  
  position: relative;
  top: -5px;
  margin-left: 10px;
  
}

/*********************************************************************/
/*** CONTENT  ***/
/*********************************************************************/


#stort_content {
  
  width: 1120px;
  margin: 0 0 0 30px;
  padding: 0 0 20px 0;
  color: #222;
  overflow: hidden;
}

a {
  text-decoration: none !important;
}

/*********************************************************************/
/*** HOME PAGE  ***/
/*********************************************************************/

#home_page_box {
  background: url('/stort/images/alert-overlay.png') #999 repeat-x;
  border: 2px solid #990000;
  width: 1050px;
  margin: 0 0 0 10px;
  overflow: hidden;
  padding: 10px;
  color: #FFF;
  line-height: 20px;
  font-size: 14px;
}

#home_page_text {
  margin: 0;
  padding: 0;
  float: left;
  width: 750px;
}

#play_button {
  float: right;
  margin-top: 40px;
}

#home_login_button, #home_signup_button {
 margin-left: 20px;
}

.high_score_row {
  
  border: 1px solid #990000;
  padding: 3px;
  font-size: 16px;
  margin: 10px;
  width: 700px;
  overflow: hidden;
  
}

.high_score_country {
  
  float: right;
  margin: 2px 200px 0 0;
  font-size: 14px;
}

.high_score_display {
  
  float: right;
  margin-right: 10px;
  width: 40px;
  
}

/* CHOICE PAGES */

#trad_button {
  margin-left: 375px;
}

#phrase_button {
  margin-left: 300px;
}


/* FOOTER */

#footer {
padding-top:0px;
position:relative;
top:50px;
color:white;
text-align:center;  

}
#footer a, #footer a:hover {
	color:white;
}

/* GAME SECTION */

#completed_matches {
  
  width: 1080px;
  border: 2px solid #000;
  margin-left: 10px;
  margin-bottom: 10px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  overflow: hidden;
  height: 160px;
  background: url('/stort/images/stort_logo_background.jpg') #893022;
  
/*  background: url('/stort/images/stort_logo_background.jpg') #981B1E;
*/
  background-repeat: no-repeat;
  background-position: center center;
}

#completed_matches h2 {
  color: #FFF;
  margin-left: 10px;
  border-bottom: 1px solid #FFF;
  padding: 2px;
  width: 200px;
}

.completed_match_container_one_row {
  
  width: 80px;
  padding: 3px;
  height: 100px;
  margin: 5px 0 5px 5px;
  float: left;
  
}

.completed_match_pinyin_one_row {
  
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  border-left: 2px solid #000;
  -moz-border-top-left-radius: 5px;
  border-top-left-radius: 5px;
  -moz-border-top-right-radius: 5px;
  border-top-right-radius: 5px;  
  -moz-border-bottom-left-radius: 0px;  
  border-bottom-left-radius: 0px;  
  -moz-border-bottom-right-radius: 0px;  
  border-bottom-right-radius: 0px; 
  
  height: 40px;
  position: relative;
  top: -5px;
  z-index: 2;
  overflow: hidden;
  padding: 2px;
  background-color: #FFF;
  font-size: 16px;
  
}

.completed_match_z_char_one_row {
  
  border: 2px solid #000;
  -moz-border-radius: 5px;
  border-radius: 5px;
  height: 20px;
  position: relative;
  top: -10px;
  z-index: 3;
  height: 60px;
  overflow: hidden;
  padding: 2px;
  background-color: #FFF;
  
  font-size: 28px;
  
}

.completed_match_container_two_rows {
  
  width: 42px;
  padding: 2px;
  height: 50px;
  margin: 3px 0 3px 3px;
  float: left;
  
}

.completed_match_pinyin_two_rows {
  
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  border-left: 2px solid #000;
  -moz-border-top-left-radius: 3px;
  border-top-left-radius: 3px;
  -moz-border-top-right-radius: 3px;
  border-top-right-radius: 3px;  
  -moz-border-bottom-left-radius: 0px;  
  border-bottom-left-radius: 0px;  
  -moz-border-bottom-right-radius: 0px;  
  border-bottom-right-radius: 0px; 
  height: 15px;
  position: relative;
  top: -2px;
  z-index: 2;
  overflow: hidden;
  padding: 1px 0 0 1px;
  background-color: #FFF;
  
  font-size: 10px;
}

.completed_match_z_char_two_rows {
  
  border: 2px solid #000;
  -moz-border-radius: 3px;
  border-radius: 3px;
  position: relative;
  top: -5px;
  z-index: 3;
  height: 25px;
  overflow: hidden;
  background-color: #FFF;
  
  padding: 1px 0 0 1px;
  
  font-size: 10px;
  
}

.game_card_container {
  
  position: relative;
  float: left;
}

.game_card {
  width: 95px;
  height: 135px;
  border: 1px solid #000;
  float: left;
  margin: 8px;
  font-size: 24px;
  color: #000;
  padding: 5px;
  position: relative;
  -moz-border-radius: 15px;
  border-radius: 15px;
  background-color: #FFF;
  overflow: hidden;
}

.game_card span {
  display: block;
}

.small_card_font {
  font-size: 12px;
  font-weight: bold;
}

.card_cover {
  width: 100px;
  height: 140px;
  position: relative;
  background-color: #000;
  top: 5px;
  left: 5px;
  -moz-border-radius: 15px;
  border-radius: 15px;
  border: 7px #CCC solid;
  background: url('/stort/images/card_back.jpg');
}

.card_selected {
  background-color: #FFF;
}

.empty_cell {
  border: none;
  background-color: #FFF;
  width: 97px;
}

.wrong {
  background-color: #FF6666;
}

.correct {
  background-color: #99FF99;
}

.cdict {
  color: #000099;
}

/*.wiseman {
  color: #000;
}

.wiseman:before {
  content:url('/stort/images/wiseman.png');
}*/

.who_def {
  color: #009900;
}

.eastland {
  color: #CCC;
}

.cmdb {
  color: #990000;
}

.def_icon {
  width: 16px;
  display: inline;
  margin-right: 5px;
  top: 5px;
}

.definition {
  display: block;
  margin: 0;
  padding: 0;
}

.xlarge_definition {
  padding-top: 10px;
  height: 125px;
  font-size: 20px;
}

.large_definition {
  padding-top: 10px;
  height: 125px;
  font-size: 16px;
}

.small_definition {
  padding-top: 10px;
  height: 125px;
  font-size: 10px;
}

.z_char_xlarge {
  font-family: "Han Nom A","Han Nom B","MS Song",SimSun, NSimSun,sans-serif;
  font-size: 72px;
  padding-top: 20px;
  height: 115px;
}

.z_char_large {
  font-family: "Han Nom A","Han Nom B","MS Song",SimSun, NSimSun,sans-serif;
  font-size: 54px;
  padding-top: 10px;
  height: 125px;
}

.z_char_small {
  font-size: 44px;
  padding-top: 20px;
  height: 115px;
}

.z_char_xsmall {
  font-family: "Han Nom A","Han Nom B","MS Song",SimSun, NSimSun,sans-serif;
  font-size: 32px;
  padding-top: 20px;
  height: 115px;
}

.large_pinyin {
  text-align: center;
  font-size: 32px;
  padding-top: 20px;
  height: 115px;
}

.small_pinyin {
  text-align: center;
  font-size: 24px;
  padding-top: 20px;
  height: 115px;
}

#definition_legend {
  margin: 10px;
  border: 2px solid #000;
  border-radius: 5px;
  -moz-border-radius: 5px;
  padding-top: 4px;
  background: #EEE;
}

#definition_legend img {
  
  width: 24px;
  display: inline;
  margin: 5px;
}

#definition_legend h2 {
  display: inline;
  position: relative;
  top: -14px;
  font-weight: bold;
  margin: 0 30px 0 10px;
}

.legend_label {
  position: relative;
  top: -14px;
  font-size: 16px;
  display: inline;
}

#blanket {
	display: none; /*--hidden by default--*/
	background: #000;
	position: fixed; left: 0; top: 0;
	width: 100%; height: 100%;
	opacity: .80;
	z-index: 9998;
}

#block {
	display: none; /*--hidden by default--*/
	position: fixed; left: 0; top: 0;
	width: 100%; height: 100%;
	opacity: .80;
	z-index: 9999;
}


/* SIGNUP PAGE */

.signup_row {
  overflow: hidden;
  width: 300px;
}

.signup_row input {
  
  float: right;
  
}

/* LOGIN */

#popup_login_box {
  display: none;
  width: 300px;
  height: 150px;
  position: absolute;
  top: 200px;
  left: 400px;
  border: 2px solid #990000;
  background-color: #FFF;
  -moz-border-radius: 5px;
  border-radius: 5px;
  background: #EEE;
  padding: 10px;
  z-index: 9999;
  overflow: hidden;
}

#popup_login_box input {
  border: 2px solid #222;
  font-size: 14px;
}

#close_login_link {
  font-size: 14px;
}



/* BUTTONS */

button {
	margin: 0;
	padding: 0;
}

.button, .button:visited {
	background: #ccc url('/stort/images/alert-overlay.png') repeat-x; 
	display: inline-block; 
	padding: 5px 10px 6px; 
	text-decoration: none;
	color: #fff; 
	-moz-border-radius: 5px; 
	-webkit-border-radius: 5px;
	-moz-box-shadow: 0 0 3px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0 0 3px rgba(0,0,0,0.5);
	text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
	position: relative;
	cursor: pointer;
	z-index: 0;
	
}

.button:hover							{ background-color: #111; color: #fff;  text-decoration: none; }
.button:active							{ top: 1px; }
.small.button, .small.button:visited 			{ font-size: 11px; padding: ; }
.button, .button:visited,
.medium.button, .medium.button:visited 		{ font-size: 14px; font-weight: bold; line-height: 1; text-shadow: 0 -1px 1px rgba(0,0,0,0.25); }
.large.button, .large.button:visited 			{ font-size: 18px; padding: 10px 16px 10px; }

.grey.button, .grey.button:visited		{ background-color: #222 }
.grey.button:hover						{ background-color: #AAA; }
.green.button, .green.button:visited		{ background-color: #769802; }
.green.button:hover						{ background-color: #5a7301; }
.blue.button, .blue.button:visited		{ background-color: #2daebf; }
.blue.button:hover							{ background-color: #007d9a; }
.red.button, .red.button:visited			{ background-color: #990000; }
.red.button:hover							{ background-color: #990000; }
.magenta.button, .magenta.button:visited		{ background-color: #a9014b; }
.magenta.button:hover							{ background-color: #630030; }
.orange.button, .orange.button:visited		{ background-color: #ff5c00; }
.orange.button:hover							{ background-color: #d45500; }
.yellow.button, .yellow.button:visited		{ background-color: #ffb515; }
.yellow.button:hover							{ background-color: #fc9200; }


