@media only screen and (max-width: 768px) {
    .wrap {
        width: 100%;
        height: auto;
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .login_header {
        width: 300px;
        margin: 6vw auto;
    }

    .login_body {
        width: 100%;
        flex-direction: column;
        flex: 1;
        padding: 0 10vw 5vw;
    }

    /* ----------MASTERPAGE--------- */

    .header .btn_menu {
        margin-left: 3vw;
    }

    .header {
        background: url(../images/bg_header.png) no-repeat;
        background-size: cover;
        background-position: left center;
        width: 100%;
        height: 90px;
        position: fixed;
        top: 0;
        z-index: 1000;
        background-size:     cover;                      /* <------ */
        background-repeat:   no-repeat;
        background-position: center center; 
    }

    .footer {
        width: 100%;
    }

        .footer ul li a {
            padding: 0 1vw;
            height: 100%;
            width: 19vw;
            flex-direction: column;
            color: white !important;
            font-weight: normal;
            font-family: "Bai Jamjuree", sans-serif;
            font-size: 15px;
        }

    .ui-panel-dismiss-open.ui-panel-dismiss-position-left {
        left: 17em;
    }

    /* ----------DASHBOARD--------- */

    .sec_ct_left {
        background: url(../images/circle_security.png) no-repeat;
        background-size: cover;
        background-position: center;
        width: 48vw;
        height: 48vw;
    }

    div[role="progressbar"] {
        --size: 25vw;
    }

    .sec_ct_right .sec_item {
        width: 100%;
        position: relative;
    }

    /* ----------RECHARGE--------- */

    .modal_confirm_recharge {
        width: 100%;
    }
}

@media only screen and (max-width: 568px) {

    /* ----------MASTERPAGE--------- */

    .login_area {
        width: 100%;
        flex-direction: column;
    }

    .header {
        background: url(../images/bg_header.png) no-repeat;
        background-size: cover;
        background-position: left center;
        width: 100%;
        height: 70px;
        position: fixed;
        top: 0;
        z-index: 1000;
    }

    .user_info {
        background-color: #e6d8cb;
        padding: 8px;
        border-radius: 7px;
        margin: 18px 20px;
        border: 1px solid var(--vip-color);

    }

    .footer {
        width: 100%;
        height: 70px;
    }

        .footer ul li a {
            padding: 0 1vw;
            height: 100%;
            width: 19vw;
            flex-direction: column;
            color: white !important;
            font-weight: normal;
            font-family: "Bai Jamjuree", sans-serif;
            font-size: 2.5vw;
        }

            .footer ul li a img {
                width: 8vw;
            }

    /* ----------LOGIN--------- */
    .btn_login {
        font-family: "Bai Jamjuree", sans-serif;
        color: white;
        width: 100%;
        background: rgb(51, 153, 204);
        background: linear-gradient(90deg, rgba(51, 153, 204, 1) 0%, rgba(51, 102, 204, 1) 100%);
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
        font-size: 13px;
        font-weight: 600;
    }

    .login_header {
        width: 52vw;
        margin: 6vw auto;
    }

        .login_header p {
            font-size: 5vw;
        }

    .login_footer {
        font-size: 13px
    }

    /* ----------DASHBOARD--------- */
    .content_dashboard {
        padding: 70px 0;
    }

    .sec_ct_right {
        flex-direction: column;
        flex: 1;
        padding-right: 1vw;
    }

        .sec_ct_right .sec_item a {
            font-size: 13px;
            font-family: "Bai Jamjuree", sans-serif;
            color: #38c;
            font-weight: 500;
        }

        .sec_ct_right .sec_item {
            position: relative;
            padding-left: 20px;
            margin: 10px 0;
        }

            .sec_ct_right .sec_item.checked::before {
                content: "";
                background: url(../images/icon/sec_check.png) no-repeat;
                background-size: cover;
                background-position: center;
                width: 20px;
                height: 20px;
                position: absolute;
                top: 3px;
                left: 0;
            }

            .sec_ct_right .sec_item::before {
                content: "";
                background: url(../images/icon/sec_uncheck.png) no-repeat;
                background-size: cover;
                background-position: center;
                width: 20px;
                height: 20px;
                position: absolute;
                top: 3px;
                left: 0;
            }

    .title {
        background: -webkit-linear-gradient(90deg, rgba(51, 153, 204, 1) 0%, rgba(51, 102, 204, 1) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
        color: white;
        font-family: "Bai Jamjuree", sans-serif;
        font-size: 20px;
        font-weight: 700;
    }

    .customer_rank p {
        text-shadow: none;
        color: white;
        font-family: "Bai Jamjuree", sans-serif;
        font-size: 10px;
        font-style: italic;
        margin-bottom: 0;
    }

    /* ----------GIFTCODE--------- */

    .content_dashboard .breadcrumb {
        font-size: 13px;
    }

    .game_detail .gd_info_g label {
        font-weight: 700;
        margin-bottom: 5px;
        font-family: "Bai Jamjuree", sans-serif;
        font-size: 13px;
    }

    .game_detail .gd_info_g a {
        color: #95959A;
        font-size: 13px;
    }

    .game_detail .gd_info_g {
        margin-left: 10px;
        width: 100%;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .game_detail .gd_icon_g {
        width: 70px;
    }

    .game_detail {
        padding: 10px 10px 10px;
        border-bottom: 3px solid #DBDBDB;
    }

    .list_server ul {
        display: grid;
        grid-gap: 5px 5px;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .list_char ul {
        display: grid;
        grid-gap: 0 0;
        grid-template-columns: repeat(2, 1fr);
    }

    .input_giftcode .form_group {
        font-size: 13px;
    }

    .input_giftcode span {
        font-family: "Bai Jamjuree", sans-serif;
        font-size: 13px;
        color: red;
    }

    .input_giftcode a.btn_received_gift {
        padding: 10px 0;
        background: rgb(51, 153, 204);
        background: linear-gradient(90deg, rgba(51, 153, 204, 1) 0%, rgba(51, 102, 204, 1) 100%);
        border-radius: 10px;
        color: white;
        text-shadow: none;
        font-size: 15px;
        margin: 10px 0;
    }

    /* ----------ACCOUNT--------- */
    .account_info .form_control {
        width: 100%;
        justify-content: flex-start !important;
        font-family: "Bai Jamjuree", sans-serif;
        font-size: 13px;
    }

        .account_info .form_control input {
            font-size: 13px;
            width: 100%;
        }

    a.ac_if_update {
        font-size: 13px
    }

    .ac_info_btn a {
        padding: 10px;
        font-size: 15px;
    }

    .confirm_email {
        background-color: red;
        text-shadow: none;
        color: white !important;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 13px;
        margin: 0 !important;
    }

    .confirmed_email {
        background-color: #22b913;
        text-shadow: none;
        color: white !important;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 13px;
        margin: 0 !important;
    }

    .form_control .custom-control-label::before {
        position: absolute;
        top: 0.2rem;
        left: -1.5rem;
        display: block;
        width: 1rem;
        height: 1rem;
        pointer-events: none;
        content: "";
        background-color: #fff;
        border: #adb5bd solid 1px;
    }

    .form_control .custom-control-label::after {
        position: absolute;
        top: 0.2rem;
        left: -1.5rem;
        display: block;
        width: 1rem;
        height: 1rem;
        content: "";
        background: no-repeat 50%/50% 50%;
    }

    .form_control .custom-control {
        flex: 3;
        padding-left: 2rem;
    }

    /* ----------RECHARGE--------- */
    .recharge_momo li .money {
        flex-direction: column;
        width: 130px;
        height: 90px;
    }

    .recharge_visa li .money {
        flex-direction: column;
        width: 130px;
        height: 90px;
    }

    .modal_confirm_recharge.show {
        bottom: 73px;
    }

    /* ----------HISTORY--------- */

    .w_h_btn_item a {
        background: rgb(51, 153, 204);
        background: linear-gradient(90deg, rgba(51, 153, 204, 1) 0%, rgba(51, 102, 204, 1) 100%);
        text-shadow: none;
        color: white !important;
        padding: 10px;
        border-radius: 5px;
        font-size: 15px;
    }
}

@media only screen and (max-width: 468px) {

    /* ----------MASTERPAGE--------- */
    .header .header_logo {
        display: none;
    }

    /* ----------GIFTCODE--------- */

    .list_char ul {
        display: grid;
        grid-template-columns: auto;
    }

    .gc_listgame {
        display: grid;
        grid-gap: 0 0;
        grid-template-columns: repeat(2, 1fr);
        border-top: 2px solid #dbdbdb;
    }

    .group_server ul li a{
        font-size: 13px;
    }
    .list_server ul li a{
        font-size: 13px;
    }

    /* ----------ACCOUNT--------- */
    .ac_info_btn {
        display: grid;
        grid-gap: 10px 5px;
        grid-template-columns: repeat(3, 1fr);
    }

    /* ----------RECHARGE--------- */

    .recharge_select {
        display: grid;
        grid-gap: 0px 0px;
        grid-template-columns: repeat(1, 1fr);
        padding: 10px;
        border-bottom: 3px solid #dbdbdb;
    }

    .recharge_momo {
        display: grid;
        grid-gap: 0px 0px;
        grid-template-columns: repeat(2, 1fr);
        border-bottom: 3px solid #dbdbdb;
    }

        .recharge_momo li .money {
            flex-direction: column;
            width: 150px;
            height: 100px;
        }

    .recharge_visa {
        display: grid;
        grid-gap: 0px 0px;
        grid-template-columns: repeat(2, 1fr);
        border-bottom: 3px solid #dbdbdb;
    }

        .recharge_visa li .money {
            flex-direction: column;
            width: 150px;
            height: 100px;
        }

    /* ----------HISTORY--------- */

    .w_h_btn {
        display: grid;
        grid-gap: 10px 10px;
        grid-template-columns: repeat(1, 1fr);
        border-bottom: 3px solid #dbdbdb;
        padding: 10px;
    }

    .w_h_btn_item a {
        background: rgb(51, 153, 204);
        background: linear-gradient(90deg, rgba(51, 153, 204, 1) 0%, rgba(51, 102, 204, 1) 100%);
        text-shadow: none;
        color: white !important;
        padding: 10px;
        border-radius: 5px;
        font-size: 18px;
    }

    /* ----------LOGIN--------- */
    .btn_login {
        font-family: "Bai Jamjuree", sans-serif;
        color: white;
        width: 100%;
        background: rgb(51, 153, 204);
        background: linear-gradient(90deg, rgba(51, 153, 204, 1) 0%, rgba(51, 102, 204, 1) 100%);
        padding: 10px;
        border-radius: 5px;
        margin-top: 10px;
        font-size: 13px;
        font-weight: 600;
    }

    .login_body .form_group input {
        width: 100%;
        padding: 0.5rem 0.375rem;
        border: none;
        font-family: "Bai Jamjuree", sans-serif;
        font-size: 12px;
    }    

    .group_server {
        border-right: 3px solid #dbdbdb;
        padding: 5px;
        flex: 1;
    }
}

@media only screen and (max-width: 375px) {
    .user_rank {
        width: 40px;
    }

    .user_ava {
        width: 40px;
        margin-right: 5px;
    }

    .user_token {
        flex-direction: column;
        font-family: "Bai Jamjuree", sans-serif;
        font-size: 15px;
    }

    .ac_info_btn a {
        padding: 8px;
        font-size: 14px;
    }

    .content_dashboard .breadcrumb {
        font-size: 3.5vw;
    }

    .account_info .form_control label {
        flex: 2;
    }

    .sec_ct_right .sec_item a {
        font-size: 13px;
        font-family: "Bai Jamjuree", sans-serif;
        color: #38c;
        font-weight: 500;
    }

    .list_server ul li a {
        font-size: 10px;
    }

    .group_server ul li a {
        font-size: 10px;
    }
}

@media only screen and (max-width: 320px) {

    .gc_search {
        font-family: "Bai Jamjuree", sans-serif;
        padding: 10px 10px;
        width: 100%;
    }

        .gc_search span {
            font-size: 15px;
            flex: 1;
        }

        .gc_search input {
            width: 100%;
            padding-left: 25px;
            font-size: 13px;
        }

        .gc_search .form_group::before {
            content: "\f002";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-right: 5px;
            font-size: 15px;
            color: #38c;
            position: absolute;
            top: 5px;
            left: 5px;
        }

        .gc_search .form_group {
            flex: 2;
            position: relative;
            background-color: #fff;
            border-color: #ddd;
            color: #333;
            text-shadow: 0 1px 0 #f3f3f3;
            -webkit-border-radius: 0.3125em;
            border-radius: 0.3125em;
            -webkit-box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
            -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
            box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
            margin: 0.5em 0;
            border-width: 1px;
            border-style: solid;
        }

    .modal_confirm_recharge {
        position: fixed;
        bottom: -250px;
        z-index: 1000;
        width: 768px;
        transition: all .4s;
    }

    .recharge_momo li .money {
        flex-direction: column;
        width: 125px;
        height: 100px;
    }

    .recharge_visa li .money {
        flex-direction: column;
        width: 125px;
        height: 100px;
    }
}
