a{
  color: #ffeb3b;
  text-decoration: underline;
}
a:hover,a:active,a:focus{
  color: #FFFFFF;
  
}

body{
  background: #ef442e;
}

.game_area{
  position: relative;
  z-index: 0;
  background: url(../img/game/marry/8/bg.png) no-repeat;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
}

.deco_coins{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.deco_coin_unit{
  width: 37%;
  position: absolute;
}

.deco_coin_unit.coin_1{
  left: 0;
  top: 3%;
}

.deco_coin_unit.coin_2{
  right: -8%;
  top: 0;
}

.deco_coin_unit.coin_3{
  left: -4%;
  bottom: 10%;
}

.deco_coin_unit.coin_4{
  right: -9%;
  bottom: 0;
}

.game_container{
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.game_container:before{
  content: '';
  width: 100%;
  height: 100%;
  background: #621d1d;
  opacity: 0.6;
  position: absolute;
  z-index: -1;
  left: 10px;
  top: 10px;
  border-radius: 15px;
}

.game_container .bg{
  background: #EF1126;
  padding: 1rem;
  border-radius: 20px;
  border: 3px solid #FFD86C;
}

.game_container .banner{
  position: relative;
  z-index: 1;
}

.game_header{
  position: relative;
  z-index: 0;
  margin-top: 5px;
}

.game_header .deco-1{
  position: absolute;
  width: 70%;
  z-index: -1;
  left: 50%;
  top: -63%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
}

.game_header .deco-2{
  position: absolute;
  width: 18%;
  top: 4%;
  left: 2%;
  z-index: 1;
  animation: rotateAnimation 2s ease-in-out infinite;
}

.game_header .deco-3{
  position: absolute;
  width: 18%;
  top: 4%;
  right: 2%;
  z-index: 1;
  animation: rotateAnimation 2s ease-in-out infinite;
}

@keyframes rotateAnimation {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.game_name{
  width: 92%;
  margin: 0 auto;
}

.game_body{
  padding: 0.5rem 2.5rem;
}

.instruction{
  position: relative;
  z-index: 1;
  background: #FFB43A;
  color: #770000;
  font-size: 1.1rem;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  border: 4px solid #AA0000;
}

.member-id{
  position: relative;
  z-index: 1;
  background: #AA0000;
  color: #FFD784;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 20px 30px;
  border-radius: 25px;
  margin-top: 10px;
}
.member-id:after{
  content: '';
  position: absolute;
  z-index: -1;
  top: 6px;
  bottom: 6px;
  left: 10px;
  right: 10px;
  border-radius: 20px;
  background: #FF212D;
  border: 3px solid #FCB828;
}

.member-id .point{
  float: right;
  font-size: 1.1rem;
}

.lottery{
  position: relative;
  z-index: 1;
  background: #AA0000;
  padding: 15px;
  border-radius: 18px;
  margin-top: 10px;
}

.lottery .lottery-unit{
  width: 20%;
  padding: 4px;
}

.lottery .lottery-unit .item{
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  color: #EDA548;
  background: #CB001C;
  border: 3px solid #EDA548;
  border-radius: 20px;
  width: 100%;
  padding: 18px 10px;
  position: relative;
  line-height: 1.2rem;
}

.lottery .lottery-unit .item:before{
  content: '';
  width: 92%;
  height: 92%;
  border: 2px solid #EDA548;
  border-radius: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
}

.lottery .lottery-unit .item h4{
  font-weight: bold;
  margin: 0;
  font-size: 1.5rem;
}

.lottery .lottery-unit .item.active span {
  color: #970311;
}

.lottery .lottery-unit .item.active{
  background: #FCC751;
  color: #FF1717;
  border-color: #FFFFFF;
}

.lottery .lottery-unit .item.active:before{
  border-color: #FF1717;
}

.lottery .lottery-start img{
  width: 100%;
}

.lottery .lottery-start{
  position: relative;
  padding: 4px;
}

.lottery .lottery-start .start-btn{
  position: absolute;
  width: 64%;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  cursor: pointer;
}

.lottery .lottery-start .start-btn:after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgb(180 101 0 / 55%);
  opacity: 0.7;
  border-radius: 20px;
  left: 0;
  bottom: -20px;
  z-index: -1;
}

.lottery .lottery-start .start-btn:active{
  top: 50%;
}

.lottery .lottery-start .start-btn:active:after{
  bottom: -10px;
}


.game_info_btn{
  position: relative;
  z-index: 0;
  display: block;
  margin: 0.5rem 1.5rem;
}

.game_info_btn:after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: hsl(0deg 0% 0% / 40%);
  border-radius: 10px;
  left: 0;
  bottom: -15px;
  z-index: -1;
}

.game_info_btn:active{
  top: 5px;
}


.game_info_btn:active:after{
  bottom: -5px;
}

.odds_btn{
  float: right;
  padding: 1.2rem;
  font-size: 1.2rem;
}

.game_prize_carousel .prize_itme{
  padding: 8px; 
}


.game_prize_carousel .prize_itme a{
  position: relative;
  display: block;
  background: #FFF;
  border: 2px solid #ec9200;
  padding: 8px;
  border-radius: 10px;
  color: #000000;
  text-decoration: none;
  padding-top: 50px;
}

.game_prize_carousel h4{
  background: #EC9200;
  text-align: center;
  font-size: 1.7rem;
  font-weight: bold;
  color: #CD0002;
  padding: 5px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 8px 8px 0 0;
}

.game_prize_carousel .prize_itme a p{
  font-weight: bold;
  text-align: center;
  min-height: 44px;
}


.game_prize_carousel .prize_itme img{
  width: 70%;
  margin: 0 auto;
}

.game_prize_carousel .slick-dots li button::before {
    color: #ffeccd;
}


.modal.game_style .modal-dialog{
  max-width: 600px;
}

.modal.game_style .modal-content{
  background-color: #CB001C;
  border: 2px solid #FFB43A;
  color: #ffb43a;
}

.modal.game_style .btn-close {
    background: transparent url(../img/game/marry/8/close-btn.svg) center/1em auto no-repeat;
    opacity: 1;
}

.modal.game_style .modal-header{
  border-bottom: 0;
}


.modal.game_style .modal-body {
  overflow-y: auto;
  margin: 18px;
  color: #FFE9BF;
  border: 1px solid #ffb43a;
  text-align: justify;
}

.modal.game_style .main_btn_3{
  background: #FFB43A;
  color: #CB001C;
  font-weight: bold;
}

.winning_prize{
  background: #FFF;
  width: 100%;
  max-width: 180px;
  padding: 1rem;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid;
}

.prize_proportion_list{
  font-size: 1rem;
}

.prize_proportion_list .item{
  border-bottom: 1px solid;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.prize_proportion_list .item:last-child{
  border-bottom: none;
}

.prize_proportion_list .item .pic{
  border: 2px solid #ecc06d;
  border-radius: 10px;
  overflow: hidden;
  background: #FFF;
}

.prize_proportion_list .item .p_name{
  font-weight: bold;
  color: #FFE9BF;
}

.footer{
  background: #8a0808;
  color: #ec9200;
  padding: 1.5rem;
  font-size: 13px;
}


/*=====================RWD=======================*/
/*平板*/
@media screen and (max-width: 991px){
  body{
    background: #EFE0CB;
  }
  .deco_coins,
  .game_container:before,
  .game_area:before{
    display: none;
  }

  .game_container .bg{
    border:none;
  }

  .game_area{
    background: #ef1126;
  }

  .game_body{
    padding: 0.5rem;
  }

  .lottery .lottery-unit .item {
      padding: 22px 10px;
  }

  .odds_btn {
      margin-right: 6rem;
      margin-top: 1rem;
  }


}

/*手機*/
@media screen and (max-width: 480px){
  .game_container{
    overflow: hidden;
  }

  .instruction{
    font-size: 1rem;
  }

  .game_name {
    width: 100%;
    position: relative;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
  }

  .game_header .deco-2,.game_header .deco-3 {
    width: 22%;
    top: 0%;
  }

  .game_container .bg{
    padding: 8px;
  }

  .member-id span{
    display: block;
  }

  .member-id .point{
    float: none;
  }

  .game_body{
    padding: 0;
  }

  .lottery{
    padding: 4px;
    border-radius: 12px;
  }

  .game_info_btn{
    margin: 0.5rem;
  }

  .game_info_btn:after {
    border-radius: 5px;
    bottom: -12px;
  }

  .lottery .lottery-unit {
    padding: 2px;
  }

  .lottery .lottery-unit .item{
    font-size: 0.6rem;
    border-radius: 8px;
    padding: 11px 3px;
    line-height: 12px;
  }

  .lottery .lottery-unit .item:before {
    border-radius: 5px;
  }

  .lottery .lottery-unit .item h4{
    font-size: 0.7rem;
  }

  .lottery .lottery-start .start-btn{
    width: 70%;
  }

  .lottery .lottery-start .start-btn:after {
      border-radius: 10px;
      bottom: -15px;
  }

  .odds_btn {
      margin-right: 0;
      margin-top: 0.5rem;
  }

  .prize_proportion_list .item .pic{
    max-width: 80px;
    margin: 5px 0;
  }

  .modal.game_style .modal-body{
    font-size: 1rem;
  }

  .game_prize_carousel h4{
    font-size: 1.4rem;
  }

  .game_prize_carousel .prize_itme{
    padding: 0 4px;
  }

  .game_prize_carousel .prize_itme img{
    width: 75%;
    margin: 10px auto;
  }

  .game_prize_carousel .prize_itme p{
    font-size: 1rem;
  }

  .footer{
    padding: 1rem;
  }
}


/*小尺寸裝置*/
@media screen and (max-width: 375px){
  .lottery .lottery-unit .item{
    font-size: 0.5rem;
    padding: 6px 3px;
  }


}

/*手機橫式*/
@media only screen and (min-device-width : 375px) and (max-device-width : 812px) and (orientation : landscape){
  .lottery{
    padding: 10px;
  }

  .lottery .lottery-unit {
      padding: 4px;
  }

  .lottery .lottery-unit .item {
      font-size: 1rem;
      border-radius: 8px;
      padding: 22px 10px;
      line-height: 20px;
  }

  .lottery .lottery-unit .item:before {
      border: 2px solid #ecc06d;
      border-radius: 8px;
  }

  .lottery .lottery-unit .item h4 {
      font-size: 1.3rem;
  }

}