body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: '微軟正黑體', 'Trebuchet MS', 'Lucida Sans Unicode';
    background-attachment: fixed;
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    color: #fff;
    background: url(/tpl/HOIN/images/roulette_slot/bg.jpg)top center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden !important;
}

header {
    position: relative;
    text-align: center;
    background: url(/tpl/HOIN/images/roulette_slot/logo.png) center center no-repeat;
    background-size: 160px;
    padding: 3rem 0;
    z-index: 10;
}

.topTitle {
    position: absolute;
    top: 5rem;
    left: calc(50% - 240px);
    width: 480px;
    text-align: center;
    z-index: 99;
}

.topTitle p {
    display: inline-block;
    font-size: 1.48rem;
    font-weight: bold;
    color: #5d89a9;
    margin: .15rem auto;
}

.topTitle img {
    display: block;
    margin: .1rem auto;
    max-width: 100%;
}

img.tit01 {
    -webkit-animation: brightness 2s -0.14s infinite;
    animation: brightness 2s -0.14s infinite;
}

img.tit02 {
    -webkit-animation: brightness 2.5s -0.18s infinite;
    animation: brightness 2.5s -0.18s infinite;
}

@keyframes brightness {
    0% {
        filter: brightness(100%);
    }
    70% {
        filter: brightness(100%);
    }
    73% {
        filter: brightness(250%);
    }
    76% {
        filter: brightness(100%);
    }
    100% {
        filter: brightness(100%);
    }
}

.topRoulette {
    position: relative;
    top: 9rem;
    text-align: center;
    height: 580px;
    z-index: 999;
}

.iteams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
}

.iteams img.dice_white {
    position: absolute;
    top: 18rem;
    left: 23%;
    width: 55px;
    -webkit-animation: UpDown 4s infinite;
    animation: UpDown 4s infinite;
}

.iteams img.dice_blue {
    position: absolute;
    right: 30%;
    top: 19rem;
    width: 60px;
    -webkit-animation: leftRightS 5s infinite;
    animation: leftRightS 5s infinite;
}

.iteams img.eagle_handsup {
    position: absolute;
    left: 23%;
    width: 25rem;
    top: 22rem;
}

.iteams img.eagle_thumbsup {
    position: absolute;
    right: 26%;
    width: 21rem;
    top: 25rem;
}

.iteams img.stage {
    position: relative;
    top: 37rem;
    width: 60rem;
    left: calc(50% - 30rem);
    z-index: 2;
}

@-webkit-keyframes UpDown {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
    50% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px)
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@keyframes UpDown {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
    50% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px)
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@-webkit-keyframes UpDown2 {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
    40% {
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px)
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@keyframes UpDown2 {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
    40% {
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px)
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@-webkit-keyframes leftRightS {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    50% {
        -webkit-transform: translateX(-10px);
        transform: translateX(-10px)
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@keyframes leftRightS {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
    50% {
        -webkit-transform: translateX(-10px);
        transform: translateX(-10px)
    }
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

.state {
    position: relative;
    top: 12rem;
    z-index: 120;
    text-align: center;
}

.state p {
    display: table;
    margin: 0 auto;
    padding: 2px 12px 6px 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    background: #ffffffe5;
    border: 1px solid #ececec;
    border-radius: 25px;
}

.state p span {
    color: #cf0325;
    padding: 0 5px;
    font-size: 1.35rem;
}

.state .block {
    display: inline-block;
    border-radius: 25px;
    text-align: center;
    font-size: 1.16rem;
    font-weight: bold;
    margin: .5rem auto;
    padding: .75rem 2.5em;
    letter-spacing: 1px;
    color: #ffffff;
    background: #73c19d;
    -webkit-box-shadow: 0 4px 10px 6px rgba(49, 49, 49, 0.2);
    box-shadow: 0 4px 10px 6px rgba(56, 56, 56, 0.2);
}

.rouletteBox {
    position: relative;
    width: 580px;
    margin: 0 auto;
}

.rouletteBox img {
    max-width: 100%;
}

img.pointer {
    position: absolute;
    z-index: 8;
    top: 0;
    left: 0;
    cursor: pointer;
}

img.roulette {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    transition: all 4s;
}

img.machine {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
}

main {
    position: relative;
    top: 22rem;
    padding-bottom: 3rem;
}

h2.title {
    position: relative;
    display: inline-block;
    top: -4rem;
    border-radius: 50px;
    text-align: center;
    font-size: 1.65rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(120deg, #3da3d7, #3da3d7 25%, #73c19d);
    border: 3px solid #ffffff;
    padding: .5rem 2.25rem;
    letter-spacing: .1rem;
    z-index: 2;
    box-shadow: 0px 2px 8px #3f3f3f56;
}

.about,
.tableBox {
    text-align: center;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 10px 20px -5px, rgba(0, 0, 0, 0.3) 0px 5px 10px -8px;
    border-radius: 12px;
    background: #ccccccbb;
    border: 3px solid #ffffff;
    display: block;
    width: 60%;
    padding: 2rem;
    margin: 3rem auto 6rem auto;
}

.about .text {
    position: relative;
    top: -2rem;
    color: #333;
    font-size: 1.25rem;
    margin: 1rem auto;
    max-width: 800px;
}

.about ul {
    display: table;
    margin: auto;
    text-align: left;
    list-style: circle;
}

.about ul li {
    margin-bottom: 1rem;
}

.about ol {
    margin-bottom: .75rem;
    list-style: '-';
}

.tableBox table {
    position: relative;
    width: 80%;
    margin: 2rem auto 5rem auto;
    border-collapse: collapse;
    font-size: 1.25rem;
    z-index: 99;
}

.tableBox table th {
    color: #333333;
    background: #ffffffab;
    padding: .75rem;
    border: 2px solid #e6e6e6;
}

.tableBox table td {
    color: #333;
    padding: .5rem .35rem;
    border: 2px solid #d3d3d3;
    background: #ffffff1e;
}

.tableBox table tr:nth-last-of-type(even) td {
    background: #ffffff65;
}

.tableBox table tr.userGot td {
    color: #ffffff;
    background: #3da3d7ee;
    border: none;
    font-size: 1.35rem;
    font-style: italic;
}

.tableBox h3 {
    color: #424242;
    font-size: 1.25rem;
    padding: 0;
    margin: 0 auto;
}

.datePick {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 75%;
    margin: 1rem auto;
    z-index: 99;
}

.datePick a {
    display: block;
    font-size: 0.95rem;
    padding: .75rem 1rem;
    margin: .2rem;
    color: #555;
    background: #fff;
    border-radius: 2px;
    text-decoration: none;
    transition: .25s;
}

.datePick a.active {
    color: #eee;
    background: #73c19d;
}

.datePick a:hover {
    color: #fff;
    background: #3da3d7;
    text-decoration: none;
}

footer {
    text-align: center;
}

footer img {
    max-width: 150px;
}

.modal-content {
    border: none !important;
}

.modal-header {
    color: #eeeeee;
    background: #2e3a75;
    background: -webkit-linear-gradient(left, #3da3d7, #3da3d7 25%, #73c19d);
    background: linear-gradient( 90deg, #3da3d7, #3da3d7 25%, #73c19d);
    padding: .5rem 1rem !important;
    align-items: center !important;
    border: none !important;
}

.modal-header .code {
    font-size: .85rem;
}

.modal-header .close {
    margin: 0 !important;
    padding: 0 !important;
    color: #000000;
}

.modal-header .close:hover {
    color: #ffffff;
}

.modal-title {
    width: 25%;
}

.modal-title img {
    max-width: 85px;
}

.modal-body {
    text-align: center;
    color: #333;
    background: #eeeef0;
    border: none !important;
}

.modal-body .bonus {
    margin: 0 auto 1rem auto;
}

.modal-body .bonus #myModal_b {
    font-family: verdana;
    font-style: italic;
    font-size: 3rem;
    font-weight: bold;
    color: #ec5151;
    text-shadow: -1px -1px 1px #ffc3bb, 1px 1px 1px #ff6d6d, 1px 2px 1px #d63f3f, 1px 2px 1px #d63f3f, 1px 2px 1px #d63f3f, 1px 3px 1px #722222, 1px 4px 1px #722222, 1px 5px 1px #722222, 1px 6px 1px #722222, 1px 7px 1px #722222, 1px 8px 1px #722222, 1px 8px 6px rgba(16, 16, 16, 0.4), 1px 22px 10px rgba(16, 16, 16, 0.2), 1px 5px 5px rgba(16, 16, 16, 0.2), 1px 15px 15px rgba(16, 16, 16, 0.4);
}

.modal-body .bonus span {
    color: #333;
    font-weight: bold;
    font-size: 1.25rem;
    margin-left: 10px;
}

.modal-body p {
    padding: 0;
    margin: 0 0 .25rem 0;
    font-size: 0.85rem;
}

.modal-backdrop.show {
    opacity: .75 !important;
}

aside {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999999;
}

aside>div {
    text-align: center;
}

aside a {
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    text-align: center;
    border-radius: 100%;
    padding: .65rem;
    color: #756852;
    background: #eacd9b;
    text-decoration: none;
    transform: translateY(0);
    transition: .3s;
    -webkit-box-shadow: 0 4px 5px 0px rgba(49, 49, 49, 0.5);
    box-shadow: 0 4px 5px 0px rgba(56, 56, 56, 0.5);
}

aside a:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

aside .goHome a {
    background: #3da3d7;
}

aside .goTop a {
    color: #ffffff;
    background: #73c19d;
    font-weight: bold;
    line-height: 2.25rem;
}

aside div p {
    margin: 5px 0 10px 0;
    padding: 0;
    font-size: .85rem;
    color: #888;
}

aside a img {
    max-width: 100%;
}

@media (max-width: 1920px) {
    .iteams img.eagle_handsup {
        left: 19%;
        width: 25rem;
        top: 22rem;
    }
    .iteams img.eagle_thumbsup {
        right: 20%;
        width: 21rem;
        top: 25rem;
    }
}

@media (max-width: 1024px) {
    body,
    html {
        font-size: 18px !important;
        overflow-x: hidden;
        position: relative;
    }
    body {
        overflow-x: hidden !important;
        background-attachment: inherit !important;
        background-size: cover;
    }
    .iteams {
        height: 1000px;
    }
    .iteams img.dice_white {
        top: 19rem;
        left: 22%;
        width: 70px;
    }
    .iteams img.dice_blue {
        right: 6%;
        top: 15rem;
        width: 60px;
    }
    .iteams img.eagle_handsup {
        left: -10%;
        width: 20rem;
        top: 22rem;
    }
    .iteams img.eagle_thumbsup {
        right: -5%;
        width: 16rem;
        top: 26rem;
    }
    .iteams img.stage {
        top: 38rem;
        width: 50rem;
        left: calc(50% - 25rem);
    }
    .topRoulette {
        top: 11rem;
    }
    main {
        top: 22rem;
    }
    .state {
        top: 18rem;
    }
    .state .block {
        font-size: 1.5rem;
    }
    .state p {
        font-size: 1.35rem;
    }
    .about,
    .tableBox {
        width: 90%;
        padding: 1rem;
    }
    h2.title {
        top: -3rem;
    }
    .datePick,
    .tableBox table {
        width: 90%;
    }
    .datePick a {
        font-size: 1.16rem;
        margin: 0.3rem;
    }
}

@media (max-width: 580px) {
    body,
    html {
        font-size: 16px !important;
        overflow-x: hidden;
        position: relative;
    }
    header {
        background-size: 130px;
        padding: 5rem 0 0 0;
    }
    .topTitle {
        left: calc(50% - 33%);
        width: 66%;
        top: 3.5rem;
    }
    .topTitle p {
        font-size: 1rem;
        margin: 0 auto;
        padding: .15rem 1.25rem;
    }
    img.tit01 {
        margin: 0.15rem auto
    }
    .iteams img.dice_white {
        top: 25rem;
        left: 2%;
        width: 50px;
    }
    .iteams img.dice_blue {
        right: 1%;
        top: 8rem;
        width: 45px;
    }
    .iteams img.eagle_handsup {
        left: 2%;
        width: 13rem;
        top: 11.5rem;
    }
    .iteams img.eagle_thumbsup {
        right: 7%;
        width: 10rem;
        top: 12rem;
    }
    .iteams img.stage {
        width: 34rem;
        top: 33rem;
        left: calc(50% - 17.5rem);
    }
    .topRoulette {
        top: 11rem;
        height: 350px;
    }
    .rouletteBox {
        width: 95%;
    }
    .state {
        top: 20rem;
    }
    .state .block {
        font-size: 1.25rem;
        padding: 0.5rem 2.5em;
    }
    h2.title {
        top: -2rem;
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
    .about,
    .tableBox {
        width: 92%;
        padding: .5rem;
    }
    .tableBox table {
        width: 94%;
        font-size: 1rem;
        margin: 0rem auto 3rem auto;
    }
    .tableBox table th {
        padding: .45rem .75rem;
    }
    .tableBox table td {
        padding: .35rem .1rem;
    }
    .tableBox table tr.userGot td {
        font-size: 1rem;
    }
    .about .text {
        width: 100%;
        padding-left: 1rem;
        font-size: 1.16rem;
    }
    .about ul {
        padding: 0;
        width: 85%;
    }
    .tableBox h3 {
        font-size: 1.25rem;
        margin: 2rem 0 0 0;
    }
    .datePick {
        width: 96%;
        margin: .5rem auto 2rem auto;
    }
    .datePick a {
        width: 18%;
        font-size: .95rem;
        padding: .3rem .1rem;
        margin: .15rem;
    }
    aside {
        right: .5rem;
        bottom: .25rem;
    }
    aside a {
        width: 3rem;
        height: 3rem;
        padding: .5rem;
        -webkit-box-shadow: 0 2px 3px 0px rgba(49, 49, 49, 0.5);
        box-shadow: 0 2px 3px 0px rgba(56, 56, 56, 0.5);
    }
    aside div p {
        margin: 2px 0 5px 0;
    }
}

@media (max-width: 380px) {
    .iteams img.dice_white {
        top: 25rem;
        left: 2%;
        width: 45px;
    }
    .iteams img.dice_blue {
        right: 1%;
        top: 4rem;
        width: 35px;
    }
    .iteams img.eagle_handsup {
        left: -5%;
        width: 12rem;
        top: 9rem;
    }
    .iteams img.eagle_thumbsup {
        right: 2%;
        width: 10rem;
        top: 9rem;
    }
    .iteams img.stage {
        width: 28rem;
        top: 27rem;
        left: calc(50% - 14rem);
    }
    .topRoulette {
        top: 7rem;
    }
    .state {
        top: 18rem;
    }
    main {
        top: 20rem;
    }
}

/* 活動切換器（下拉）— 對齊 molly/roulette.min.css 的 .act-switcher-* 樣式，custom14 用 */
.act-switcher-wrap {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
}
.act-switcher-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.act-switcher-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}
.act-switcher-btn[aria-expanded="true"] .act-switcher-arrow {
    transform: rotate(180deg);
}
.act-switcher-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s;
}
.act-switcher-menu {
    position: absolute;
    top: 40px;
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    max-height: 60vh;
    overflow-y: auto;
}
.act-switcher-item {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.act-switcher-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
}
.act-switcher-item.active {
    background: #1c97ce;
    color: #fff;
    font-weight: bold;
}
@media (min-width: 768px) {
    .act-switcher-btn {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }
    .act-switcher-arrow {
        font-size: 24px;
    }
    .act-switcher-menu {
        top: 52px;
    }
}