/*small mobile phone*/
/* 236(320), 280(375), 290(414) */
/*Extra small devices Phones (<768px)*/
/*Custom max-width based on the length of the menu, it can be bigger then 768px*/
/*Small devices Tablets (<992)*/
@media only screen and (max-width: 992px) {

    .introduction {
        width: auto;
    }

    .introduction-contact {
        padding: 0 20% 0 26%;
    }

    .introduction-contact .content {
        width: 100%;
    }

    .wrapper > .content {

        width: 100%;
        text-align: justify;
    }
}

@media only screen and (max-width: 768px) {
    #mobileMenuIcon {
        display: block;
    }

    #menu {
        display: none;
    }

    #mobile-menu.open {
        right: 0;
        display: block;
    }

    #slides {
        width: 100%;
    }

    ul.direct_move {
        overflow: hidden;
        width: auto;
        min-height: 40px;
        border-top: 1px solid #e4e6e7;
        background-color: #ffffff;
        position: absolute;
        top: 145px;
        z-index: 1000;
    }

    li.item_direct {
        float: left;
        border-right: 1px solid #f4f4f4;
        border-bottom: 1px solid #e4e6e7;
        text-align: center;
        box-sizing: border-box;
        width: 50%;
        padding: 12px 0 10px;
    }

    li.item_direct a {
        color: #101010 !important;
        letter-spacing: -1px;
        font-size: 15px;
        font-weight: 400;
        font-family:  "Palatino Linotype", "Book Antiqua", Palatino, serif;
    }

    .row-contact {
        margin-top: 20px;
    }

    #map-background {
        display: none;
    }

    #main {
        min-width: 0;
        width: 100%;
    }

    #page {
        min-width: 0;
        width: 100%;
    }

    .container {
        width: 100%;
    }

    #header {
        width: 100%;
        height: 160px;
    }

    #topcontainer .span-84 .content {
        padding: 10px;
    }

    #topcontainer .content h1.contactTitle {
        line-height: 30px;
    }

    .home .introduction {
        width: 92%;
        padding-left: 4%;
        padding-right: 0;
    }

    .row-book .row {
        margin: 0 10px;
        padding: 1%;
    }

    .introduction {
        padding-left: 20px;
        padding-right: 20px;
        width: auto;
    }

    #GlobalContacts .row-contact h1 {
        /*line-height: 15px;*/
    }

    #GlobalContacts h1.contact-name {
        padding: initial;
    }

    #GlobalContacts .span-table25 {
        padding: 8px 3px;
    }

    .hr1 {
        background: none;
    }

    .voffset-five {
        padding: 10px 0 0 0;
    }

    .inner-box-span {
        width: 336px;
    }

    .head-book {
        margin: 10px 10px;
        padding: 0;
    }

    .hv_book, .wrapper_book, .wrapper {
        margin: 10px;
    }

    .span-80 {
        width: initial;
        padding: 10px;
    }

    .span-84 {
        margin: 0 0;
    }

    .introduction_text .content p,
    .introduction .content p {
        font: 1.0em/1.7em  "Palatino Linotype", "Book Antiqua", Palatino, serif;
    }

    .topoffset-seven {
        padding-top: 10px;
    }

    #language {
        top: 6px;
        right: 20px;
    }

    #mobileMenuIcon {
        top: 116px;
        right: 23px;
    }

    ul.direct_move {
        top: 145px;
    }

    .box.inner-box-span {
        float: left;
    }

    .inner-box-span {
        width: 229px;
    }

    .voffset-half .span-title {
        width: 90%;
    }

    .odd p, .even p {
        padding: 1px 0 1px 10px;
    }

    .row-book .content .span-title h3 {
        font-size: 1.0em;
    }

    .span-title, .span-title2, .span-date {
        margin: 1.5% 1%;
    }

    .span-date {
        width: 17%;
        float: right;
    }
}

@media only screen and (max-width: 740px) {
    .box.inner-box-span {
        float: none;
        padding-left: 27%;
    }

    .inner-box-span {
        width: 50%;
    }
}

@media only screen and (max-width: 480px) {
    /*----*/
    #menu {
        /* menu size is variable between languages, height depending on number of entries, like minghui link */
        width: 100%;
        height: 198px !important;

        top: 160px;
        float: right;
        position: absolute !important;
        z-index: 1000;
        padding-top: 15px;
        right: -181px;
        display: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /*position: fixed;*/

        /*height: 100%;*/
        background-color: #fff;
        border-right: 1px solid #e6e6e6;
        bottom: 0;
        -webkit-backface-visibility: hidden;
        /*-webkit-perspective: 1000;*/
        box-shadow: inset 6px 0 34px 0 rgba(0, 0, 0, 0.15);
        -moz-box-shadow: inset -3px 0 33px 0 rgba(0, 0, 0, 0.15);
        -webkit-box-shadow: inset 6px 0 21px 0 rgba(0, 0.15, 0, 0);
    }

    #menu ul li {
        float: none;
        height: 32px;
    }

    #menu ul li a {
        color: blue;
    }

    #menu .mobile_dropdown_arrow {
        display: inline-block;
        float: right;
        width: 36px;
        text-align: center;
        height: 36px;
        line-height: 36px;
        margin-top: -9px;
        margin-right: -11px;
    }

    .menub {
        background: none;
    }

    #slides {
        width: 100%;
    }

    .row-contact .row {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .row-contact .box {
        /*border: 1px solid green;*/
        display: block;
        float: none;
        width: 100%;
        text-align: center;
    }

    #slidetabsmenu {
        height: auto;
        margin-bottom: 10px;
        line-height: 0;
        padding-bottom: 10px;
    }

    #slidetabsmenu a {
        float: none;
    }

    .row .content li {
        float: none;
    }

    .mejs-controls .mejs-time-rail span, .mejs-controls .mejs-time-rail a {
        display: none !important;
    }

    .span-date {
        width: auto;
    }

    .span-bookname {
        width: 58%;
    }

    .box.inner-box-span {
        padding-left: 9%;
    }

    .topimg {
        display: none;
    }

    .topimg-mobile {
        display: block;
        margin: 0 auto;
        max-width: 80%;
    }

    #FalunDafa-Banner {
        position: absolute;
        top: 20px;
        width: 100%;
        min-width: 100%;
        margin: 0 auto;
    }

    .inner-box-span {
        width: 340px;
    }

    #GlobalContacts .span-table25 {
        padding: 8px 0;
        width: 50%;
        float: left;
    }

    .introduction-contact {
        padding: 0 0 0 3%;
    }

    .books {
        background: url(../../img/thumbs-falun-dafa-books.png) top right no-repeat;
    }

    .video {
        background: url(../../img/thumbs-falun-dafa-videos.png) top right no-repeat;
    }

    .local {
        background: url(../../img/thumbs-falun-dafa-contacts.png) top right no-repeat;
    }

    .head-book .span-date:nth-child(2),
    .row-book .span-date:nth-child(2) {
        display: none;
    }
}

@media only screen and (max-width: 414px) {
    #header {
        height: 190px;
    }

    #language {
        top: 138px;
        left: 5%;
        right: initial;
    }

    #mobileMenuIcon {
        top: 159px;
        right: 5%;
    }

    ul.direct_move {
        top: 174px;
    }

    .span-title {
        width: 64%;
    }
}

@media only screen and (max-width: 375px) {
    #header {
        height: 180px;
    }

    #language {
        top: 128px;
        left: 5%;
        right: initial;
    }

    #mobileMenuIcon {
        top: 149px;
        right: 5%;
    }

    ul.direct_move {
        top: 164px;
    }

    .inner-box-span {
        width: 320px;
    }
}

@media only screen and (max-width: 370px) {
    /*
    .books, .books:hover {
        background-position: 30px 0;
    }
    .video, .video:hover {
        background-position: 30px 0;
    }
    */
    /*.box.inner-box-span {*/
    /*padding-left: 9px !important;*/
    /*}*/
    .box.inner-box-span {
        padding-left: 3px;
    }

    #language {
        top: 118px;
        left: 4%;
        right: initial;
    }

    .topimg-mobile {
        max-width: 90%;
    }
}

@media only screen and (max-width: 360px) {
    #header {
        height: 180px;
    }

    #language {
        top: 128px;
        left: 5%;
        right: initial;
    }

    #mobileMenuIcon {
        top: 149px;
        right: 5%;
    }

    ul.direct_move {
        top: 164px;
    }

    .box.inner-box-span {
        padding-left: 8%;
    }

    .inner-box-span {
        width: 310px;
    }
}

@media only screen and (max-width: 320px) {
    #header {
        height: 164px;
    }

    #language {
        top: 112px;
        left: 5%;
        right: initial;
    }

    #mobileMenuIcon {
        top: 134px;
        right: 5%;
    }

    ul.direct_move {
        top: 148px;
    }

    .inner-box-span {
        width: 280px;
    }
}

/*Small devices Tablets (竕･768px)*/
@media (min-width: 768px) and (max-width: 992px) {
    #slides {
        width: 100%;
    }

    #main {
        min-width: 0;
        width: 100%;
    }

    #page {
        min-width: 0;
        width: 100%;
    }

    .container {
        width: 100%;
    }

    #header {
        width: 100%;
        height: 160px;
    }

    /*
    #menu {
        width: 100%;
    }
    */
    .home .introduction {
        /*width:50%;*/
    }

    /*
    .box.inner-box-span {
        float: none;
        padding-left: 36%;
    }
    */
    .wrapper {
        margin: 20px;
    }

    .content p {
        /*margin-left: 60px;*/
    }

    .topimg {
        display: block;
    }

    .topimg-mobile {
        display: none;
    }
}