/********************************
***                           ***
***         1200px            ***
***                           ***
*********************************/

#block1 {
    padding: 80px 0 60px;
}

section#block6 {
    padding: 80px 0 30px;
}



/********************************
***                           ***
***          992px            ***
***                           ***
*********************************/

@media (max-width: 991px) {
    .header {
        height: 90vh;
    }
    .headertext {
        height: 90vh;
    }
    .text-vertical-center {
        vertical-align: top;
    }
    #block1 {
        padding: 60px 0 40px;
    }
    .slideInRight {
        margin-top: 30px;
    }
    .scrollup {
        bottom: 80px;
        right: 30px;
    }
    h1 {
        font-size: 20px;
    }
    .rights {
        margin-bottom: 65px;
    }
    #formblock {
        margin-top: 60px;
    }
}




/********************************
***                           ***
***          768px            ***
***                           ***
*********************************/




@media (max-width: 767px) {
    .header {
        background-position: 30% 100%;
    }
    .header {
        background-position: 56% 100%;
    }
    .headertext {
        padding-top: 10px;
        background: none;
    }
    .logo {
        margin-bottom: 0;
    }
    .bgforsm {
        margin-top: 38vh;
        padding: 15px 0;
        background: rgba(255, 244, 92, 0.8);
    }
    .header h2 {
        font-size: 30px;
        margin-top: 0;
        color: #676322;
    }
    .header h1 {
        font-size: 60px;
        margin-top: 0;
    }
    .header-btn {
        margin-top: 10px;
    }
    .answers {
        padding: 15px !important;
    }
    .questions:checked~.answers {
        padding: 0px 15px !important;
    }
    .linehight50 {
        line-height: 0;
    }
    h1 {
        text-align: center;
    }
}

@media (max-width: 705px) {

    table thead {
        display: none;
    }
    table tr {
        margin-bottom: 20px;
        display: block;
        border-bottom: 2px solid #ddd;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0px 2px 5px 1px rgba(51, 51, 51, .3);
    }
    #block2 table {
        text-align: right;
    }
    #block2 table tr:nth-child(even),#toeic table:last-child tr:nth-child(even) {
        background: #fff;
    }
    #block2 table span.table-name {
        display: inline;
        margin-right: 10px;
    }
    table td {
        display: block;
    }
    .table>tbody>tr>td {
        border-top: none;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    }
    .table>tbody>tr>td:first-child  {
        padding: 20px;
    }
    .table>tbody>tr>td:last-child  {
        padding-bottom: 20px;
        border-bottom: none;
    }
    table td:first-child {
        border-radius: 10px 10px 0 0;
        padding: 20px;
        margin-bottom: 10px;
        text-align: center;
        background: #1766b0;#1766b0
        color: #fff;
    }
    table td:last-child {
        border-bottom: 0;
    }
    table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 5px;
        color: #1766b0;
        float: left;
    }
    #toefl table td:first-child{
        background: #1d3a7c;
        color: #fff;
    }
    #toefl table td:before {
        color:#1d3a7c;
    }
    #ielts table td:first-child{
        background: #dd6765;
        color: #fff;
    }
    #ielts table td:before {
        color:#dd6765;
    }
    #toeic table td:first-child{
        background: #4ba9c2;
        color: #fff;
    }
    #toeic table td:before {
        color:#4ba9c2;
    }
    #toeic table:last-child td:first-child{
        background: #eb995d;
        color: #fff;
    }
    #toeic table:last-child td:before {
        color:#eb995d;
    }
}



/********************************
***                           ***
***          398px            ***
***                           ***
*********************************/

@media (max-width: 398px) {
    #block1 {
        font-size: 18px;
    }
    #block1 .highlight {
        font-size: 30px;
    }
}


/******************
***             ***
***     Q/A    ***
***             ***
*******************/

label.question {
    font-size: 18px;
    color: initial;
}

i.demo-icon.icon-plus.plus {
    color: #1765b1;
    font-size: initial;
}

.question {
    font-weight: normal;
    position: relative;
    margin: 0 auto;
    padding: 10px 10px 10px 50px;
    display: block;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}

.answers {
    background: #e8f4ff;
    padding: 15px 15px 15px 40px;
    height: auto;
    overflow: hidden;
    position: relative;
    opacity: 1;
    -webkit-transition: .7s ease;
    -moz-transition: .7s ease;
    -o-transition: .7s ease;
    transition: .7s ease;
}

.questions:checked~.questions {
    border-radius: 10px;
}

.questions:checked~.answers {
    height: 0;
    opacity: 0;
    padding: 0px 15px 0px 40px;
}

.plus {
    position: absolute;
    margin-left: 20px;
    margin-top: 16px;
    z-index: 5;
    font-size: 1em;
    line-height: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-transition: .3s ease;
    -moz-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
}

.questions:checked~.plus {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.questions {
    display: none;
}

@media (max-height: 500px) and (max-width: 768px) {
    .ta-left {
        text-align: left;
    }
    .logo {
        max-height: 80px;
        width: auto;
    }
}