body {
  font-family: sans-serif;
  font-size: 14px;
  color: #474747;
  background-color: #f2f2f2;
  margin: 0;
}
table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}
thead{
  font-weight: bold;
  padding: 3px;
}
thead td{
  padding: 4px;
}
td{
  border: 1px solid #790000;
  margin: 0;
  padding: 2px;
  padding-left: 5px;
  padding-right: 5px;
}
h1 {
  font-family: serif;
  margin-top: 1.5em;
  color: #000000;
}
h2 {
  font-family: serif;
  margin-top: 1.5em;
  color: #000000;
}

a {
  text-decoration: none;
  color: #008e88;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: #00978F;
}
form ul li label{
 vertical-align: top;
}
input[type="text"], input[type="password"]{
  width: 150px;
}
form {
  margin-left: 20px;
}
form ul{
  list-style-type: none;
}
form ul li{
  margin-top: 5px;
}
form ul.errorlist{
  padding: 0;
  margin-left: -10px;
  margin-top: 13px;
  font-weight: bold;
}

#body {
  margin: auto;
  width: 960px;
  border: 1px;
  position: relative;
  background-color: #ffffff;
  padding-left: 31px;
  padding-right: 20px;
  background-image: url('/media/layout/page_leftborder_gradient.gif');
  background-repeat:repeat-y;
}
#header{
  background-image: url('/media/layout/topbar_background.gif');
  margin: 0;
  height: 68px;
  width: 960px;
  -moz-border-radius-bottomleft: 20px;
  -webkit-border-bottom-left-radius: 20px;
  -moz-border-radius-bottomright: 20px;
  -webkit-border-bottom-right-radius: 20px;
}

#header a{
  color: #FFFFFF;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: bold;
}

#header #main_title{
  font-size: 50px;
  margin-left: 30px;
}


#menu {
  top: 25px;
  left: 340px;
  position: absolute;
  margin: 0;
  width: 600px;
}
#menu a{
  display: block;
  color: #ffffff;
  text-decoration: none;
  height: 21px;
  padding-top: 3px;
  padding-left: 10px;
  padding-right: 10px;
  background-image: url('/media/layout/section_background.gif');
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  margin-left: 1px;
}
#menu ul li:first-child a{
  -moz-border-radius-topleft: 20px;
  -webkit-border-top-left-radius: 20px;
}
#menu ul li:last-child a{
  -moz-border-radius-topright: 20px;
  -webkit-border-top-right-radius: 20px;
}
#menu a:hover{
  background-image: url('/media/layout/section_hover_background.gif');
}
#menu ul{
  margin: 0;
  padding: 0;
}
#menu ul li {
  text-align: center;
  font-weight: bold;
  list-style-type: none;
  text-indent: 0;
  float: left;

}

#content {
  margin-top: 30px;
  padding-right: 35px;
  padding-left: 35px;
}


#site_info{
  margin-top: 25px;
}
#copyright{
  clear: both;
  color: #afafaf;
  text-align: center;
  font-size: 13px;
  margin: auto;
}
#copyright a{
  color: #b81041;
}
#copyright p{
  margin: 1px;
}

#page_message{
  width: 600px;
  margin: auto;
  border: 2px dashed;
  padding-left: 5px;
  padding-right: 5px;
  border-color: #C13100;
}
.clear_div {
  clear: both;
}
.bad_value{
  background-color: #ffdfdf;
}
.short_cell{
  width: 0;
}


/* vocabulary learning tool */
#result_view{
  position: relative;
  width: 510px;
  height: 100px;
}
#result_view table{
  margin-left: 20px;
}

#result_view thead{
  background-color: #57ba62;
}
#test_view{
  position: relative;
  width: 530px;
  height: 200px;
}
#test_view td{
  width: 50%;
}
#test_view input[type="text"]{
  width: 99%;
}
#achievement_view{
  float: right;
  margin-top: -5px;
  width: 300px;
  padding: 10px; 
  margin-bottom: -300px;
  border: 1px dashed;
}
#achievement_view h1{
  margin-left: -5px;
  margin-top: 0;
  margin-bottom: 5px;
}
#achievement_view h2{
  margin-top: 10px;;
}
#page_end{
  height: 7px;
  margin-left: -20px;
  margin-right: -20px;
  background: #f5b0c3;
}
#page_end div:first-child{
  margin: 0;
  height: 7px;
  width: 33%;
  background: #f9d3de;
  float: left;
}
#page_end div:last-child{
  margin: 0;
  float: right;
  height: 7px;
  width: 33%;
  background: #f294ae;
}
#right_border_gradient{
  position: absolute;
  right: -11px;
  width: -11px;
  top: 0;
  margin: 0;
  height: 100%;
  width: 11px;
  background-image: url('/media/layout/page_rightborder_gradient.gif');
  background-repeat:repeat-y;
}

/* frame */
.frame{
  margin: 0;
  margin-left: -35px;
  margin-right: -35px;
  font: sans-serif;
}
.frame_header{
  background-color: #e22055;
  height: 9px;
  width: 100%;
  margin: 0;
}
.frame_body{
  padding-top: 1px;
  margin: 0;
  background-color: #f1f1f1;
  border-bottom: 1px solid #c7c5c6;
  border-left: 1px solid #c7c5c6;
  border-right: 1px solid #c7c5c6;
  padding-right: 30px;
  padding-left: 30px;
}
.frame h2{
  color: #b90f40;
  font: serif;
  border-bottom: dotted 3px #e9e5e4;
}
.learn_vocabulary {
  text-align: justify;
  margin-right: 23px;
  width: 264px;
  float: left;
}
.learn_vocabulary .first {
  display: block;
  color: #e96f7c;
  font-size: 38px;
  text-transform: lowercase;
  letter-spacing: 3px;
}
.learn_vocabulary .second {
  letter-spacing: 1px;
  margin-top: -8px;
  display: block;
  text-align: right;
  color: #008e88;
}

.how_it_works {
  text-align: justify;
  margin-left: 23px;
  margin-right: 23px;
  width: 264px;
  float: left;
}
.how_it_works .first {
  display: block;
  color: #e31e54;
  font-size: 38px;
  text-transform: lowercase;
  letter-spacing: 3px;
}
.how_it_works .second {
  letter-spacing: 1px;
  margin-top: -8px;
  display: block;
  text-align: right;
  color: #0169b0;
}

.freedom {
  text-align: justify;
  margin-left: 23px;
  width: 264px;
  float: left;
}
.freedom .first {
  display: block;
  color: #b90f40;
  font-size: 38px;
  text-transform: lowercase;
  letter-spacing: 3px;
}
.freedom .second {
  letter-spacing: 1px;
  margin-top: -8px;
  display: block;
  text-align: right;
  color: #93b90c;
}
