body {
    overflow-x: hidden;
    background: #ff402f;
}

#mtkContainer {
    text-align: left;
    font-family: "微軟正黑體", "Microsoft JhengHei", "Apple LiGothic Medium", Arial, Helvetica, sans-serif;
    background: none;
}

#mtkContainer * {
    transition: all 0.2s, font-size 0s;
}

.wrapper {
    position: relative;
    width: 94%;
    margin: 0 auto;
}

.wrapper img {
    width: 100%;
    border: 0;
    vertical-align: top;
}

@media screen and (min-width:1220px) {
    #mtkContainer {
        background: url(../images/bg.png) center top repeat-y;
    }
}











/*common*/

.space {
    height: 35px;
}
.space2 {
    height: 1px;
}

@media screen and (min-width:1220px) {
    .space {
        height: 70px;
    }
    
}












/*goTop*/

#goTop {
    display: none;
    position: fixed;
    z-index: 99;
    right: 30px;
    bottom: 30px;
    padding: 10px 10px 2px 10px;
    border-radius: 5em;
    font-size: 12px;
    line-height: 3em;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

#goTop:hover {
    padding-top: 30px;
    background-color: rgba(0, 0, 0, 7);
}

#goTop::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 18px;
    width: 0;
    height: 0;
    border: 4px solid #000;
    border-color: transparent transparent #fff;
}



















/*nav*/

.nav {
    position: relative;
    width: 100%;
    height: 54px;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 98;
}

.nav.fixed {
    position: fixed;
    top: 0;
}

.nav:hover {
    background: rgba(0, 0, 0, 0.65);
}



.nav a {

    text-decoration: none;
}

.nav>ul {
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
}

.nav a {
    display: block;
    color: white;
    font-size: 18px;
    padding: 5px 10px;
    margin: 12px 10px;
    border-radius: 5em;
}


.nav>ul>li.active>a, .nav2 a.active,
.nav a:hover {
    background: #feb92d;
    color: #560700;
    font-weight: bold;
}

.nav>ul>li>a img {
    width: 18px;
    vertical-align: unset;
    margin-right: 5px;
}

.nav>ul>li>a .on {
    display: none;
}

.nav>ul>li.active>a .normal {
    display: none;
}

.nav>ul>li.active>a .on {
    display: inline;
}


.nav2 {
    display: none;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.65);
    padding: 1px 0;
}

.nav2 a {
    margin: 10px;
}


.nav>ul>li:hover .nav2 {
    display: block;
}

@media screen and (min-width:920px) {
    .nav , .nav.fixed:hover{
        height: 80px;
    }
    .nav.fixed{
        height: 54px;
    }
    
    .nav>ul {
        justify-content: center;
        overflow-x: inherit;
    }
    
    .nav a , .nav.fixed:hover > ul > li > a{
        font-size: 24px;
        padding: 7px 10px;
        margin: 21px 10px;
    }
    .nav.fixed > ul > li > a{
        font-size: 18px;
        padding: 5px 10px;
        margin: 12px 10px;
    }

    
}














/*main*/

.main {
    position: relative;
    background: url(../images/main.jpg) center top no-repeat;
    background-size: 150%;
    height: 71vw;
}

.main img {
    width: 100%;
}

.main .btn a {
    width: 29%;
    position: absolute;
    top: 30%;
    left: 50%;
    opacity: 0;
}

.main .btn a .btnpc{display: none;}
.main .btn a .btnm{display: inline;}

.main .btn a:hover {
    filter: brightness(1.2) drop-shadow(0px 10px 0px rgba(0, 0, 0, 0.3));
}

.main .btn a:hover img {
    transform: scale(1.05);
}

.main .btn:hover a {
    animation-play-state: paused;
}

.main .red {
    margin-left: -48%;
    animation: btn 0.6s 1.2s ease infinite alternate;
}

.main .discount {
    margin-left: 21%;
    animation: btn 0.6s 1.5s ease infinite alternate;
}

@keyframes btn {
    from {
        transform: scale(1); opacity: 1;
    }
    to {
        transform: scale(0.9); opacity: 1;
    }
}


.titles img {
    width: auto;
    height: 25%;
    position: absolute;
    top: 4%;
    left: 50%;
    animation:titles 0.2s linear;
    animation-fill-mode: forwards;
    opacity: 0;
}
@keyframes titles {
   0% { transform: scale(10); opacity: 0;}
   100% { transform: scale(1); opacity: 1;}
}

.titles .title1{
    margin-left: -39.5%;
}
.titles .title2{
    margin-left: -27%;
    animation-delay: 0.2s;
}
.titles .title3{
    margin-left: -12.7%;
    animation-delay: 0.4s;
}
.titles .title4{
    margin-left: 0.6%;
    animation-delay: 0.6s;
}
.titles .title5{
    margin-left: 13.6%;
    animation-delay: 0.8s;
}
.titles .title6{
    margin-left: 27%;
    animation-delay: 1s;
}


@media screen and (min-width:1330px) {
    .main {
        background-size: auto;
        height: 960px;
    }
    .main .btn a {
        top: 314px;
        width: auto;
    }
    .main .btn a .btnpc{display: inline;}
    .main .btn a .btnm{display: none;}
    .main .red {
        margin-left: -641px;
    }
    .main .discount {
        margin-left: 301px;
    }
    .titles img {
        height: 243px;
    }
    .titles .title1{
        margin-left: -531px;
    }
    .titles .title2{
         margin-left: -365px;
    }
    .titles .title3{
         margin-left: -171px;
    }
    .titles .title4{
         margin-left: 6px;
    }
    .titles .title5{
         margin-left: 181px;
    }
    .titles .title6{
         margin-left: 360px;
    }
}














/*con*/

.con {
    width: 100%;
    max-width: 1217px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
}

.con .title {
    position: relative;
}

.con .title h2 {
    display: inline-block;
    font-size: 180%;
    font-weight: bold;
    color: white;
    width: 100%;
    padding: 8px 0;
    background: #7d0a00;
    border-radius: 5em;
    border: solid 3px #ffd557;
}

.con .title span {
    display: none;
}

.con h3 {
    font-weight: bold;
    letter-spacing: 0.05em;
    color: white;
    padding: 7px 0;
}

.con .ex {
    background: #7d0a00;
    color: white;
    border-radius: 0 0 30px 30px;
}

.con .ex dl {
    width: 92%;
    margin: 0 auto;
    padding: 15px 0;
}

.con .ex dt {
    display: inline-block;
    border-radius: 10px;
    border: 2px #ffd083 solid;
    margin: 10px 0;
}

.con .ex dt span {
    display: inline-block;
    font-weight: bold;
    color: #870c00;
    background: white;
    padding: 10px 25px;
    border-radius: 10px;
    border: 7px #7d0a00 solid;
}

.con .ex dd {
    font-size: 88%;
    line-height: 1.5;
}

.con .ex dd li {
    padding: 5px 0;
}

.con .ex a {
    color: white;
    text-decoration: underline;
}

.con .ex a:hover {
    color: #ffd083;
}

@media screen and (min-width:960px) {
    .con {
        font-size: 33px;
    }
    .con .title h2 {
        width: auto;
        padding: 15px 125px;
    }
    .con .title span {
        display: inline;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateY(-50%);
        z-index: -1;
    }

    .con .title span:first-child {
        margin-left: -550px;
    }

    .con .title span:nth-child(2) {
        margin-left: 350px;
    }
    .con h3 {
        padding: 10px 0;
    }
    .con .ex dt span {
        font-size: 78%;
    }
    .con .ex dd {
        font-size: 54%;
    }
}








/*red*/

#red .game,
#discount .money {
    position: relative;
    overflow: hidden;
    background: url(../images/red_bg.png) center bottom no-repeat;
    background-size: 100%;
}

#red .game {
    height: 34vw;
    max-height: 400px;
}


#red .game .redCover,
#discount .money .redCover {
    position: absolute;
    bottom: 0;
}



#red .game .redImg {
    width: 22%;
    position: absolute;
    left: 50%;
    bottom: -5%;
    box-shadow: 0px 0px 5px #ffd557, 0px 0px 5px #ffd557;
    cursor: pointer;
    animation: redImg 0.6s linear infinite alternate;
}

@keyframes redImg {
    from {
        bottom: -5%;
    }
    to {
        bottom: -1%;
    }
}

#red .gamerange:hover .redImg {
    animation-play-state: paused;
}

#red .game .redImg:hover {
    margin-bottom: 2%;
    box-shadow: 0px 0px 15px #ffd557, 0px 0px 15px #ffd557, 0px 0px 15px #ffd557, 0px 0px 15px #ffd557, 0px 0px 15px #ffd557, 0px 0px 15px #ffd557;
}

#red .game .redA {
    margin-left: -11%;
    filter: drop-shadow(-4px 16px 5px rgba(0, 0, 0, 0.7));
}

#red .game .redB {
    margin-left: -29%;
    filter: drop-shadow(-4px 16px 5px rgba(0, 0, 0, 0.7));
    transform: rotate(-25deg) translateY(15%);
    animation-delay: 0.2s;
}

#red .game .redC {
    margin-left: -45%;
    filter: drop-shadow(-4px 16px 5px rgba(0, 0, 0, 0.7));
    transform: rotate(-30deg) translateY(18%);
    animation-delay: 0.4s;
}

#red .game .redD {
    margin-left: 7%;
    filter: drop-shadow(4px 16px 5px rgba(0, 0, 0, 0.7));
    transform: rotate(25deg) translateY(15%);
    animation-delay: 0.6s;
}

#red .game .redE {
    margin-left: 24%;
    filter: drop-shadow(4px 16px 5px rgba(0, 0, 0, 0.7));
    transform: rotate(30deg) translateY(18%);
    animation-delay: 0.8s;
}

@media screen and (min-width:1217px) {
    #red .game .redImg {
        width: auto;
    }
}







/*discount*/

#discount .money {
    height: 29vw;
    max-height: 350px;
    margin-top: 25px;
}

#discount .money .discount1000 {
    display: block;
    width: 90%;
    max-width: 1064px;
    margin: 0 auto;
    filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.7));
}

#discount .money .discount1000 img:hover {
    filter: brightness(1.05);
}

#discount .money .discountbtn {
    display: inline-block;
    font-size: 3vw;
    font-weight: bold;
    color: white;
    background: black;
    padding: 0.3em 1.8em;
    border-radius: 5em;
    text-decoration: none;
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
}

#discount .money .discountbtn:hover {
    background: #cc1100;
    padding: 0.3em 2em;
}


@media screen and (min-width:1217px) {
    #discount .money {
        margin-top: 45px;
    }
    #discount .money .discountbtn {
        font-size: 35px;
    }
}







/*prize*/

.black {
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 99;
}

.prize {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: url(../images/prizebg.jpg) center center no-repeat;
    background-size: 100%;
    width: 90%;
    max-width: 520px;
    height: 0;
    padding-bottom: 130%;
    text-align: center;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0px 0px 8px #ffd557, 0px 0px 8px #ffd557, 0px 0px 8px #ffd557;
}

.prize p {
    font-size: 7vw;
    letter-spacing: 0.05em;
    color: white;
    margin: 12% 0;
}

.prize dl {
    color: #ffff00;
    margin-top: 25%;
}

.prize dt {
    font-size: 9.5vw;
    filter: drop-shadow(0px 0.08em 0px rgba(0, 0, 0, 0.3));
}

.prize dt img {
    width: 75%;
    display: inherit;
    margin: 4% auto 0;
}

.prize dd {
    font-size: 34vw;
    letter-spacing: -0.05em;
    filter: drop-shadow(0px 0.04em 0px rgba(0, 0, 0, 0.3));
}

.prize dd span {
    font-size: 10vw;
    color: #eb0015;
    border-radius: 5em;
    border: solid 0.1em #e60012;
    background: #ffff00;
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    line-height: 1.3em;
    padding-right: 0.2em;
    position: relative;
    left: -0.2em;
    top: -0.3em;
}

.prize a {
    display: inline-block;
    width: 80%;
    margin: 3% auto 0;
    background: white;
    color: #e80000;
    text-align: center;
    border-radius: 8px;
    font-size: 4vw;
    padding: 0.5em 0;
    text-decoration: none;
    box-shadow: 0px 0.3em 0px rgba(0, 0, 0, 0.3);
}

.prize a:hover {
    box-shadow: 0px 0.1em 0px rgba(0, 0, 0, 0.5);
    transform: translateY(0.2em);
}

.prize a img {
    height: 1em;
    margin-right: 2%;
}

.prize .xx a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: -4%;
    top: -2%;
    text-align: center;
    color: #eb0015;
    font-size: 6vw;
    border-radius: 5em;
    background: white;
    padding: 0 0 0.2em 0;
    margin: 0;
    width: 1.5em;
    height: 1.5em;
    box-shadow: 0px 0.15em 0px rgba(0, 0, 0, 0.3);
}

@media screen and (min-width:595px) {
    .prize {
        padding-bottom: 758px;
    }
    .prize p {
        font-size: 45px;
    }
    .prize dt {
        font-size: 55px;
    }
    .prize dd {
        font-size: 200px;
    }
    .prize dd span {
        font-size: 55px;
    }
    .prize a {
        font-size: 20px;
    }
    .prize .xx a {
        font-size: 36px;
    }
}



/*work*/
#work header{ width: 96%; max-width: 1220px; margin: 0 auto 4% auto;}
#work .tabs-nav{display: flex; justify-content: center; flex-wrap: wrap;}
#work .tabs-nav li{width: calc(100%/4); max-width: 167px;}
#work .tabs-nav a{position: relative; display: flex; justify-content: center; align-items: center;
    height: 0px; padding-bottom: 100%; font-size: 4.4vw;  color: #ffe1bb; font-weight: bold;
    text-decoration: none; text-align: center;
    background:url(../images/navbg.png) center top no-repeat;     background-size: cover;}
#work .tabs-nav li.on a,
#work .tabs-nav a:hover{background:url(../images/navbg_on.png) center top no-repeat;     background-size: cover; color: #ffe1bb;}
#work .tabs-nav a span{position: absolute;
    top: 50%;
    transform: translateY(-50%);}


@media screen and (min-width:768px) {
    #work .tabs-nav{flex-wrap: nowrap;}
    /*#work .tabs-nav li{width: calc(100%/8);}*/
    #work .tabs-nav a{font-size: 2.2vw;}
}


@media screen and (min-width:1100px) {
    #work header{margin: 0 auto 30px auto;}
  #work .tabs-nav a{font-size: 28px;}
}