@font-face {
    font-family: 'Roboto';
    font-style: normal;
    src: url('RobotoMono-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Boogaloo';
    font-style: normal;
    src: url('BERNIERDistressed-Regular.otf') format('opentype');
}
html, body {
    font-family: Arial, Tahoma, Verdana, sans-serif;
    font-size: 14px;
    font-size: 3vw;
}

body {
    color: #fff;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: rgb(0,0,0);
    background: -moz-linear-gradient(-45deg, rgba(0,0,0, 1) 0%, rgba(142, 68, 173, 1) 100%);
    background: -webkit-linear-gradient(-45deg, rgba(0,0,0, 1) 0%, rgba(142, 68, 173, 1) 100%);
    background: linear-gradient(135deg, rgba(0,0,0, 1) 0%, rgba(142, 68, 173, 1) 100%);
}

a:link { color: #9fcdff; text-decoration: none; }
a:hover { color: #fff; }
a:visited, a:active, h2.active { color: #53a5ff; }
a.external {background-image:url(images/external.png);background-position:center right;background-repeat:no-repeat;padding-right:12px;}

h1, h2, h3, h4 {
    color: #fff;
    text-align: center;
    font-family: 'Roboto'
}

.input-frame {
    background: url(/assets/tealive/img/input.png) no-repeat center center;
    background-size: 100% 100%;
    padding: 2px 20px;
    padding-bottom: 5px;
}
.input-label {
    font-size: 24px;
    margin-top: 10px;
}
.theinput {
    background: transparent !important;
    border:0 !important;
    width: 100%;
    color: #000;
    text-align: center;
    font-size: 22px;
    font-family: 'Roboto';
    outline: none;
}

::-webkit-input-placeholder, ::placeholder {
  color: #fff;
}

.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #231F20;
    z-index: 1;
    overflow: hidden;
}
.splash img {
    position: absolute;
    top: 40vh;
    left: 0;
    right: 0;
    width: 70%;
    margin: auto;
}
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/assets/tealive/img/bg.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: -1;
}
.bg1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/assets/tealive/img/bg1.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: -1;
}
.bg-tnc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/assets/tealive/img/bg-tnc.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: -1;
}
.bg2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/assets/tealive/img/bg2.png) no-repeat center center;
    background-size: 100% 100%;
    z-index: -1;
}
.bg-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    background: url(/assets/tealive/img/footer.png) no-repeat center center;
    background-size: 100% 100%;
}
.bg-footer2 {
    position: absolute;
}
.gray {
    filter: gray; filter: grayscale(1); -webkit-filter: grayscale(1);
}

.tnc {
    color: #FFF;
    font-size: 14px;
    /*border-bottom: 1px solid #FFD100;*/
}
.yellow {
    color: #FFD100;
}

.masthead {
    width: 100%;
    text-align: center;
    margin: auto;
    margin-top: 6vh;
}
.masthead2 {
    width: 80%;
    text-align: center;
    margin: auto;
    margin-top: 6vh;
}
.flash {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
}
.yourscore {
    position: relative;
    color: #FED849;
    font-size: 26vw;
    line-height: 36vw;
    font-family: 'Roboto';
}
.glowL, .glowR {
    font-size: 1.1em;
    line-height: 2.5em;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #e60073, 0 0 40px #e60073, 0 0 50px #e60073, 0 0 60px #e60073, 0 0 70px #e60073;
}
.left {
    text-align: left;
}
.right {
    text-align: right;
}
.button {
    width: 40%;
    max-width: 200px;
}
.bottom-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}
.bottom-btn2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}
.ok {
    background-color: #FFD626;
    color: #261F56;
    padding: 5px 30px;
    border-radius: 5px;
}
.btn-yes, .btn-no {
    display: inline-block;
    width: 50%;
}
.btn-no {
    border-right: 1px solid #999;
}
img.btn-close {
    position: absolute;
    width: 30px;
    right: 5vw;
    top: 5vw;
}

.container {
    position: relative;
    min-height: 100vh;
    max-width: 450px;
    margin: auto;
}

#wrap, #wrap2 {
    width: 75%;
    margin: 10px auto;
    margin-top: 6vh;
    text-align: center;
}
#wrap2 {
    width: 90%;
    font-size: 4vw;
}
.frame-tnc {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 80vh;
    background: url(/assets/tealive/img/frame-tnc.png) no-repeat center center;
    background-size: 100% 100%;
}
.content-tnc {
    overflow-x: hidden;
    overflow-y: auto;
    height: 50vh;
    width : 80%;
    margin: auto;
    margin-top: 8vh;
    padding-bottom: 50px;
    color: #000;
}
.content-tnc ol {
    padding-left: 25px;
}

.frame-howto {
    margin: auto;
    margin-top: 20vh;
    width: 90%;
    /*height: 80vh;*/
    background: url(/assets/tealive/img/frame-howto.png) no-repeat center center;
    background-size: 100% 100%;
}
.content-howto {
    overflow-x: hidden;
    overflow-y: auto;
    /*height: 60vh;*/
    width : 80%;
    margin: auto;
    margin-top: 8vh;
    padding-bottom: 100px;
    color: #000;
}

.content-result {
    overflow-x: hidden;
    overflow-y: auto;
    width : 80%;
    margin: auto;
    padding-top: 11vh;
    padding-bottom: 100px;
    color: #261F56;
    font-family: 'Boogaloo';
    font-size: 20px;
}
.content-result .name, .content-lb .name {
    display: inline-block;
    overflow: hidden;
}
.content-result .name2, .content-lb .name2 {
    white-space: nowrap; 
    width: 30vw;
    text-align: left;
    text-overflow: ellipsis; 
}
.frame-result {
    width: 100%;
    margin: auto;
    background: url(/assets/tealive/img/frame-ranking.png) no-repeat center center;
    background-size: 100% 100%;
}

.frame-lb {
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 80vh;
    background: url(/assets/tealive/img/frame-ranking.png) no-repeat center center;
    background-size: 100% 100%;
}
.content-lb {
    overflow-x: hidden;
    overflow-y: auto;
    width: 80%;
    margin: auto;
    margin-top: 10vh;
    color: #261F56;
    font-family: 'Boogaloo';
    font-size: 20px;
    height: 50vh;
}

#textmsg {
    font-size: 12px;
}

.overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .9);
    z-index: 10;
}

.modal {
    position: fixed;
    top: 10vh;
    left: 0;
    width: 80%;
    max-width: 400px;
    height: 65vh;
    background-color: #fff;
    color: #000;
    display: block;
    right: 0;
    margin: 0 auto;
    padding: 10px 0;
    border-radius: 10px;
    -webkit-user-select: none;
    user-select: none;
    overflow: visible;
}
.modal .button {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    margin: auto;
    width: 45%;
}
.modal .bottom {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: auto;
}
.display-none {
    display: none
}

@media (min-width: 768px) {
    html, body {
        font-size: 16px;
    }
    .splash img {
        max-width: 480px;
    }
    .yourscore {
        font-size: 125px;
        line-height: 130px;
    }
    .theinput {
        font-size: 30px;
    }
    #wrap2 {
        font-size: 20px;
    }
    .content-result .name2 {
        width: 180px;
    }
}
@media (max-height: 480px) {
    html, body {
        font-size: 14px;
    }
    .splash img {
        max-width: 300px;
    }
    #wrap2 {
        font-size: 24px;
    }
    .yourscore {
        font-size: 125px;
        line-height: 130px;
    }
    .modal {
        top: 10vh;
        max-width: 300px;
        height: 65vh;
    }
    .modal .button {
        bottom: -70px;
    }
}

.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); }
}

@keyframes zoom {
    0% {
        transform: scale(1,1);
    }
    30% {
        transform: scale(1.1,1.1);
    }
    100% {
        transform: scale(1,1);
    }
}

.zoom {
    animation-name: zoom;
    animation-timing-function: ease-in-out;
    animation-duration: 2s;
}

@-webkit-keyframes animateBubble {
    0% {
        margin-top: 500px;
    }
    100% {
        margin-top: -100%;
    }
}

@-moz-keyframes animateBubble {
    0% {
        margin-top: 500px;
    }
    100% {
        margin-top: -100%;
    }
}

@keyframes animateBubble {
    0% {
        margin-top: 0;
    }
    100% {
        margin-top: -200%;
    }
}

@-webkit-keyframes sideWays { 
    0% { 
        margin-left:0px;
    }
    100% { 
        margin-left:30px;
    }
}

@-moz-keyframes sideWays { 
    0% { 
        margin-left:0px;
    }
    100% { 
        margin-left:30px;
    }
}

@keyframes sideWays { 
    0% { 
        margin-left:0px;
    }
    100% { 
        margin-left:30px;
    }
}

.x1 {
    -webkit-animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
    -moz-animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation-delay: 1s;

    left: -5%;
    top: 100%;
    
    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
    transform: scale(0.6);
}

.x2 {
    -webkit-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
    -moz-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
    animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
    animation-delay: 16s;

    left: 5%;
    top: 100%;
    
    -webkit-transform: scale(0.4);
    -moz-transform: scale(0.4);
    transform: scale(0.4);
}

.x3 {
    -webkit-animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
    -moz-animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation-delay: 8s;

    left: 10%;
    top: 100%;
    
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    transform: scale(0.7);
}

.x4 {
    -webkit-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
    -moz-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
    animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
    animation-delay: 0s;

    left: 20%;
    top: 100%;
    
    -webkit-transform: scale(0.3);
    -moz-transform: scale(0.3);
    transform: scale(0.3);
}

.x5 {
    -webkit-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
    -moz-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
    animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
    animation-delay: 10s;

    left: 30%;
    top: 100%;
    
    -webkit-transform: scale(0.5);
    -moz-transform: scale(0.5);
    transform: scale(0.5);
}

.x6 {
    -webkit-animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
    -moz-animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation-delay: 2s;

    left: 50%;
    top: 100%;
    
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    transform: scale(0.8);
}

.x7 {
    -webkit-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
    -moz-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation-delay: 14s;

    left: 65%;
    top: 100%;
    
    -webkit-transform: scale(0.4);
    -moz-transform: scale(0.4);
    transform: scale(0.4);
}

.x8 {
    -webkit-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
    -moz-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
    animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
    animation-delay: 5s;

    left: 80%;
    top: 100%;
    
    -webkit-transform: scale(0.3);
    -moz-transform: scale(0.3);
    transform: scale(0.3);
}

.x9 {
    -webkit-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
    -moz-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
    animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
    animation-delay: 11s;

    left: 90%;
    top: 100%;
    
    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
    transform: scale(0.6);
}

.x10 {
    -webkit-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
    -moz-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
    animation-delay: 14s;

    left: 80%;
    top: 100%;
    
    -webkit-transform: scale(0.3);
    -moz-transform: scale(0.3);
    transform: scale(0.3);
}

.bubble {
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    
    -webkit-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
    -moz-box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
    
    position: absolute;
    width: 50px;
    height: 50px;
}

.bubble:after {
    background: -moz-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%); /* FF3.6+ */