@font-face {
    font-family: 'Gotham';
    font-style: normal;
    src: url('GothamRnd-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Gotham-Bold';
    font-style: normal;
    src: url('GothamRounded-Bold.ttf') format('truetype');
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    position: relative;
    width: 100%;
    height: 100%;
    font-family: Gotham, Helvetica, Arial;
    font-size: 4vw;
    line-height: 6vw;
    background: url(https://apac-venture.oss-ap-southeast-3.aliyuncs.com/chagee/bg0.png) no-repeat center center;
    background-size: 100% 100%;
    color: #000;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
h1, h2, h3 {
    margin: 2vw 0;
    line-height: normal;
}
b {
    font-family: Gotham-Bold, Helvetica, Arial;
}
hr {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

canvas {
    display: block;
    margin: auto;
    /*position: absolute;*/
    left: 0;
    right: 0;
}

ol {
    margin: 0;
    padding: 15px;
}
ol li {
    margin: 3px;
    text-align: justify;
    font-size: 10px;
    line-height: 20px;
}

#counter {
    color: #9B1F14;
}
.preload-font {
    font-family: 'Gotham-Bold';
    position: absolute;
    left: -1000px;
    visibility: hidden;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://apac-venture.oss-ap-southeast-3.aliyuncs.com/chagee/bg.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: -1;
}

.bga {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://apac-venture.oss-ap-southeast-3.aliyuncs.com/chagee/bg.gif) no-repeat center center;
    background-size: 100% 100%;
    z-index: -2;
}

.container {
    position: relative;
    max-width: 500px;
    min-height: 600px;
    height: 100%;
    margin: auto;
}

#section-game {
    height: 100%;
    position: relative;
    text-align: center;
    padding-top: 40%;
    overflow: hidden;
    z-index: 1;
}
.popup {
    position: absolute;
    top: 20vh;
    left: 0;
    right: 0;
    width: 80%;
    margin: auto;
    z-index: 8;
}
.popup .prize {
    width: 100%;
}
.popup .button {
    position: absolute;
    bottom: 3vh;
    left: 0;
    right: 0;
    margin: auto;
    width: 50%;
    z-index: 9;
}

.footer {
    position: relative;
/*    position: absolute;
    bottom: 10%;*/
/*    background: url(https://apac-venture.oss-ap-southeast-3.aliyuncs.com/chagee/footer.png) no-repeat center center;
    background-size: 100% 100%;*/
    text-align: center;
    z-index: 1;
}
.footer2 {
    position: relative;
    margin-top: 2vh;
    margin-bottom: 1vh;
    background: url(https://apac-venture.oss-ap-southeast-3.aliyuncs.com/chagee/footer.png) no-repeat center center;
    background-size: 100% 100%;
    text-align: center;
    z-index: 1;
}

.prize-item {
    padding: 5vw;
    padding-right: 2vw;
    margin: 2vw 5vw;
    background-color: #FFF;
    opacity: 0.8;
    border-radius: 10px;
}
.prize-item img {
    width: 30%;
    margin-top: -3vw;
    float: right;
}
.tq-item {
    position: absolute;
    width: 90%;
    bottom: 25%;
    left: 0;
    right: 0;
    margin: auto;
}

.masthead {
    width: 100%;
    margin-top: 5%;
}

.logo {
    position: absolute;
    top: 5%;
    right: 2%;
    width: 25%;
    z-index: 2;
}

.tnc-container {
    position: relative;
    height: 70vh;
    width: 90%;
    margin-left: 5%;
}
.tnc-scroll {
    height: 85%;

    text-align: left;
    padding: 0 5vw;
    padding-top: 15%;
    color: #000;
    overflow-y: scroll;
}
.tnc-logo {
    position: absolute;
    top: -12%;
    right: 5%;
    width: 25%;
}
.tnc-banner {
    position: absolute;
    top: -6%;
    left: 32%;
    width: 40%;
}
.tnc-label {
    position: absolute;
    top: -13%;
    left: 0%;
    width: 35%;
}

.checkbox {
    font-size: 11px;
}

.checkbox>label {
    background-image: url(img/checkbox.png);
    transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
}

.btn {
    position: relative;
    width: 95%;
    margin: auto;
    z-index: 6;
}
.btn2 {
    position: relative;
    width: 47%;
    margin: auto;
    z-index: 8;
}

.btn-close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8%;
}
.btn-close2 {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 8%;
}

.gap {
    height: 5vh;
}
.small {
    font-size: 11px;
}
.separator {
    margin: 3vh 10%;
    border: 1px solid #FFF;
    opacity: 0.5;
}
.w80 {
    width: 80%;
    margin: auto;
}

.msg-modal {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    /*height: 30vh;*/
    width: 80%;
    margin: auto;
    text-align: center;
    background-color: #FFF;
    background-size: 100% 100%;
    border-radius: 10px;
    z-index: 10;
}
#msg {
    padding: 10px;
}

.inactive {
    -o-filter: grayscale(1);
    -ms-filter: grayscale(1);
    -moz-filter: grayscale(1);
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    opacity: 0.2;
}
.zero {
    font-size: 0;
}
.white {
    color: #fff;
}
.yellow {
    color: #FEC64B;
}
.pink {
    color: #E2008E;
}
.medium {
    font-family: Gotham, Helvetica, Arial;
}

.text-center {
    text-align: center;
}

.overlay, .portrait-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .85);
    z-index: 8;
}
.portrait-overlay {
    background-color: rgba(0, 0, 0, .95);
    text-align: center;
    z-index: 10;
}
.portrait-overlay img {
    height: 90vh;
}
.blur {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

.display-none {
    display: none;
}
.vhidden {
    visibility: hidden
}


@keyframes zoom {
    0% {
        transform: scale(1,1);
    }
    50% {
        transform: scale(1.1,1);
    }
    100% {
        transform: scale(1,1);
    }
}
.zoom {
    animation-name: zoom;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 1s;
    animation-direction: alternate;
}

@-webkit-keyframes swinging{
    0%{-webkit-transform: rotate(10deg);}
    50%{-webkit-transform: rotate(-5deg)}
    100%{-webkit-transform: rotate(10deg);}
}
 
@keyframes swinging{
    0%{transform: rotate(10deg);}
    50%{transform: rotate(-5deg)}
    100%{transform: rotate(10deg);}
}
 
.swing {
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-animation: swinging 1s ease-in-out forwards infinite;
    animation: swinging 1s ease-in-out forwards infinite;
}

.loader {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    margin: auto;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 100px;
    height: 100px;
    z-index: 9;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}