body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center
}

#page-ms {
    margin: 0;
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #000
}

.header {
    position: fixed;
    max-width: 580px;
    z-index: 99;
    background-color: #000;
    margin-bottom: 0;
    padding-left: .2rem;
    padding-right: .2rem
}

.header>img {
    width: 100%;
    margin-top: .2rem;
    margin-bottom: .2rem
}

header img {
    width: 100%;
    height: auto
}

footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    max-width: 580px;
    text-align: center;
    z-index: 99;
    padding-bottom: .2rem
}

footer button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: #ffffff4d;
    transform: skew(-25deg);
    transition: left .5s ease
}

footer button:hover:before {
    left: 130%
}

nav {
    text-align: center;
    background-color: #2d2c2f;
    padding: 0;
    border-radius: .1rem;
    max-width: 580px;
    font-size: 18px;
    display: flex;
    justify-content: space-around
}

nav button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .25rem;
    font-family: "sans-serif";
    color: #fff;
    width: 1.2rem;
    height: .7rem;
    border-radius: .16rem;
    flex: 1;
    text-align: center
}

nav button[aria-selected=true] {
    background-color: #00d1c0
}

main {
    margin-top: 0;
    background-color: #fff;
    border-radius: 5px;
    max-width: 580px;
    background-color: #000;
    position: relative;
    padding: 3.4rem .2rem 1.6rem
}

main img {
    width: 100%
}

main div[role=tabpanel] {
    display: none
}

main div[role=tabpanel]:not([hidden]) {
    display: block
}

.kefu {
    position: fixed;
    right: 0;
    top: 5rem;
    width: 1.5rem;
    z-index: 109;
    animation: myfirst 1s infinite
}

html {
    font-size: 54.5638px
}

#opStatusBar {
    height: 5px;
    background-color: #6c6c6c;
    display: none
}

.gm-bg {
    position: absolute;
    z-index: 0;
    max-width: 580px;
    min-height: 200px;
    overflow-y: hidden
}

@media screen and (max-width: 350px) {
    .header {
        width:94vw
    }
}

@media screen and (min-width: 580px) {
    .content-div-right {
        margin-left:50px
    }

    main {
        padding-top: 4rem
    }

    .header {
        left: 50%;
        transform: translate(-50%);
        width: 560px;
        padding-left: 0rem;
        padding-right: 0rem
    }

    .header>img {
        max-width: 580px;
        margin: .2rem auto
    }

    footer button {
        width: 560px
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(.8)
    }

    to {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1)
    }
}

.qrcode-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 200px;
    height: 200px;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 11
}

#qrcode {
    width: 180px;
    height: 195px;
    font-size: 16px;
    display: none;
    place-items: center;
    text-align: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px
}

@keyframes myfirst {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(.9)
    }

    to {
        transform: scale(1)
    }
}

.button-down {
    background: #fbca1f;
    font-family: inherit;
    padding: .6em 1.3em;
    font-weight: 900;
    font-size: 18px;
    border: 3px solid black;
    border-radius: .4em;
    box-shadow: .1em .1em;
    cursor: pointer
}

.button-down:hover {
    transform: translate(-.05em,-.05em);
    box-shadow: .15em .15em
}

.button-down:active {
    transform: translate(.05em,.05em);
    box-shadow: .05em .05em
}
