/* 基础CSS重置，减少各浏览器差异 */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    border: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    /* 防止横屏时字体变大 */
}

/* 移动端常用样式 */
body {
    font-size: 16px;
    color: #333;
    align-content: center;
    background-color: #f5f5f5;
    background-image: url('./background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#progressbar_root {
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#progressbar_label {
    position: absolute;
    color: #f5f5f5;
    text-shadow: 1px 1px 3px #333333;
}

#progressbar {
    width: 60vw;
    height: 2rem;
    background-color: #333;
    border-radius: 5px;
    border-width: 2px;
    border-style: solid;
    border-color: #f5f5f5;
    text-align: center;
    position: absolute;
}

#progressbar_pem {
    background-color: #89ccf6;
    height: 100%;
    width: 0%;
}

.game-canvas {
    width: 100vw;
    height: 100dvh;
    border-radius: 5px;
    background-color: #333;
    margin-left: auto;
    margin-right: auto;
    margin-top: env(safe-area-inset-top);
    margin-bottom: env(safe-area-inset-bottom);
}

.pay_panel {
    width: 85vw;
    height: 40vh;
    padding: 0;
    background-color: transparent;
    border-style: solid;
    border-color: #333;
    border-width: 25px;
    border-image: url("./img_wfsm01.png") 35 45 35 45 fill;
}

.pay_panel .pay_panel_header {
    display: flex;
    justify-content: space-between;
}

.pay_panel .pay_panel_body {
    background-color: #efefef;
    /* opacity: 20%; */
    width: 100%;
    height: 40%;
    border-radius: 20px;
    margin-top: 1rem;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    font-size: 2rem;
    justify-content: space-between;
}

.pay_panel .pay_panel_body>div {
    margin-left: 1rem;
    margin-right: 1rem;
}

.pay_panel .pay_panel_body_mylink_point {
    font-size: 3rem;
    color: #8b5cff;
}

.pay_panel .pay_panel_body_mylink_point>img {
    margin-left: 1rem;
}

.pay_panel .pay_panel_title {
    font-size: 1.5rem;
}

.pay_panel .pay_panel_title_fill {
    width: 26px;
}

.pay_panel .pay_panel_close_button {
    display: flex;
}

.pay_panel .pay_panel_close_button>img {
    width: 1.5rem;
    height: 1.8rem;
}

.pay_panel .pay_panel_foot .pay_panel_remine {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.pay_panel .pay_panel_foot .pay_panel_buttons {
    display: flex;
    justify-content: space-evenly;
}

.pay_panel .pay_panel_foot .pay_panel_buttons > button {
    font-size: 1.95rem;
    border-radius: 25px;
    border-width: 0;
    padding: 1rem 2.5rem;
}

.pay_panel .pay_panel_foot .pay_panel_buttons .pay_panel_recharge {
    color: #8b5cff;
}

.pay_panel .pay_panel_foot .pay_panel_buttons .pay_panel_pay {
    color: #fff;
    background-color: #8b5cff;
}

@media only screen and (min-width: 320px) {

    html,
    body {
        font-size: 55.556% !important;
    }
}

@media only screen and (min-width: 360px) {

    html,
    body {
        font-size: 62.5% !important;
    }
}

@media only screen and (min-width: 375px) {

    html,
    body {
        font-size: 65.10417% !important;
    }
}

@media only screen and (min-width: 414px) {

    html,
    body {
        font-size: 71.875% !important;
    }
}

@media only screen and (min-width: 768px) {

    html,
    body {
        font-size: 133.3333% !important;
    }
}

@media only screen and (min-width: 1024px) {

    html,
    body {
        font-size: 177.77778% !important;
    }
}

@media screen and (min-width: 450px) {

    html,
    body {
        font-size: 71.875% !important;
    }

    .game-canvas {
        width: 100vw;
        height: 100dvh;
		max-width: 430px;
		max-height: 932px;
    }

    .pay_panel {
        max-width: 400px;
        max-height: 450px;
    }

    .pay_panel .pay_panel_title {
        font-size: 2rem;
    }

    .pay_panel .pay_panel_close_button>img {
        width: 26px;
        height: 28px;
    }

}
