body {
    margin: 0px;
    margin-bottom: 0px;
    margin-top: 0px;
    margin-left: 0px;
    margin-right: 0px;
}

html, body { 
    height: 100%;
    font-family: 'Open Sans', serif;
}

.layer {
    opacity: 0.5;
    position: absolute;
    right: 20%;
}

div#info {
    font-size: 20px;
}

h2 {
    margin-bottom: .5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    font-size: 2rem;
}

h3 {
    margin-top: 0px;
    font-size: 1.75rem;
}

#footer {
    margin-left: 0px !important;
    margin-bottom: 0px !important;
}

button#footer {
    letter-spacing: 1px;
    border: 5px solid transparent;
    padding: 2px;
    border-radius: 10px;
    border-spacing: 50px;
    text-align: center;
    vertical-align: middle;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 24px;
    height: 70px;
    width: 200px;
    background-color: #9b9b9b;
    color: white;
}

button#footer_back {
    letter-spacing: 1px;
    border: 5px solid transparent;
    padding: 2px;
    border-radius: 10px;
    border-spacing: 50px;
    text-align: center;
    vertical-align: middle;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 24px;
    height: 70px;
    width: 100px;
    background-color: #9b9b9b;
    color: white;
}

.footer_back {
    letter-spacing: 1px;
    border: 5px solid transparent;
    padding: 2px;
    border-radius: 10px;
    border-spacing: 50px;
    text-align: center;
    vertical-align: middle;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 24px;
    height: 70px;
    width: 100px;
    background-color: #9b9b9b;
    color: white;
}

.inline {
    display: inline-block;
}

.font_kai {
    font-family: 'Open Sans', adobe-kaiti-std, sans-serif !important;
    font-style: normal;
    font-weight: 400;
}

.font_eng {
    font-family: 'Open Sans', serif;
}

.fadein {
    opacity: 0;
    animation: fade 2s linear;
}

@keyframes fade {
    0%, 100%{ 
        opacity: 1;
    }
}

.font_s5_big{
    font-size: 30px;
}

.font_s5_small{
    font-size: 20px;
}

.font_size_s2p2{
    font-size: 24px;
}

.font_size_5{
    font-size: 5px;
}

.font_size_18{
    font-size: 18px;
}

.font_size_24 {
    font-size: 24px;
}

.font_size_34{
    font-size: 34px;
}

.font_size_36{
    font-size: 36px;
}

.font_size_42{
    font-size: 42px;
}

.font_size_50{
    font-size: 50px;
}

.font_size_60 {
    font-size: 60px;
}

.font_size_68 {
    font-size: 68px;
}

.font_size_70 {
    font-size: 70px;
}

textarea { 
    font-size: 48px; 
}

/* text hyperlink: no underline */
a {
    text-decoration: none;
}

input[type="radio"] { 
    -ms-transform: scale(2); /* IE 9 */ 
    -webkit-transform: scale(2); /* Chrome, Safari, Opera */ 
    transform: scale(2); 
}

/* Table */
table {
    border-collapse: collapse;
}

tr {
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px solid;
    border-right: 0px solid;
}

th, td {
    padding: 40px;
}

@media only screen and (max-width: 420px) {
    th, td {
        padding: 10px;
    }
}

.table_s1_p2 tr, .table_s1_p2 th, .table_s1_p2 td {
    padding: 20px;
    border-left: 1px solid;
    border-right: 1px solid; 
}

.table_s4_border tr, .table_s4_border th, .table_s4_border td {
    border-top: 0px solid;
    border-bottom: 0px solid;
    padding: 0px;
}

.table_s51_padding td {
    padding: 20px;
}

.table_tones th, .table_tones td, .table_tones p {
    padding: 0px !important;
    margin-bottom: 1px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    margin-top: 0px !important
}

.table_back tr {
    padding: 0px !important;
    border-top:0px !important;
    border-bottom:0px !important;
}

.table_back tr, .table_back th , .table_back td {
    padding: 0px;
}

.table_s2_width tr, .table_s2_width th, .table_s2_width td {
    width: 110px;
    height: 80px;
    padding: 1.5px;
    border-collapse: separate;
    border-top: 10px solid;
    border-bottom: 10px solid;
    border-left: 10px solid;
    border-right: 10px solid;
    border-radius:30px;
    border-color: white;
    cursor: pointer;
}

.table_s2_width th {
    height: 30px;
    padding: 1px;
}

h2 {
    font-size: 2rem !important;
}

.table_s2_width2 td {
    width: 200px;
    height: 50px;
    padding: 1px;
    border-left: 1px solid;
    border-right: 1px solid;
}

.table_s2_border td {
    border: 10px solid #FFF;
}

.table_final th, .table_final tr, .table_final td {
    padding: 5px !important;
    border-top: 10px solid;
    border-bottom: 10px solid;
    border-left: 10px solid;
    border-right: 10px solid;
    border-radius: 25px;
    border-color: white;
    border-collapse: separate;
    cursor: pointer;
}

.table_final_practice td {
    padding: 5px !important;
}

.table_s4 tr {
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 1px solid;
    border-right: 0px solid;
}

.table_s4 td {
    border-right: 1px solid;
    padding: 10px;
}

.table_s5_p1 td {
    border: 10px solid #fff !important;
    padding: 15px;
    border-spacing: 70px;
    text-align: left;
    font-size: 26px;
    height: 30px;
    color: white;
    cursor: pointer;
}

.table_s5_p1 tr {
    border-bottom: 50px solid #fff !important;
}

.table_finals_more tr {
    border-bottom: 20px solid #fff !important;
}

.table_finals_more td {
    font-size: 36px;
    background-color: #C0BFBF;
}

.table_s5_1_1 td {
    padding: 2px;
    border-top: 0px solid;
    border-bottom: 0px solid;
}

.table_s5_1_1 tr {
    border-top: 0px solid;
    border-bottom: 0px solid;
}

.table_s53_width tr, .table_s53_width th, .table_s53_width td {
    border-top: 0px solid;
    border-bottom: 0px solid;
    padding: 0px;
}

.table_s6 tr, .table_s6 th, .table_s6 td {
    border-top: 0px solid;
    padding: 18px;
}

.table_exercises tr, .table_exercises th, .table_exercises td {
    border-top: 0px solid;
    padding: 30px;
}

.table_exer td {
    border-top: 30px solid #fff !important;
    border-bottom: 30px solid #fff !important;
    padding: 15px;
    border-radius: 30px;
    border-spacing: 150px;
    text-align: center;
    font-size: 44px;
    height: 50px;
    width: 100%;
    background-color: #b5a1d1;
    color: white;
    cursor: pointer;
}

.table_ex1 td {
    padding: 2px;
}

.table_ex2 td {
    padding: 10px;
}

.table_select tr {
    padding: 5px;
    font-size: 36px;
    text-align: center;
}

.table_select td {
    padding: 5px;
    border: 5px solid gray;
}

#table_hide_s41, #table_hide_s42, #table_hide_s43, #table_hide_s44, #table_hide_s45 {
    display: none;
}

#hide_s51, #hide_s52, #hide_s53, #hide_s54 {
    display: none;
}

#hide_s51_c1, #hide_s51_c2, #hide_s51_c3, #hide_s51_c4, #hide_s51_c5, #hide_s51_c6, #hide_s51_c7, #hide_s51_c8, #hide_s51_c9, #hide_s51_c10, #hide_s51_c11 {
    display: none;
}

#hide_s53_1, #hide_s53_2, #hide_s53_3, #hide_s53_4 {
    display: none;
}

#hide_s53_1b, #hide_s53_2b, #hide_s53_3b, #hide_s53_4b {
    display: none;
}

#hide_s53_2_1, #hide_s53_2_2, #hide_s53_2_3, #hide_s53_2_4, #hide_s53_2_5, #hide_s53_2_6, #hide_s53_2_7, #hide_s53_2_8 {
    display: none;
}

#hide_s53_2_1b, #hide_s53_2_2b, #hide_s53_2_3b, #hide_s53_2_4b, #hide_s53_2_5b, #hide_s53_2_6b, #hide_s53_2_7b, #hide_s53_2_8b {
    display: none;
}

#hide_s54_p1, #hide_s54_p2, #hide_s54_p3, #hide_s54_p4, #hide_s54_p5, #hide_s54_p6 {
    display: none;
}

#hide_s54_e1, #hide_s54_e2, #hide_s54_e3, #hide_s54_e4, #hide_s54_e5, #hide_s54_e6 {
    display: none;
}

.s51_text_color1 {
    color: #CF1477;
}

.s51_text_color2 {
    color: black;
}

.show_pinyin {
    visibility: hidden;
}

.show_tonal {
    visibility: hidden;
}

.show_name {
    visibility: hidden;
}

.show_cha {
    visibility: hidden;
}

.show_s5p2_1 {
    display: none;
}

.show_s5p2_2 {
    display: none;
}

.p_margin {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.color_purple {
    color: #609;
}

.color_red {
    color: #F00;
}

.textbox_size {
    width: 200px;
    height: 60px;
    font-size: 48px;
    text-align: center;
}

/* wrong "X" before question */
.mark {
    color: red;
    visibility: hidden;
    text-decoration: none;
}

.mark_correct {
    color: green;
    visibility: hidden;
    text-decoration: none;
}

.mark_correct_e5 {
    color: green;
    display: none;
    text-decoration: none;
}

.mark_ex6 tr, .mark_ex6 td {
    color: red;
    display:none !important;
    text-decoration:none;
}

.mark_correct_ex6 tr, .mark_correct_ex6 td {
    color:green;
    display:none !important;
    text-decoration:none;
}

#incorrect_0, #incorrect_1, #incorrect_2, #incorrect_3, #incorrect_4, #incorrect_5, #incorrect_6, #incorrect_7, #incorrect_8, #incorrect_9, #incorrect_10, #incorrect_11, #incorrect_12, #incorrect_13, #incorrect_14, #incorrect_15, #incorrect_16, #incorrect_17, #incorrect_18, #incorrect_19 {
    color: red;
    visibility: hidden;
}

#correct_0, #correct_1, #correct_2, #correct_3, #correct_4, #correct_5, #correct_6, #correct_7, #correct_8, #correct_9, #correct_10, #correct_11, #correct_12, #correct_13, #correct_14, #correct_15, #correct_16, #correct_17, #correct_18, #correct_19 {
    color: green;
    display: none;
}

#div_drag1, #div_drag2, #div_drag3, #div_drag4, #div_drag5, #div_drop1, #div_drop2, #div_drop3, #div_drop4, #div_drop5 {
    float: left;
    width: 100px;
    height: 35px;
    margin: 10px;
    padding: 10px;
    border: 1px solid black;
}

#img_initial {
    display: none;
}

/* Drag & Drop -----------------------------------------------------------------------------------------*/
.table_e5 td {
    padding: 10px;
    padding-top: 13px;
    padding-bottom: 13px;
    border: 2px solid #fff;
}

.table_e5 tr {
    border-top: 0px solid;
    border-bottom: 0px solid;
    width: 84px;
}

.table_e5_width {
    float: left;
    position: absolute;
    left: 25%;
}

.table_e5_back tr,.table_e5_back td {
    padding: 10px;
    border-top: 1px solid;
    border-color: black;
}

.table_e6 td {
    padding: 10px;
}

.table_e6_pad td {
    padding-right: 0px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.table_e6_pad tr {
    border-top: 0px solid;
    border-bottom: 0px solid;
}
/* Drag & Drop */

.wrapper {
    width: 100%;
}

.wrapper:after {
    content: "";
    display: table;
    clear: both;
}

/* Slots for final card positions */
#cardSlots {
    margin: 0 auto 3em auto;
    position: absolute;
    left: 42%;
}

/* The initial pile of unsorted cards */
/*div#card_drop0.ui-droppable {
    background-color: aliceblue;
}*/

#cardPile {
    position: relative;
    float: left;
    left: 55%;
    cursor: pointer;
    /*background: blue;*/
}

#cardSlots, #cardPile {
    height: 80%;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    width: 15%;
}

/* Individual cards and slots */
#cardSlots div, #cardPile div {
    width: 50%;
    height: 18%;
    padding: 10px;
    box-shadow: 5px 5px 5px #8080807d;
    padding-top: 18px;
    padding-bottom: 18px;
    border-radius: 5px;
    margin: 0px 0 30 10px;
    background: #fff;
}

/*#cardSlots div:first-child, #cardPile div:first-child {
    margin-left: 0;
}*/

#cardSlots div.hovered {
    background: #aaa;
}

#cardSlots div {
    border: 1px solid grey;
    box-shadow: none;
    height: 30px;
    width:150px;
    margin-bottom: 30px;
}

#cardPile div {
    background: #d0ddf2;
    color: black;
    font-size: 32px;
    text-align: center;
    height: 30px;
    width:150px;
    margin-bottom:20px;
    margin-left:100px; 
}

@media only screen and (max-width: 420px) {
    #cardSlots div {
        width: 50px;
    }

    #cardPile div {
        width: 50px;
    }

    #cardPile {
        margin-left: 40px;
    }
}

#cardPile div.ui-draggable-dragging {
    -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
    -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
    box-shadow: 0 0 .5em rgba(0, 0, 0, .8);
}

/* "You did it!" message */
#successMessage {
    position: absolute;
    left: 580px;
    top: 250px;
    width: 0;
    height: 0;
    z-index: 100;
    background: #dfd;
    border: 2px solid #333;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -moz-box-shadow: .3em .3em .5em rgba(0, 0, 0, .8);
    -webkit-box-shadow: .3em .3em .5em rgba(0, 0, 0, .8);
    box-shadow: .3em .3em .5em rgba(0, 0, 0, .8);
    padding: 20px;
}
/* Drag & Drop (End)-----------------------------------------------------------------------------------------*/
