a{
  color: #ECC06D;
  text-decoration: underline;
}
a:hover,a:active,a:focus{
  color: #F3E7C0;
  
}

.game_area{
  position: relative;
  z-index: 0;
  background-image: url(../img/game/marry/1/bg.png);
  background-size: inherit;
  background-position: center;
}

.game_area:before{
  content: '';
  width: 100%;
  height: 40%;
  background: #58977A;
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  border-top: 6px solid #A7A4A4;
}


.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: #0C3A27;
  opacity: 0.8;
  position: absolute;
  z-index: -1;
  left: 10px;
  top: 10px;
  border-radius: 15px;
}

.game_container .bg{
  background: #256E5B;
  padding: 1rem;
  border-radius: 20px;
}

.game_container .banner{
  position: relative;
  z-index: 1;
}

.game_header{
  position: relative;
  z-index: 0;
  margin-top: 30px;
}

.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: -10%;
  left: 2%;
  z-index: 1;
  animation: rotateAnimation 2s ease-in-out infinite;
}

.game_header .deco-3{
  position: absolute;
  width: 18%;
  top: -10%;
  right: 2%;
  z-index: 1;
  animation: rotateAnimation 2s ease-in-out infinite;
}

@keyframes rotateAnimation {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.game_name{

}

.game_body{
  padding: 0.5rem 2.5rem;
}

.instruction{
  position: relative;
  z-index: 1;
  background: #F3E7C0;
  color: #256e5b;
  font-size: 1.1rem;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  border: 4px solid #ECC06D;
}

.member-id{
  position: relative;
  z-index: 1;
  background: #CC333E;
  color: #FFF0C5;
  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: #4E9374;
  border: 4px solid #ecc06d;
}

.member-id .point{
  float: right;
  font-size: 1.1rem;
}

.lottery{
  position: relative;
  z-index: 1;
  background: #184237;
  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: #256E5B;
  background: #6CA283;
  border: 3px solid #ecc06d;
  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 #ecc06d;
  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{
  background: #1B5A42;
  color: #F2EDCF;
}

.lottery .lottery-unit .item.active:before{
  border-color: #CC333E;
}

.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: #0C3A27;
  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: #0C3A27;
  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;
}

.game_prize_carousel .prize_itme{
  padding: 8px; 
}


.game_prize_carousel .prize_itme a{
  position: relative;
  display: block;
  background: #FFF;
  border: 2px solid #ECC06D;
  padding: 8px;
  border-radius: 10px;
  color: #256e5b;
  text-decoration: none;
  padding-top: 50px;
}

.game_prize_carousel h4{
  background: #ecc06d;
  text-align: center;
  font-size: 1.7rem;
  font-weight: bold;
  color: #256e5b;
  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: #ffffff;
}


.modal.game_style .modal-dialog{
  max-width: 600px;
}

.modal.game_style .modal-content{
  background-color: #256E5B;
  border: 2px solid #ECC06D;
  color: #ECC06D;
}

.modal.game_style .btn-close {
    background: transparent url(../img/game/marry/1/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: #F3E7C0;
    border: 1px solid #ECC06D;
    text-align: justify;
}

.modal.game_style .main_btn_3{
  background: #ecc06d;
  color: #256e5b;
  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: #ecc06d;
}


/*=====================RWD=======================*/
/*平板*/
@media screen and (max-width: 991px){
  .deco_coins,
  .game_container:before,
  .game_area:before{
    display: none;
  }

  .game_area{
    background: #256E5B;
  }

  .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: 130%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
  }

  .game_header .deco-2,.game_header .deco-3 {
    width: 22%;
    top: -19%;
  }

  .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: 2px solid #ecc06d;
    border-radius: 8px;
    padding: 11px 3px;
    line-height: 12px;
  }

  .lottery .lottery-unit .item:before {
    border: 1px solid #ecc06d;
    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;
  }
}


/*小尺寸裝置*/
@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;
  }

}