/* ----------- iPhone 4 and 4S ----------- */

/* Portrait and Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2) {

}

/* Portrait */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {
}

/* Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) {

}

/* ----------- iPhone 5 and 5S ----------- */

/* Portrait and Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2) {
    .images-template , .order-template{
        padding: 10px 5px !important;
        width: 100% !important;
    }
    .images-template .images-left {
        float: none;
        margin: 0px;
        width: 100%;
    }
    .images-template .images-left ul li , .order-template .order-list ul li, .order-template .order-group .order-list ul li{
        width: 67px;
        padding: 2px;
        border: 1px solid #acacac;
        margin: 2px;
        height: 65px;
    }
    .images-template .images-left ul li {
        height: 90px;
    }
    .images-template .images-left ul li img {
        max-height: 50px;
    }
    .images-template .images-left ul li img , .order-template .order-list ul li img , .order-template .order-group .order-list ul li img{
        max-width : 100%;
    }
    .images-template .images-left ul li h4 , .order-template .order-list ul li h4, .order-template .order-group .order-list ul li h4{
        /*display: none;*/
        display: block;
        font-size: 7px;
        bottom: -8px;
        width: 95%;
        line-height: 8px;
    }
    .order-template ul li input[type=radio] {
        position: absolute;
        left: 0px;
        top: 0px;
        margin: 0px;
        width: 10px;
        height: 10px;
    }
    .images-template .images-right {
        width: 100%;
        height: auto;
    }
    .fix-result {
        /*position: fixed;*/
        /*top: 35px;*/
    }
    #result-image {
        position: relative;
        left: initial;
        top: initial;
        width: 100% !important;
        height: 300px !important;
    }
    #result-image>div {
        width: 100% !important;
        height: 300px !important;
        background-size: contain !important;
    }
    .bg-position {
        background-position: center -110px !important;
    }
    .top-position {
        top: -10px !important;
    }
    .order-template .order-list h3 , .order-template .order-info h3{
        font-size: 15px;
        margin-top: 10px;
    }
    .order-template a.btn-pdf {
        font-size: 15px;
    }
    .order-template .order-info table{
        font-size: 12px;
    }
    .order-template .order-image {
        float: none;
        height: auto;
    }
    .order-template .order-info {
        float: none;
    }
    .order-template #result-image {
        left: initial !important;
        top: initial !important;
    }
}

/* Portrait */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {
    .order-template .order-list ul li , .order-template .order-group .order-list ul li{
        height: 90px;
    }
    .order-template .order-list h3 , .order-template .order-info h3{
        font-size: 15px;
        margin-top: 10px;
    }
    .order-template a.btn-pdf {
        font-size: 15px;
    }
    .order-template .order-info table{
        font-size: 12px;
    }
    .order-template .order-info table tr td{
        border-right: 1px solid #6b6b6b;
        padding: 5px 5px;
    }
    .order-template .order-list ul li img , .order-template .order-group .order-list ul li img{
        height: 55px;
    }
    .order-template .order-image {
        float: none;
        height: auto;
    }
    .order-template .order-info {
        float: none;
    }
    .order-template #result-image {
        left: initial !important;
        top: initial !important;
    }
}

/* Landscape */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) {
    .images-template .images-left ul li {
        width: 128px;
        min-height: 100px;
    }
    .images-template .images-left ul li img {
        max-height: 85px;
    }
    #result-image , #result-image>div{
        height: 370px !important;
    }
    .bg-position {
        background-position: center -136px !important;
    }
    .order-template .order-list ul li , .order-template .order-group .order-list ul li{
        width: 72px;
        height: 85px;
    }
    .order-template .order-list ul li img , .order-template .order-group .order-list ul li img{
        height: 65px;
    }
    .order-template .order-list h3 , .order-template .order-info h3, .order-template .order-image h3{
        font-size: 15px;
        margin-top: 10px;
    }
    .order-template a.btn-pdf {
        font-size: 15px;
    }
    .order-template .order-info{
        max-width: 100%;
    }
    .order-template .order-image {
        max-height: 365px;
    }
}

/* ----------- iPhone 6 ----------- */

/* Portrait and Landscape */
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2) {
    .images-template {
        padding: 10px 5px !important;
        width: 100% !important;
    }
    .images-template .images-left {
        float: none;
        margin: 0px;
    }
}

/* Portrait */
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {
    .order-template .order-list h3 , .order-template .order-info h3, .order-template .order-image h3{
        font-size: 15px;
        margin-top: 10px;
    }
    .images-template .images-left ul li {
        width: 80px;
        height: 90px;
    }
    .images-template .images-left ul li img {
        /*max-height: 65px;*/
    }
    #result-image , #result-image>div {
        height: 330px !important;
    }
    .bg-position {
        background-position: center -120px !important;
    }
    .top-position {
        top: -11px !important;
    }
    .order-template .order-list ul li , .order-template .order-group .order-list ul li{
        width: 80px;
    }
}

/* Landscape */
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) {
    .images-template .images-left ul li {
        width: 147px;
        min-height: 130px;
    }
    .images-template .images-left ul li img {
        max-height: 70px;
    }
    .images-right {
        width: 100%;
        height: auto;
    }
    #result-image {
        position: relative;
        left: initial;
        top: initial;
    }
    .order-template {
        padding: 10px !important;
        width: 100% !important;
    }
    .order-template .order-list ul li , .order-template .order-group .order-list ul li{
        width: 145px;
    }
    .order-template .order-image {
        float: none;
    }
    .order-template #result-image {
        left: inherit !important;
    }
    .order-template .order-info {
        float: none;
        max-width: 100%;
    }
}

/* ----------- iPhone 6+ ----------- */

/* Portrait and Landscape */
@media only screen
and (min-device-width: 414px)
and (max-device-width: 736px)
and (-webkit-min-device-pixel-ratio: 3) {
    .images-template {
        padding: 10px !important;
        width: 100% !important;
    }
    .images-template .images-left {
        float: none;
        margin: 0px;
    }
    .images-template .images-left ul li h4 {
        font-size: 13px;
    }
    .images-template .images-right {
        width: 100%;
        height: auto;
    }
    #result-image {
        position: relative;
        left: initial;
        top: initial;
    }

}

/* Portrait */
@media only screen
and (min-device-width: 414px)
and (max-device-width: 736px)
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: portrait) {
    .images-template .images-left ul li {
        width: 90px;
        min-height: 90px;
    }
    #result-image, #result-image>div {
        height: 370px !important;
    }
    .bg-position {
        background-position: center -136px !important;
    }
    .order-template .order-list ul li , .order-template .order-group .order-list ul li{
        width: 90px;
    }

}

/* Landscape */
@media only screen
and (min-device-width: 414px)
and (max-device-width: 736px)
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: landscape) {
    .images-template .images-left ul li {
        width: 162px;
        min-height: 125px;
    }
    .images-template .images-left ul li img {
        max-height: 82px;
    }
    #result-image {
        left: 87px;
    }
}

/* ----------- Galaxy S3 ----------- */

/* Portrait and Landscape */
@media screen
and (device-width: 320px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 2) {

}

/* Portrait */
@media screen
and (device-width: 320px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 2)
and (orientation: portrait) {

}

/* Landscape */
@media screen
and (device-width: 320px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 2)
and (orientation: landscape) {

}

/* ----------- Galaxy S4 ----------- */

/* Portrait and Landscape */
@media screen
and (device-width: 320px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3) {

}

/* Portrait */
@media screen
and (device-width: 320px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: portrait) {

}

/* Landscape */
@media screen
and (device-width: 320px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: landscape) {

}

/* ----------- Galaxy S5 ----------- */

/* Portrait and Landscape */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3) {
}

/* Portrait */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: portrait) {
    .images-template .images-left ul li {
        width: 77px;
        height: 77px;
    }
    .images-template .images-left ul li img {
        max-height: 40px;
    }
    #result-image, #result-image>div {
        height: 330px !important;
    }
    .bg-position {
        background-position: center -120px !important;
    }
    .top-position {
        top: -11px !important;
    }
}

/* Landscape */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: landscape) {
    .images-template .images-left ul li {
        width: 138px !important;
        min-height: 130px !important;
    }
    .images-template .images-left ul li img {
        max-height: 85px;
    }
    #result-image {
        left: 35px;
    }
}


/* ----------- HTC One ----------- */

/* Portrait and Landscape */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3) {

}

/* Portrait */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: portrait) {

}

/* Landscape */
@media screen
and (device-width: 360px)
and (device-height: 640px)
and (-webkit-device-pixel-ratio: 3)
and (orientation: landscape) {

}


/* ----------- iPad mini ----------- */

/* Portrait and Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 1) {
    .images-template {
        width: 100% !important;
        padding: 10px !important;
    }
    .images-template .images-left ul li {
        width: 170px;
        padding: 5px;
        margin: 4px;
        min-height: 130px;
    }
    .images-template .images-left ul li img {
        max-height: 70px;
        max-width: 100%;
    }
    .images-template .images-right {
        width: 100%;
        height: auto;
    }
    #result-image {
        position: relative;
        left: 95px;
        top: initial;
    }
}

/* Portrait */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 1) {

}

/* Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 1) {

}

/* ----------- iPad 1 and 2 ----------- */
/* Portrait and Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 1) {
    .images-template {
        width: 100% !important;
        padding: 10px !important;
    }
    .images-template .images-left ul li {
        width: 170px;
        padding: 5px;
        margin: 4px;
        min-height: 130px;
    }
    .images-template .images-left ul li img {
        max-height: 70px;
        max-width: 100%;
    }
    .images-template .images-right {
        width: 100%;
        height: auto;
    }
    #result-image {
        position: relative;
        left: 95px;
        top: initial;
    }

}

/* Portrait */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 1) {

}

/* Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 1) {

}

/* ----------- iPad 3 and 4 ----------- */
/* Portrait and Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 2) {
    .images-template {
        width: 100% !important;
        padding: 10px !important;
    }
    .images-template .images-left ul li {
        width: 170px;
        padding: 5px;
        margin: 4px;
        min-height: 130px;
    }
    .images-template .images-left ul li img {
        max-height: 70px;
        max-width: 100%;
    }
    .images-template .images-right {
        width: 100%;
        height: auto;
    }
    #result-image {
        position: relative;
        left: 95px;
        top: initial;
    }
    .order-group .order-list ul li {
        width: 136px !important;
    }
    .order-template .order-group .order-images #result-image {
        left: -265px;
    }
}

/* Portrait */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 2) {

}

/* Landscape */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 2) {
    .images-template .images-left {
        margin: 0px;
    }
    .images-template .images-left ul li {
        width: 95px;
        padding: 5px;
        margin: 4px;
        min-height: 85px;
    }
    .images-template .images-left ul li img {
        max-height: 35px;
    }
    .images-template .images-left ul li h4 {
        font-size: 10px;
    }
    .images-template .images-right {
        width: 570px;
    }
    #result-image {
        left: -75px;
    }
}

/* ----------- Galaxy Tab 10.1 ----------- */

/* Portrait and Landscape */
@media
(min-device-width: 800px)
and (max-device-width: 1280px) {

}

/* Portrait */
@media
(max-device-width: 800px)
and (orientation: portrait) {

}

/* Landscape */
@media
(max-device-width: 1280px)
and (orientation: landscape) {

}


/* ----------- Asus Nexus 7 ----------- */

/* Portrait and Landscape */
@media screen
and (device-width: 601px)
and (device-height: 906px)
and (-webkit-min-device-pixel-ratio: 1.331)
and (-webkit-max-device-pixel-ratio: 1.332) {

}

/* Portrait */
@media screen
and (device-width: 601px)
and (device-height: 906px)
and (-webkit-min-device-pixel-ratio: 1.331)
and (-webkit-max-device-pixel-ratio: 1.332)
and (orientation: portrait) {

}

/* Landscape */
@media screen
and (device-width: 601px)
and (device-height: 906px)
and (-webkit-min-device-pixel-ratio: 1.331)
and (-webkit-max-device-pixel-ratio: 1.332)
and (orientation: landscape) {

}


/* ----------- Non-Retina Screens ----------- */
@media screen
and (min-device-width: 1200px)
and (max-device-width: 1600px)
and (-webkit-min-device-pixel-ratio: 1) {
    .order-template ul li {
        width: 142px;
        height: 175px;
    }
}

/* ----------- Retina Screens ----------- */
@media screen
and (min-device-width: 1200px)
and (max-device-width: 1600px)
and (-webkit-min-device-pixel-ratio: 2)
and (min-resolution: 192dpi) {
    .order-template ul li {
        width: 142px;
        height: 175px;
    }
}

/* Desktop Styles */
@media only screen and (min-width: 961px) {
    .order-info {
        max-width: 455px;
    }
    .order-info table {
        margin: 15px 0 15px 0 !important;
    }
    .images-right {
        position: fixed;
        right: 45px;
        width: 40%;
    }
    .images-left {
        width: 60%;
    }
    .order-group .order-images {
        position: fixed;
        right: 0px;
    }
    .order-result .order-info {
        max-width: none;
        float : none;
        width: 70%;
    }
    .order-group .order-images {
        float: right;
        width: 29.555%;
        /*position: absolute;*/
        right: 0px;
     }
    /* FIX IE :  click vào parts khi bị đè layout */
    .fix-result , #result-image{
        z-index: 1;
        position: relative;
    }
    .images-left , .order-list{
        z-index: 2;
        position: relative;
    }
}
@media only screen and (min-width: 961px)  and (max-width: 1280px){
    .order-group .order-list ul li {
        width: 112px !important;
        height: 145px !important;
    }
    .order-template ul li h4 {
        font-size: 12px;
        bottom: 10px;
        width: 98% !important;
    }
}

/* (1920x1080) Full HD Display */
@media  screen and (max-width: 1920px) {
    .order-template ul li {
        width: 142px;
        height: 175px;
    }
    .order-group .order-list ul li {
        width: 120px;
        height: 150px;
    }
    .order-result .order-info {
        max-width: none;
        float : none;
        width: 62%;
    }
}

@media only screen and (max-width: 600px) {
    .modal-content {
        width: 90%;
    }
    #pdfModal .modal-content input[type=submit] , #pdfModal .modal-content input[type=reset] {
        width: 100%;
    }
    .images-right a.btn.btn-pdf {
        color: #e4e4e4;
        font-size: 15px;
        padding: 5px 14px;
        margin-left: 35%;
        position: relative;
        background: #353535;
        top: -25px;
    }

    .modal {
        padding-top: 60px;
    }
    .order-result .order-info {
        width: 100%;
    }
    .order-template .order-list {
        margin-top: 0px;
        float: none;
    }
}
@media only screen and (max-width: 768px) {
    .order-result .order-info {
        width: 100%;
    }
    .order-group .order-images {
        width: 100%;
        /*position: fixed;*/
        float: none;
    }
    .order-group .order-list {
        width: 100%;
        float: none;
    }
    .order-template .order-group .order-images #result-image {
        /*left: 105px;*/
        left: 30px;
    }
    .order-template .order-group .order-images h3 {
        position: relative;
        left: 0px;
        font-size: 15px;
    }
    .btn-reset-form {
        height: initial;
        width: initial;
        font-size: 15px;
        padding: 5px 10px;
    }
}