@media only screen and (max-width: 1700px) {
    .form-container {
        padding-bottom: 0px;
    }

    .buttons-container {
        position: relative;
        padding-bottom: 10px;
        justify-content: center;
    }

    .how-it-works-container, .tc-container, .back-to-promotions-container, .winners-container {
        width: 225px;
        height: 105px;
    }

    p.title-prize {
        font-size: 21px;
        padding: 15px 125px;
    }
}

@media only screen and (max-width: 1200px) {
    main {
        background-size: cover;
    }

    .main-container {
        height: 690px;
    }

    .title-container {
        max-width: 768px;
    }

    .title-container img {
        max-width: 100%;
    }

    p.title-prize {
        padding: 15px 30px;
    }

    body.th p.sub-title {
        font-size: 36px;
    }

    body.th p.title-prize {
        font-size: 22px;
    }
}

@media only screen and (max-width: 1024px) {
    main {
        background-image: url(../img/bg-1024.jpg);
        background-position: center -150px;
        background-size: auto;
    }

    body.th main {
        background-image: url(../img/bg-1024-th.jpg);
    }

    .main-container {
        max-width: 900px;
        height: 1065px;
        justify-content: flex-end;
    }

    body.th .main-container {
        height: 1100px;
    }

    .title-container img {
        max-width: 100%;
    }

    body.th p.sub-title {
        font-size: 34px;
    }

    p.title-prize {
        font-family: "MyriadPro-Bold";
        padding: 15px 0;
    }

    body.th p.title-prize {
        font-size: 20px;
    }

    .title-container p {
        font-family: "MyriadPro-Bold";
        font-size: 18px;
    }

    .right-container {
        margin: 20px 0;
    }

    .buttons-container {
        flex-wrap: wrap;
    }

    .how-it-works-container, 
    .tc-container, 
    .back-to-promotions-container, 
    .winners-container {
        width: 190px;
        height: 85px;
        margin: 0 10px;
    }

    .how-it-works-container p, .tc-container p, .winners-container p {
        font-size: 20px;
    }

    body.th .how-it-works-container p, body.th .tc-container p, body.th .winners-container p {
        font-size: 18px;
    }

    .back-to-promotions-container a {
        font-size: 20px;
    }

    body.th .back-to-promotions-container a {
        font-size: 18px;
    }

}

@media only screen and (max-width: 900px) {
    .main-container {
        max-width: 768px;
    }

    .how-it-works-container, 
    .tc-container, 
    .back-to-promotions-container, 
    .winners-container {
        width: 178px;
        height: 85px;
        margin: 0 5px;
    }
}

@media only screen and (max-width: 768px) {

    main {
        background-image: url(../img/bg-768.jpg);
        background-position: center -60px;
    }

    body.th main {
        background-image: url(../img/bg-768-th.jpg);
    }

    .main-container {
        max-width: 600px;
        height: 930px;
    }

    body.th .main-container {
        height: 900px;
    }

    .title-container p {
        font-size: 16px;
    }

    body.th .title-container p {
        font-size: 15px;
    }

    p.title-prize {
        font-size: 20px;
    }

    body.th p.title-prize {
        font-size: 17px;
    }

    body.th p.sub-title {
        font-size: 26px;
    }

    .right-container {
        margin: 20px 0 0;
    }

    .prize_form input {
        width: 210px;
        height: 39px;
    }

    .prize_form button {
        width: 90px;
        height: 39px;
    }

    .form-subtitle {
        font-size: 16px;
    }

    .how-it-works-container, .tc-container, .back-to-promotions-container, .winners-container {
        width: 140px;
        height: 70px;
    }

    .how-it-works-container p, .tc-container p, .winners-container p {
        font-size: 16px;
    }

    body.th .how-it-works-container p, body.th .tc-container p, body.th .winners-container p {
        font-size: 14px;
    }

    .back-to-promotions-container a {
        font-size: 16px;
    }

    body.th .back-to-promotions-container a {
        font-size: 14px;
    }

    .lbox {
        width: 580px!important;
        height: 565px;
    }

    .lbox-hiw .scroll-pane {
        height: 390px;
    }

    .lbox-terms .scroll-pane {
        height: 420px;
    }

    .close {
        right: 12px;
    }

    .close > span {
        right: 0;
    }

    .lbox-winners .close > span {
        left: 0px;
    }

    .grand-prize img {
        width: auto;
    }

    .lbox-msg {
        width: 350px!important;
        height: 140px!important;
        top: 685px;
    }

    .lbox.lbox-winners .scroll-pane {
        height: 310px!important;
    }
    
}

@media only screen and (max-width: 600px) {

    main {
        background-position: center -60px;
    }

    .main-container {
        max-width: 470px;
        height: 895px;
    }

    body.th .main-container {
        height: 883px;
    }

    .title-container {
        width: 100%;
        padding-top: 40px;
    }

    .title-container p {
        font-size: 14px;
    }

    p.title-prize {
        font-size: 16px;
    }

    body.th p.sub-title {
        font-size: 19px;
    }

    .group1, 
    .group2 {
        width: 50%;
        display: flex;
    }

    .how-it-works-container p, .tc-container p, .winners-container p {
        font-size: 14px;
        margin-top: 0;
    }

    .back-to-promotions-container p {
        margin-top: 0px;
    }

    .back-to-promotions-container a {
        font-size: 14px;
    }

    .how-it-works-container, .tc-container, .back-to-promotions-container, .winners-container {
        width: 230px;
        height: 55px;
    }

    ol li p {
        width: 400px;
    }

    .round-title {
        font-size: 18px;
        top: 45px;
    }

    .table-4 {
        height: 300px;
        top: 55px;
    }

    .table-4 td{
        font-size: 10px;
    }

    .winners {
        font-size: 17px;
    } 

    .numbers {
        font-size: 20px;
        width: 40px;
    }

    .arrow-prev-1, .arrow-prev-2, .arrow-prev-3, .arrow-prev-4 {
        top: 62%;
    }

    .arrow-next-1, .arrow-next-2, .arrow-next-3, .arrow-next-4 {
        top: 62%;
    }

    .overlay {
        overflow: hidden;
    }

    .lbox {
        width: 480px!important;
        height: 465px;
        padding: 10px 20px;
    }

    .lbox .scroll-pane {
        height: 315px;
    }

    .lbox-terms .scroll-pane {
        height: 340px;
    }

    #how-it-works-title {
        margin: 20px 0;
    }

    #terms-and-conditions-title {
        height: 80px;
        font-size: 18px;
        padding-top: 24px;
    }

    body.th #terms-and-conditions-title {
        font-size: 14px;
        padding-top: 33px;
    }

    #winners-title {
        height: 80px;
        font-size: 18px;
        padding-top: 28px;
    }

    .win-date-title {
        font-size: 20px;
    }

    .lbox-winners {
        font-size: 16px;
    }

    .grand-prize img {
        width: 110px;
    }

    .grand-prize img.tesla {
        width: auto;
    }

    .lbox-msg {
        height: 95px!important;
        font-size: 16px;
        width: 350px!important;
        top: 600px;
        padding: 25px 15px;
    }

    .lbox.lbox-winners .scroll-pane {
        height: 280px!important;
    }

}

@media only screen and (max-width: 480px) {

    .mob {
        display: block;
    }

    .desk {
        display: none;
    }

    main {
        background-image: url(../img/bg-480-2.jpg);
        background-size: auto;
        background-position: center -70px;
    }

    body.th main {
        background-image: url(../img/bg-480-2-th.jpg);
    }

    .main-container {
        max-width: 400px;
        height: 1300px;
    }

    body.th .main-container {
        height: 1450px;
    }

    .title-container {
        padding-top: 15px;
    }

    .title-en-desk,
    .title-th-desk {
        display: none;
    }

    .title-en-mob,
    .title-th-mob {
        display: inline-block;
    }

    .title-container p {
        font-size: 12px;
    }

    p.title-prize {
        font-size: 14px;
    }

    body.th p.sub-title {
        font-size: 19px;
        padding: 10px 0 0;
    }

    .prize_form input::placeholder {
        font-size: 16px;
    }

    .form-subtitle {
        font-size: 12px;
    }

    .group1, .group2 {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .how-it-works-container, .tc-container, .winners-container {
        width: 150px;
        height: 70px;
        margin-bottom: 10px;
    }

    body.th .how-it-works-container, body.th .tc-container, body.th .winners-container {
        width: 185px;
        height: 88px;
    }

    .back-to-promotions-container {
        width: 150px;
        height: 70px;
        margin-bottom: 0px;
    }

    body.th .back-to-promotions-container {
        width: 185px;
        height: 88px;
    }

    .how-it-works-container p, .tc-container p, .winners-container p {
        font-size: 14px;
    }

    body.th .how-it-works-container p, body.th .tc-container p, body.th .winners-container p {
        font-size: 18px;
    }

    .back-to-promotions-container a {
        font-size: 14px;
    }

    body.th .back-to-promotions-container a {
        font-size: 18px;
    }

    #how-it-works-title, #terms-and-conditions-title {
        font-size: 15px;
        margin: 5px 0;
    }

    #terms-and-conditions-title {
        height: 65px;
        padding-top: 18px;
    }

    body.th #terms-and-conditions-title {
        font-size: 11px;
        padding-top: 24px;
    }

    #winners-title {
        margin: 10px;
        height: 60px;
        padding-top: 22px;
    }

    ol li p {
        width: 270px;
        font-size: 12px;
        top: 4px;
    }

    .top-footer {
        z-index: 1;
        position: relative;
    }

    .top-footer p {
        font-size: 11px;
    }

    .lbox {
        width: 310px!important;
        height: 303px;
        padding: 5px 15px;
        font-size: 10px;
    }

    .lbox .scroll-pane {
        height: 220px;
    }

    .lbox-terms .scroll-pane {
        height: 210px;
    }

    .jspPane p, .jspPane h4, .jspPane h5, .jspPane h6, .jspPane ol {
        padding: 5px;
    }

    .lbox h4 {
        font-size: 14px;
    }

    .lbox h6 {
        font-size: 12px;
    }

    .lbox-terms ol li {
        margin-right: 10px;
        margin-left: 5px;
    }

    .close {
        right: 0;
    }

    .close > span {
        font-size: 20px;
    }

    .lbox-winners .close > span {
        left: 0px;
    }

    .grand-prize img {
        width: 70px;
    }

    .grand-prize img.tesla {
        width: 190px;
    }

    ol li {
        font-size: 10px;
    }

    .jspVerticalBar {
        width: 3px;
    }

    .jspDrag {
        width: 2px;
        left: 0px;
    }

    /* #ordered-list {
        width: 280px;
    } */

    .lbox-winners {
        font-size: 8px;
    }

    #winners-title {
        font-size: 15px;
        margin: 10px;
    }

    .win-date-title {
        font-size: 13px;
    }

    .prev_btn {
        top: 60px;
        width: 12px;
    }

    .next_btn {
        top: 60px;
        width: 12px;
    }

    .lbox-msg{
        height: 95px;
        font-size: 16px;
        width: 270px;
        top: 750px;
        padding: 25px 15px;
    }

    .lbox.lbox-winners .scroll-pane {
        height: 180px!important;
    }

}

@media only screen and (max-width: 420px) {
    main {
        background-size: 420px;
    }

    .main-container {
        max-width: 370px;
        height: 1140px;
    }

    body.th .main-container {
        height: 1220px;
    }

    body.th .title-container p {
        font-size: 10px;
    }

    body.th p.title-prize {
        font-size: 12px;
    }

    body.th p.sub-title {
        font-size: 14px;
    }

    .prize_form input {
        width: 185px;
        height: 34px;
    }

    .prize_form button {
        height: 32px;
    }

    body.th .form-subtitle {
        font-size: 10px;
    }

    .how-it-works-container, .tc-container, .winners-container {
        width: 120px;
        height: 58px;
        margin-bottom: 5px;
    }

    body.th .how-it-works-container, body.th .tc-container, body.th .winners-container {
        width: 160px;
        height: 73px;
    }

    .back-to-promotions-container {
        width: 120px;
        height: 58px;
        margin-bottom: 5px;
    }

    body.th .back-to-promotions-container {
        width: 160px;
        height: 73px;
    }
}

@media only screen and (max-width: 380px) {
    main {
        background-size: 380px;
    }

    .main-container {
        max-width: 310px;
        height: 1055px;
    }

    body.th .main-container {
        height: 1140px;
    }

    .title-container p {
        font-size: 10px;
    }

    p.title-prize {
        font-size: 12px;
    }

    body.th p.title-prize {
        font-size: 10px;
    }

    body.th p.sub-title {
        font-size: 12px;
    }

    .prize_form input {
        width: 163px;
        height: 30px;
    }

    .prize_form button {
        width: 64px;
        height: 28px;
        font-size: 14px;
    }

    .form-subtitle {
        font-size: 10px;
    }
}

@media only screen and (max-width: 320px) {
    main {
        background-image: url(../img/bg-320.jpg);
    }

    body.th main {
        background-image: url(../img/bg-320-th.jpg);
    }

    .main-container {
        height: 1130px;
    }
}