body {
    font: 15px;
}

nav a.support {
    background-color: #fff;
}

.big_box .button {
    margin-bottom:5px;
}
aside {
    width:27%;
    float:right;
    margin-right:0;
    margin-left:2%;
    text-align: left;
}

aside label {
    min-width: 70px;
}
aside input[type=submit] {
    width:auto;
}
aside div p {
    margin: 0px;
}
aside div.row1 {
    background:#e8edf9;
    margin:0;
    padding:.3em 0;
}
aside div.row2 {
    margin:0;
    padding:.3em 0;  
}


header h1{
    text-align: center;
    clear:both;
    padding-bottom:20px;
    font-size: 1.5em;
    background:transparent;
    margin: 0px;
}

header span#user {
    position:absolute;
    bottom:3px;
    right:.5%;
}
main p {
    line-height: 1.3em;
}

.news, .topics, .grades {
    padding:8px .5% 8px .5%;
    margin:8px 0;
    border-radius:8px;
    box-shadow: 0px 1px 3px #999;
    -webkit-box-shadow: 0px 1px 3px #999;
    -moz-box-shadow: 0px 1px 3px #999;
    background: #eeffff; /* for non-css3 browsers */
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9ffff', endColorstr='#eeffee'); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#f9ffff), to(#eeffee)); /* for webkit browsers */
    background: -moz-linear-gradient(top,  #f9ffff,  #eeffee); /* for firefox 3.6+ */
    border: solid 1px #ccc;
}

.news ul {
    margin:0px 0px 10px 0px;
    padding:0 0 0 22px;
    font-size: .9em;
}
.grades ul {
    margin:0px;
    padding:0 0 0 22px;
}
.wechat {
    border-radius:12px;
    padding:4px .5%;
    margin-bottom:4px;
}
.wechat img {
    float:left;
    padding-right:4px;
}
#twitter-widget-0 {
    width: 55% !important; 
    min-height:140px !important;
}
form#search_form {
    clear:both;
    display:block;
    padding:4px .5%;
    margin:4px 0;
}
.topics a {
    margin:5px 10px 5px 0;
}
.topics img {
     float:left; 
     clear:left; 
     padding:0px 5px 5px 0;
}
.topics h3{
    margin-left:99px;
}
@media only screen and (max-width: 480px) {
    header>a{
        width:16%;
        font-size: .8em;
    }
}

form label {
    display:block;
    float:left;
    width:18%;
    min-width:70px;
    margin:3px 1%;
    text-align: right;
    clear:left;
}

input[type=text],input[type=password],input[type=email],input[type=search],input[type=file], input[type=number] {
    display:block;
    float:left;
    width:60%;
    padding:5px 1%;
    margin:0 0 3px 0;
    border-radius: 8px;
    border-width: 1px;
    border-color:#ccc;
}

input[type=file] {
    padding:0px;
}
input[type=number] {
    width:6%;
}
input[type=checkbox] {
    display: block;
    float:left;
    padding:3px 1%;
}
select {
    display:block;
    float:left;
    width:50%;
    margin:0% 1%;
    height:2em;
}

textarea {
    display:block;
    float:left;
    width:60%;
    height:3em;
    padding:3px 1%;
    margin-bottom:3px;
    border-radius: 8px;
    border-width: 1px;
    border-color:#ccc;
}
input[type=submit], button{
    display:block;
    clear:left;
    margin:3px 1%;
    margin-left:20%;
    width:25%;
    cursor:pointer;
}


form span {
    display:block;
    clear:left;
    margin:0 0 3% 20%;
    font-style: italic;
    color:#666;
    font-size:.9em;

}

form table {
    width:100%;
}

header input[type=search] {
    display:block;
    float:right;
    clear:right;
    width:15%;
    padding:.5% 3px;
    margin:.5%;
}

.hidden, p.wechat_more {
    display:none;
}

ul.errorlist {
    margin: 0 0 0 20%;
    color:#c00;
    clear:left;
    float:left;
    list-style-type: none;
    padding:0px;
}

ul.video {
    margin:0;
    padding:0;
    list-style-type: none;
    zoom:1; /* For IE 6/7 */
}
ul.video li {
    margin: 0 1.6% 10px 0;
    padding:8px 2% 8px 2%;
    clear:none;
    min-width: 200px;
    border-radius:8px;
    box-shadow: 0px 1px 3px #333;
    -webkit-box-shadow: 0px 1px 3px #333;
    -moz-box-shadow: 0px 1px 3px #333;
    background: #eeffff; /* for non-css3 browsers */
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9ffff', endColorstr='#eeffee'); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#f9ffff), to(#eeffee)); /* for webkit browsers */
    background: -moz-linear-gradient(top,  #f9ffff,  #eeffee); /* for firefox 3.6+ */
    border: solid 1px #6d6d6d;
}

main ul.video li {
    width:30%;
    float:left;
    padding:8px .5% 8px .5%;
}

ul.video li h3 {
    margin:0 0 4px 0;
}

#search_form label, #search_form input,  #search_form button{
    margin:0px;
    display:inline;
    float:none;
}
 #search_form button{
    margin:0;
    width:auto;
    -moz-box-shadow:inset 0px -3px 7px 0px #29bbff;
    -webkit-box-shadow:inset 0px -3px 7px 0px #29bbff;
    box-shadow:inset 0px -3px 7px 0px #29bbff;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #2dabf9), color-stop(1, #0688fa));
    background:-moz-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-webkit-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-o-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-ms-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#2dabf9', endColorstr='#0688fa',GradientType=0);
    background-color:#2dabf9;
    -moz-border-radius:8px;
    -webkit-border-radius:8px;
    border-radius:8px;
    border:1px solid #0688fa;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:14px;
    padding:4px 10px;
    text-decoration:none;
    text-shadow:0px 1px 0px #263666;

}
 #search_form button:hover {
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0688fa), color-stop(1, #2dabf9));
    background:-moz-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-webkit-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-o-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-ms-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0688fa', endColorstr='#2dabf9',GradientType=0);
    background-color:#0688fa;
}
 #search_form button:active {
    position:relative;
    top:1px;
}
.box.profile_section {
    width: 47%;
    margin: 8px 0% 8px 1%;
    float: left;
}
.box.profile_section h2{
    margin: 0 0 5px 0;
}
.teacher_profile_header {
    background-color:#e8edf9;
    border-radius:4px 4px 0 0;
}
.teacher_profile_header img {
    float:left; 
    margin:5px;
    height:150px;
}
.teacher_profile_body {
    border:3px solid #e8edf9;
    border-radius:0 0 4px 4px;
    box-shadow: 0 3px 10px -5px #678992;
}
.wechat_log_user {
    color:#00f;
}
div.wechat_section {
    padding:.5em 3%;
    text-indent: -3%;
}
div.wechat_section p {
    text-indent: 0;
}
.user0 .wechat_log_user, .user8 .wechat_log_user {
    color:#00779E;
}
.user0, .user8 {
    background-color: #CDEDF7;
}
.user1 .wechat_log_user, .user9 .wechat_log_user {
    color:#76009E;
}
.user1, .user9 {
    background-color: #ECCDF7;
}
.user2 .wechat_log_user, .user10 .wechat_log_user {
    color:#9E2700;
}
.user2, .user10 {
    background-color: #F7D7CD;
}
.user3 .wechat_log_user, .user11 .wechat_log_user {
    color:#289E00;
}
.user3, .user11 {
    background-color: #D8F7CD;
}
.user4 .wechat_log_user, .user12 .wechat_log_user {
    color:#000D9E;
}
.user4, .user12 {
    background-color: #D2D5F7;
}
.user5 .wechat_log_user, .user13 .wechat_log_user {
    color:#9E005C;
}
.user5, .user13 {
    background-color: #F7D2E8;
}
.user6 .wechat_log_user, .user14 .wechat_log_user {
    color:#9E9100;
}
.user6, .user14 {
    background-color: #F7F4D2;
}
.user7 .wechat_log_user, .user15 .wechat_log_user {
    color:#009E42;
}
.user7, .user15 {
    background-color: #F7F4D2;
}

section.small_padding {
    padding:8px .5%;
}
ul.grade {
    margin-bottom: 20px;
}
ul.grade li{
    display: inline-block;
    padding: 10px;
    position:relative;
}
ul.grade li div.grade_hover {
    display: none;
}
ul.grade li:hover {
    background-color: rgba(255,255,255,0.9);
    border:1px solid #99dced;
    padding:9px;
}
ul.grade li:hover div.grade_hover {
    display: block;
    background-color: rgba(255,255,255,0.9);
    position: absolute;
    top: 50px;
    left: 138px;
    z-index:100;
    width:530%;
    border:1px solid #99dced;
    padding:5px 1%;

}
ul.grade li.last:hover div.grade_hover {
    display: block;
    background-color: rgba(255,255,255,0.9);
    position: absolute;
    top: 50px;
    left: -420%;
    z-index:100;
    width:400%;
    border:1px solid #99dced;
    padding:5px 1%;
}

div.grade_hover:before{
    content:url(/static/support/img/dropdown.png);
    position:absolute;
    left:-41px;
    top: 0px;
    padding: 25px 0;
}
ul.grade li.last:hover div.grade_hover:before {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    right:-41px;
    top:25px;
}
div.grade_hover table, table.lesson_table{
    margin:0px;
    clear:left;
}
table.lesson_table {
    width:100%;
}
div.grade_hover td, table.lesson_table td {
    padding:3px;
    background:rgba(153,220,237,.3);
}
table.lesson_table th {
    padding:5px .2%;
}
table.lesson_table td {
    font-size: 1.2em;
    padding:5px 1%;
}
table.lesson_table th.week {
    width:70px;
}
@media only screen and (max-width: 480px) {
    table.lesson_table th.week{
        width:30px;
    }
}
ul.files {
    list-style-type: none;
    margin: 0px;
    padding:0px;
}
ul.files li, ul.files li:hover {
    background:url(/static/support/img/file.png) no-repeat left top;
    display:block;
    height:29px;
    float:left;
    margin:0 10px 20px 10px;
    padding:0px;
    border:0px;
    box-shadow: none;
    border-radius:0;
}
ul.files li.secret, ul.files li.secret:hover {
    background:url(/static/support/img/secret_file.png) no-repeat left top; 
}
ul.files li a {
    border:0;
    line-height: 35px;
}
ul.files li a span {
    padding:2px;
    font-family: Helvetica, Arial;
    margin-right:5px;
    font-size: .5em;
    clear:none;
    display: inline;
    color:inherit;
    font-style: normal;
    margin:0;
}

a.button, button.blue_button, input.blue_button {
    width:auto;
    -moz-box-shadow:inset 0px -3px 7px 0px #29bbff;
    -webkit-box-shadow:inset 0px -3px 7px 0px #29bbff;
    box-shadow:inset 0px -3px 7px 0px #29bbff;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #2dabf9), color-stop(1, #0688fa));
    background:-moz-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-webkit-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-o-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-ms-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#2dabf9', endColorstr='#0688fa',GradientType=0);
    background-color:#2dabf9;
    -moz-border-radius:8px;
    -webkit-border-radius:8px;
    border-radius:8px;
    border:1px solid #0688fa;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:14px;
    padding:4px 10px;
    text-decoration:none;
    text-shadow:0px 1px 0px #263666;
}
a.button:hover, button.blue_button:hover, input.blue_button:hover {
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0688fa), color-stop(1, #2dabf9));
    background:-moz-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-webkit-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-o-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-ms-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0688fa', endColorstr='#2dabf9',GradientType=0);
    background-color:#0688fa;
}
a.button:active, button.blue_button:active, input.blue_button:active {
    position:relative;
    top:1px;
}
ul.lesson_locator, ul.lesson_locator ul{
    list-style: none;
    margin:0px;
    padding:0px;
    line-height: 1em;
}
ul.lesson_locator {
    margin-top: -12px;
    margin-bottom: 10px;
}
ul.lesson_locator li{
    margin:0px;
    border:1px solid #ccc;
    display: inline-block;
    padding: 2px;
}
ul.lesson_locator li ul {
    display: inline;
    padding-left:2px;
}
ul.lesson_locator li li{
    height:20px;
    width:20px;
    border:1px solid #163588;
    vertical-align: middle;
    position: relative;
    z-index: 0;
    text-align: center;
    font-size: .9em;
    color:#163588;
    padding: 0;
}
ul.lesson_locator li a, ul.lesson_locator li li span {
    display:none;
}
ul.lesson_locator li li:hover>span{
    color:#163588;
}
ul.lesson_locator li li:hover a, ul.lesson_locator li li:hover>span {
    display:block;
    width:190px;
    text-align: left;
    position:absolute;
    margin: 0;
    padding-top:38px;
    top:-16px;
    border: none;
    font-size: 1.1em;
}
ul.lesson_locator li li:hover a span, ul.lesson_locator li li:hover span span {
    background-color: rgba(255,255,255,0.9);
    display:block;
    width:auto;
}
ul.lesson_locator li li:hover a span{
    border-bottom:1px dotted blue;
}

.teachers .big_box>div.teacher_profile_header{
    background-color:#163588;
    color: #fff;
    border-radius: .4em .4em 0 0;
    text-align: center;
    font-family: kaiti, sans-serif;
    padding: .2em;
    margin:0;
}
.teachers .big_box>div.teacher_profile_header h3, .teachers .big_box>div.teacher_profile_header h4 {
    color:#fff;
}
form.subscribe {
    float:right; 
    width:auto;
}
.grade_hover form.subscribe {
    float:none;
    display: inline
}
form.subscribe button.blue_button {
    margin: 0px;
    vertical-align: top;
}

a.topicbuttonimage {
    display: block;
    margin-bottom:5px;
}
a.topicbuttonimage img {
    width: 100%;
    vertical-align: bottom;
}
a.topicbuttonimage span {
    -moz-box-shadow:inset 0px -3px 7px 0px #29bbff;
    -webkit-box-shadow:inset 0px -3px 7px 0px #29bbff;
    box-shadow:inset 0px -3px 7px 0px #29bbff;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #2dabf9), color-stop(1, #0688fa));
    background:-moz-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-webkit-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-o-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:-ms-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
    background:linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#2dabf9', endColorstr='#0688fa',GradientType=0);
    background-color:#2dabf9;
    border:1px solid #0688fa;
    display:block;
    cursor:pointer;
    color:#ffffff;
    font-family:Arial;
    font-size:17px;
    padding:4px 10px;
    text-decoration:none;
    text-shadow:0px 1px 0px #263666;
    text-align: center;
}
a.topicbuttonimage:hover span{
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0688fa), color-stop(1, #2dabf9));
    background:-moz-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-webkit-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-o-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:-ms-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
    background:linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0688fa', endColorstr='#2dabf9',GradientType=0);
    background-color:#0688fa;
}
a.topicbuttonimage:active span{
    position:relative;
    top:1px;
}