/* source:Supervisor */

@keyframes btnEffectShine{
    0%{
        background: url("../img/evtMary/mary_callto.png") 50% 50% no-repeat;
        background-size: 100%;
    }
    100%{
        background: url("../img/evtMary/mary_callto_light.png") 50% 50% no-repeat;
        background-size: 100%;
    }
}
/*小瑪莉本體*/
.slots {
    position: relative;
    margin: 60px auto;
    width: 680px;
    height: 680px;
    background-color: #fdf6e3;
    /* border: 4px solid #fec774; */
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    z-index: 2;
}

.slots-main {
    position: relative;
    width: 640px;
    height: 640px;
    margin: 0 auto;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    padding: 8px 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fdf6e3;
    top: 20px;
}

.slots-group {
    position: relative;
    height: 100%;
    /* border: 1px solid #8c352e; */
    border-radius: 5px;
}

.slots-group .item {
    width: calc(20% - 2px);
    height: calc(20% - 2px);
    position: absolute;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #eee1bc;
    /* border: 1px solid #8c352e; */
    text-align: center;
    padding: 5px 5px;
    box-sizing: border-box;
    overflow: hidden;
        border-radius: 10px;
}
.slots-group .item.is--active {
    /* background-color: #ecbdbd !important; */
    filter: brightness(1.1);
}

.slots-group .item.is--active:after {
    display: none;
}

.slots-group .item .picImg {
    background-color: #fff;
    /* border: 1px solid #5d1f18; */
    width: 60%;
    height: 60%;
    margin: 0 auto;
    position: relative;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    position: relative;
    top: 5px;
    overflow: hidden;
}

.slots-group .item .picImg img {
    width: 80%;
    height: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.slots-group .item .picName {
    position: relative;
    top: 15px;
    color: #bc463a;
    font-weight: 500;
    padding: 3px 12px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
}

.slots-group .item.itemSP {
    background-color: #a91818;
    padding: 2px 0px;
}

.slots-group .item.itemSP .txtFree {
    color: #fff;
}

.slots-group .item.itemSP .txtPoint {
    color: #fff;
}

.slots-group .item.itemSP2 {
    background-color: #a91818;
    padding: 2px 0px;
}

.slots-group .item.itemSP2.is--active .txtFree,
.slots-group .item.itemSP2.is--active .txtPoint,
.slots-group .item.itemSP.is--active .txtFree,
.slots-group .item.itemSP.is--active .txtPoint {
    color: #fff;
}

.slots-group .item .txtFree {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.slots-group .item .txtPoint {
    font-weight: bold;
    font-size: 30px;
    color: #fff;
}


.slots-group .item:nth-child(1) {
    top: 1px;
    left: calc(20% * (1 - 1) + 1px);
}

.slots-group .item:nth-child(2) {
    top: 1px;
    left: calc(20% * (2 - 1) + 1px);
}

.slots-group .item:nth-child(3) {
    top: 1px;
    left: calc(20% * (3 - 1) + 1px);
}

.slots-group .item:nth-child(4) {
    top: 1px;
    left: calc(20% * (4 - 1) + 1px);
}

.slots-group .item:nth-child(5) {
    top: 1px;
    left: calc(20% * (5 - 1) + 1px);
}

.slots-group .item:nth-child(6) {
    top: calc(20% + 1px);
}

.slots-group .item:nth-child(7) {
    top: calc(20% + 1px);
}

.slots-group .item:nth-child(8) {
    top: calc(20%*2 + 1px);
}

.slots-group .item:nth-child(9) {
    top: calc(20%*2 + 1px);
}

.slots-group .item:nth-child(10) {
    top: calc(20%*3 + 1px);
}

.slots-group .item:nth-child(11) {
    top: calc(20%*3 + 1px);
}

.slots-group .item:nth-child(6),
.slots-group .item:nth-child(8),
.slots-group .item:nth-child(10) {
    left: 1px;
}

.slots-group .item:nth-child(7),
.slots-group .item:nth-child(9),
.slots-group .item:nth-child(11) {
    left: calc(20% * 4 + 1px);
}

.slots-group .item:nth-child(12) {
    bottom: 1px;
    left: calc(20% * (12 - 12) + 1px);
}

.slots-group .item:nth-child(13) {
    bottom: 1px;
    left: calc(20% * (13 - 12) + 1px);
}

.slots-group .item:nth-child(14) {
    bottom: 1px;
    left: calc(20% * (14 - 12) + 1px);
}

.slots-group .item:nth-child(15) {
    bottom: 1px;
    left: calc(20% * (15 - 12) + 1px);
}

.slots-group .item:nth-child(16) {
    bottom: 1px;
    left: calc(20% * (16 - 12) + 1px);
}

.slots-group:after {
    clear: both;
    content: "";
    display: table;
}

.slots-center {
    width: calc(60% - 28px);
    height: calc(60% - 28px);
    position: absolute;
    top: calc(20% + 14px);
    left: calc(20% + 14px);
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    overflow: hidden;
    /* background-color: #f862661c; */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.slots-center .start-btn {
    text-indent: -9999px;
    width: 300px;
    height: 300px;
    background-size: 100%;
    background: url("../img/evtMary/mary_callto.png") 50% 50% no-repeat;
    cursor: pointer;
    outline: none;
    border: 0;
    -webkit-transition: all .3s ease-in;
    -moz-transition: all .3s ease-in;
    -ms-transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    transition: all .3s ease-in;
    animation: btnEffectShine .6s infinite alternate-reverse;
    background-size: 100%;
}
.slots-center .start-btn:hover{
    animation: none;
}

.slots-center .start-btn:active {
    -webkit-filter: brightness(95%);
    filter: brightness(95%);
}

.slots-center .start-btn.is--disable {
    cursor: not-allowed;
    background: url("../img/evtMary/mary_callto_disable.png") 50% 50% no-repeat;
    animation: none;
    background-size: 100%;
}

@media only screen and (min-width: 1281px) {
    .slots-center .start-btn:hover {
        -webkit-filter: brightness(110%);
        filter: brightness(110%);
    }
}

@media only screen and (max-width: 768px) {
    .slots {
        width: 86vw;
        height: 86vw;
    }

    .slots-main {
        width: calc(87vw - 24px);
        height: calc(87vw - 20px);
        top: 0px;
    }

    .slots-group .item {
        padding: 3px;
    }

    .slots-group .item .picImg {
        width: 50%;
        height: 50%;
    }

    .slots-group .item .picImg img {
        max-height: 100%;
        max-width: 100%;
    }

    .slots-group .item .picName {
        font-size: 14px;
        padding: 2px 8px;
    }

    .slots-group .item .txtFree {
        line-height: 1.33;
        margin-top: 1vw;
        font-size: 2.8vw;
    }

    .slots-group .item .txtPoint {
        line-height: 1.33;
        font-size: 4vw;
    }

}

@media only screen and (max-width: 767px){
    .slots {
        transform: scale(1.1);
        margin: 12vw auto 6% auto;
    }
}

@media only screen and (max-width: 480px) {
    .slots-group .item .picImg {
        display: none;
    }

    .slots-center .start-btn {
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 414px) {
    .slots-group .item .txtFree {
        line-height: 1.2;
        margin-top: .5vw;
        font-size: 12px;
    }

    .slots-group .item .txtPoint {
        line-height: 1.2;
        font-size: 15px;
    }

}

/*小瑪莉跳出的得獎訊息*/
.getItemMsg {
    width: 100%;
    height: 100%;
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

.getItemMsg-box {
    width: 20%;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    text-align: center;
    background-color: #fff;
    background-size: 30%;
    background-position: 0 0;
    background-repeat: repeat;
}

.getItemMsg-box::after{
    content: '';
    position: absolute;
    background-size: 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    width: 100%;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: -1;
}

.getItemMsg-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: #5f4131;
    margin: 5% 0;
}

.getItemMsg-box h3 {
    font-weight: 500;
    font-size: 18px;
    padding: 4% 0;
    background-color: #e2cf9a;
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.getItemMsg-box p {
    margin: 0;
    font-weight: 500;
    font-size: 15px;
}

.getItemMsg-box img {
    max-width: 75px;
    width: 100%;
    margin: 10px auto;
    /* border: 1px solid #e2cf9a; */
}

.getItemMsg-close{
    display: inline-block;
    padding: 3% 15%;
    background-color: #2b241e;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    transition: all .5s linear;
    margin: 0 0 4%;        
}

.getItemMsg-close:hover {
    background-color: #645444;
    /* border: 1px solid #e2cf9a; */
    color: #ffffff;
}

.pointName{
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.text__area{
    position: relative;
    top: 10px;
    color: #514335;
    font-weight: 500;
    line-height: 1.2;
    font-size: 14px;
    width: 100%;
}

@media only screen and (max-width: 768px){
    .text__area{
        font-size: 12px;
    }
}

@media only screen and (max-width: 425px){
    .text__area{
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
    }
    .getItemMsg-box{
        width: 300px;
    }
    .slots{
        width: 96vw;
        height: 96vw;
        transform: scale(1.0);
        margin: 60px -12px 140px;
    }
    .slots-main{
        width: calc(100vw - 24px);
        height: calc(100vw - 24px);
    }
}

@media only screen and (max-width: 280px){
    .slots{
        height: 139vw;
    }
    .slots-main{
        height: calc(140vw - 24px);
    }
    .slots-center .start-btn.is--disable{
        width: 100%;
        height: 100%;
    }
}

.slots-group .item:nth-child(15) .marry_look{
    cursor: pointer;
}