@charset "UTF-8";

.wrapper {
  position: fixed;
  width: 640px;
  height: 100%;
  background-color: #fff;
  overflow: hidden;
}

.storePage {
  .game {
    &__container {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      z-index: 100;
    }

    &__fixed {
      position: absolute;
      width: 750px;
      height: 1138px;

      left: 50%;
      margin-left: -375px;

      top: 50%;
      margin-top: -569px;
    }

    &__content {
      position: absolute;
      width: 750px;
      height: 1138px;
      left: 0;
      top: 0;
    }

    &__myScore {
      position: absolute;
      right: 159px;
      top: 2px;
      font-family: 'Abril Fatface';
      // z-index: 200;
      font-size: 70px;
      /* background: #ccc; */
      width: 140px;
      height: 100px;
      color: #fff;
      text-align: center;
    }

    &__store {
      position: absolute;
      left: 118px;
      top: 498px;
      z-index: 200;
      width: 515px;
      height: 544px;
      text-align: center;
      overflow-y: auto;
      overflow-x: hidden;
      // display: none;
    }
  }

  .coupon__item {
    position: relative;
    width: 515px;
    height: 194px;

    background-image: url("../images/coupon-frame.png");

    &__lp {
      position: absolute;
      font-family: 'Abril Fatface';
      font-size: 100px;
      width: 76px;
      height: 145px;
      color: #fff;
      left: 110px;
      top: 16px;
      text-shadow: #3d3d3d -2px 2px 4px;
    }

    &__gp {
      position: absolute;
      font-family: 'Abril Fatface';
      font-size: 56px;
      width: 120px;
      height: 145px;
      color: #fff;
      left: 311px;
      top: 27px;
      text-shadow: #3d3d3d -2px 2px 4px;
    }

    &.coupon__item__video {
      background-image: url("../images/coupon-frame-green.png");
    }

    &.coupon__item__1p {
      background-image: url("../images/coupon-1p.png");
    }

    &.coupon__item__3p {
      background-image: url("../images/coupon-3p.png");
    }

    &.coupon__item__5p {
      background-image: url("../images/coupon-5p.png");
    }

    &.coupon__item__10p {
      background-image: url("../images/coupon-10p.png");
    }

    &.coupon__item__sellout {
      background-image: url("../images/coupon-1p.png");
    }

    .coupon__item__btn {
      position: absolute;
      width: 295px;
      height: 90px;
      top: 93px;
      right: 11px;
      background-image: url("../images/coupon-btn-sell.png");
    }

    .coupon__item__btn.used {
      background-image: url("../images/coupon-btn-used.png");
    }

    .coupon__item__btn.lock {
      background-image: url("../images/coupon-btn-lock.png");
    }

    &.coupon__item__10p .coupon__item__btn.lock {
      background-image: url("../images/coupon-btn-lock-g.png");
    }

    &.sellout {
      .coupon__item__overlayer {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url("../images/sellout.png");
      }
    }

    &:active {
      transform: scale(1.05);
    }
  }

  .game__popout {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    left: 0;
    top: 0;

    &__container {
      position: absolute;
      width: 435px;
      height: 370px;
      left: 50%;
      top: 50%;
      margin-left: -217px;
      margin-top: -200px;
      background-image: url("../images/pop-bg.png");
    }

    &__content {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;

      .content {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        display: none;

        &__wait {
          background-image: url("../images/pop-content-wait.png");
        }

        &__wait__text {
          position: absolute;
          left: 221px;
          top: 152px;
          font-family: 'Abril Fatface';
          font-size: 42px;
          color: #fff;
          // text-shadow: 0.342px 0.94px 8px rgb(0 0 0 / 35%);
          text-shadow: .342px .94px 8px rgba(0, 0, 0, 0.5);
        }

        /**************************************/

        &__result__text {
          position: absolute;
          left: 25px;
          top: 20px;
          font-family: '微軟正黑體';
          font-size: 34px;
          color: #fff;
          width: 351px;
          height: 292px;
          overflow: hidden;
          padding: 16px;

          /* Center slide text vertically */
          display: -webkit-box;
          display: -ms-flexbox;
          display: -webkit-flex;
          display: flex;
          -webkit-box-pack: center;
          -ms-flex-pack: center;
          -webkit-justify-content: center;
          justify-content: center;
          -webkit-box-align: center;
          -ms-flex-align: center;
          -webkit-align-items: center;
          align-items: center;
          text-align: center;
          text-shadow: .342px .94px 8px rgba(0, 0, 0, 0.5);
          font-weight: bold;

          p{
            padding: 10px;
          }
          
        }

        /**************************************/

        &__1p {
          background-image: url("../images/pop-content-1p.png");
        }

        &__3p {
          background-image: url("../images/pop-content-3p.png");
        }

        &__5p {
          background-image: url("../images/pop-content-5p.png");
        }

        &__10p {
          background-image: url("../images/pop-content-10p.png");
        }

        &__no {
          background-image: url("../images/pop-content-no.png");
        }

        &__lp {
          background-image: url("../images/pop-content-lp.png");

          .lp {
            position: absolute;
            font-family: 'Abril Fatface';
            font-size: 100px;
            width: 76px;
            height: 145px;
            color: #fff;
            left: 210px;
            top: 108px;
            text-shadow: #3d3d3d -2px 2px 4px;
            text-align: right;
          }
        }
      }
    }

    &__submit {
      position: absolute;
      width: 307px;
      height: 112px;
      left: 50%;
      margin-left: -153px;
      bottom: 0;
      background-image: url("../images/pop-submit.png");

      &__text {
        position: absolute;
        left: 108px;
        top: 22px;
        font-family: 'Abril Fatface';
        font-size: 42px;
        color: #fff;
        width: 100px;
        text-align: center;
        text-shadow: .342px .94px 8px rgba(0, 0, 0, 0.5);
      }
    }

    &__close {
      position: absolute;
      width: 80px;
      height: 81px;
      background-image: url("../images/btn-close.png");
      top: -4px;
      right: -6px;

      &:active {
        transform: scale(1.05);
      }
    }
  }

  .effect__container {
    position: absolute;
    width: 254px;
    height: 58px;
    left: 27px;
    top: 27px;
    overflow: hidden;
  }

  .Scan {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 800px;
    height: 200px;

    mix-blend-mode: screen;

    /* linear-gradient() make a light */
    background-image: linear-gradient( to bottom, rgba(255, 255, 255, 0),rgba(255, 255, 255, 0),rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.55),rgba(255, 255, 255, 0) );

    /* rotate light */
    transform-origin: center center;
    transform: translate(-100%, 50%) rotate(-60deg);

    /* keyframes animation */
    animation: ScanLights 2s cubic-bezier(0.25,0.1,0.25,1) 0s infinite;
  }
  @keyframes ScanLights {
    0% {
      transform: translate(-70%, 50%) rotate(-60deg);
    }

    100% {
      transform: translate(-20%, 50%) rotate(-60deg);
    }
  }

  /************************************************/

  .video__popout {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;

    .video__content {
      position: absolute;
      width: 640px;
      height: 360px;
      left: 50%;
      top: 50%;
      margin-left: -320px;
      margin-top: -180px;
    }

    .video__close {
      position: absolute;
      width: 80px;
      height: 81px;
      background-image: url("../images/btn-close.png");
      top: 50%;
      right: 0;
      margin-top: -181px;
    }
  }

  /****************************/

  .main__pop__overlayer {
    position: absolute;
    width: 100%;
    height: 100%;
    // z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
  }

  .page__overlayer {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #fff;
    z-index: 9999;
  }

}
