@import url(https://fonts.googleapis.com/css?family=Lato:100,300,400,700);

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Noto Serif TC', serif;
    background-color: #791CF5;
    /* background-color: black; */
    min-width: 570px;
    font-size: 16px;
}

video {
    /*width: 450px;*/
    width: 80%;
    max-width: 423px;
    /*max-width: 768px;*/
    position: relative;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
/*     display: none; */
}
/* canvas{
    width: 80%;
    max-width: 423px;
    position: relative;
    top: 0%;
    left: 50%;
    transform: translate(-50%, 0%);
} */

img {
    width: 100%;
}

input {
    border: none;
    background-image: none;
    background-color: transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

button {
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    outline: none;
    background-color: transparent;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.876rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    list-style-type: none;
}
.IIV::-webkit-media-controls-play-button,
.IIV::-webkit-media-controls-start-playback-button {
     opacity: 0;
     pointer-events: none;
     width: 5px;
 }
.btn {
    cursor: pointer;
}

.main {
    display: none;
}

.video {
    margin: 100px auto 0;
    width: 432px;
    position: relative;
    /*  width: 30%; */
    min-width: 432px;
    /* display: none; */
}

.signBoard {
    position: absolute;
    z-index: 101;
    top: -40px;
    left: -38px;
    width: 115%;
}

.lantern {
    position: absolute;
    z-index: 100;
    top: -24px;
    right: 0px;
    width: 23%;
}
.lantern p{
    position: absolute;
    bottom: 33%;
    left: 50%;
    color: #FFE600;
    transform: translate(-50%,0px);
}
.marquee {
    overflow: hidden;
    position: absolute;
    top: 82px;
    z-index: 99;
    width: 100%;
    height: 34px;
}

.marquee img {
    width: 195%;
}

.marquee>*,
.signBoardMarquee>* {
    white-space: nowrap;
    position: absolute;
}
.signBoardMarquee>* {
   font-size: 1.5625rem;
}
.marquee>*{
     font-size: 1.25rem;     
     left: 100%;
     transform: translateX(0%);
     color: #FFE600;
    font-weight: 900;
}
.marquee>span{
     color: #FFE600;
    font-weight: 900;
}
.marquee>span>span{
     color:#00FFAA;
}
.signBoardMarquee {
    width: 71%;
    position: absolute;
    left: 15%;
    top: 35%;
    transform: rotate(-6deg);
    overflow: hidden;
    height: 43px;
    font-weight: 900;
}
.signBoardMarquee span>span{
    color: #FE3B00;
}
@keyframes marquee {
    0% {
        left: 100%;
        transform: translateX(0%);
    }

    100% {
        left: 0%;
        transform: translateX(-100%);
    }
}

.hand {
    width: 16%;
    position: absolute;
    right: 0px;
    bottom: -18px;
    z-index: 2;
}

#handOpen {
    display: none;
}

.hand img:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 166%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hand img:nth-child(4) {
    position: absolute;
    top: 0%;
    left: 30%;
    width: 89%;
    transform: translate(-50%, -50%);
    z-index: 0;
    display: none;
}


.hand img:nth-child(5) {
    position: absolute;
    top: 33%;
    left: 18%;
    width: 90%;
    transform: translate(-50%, -50%);
    z-index: 0;
    display: none;
}

#handGlow {
   animation: Glow 2s linear 0s infinite;
}
@keyframes Glow {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}


#handClose:hover+#handGlow {
    opacity: 1;
}
#handClose{
    height: auto;
}
.flower0,
.flower1,
.flower2,
.flower3,
.flower4,
.flower5 {
    position: absolute;
}

.flower0 {
    width: 24%;
    left: 21.5%;
    bottom: 3%;
}

.flower1 {
    width: 28%;
    left: 1%;
    bottom: -7%;
}

.flower2 {
    width: 32%;
    left: -24%;
    bottom: -19%;
}

.flower3 {
    width: 36%;
    left: -53%;
    bottom: -33%;
}

.flower4 {
    width: 40%;
    left: -86%;
    bottom: -49%;
}

.flower5 {
    width: 44%;
    left: -122%;
    bottom: -67%;
    opacity: 0;
}

.flower0 p,
.flower1 p,
.flower2 p,
.flower3 p,
.flower4 p,
.flower5 p {
    color: #FFE600;
    background-color: #F30200;
    text-align: center;
    padding: 2px 3px;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-weight: 900;
    word-break: break-all;

}

.flower0 p {
    position: absolute;
    font-size: 1.125rem;
}

.flower1 p {
    position: absolute;
    font-size: 1.25rem;
}

.flower2 p {
    position: absolute;
    font-size: 1.375rem;
}

.flower3 p {
    position: absolute;
    font-size: 1.5rem;
}

.flower4 p {
    position: absolute;
    font-size: 1.625rem;
}

.flower5 p {
    position: absolute;
    font-size: 1.8rem;
}

#content {
    width: 100%;
    background-image: url('../img/bodyBG.png');
    /*background-image:url('../img/shareResultBG.png');*/
    height: 100%;
    background-position: center 74px;
    background-size: 1195px;
    overflow: scroll;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.yellowBanner {
    background-color: #FFE600;
    position: absolute;
    width: 100%;
    height: 180px;
    top: 0;
    z-index: 2;
    opacity: 0.95;
    display: none;
}

.flowerEmpty {
    position: relative;
    left: 50%;
    top: 40%;
    transform: translate(-50%, 0%);
    width: 230px;
    text-align: center;
}

.flowerEmpty>img {
    margin-bottom: 20px;
}

.flowerEmpty button {
    width: 74%;
    opacity: 0;
    margin-bottom: 20px;
}

.flower {
    position: absolute;
    overflow: hidden;
    height: 0px;
}

.flowerWrap {
    position: absolute;
    /* top: 40%; */
    top: 0%;
    /* left: 50%;
    transform: translate(-50%, 0%) rotate(180deg); */
    transform:rotate(180deg);
    height: 193px;
    width: 230px;
}

.flower img {
    width: 230px;
    transform: rotate(180deg)
}

.charm,
.charm1 {
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.charm img:first-child {
    opacity: 0;
    transform: scale(0.9);
    display: none;
}

.charm img:last-child {
    opacity: 0;
    transform: scale(0.9);
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.charm1 {
    display: none;
}
.charm1>img{
    box-shadow:0px 9px 24px 0px rgba(0,0,0,1);
}
.charm1 button {
    position: absolute;
    bottom: 0.5%;
    width: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.charm1 button:first-child{
    bottom: -15%;
    width: 32%;
}
.charm1 button:first-child img{
    box-shadow: 0px 3px 8px 0px rgba(0,0,0,1);
    border-radius: 24px;
}
.charm1 button:last-child{
    bottom: -15%;
    width: 32%;
}


#slider {
    overflow: visible;
    margin-bottom: 15px;

}

.playmode {
    display: none;
    position: relative;
    z-index: 3;
    text-align: center;
}

.playBanner {
    width: 130%;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
    margin-top: -123px;
    margin-bottom: 10px;
}
.input{
    overflow: hidden;
    border-bottom: 2px #FFE600 solid;
}
.playmode input,.playmode .input p{
    font-size: 1.876rem;
    color: #FFE600;
    padding: 5px;
    font-family: 'Noto Serif TC', serif;
    font-weight:900;
    float: right;
    margin: 0;

}
.playmode input {
    width: 63%;
    font-size: 1.876rem;
    color: #FFE600;
    text-align: center;
    
}
.input{
    display: flex;
    justify-content: center;
    width: 58%;
    margin: 0 auto 20px;
}
.flipster__button {
    top: 33%;
    font-size: 1.876rem;
}

.flipster__button svg {
    height: 140px;
}

.flipster__button svg {
    color: white;
}

.flipster__item img {
    width: 60%;
}

.flipster__item p {
    position: absolute;
    top: 33%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    color: #F30200;
    font-size: 2.5rem;
}

.flipster__item__content {
    position: relative;
}

#app {
    /*transform: scale(0.6);
    margin-top: -65px;*/
}

.chooseWrap ul {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    height: 100.03px;
}

.chooseWrap ul li {
    width: 22%;
    position: relative;
}

.chooseWrap ul li img:nth-child(2) {
    width: 105%;
}

.chooseWrap ul li p {
    position: absolute;
    top: 20%;
    color: #FFE600;
    background-color: #F30200;
    font-size: 1.125rem;
    width: 100%;
}

.chooseWrap button {
    width: 45%;
}

.shareIcon{
    overflow: hidden;
    position: fixed;
    right: 2%;
    bottom: 2%;
    z-index: 99;
}
.shareIcon li{
    float: left;
    width: 50px;
}
.shareIcon li:first-child{
    margin-right: 10px;
}
/*.result{
    width: 463px;
    margin: 0 auto;
    background-image: url(../img/counter.png);
    padding-bottom: 858px;
    background-size: 100%;
}
.result>div{
    position: relative;
    top: 44%;
    transform: translate(0px,-50%);
}
.flex{
    display: flex;
}
.btw{
    justify-content: space-between;
}
.center{
    justify-content: center;
}*/


#container {
    width: 100%;
    height: 100%;
    display: flex;
    height: 120px;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column.highlight {
    background-color: gray;
}

.column.highlight .row {
    transition-duration: 0.4s;
}

.column.highlight .row.filled {
    transition: background-color 0.1s;
}

.column.highlight .row.filled {
    background-color: white;
}

.row {
    flex: 1;
    margin: 1px;
    background-color: #eeeeee;
    transition: background-color 0s;
}

.row.filled {
    background-color: #008080;
}

label {
    font-family: var(--label-font-family);
    font-size: var(--label-font-size);
    margin-right: 20px;
}

button:hover,
button:focus {
    box-shadow: var(--shadow-medium);
}

button[disabled] {
    opacity: 0;
}

button svg {
    margin-top: 4px;
    width: 30px;
    height: 30px;
}

.border {
    border: 1px black solid;
}


.preloader-wrap {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    /*  background: rgba(0, 0, 0, 1); */
    z-index: 10;
    /* display: none; */
}

.percentage {
    z-index: 100;
    /*  border: 1px solid #ccc; */
    text-align: center;
    color: #000000;
    line-height: 30px;
    font-size: 15px;
}

.loader,
.percentage {
    height: 30px;
    max-width: 600px;
    /* border: 2px solid #69AF23;
    border-radius: 20px; */
    font-weight: 300;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.loader:after,
.percentage:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.trackbar {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    line-height: 30px;
    overflow: hidden;
    position: relative;
    opacity: 0.99;
}

.loadbar {
    width: 0%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
        #008737,
        #008737 10px,
        #69AF23 10px,
        #69AF23 20px);
    /* Stripes Background Gradient */
    box-shadow: 0px 0px 14px 1px #008737;
    position: absolute;
    top: 0;
    left: 0;
    animation: flicker 5s infinite;
    overflow: hidden;
}

.glow {
    width: 0%;
    height: 0%;
    border-radius: 20px;
    box-shadow: 0px 0px 60px 10px #008737;
    position: absolute;
    bottom: -5px;
    animation: animation 5s infinite;
}

@keyframes animation {
    10% {
        opacity: 0.9;
    }

    30% {
        opacity: 0.86;
    }

    60% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.75;
    }
}

.overlay-landscape {
    display: none;
}

.modal-content {
    width: 54%;
    margin: 0 auto;
    color: white;
    text-align: center;
}

.modal-contentM div:nth-child(1) {
    width: 16%;
    margin: 0 auto;
}

.modal-contentD div:nth-child(1) {
    width: 100%;
    margin: 0 auto;
}

.modal-dialog {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
}

.overlay-landscapeM.active,
.overlay-landscapeD.active {
    background-color: rgba(0, 0, 0, 1);
    z-index: 9000;
    display: block;
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: block;
    text-align: center;
    /*  padding-top: 13%;*/
    top: 0;
    bottom: 0;
    color: white;
}

.overlay-landscape-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: -1;
}

@media (max-width:700px) {
  .shareIcon{
    display: none;
  }
}
@media (max-width:414px) {
    body {
        min-width: inherit;
        width: 100%;
        font-size: 10px;
    }
    
    .flowerWrap {
        top: 0%;
        transform:rotate(180deg);
    }

    .flowerEmpty {
        top: 54%;
        transform: translate(-50%, -50%);
        height: 332.42px;
    }

    .hand {
        right: 3%;
        bottom: 5%;
    }

    .video {
        min-width: inherit;
        width: 100%;
        margin: 40px auto 0;
    }

    .yellowBanner {
            height: 18%;
    }

    .flipster__item img {
        width: 50%;
    }

    .playBanner {
        width: 105%;
        margin-top: -70px;
        margin-bottom: 0px;
    }

    .signBoard {
        top: -6%;
        left: -9%;
        width: 114%;
    }
    .lantern{
        top: -3.5%;
    }
    .marquee{
        top: 13%;
    }
    .chooseWrap ul{
        margin-bottom: 2%;
        height: 84.19px;
    }
    .flipster__button--next{
        right: -13%;
    }
    .flipster__button--prev{
        left: -13%;
    }
    #content{
       background-size: 256%;
       background-position: center 60px;
       overflow: hidden;
    }
    .playmode input,.playmode .input p{
        font-size: 1.5rem;
    }
    .charm, .charm1{
            width: 73%;
    }
    .chooseWrap ul li p{
        font-size: 0.7rem;
    }
    .flipster__item p{
        width: 43%;
        font-size: 2.5rem;
        top: 28%;
    }
    .lantern p{
        bottom: 32%;
        font-size: 1rem;
    }
    .marquee>*{
        font-size: 13px;
    }
    .marquee>span>span{
        font-size: 20px;
    }
}
/* @media (max-width: 414px)and ( min-height: 635px){
    .playBanner{
        margin-top: -70px;
    }
} */
@media (max-width: 375px)and ( max-height:553px){
    .flipster__item img{
        width: 45%;
    }
    #slider{
        margin-bottom: 0px;
    }
    .charm, .charm1{
        width: 69%;
    }
}
@media (max-width:350px){
    body{
        min-width: 320px;
        font-size: 14px;
    }
    .yellowBanner{
        height: 17%;
    } 
    .signBoardMarquee>*{
            font-size: 1.2rem;
    }
    .marquee>*{
        font-size: 0.96rem;
    }
    .flipster__item img{
            width: 60%;
    }
    #slider ul li{
        width: 100%;
    }
    .playBanner{
        margin-bottom: 0px;
    }

}


@media (max-width:320px){
    .video{
        margin: 22px auto 0;
    }
    .playmode input,.playmode .input p{
        font-size: 1rem;
    }
    .playBanner{
        margin-top: -55px;
    }
    .flipster__item img{
        width: 45%;
    }
    .flipster__button svg{
        height: 92px;
    }
    .chooseWrap ul{
        margin-bottom: 1%;
        height: 74.39px;
    }

    .flipster__item p{
        font-size: 1.8rem;
        top: 30%;
    }
    .charm, .charm1{
        width: 69%;
    }
}