@charset "UTF-8";
@import url("/css/font-awesome-4.5.0/css/font-awesome.min.css");
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
@media screen and (orientation: portrait) {
  html,
  body {
    width: 100%;
    height: 100%;
    background-color: #4e0000;
  }
  .wrapper {
    width: 100vmax;
    height: 100%;
    -webkit-transform-origin: top left;
            transform-origin: top left;
    -webkit-transform: rotate(90deg) translate(0, -100vmin);
            transform: rotate(90deg) translate(0, -100vmin);
  }
}

@media screen and (orientation: landscape) {
  html,
  body {
    width: 100%;
    height: 100%;
  }
  .wrapper {
    width: 100%;
    height: 100%;
  }
}

html,
body {
  line-height: 28px;
  font-size: 24px;
  -webkit-text-size-adjust: none;
  /*iPhone旋轉後 文字不要放大*/
}

@media only screen and (max-width: 812px) {
  html,
  body {
    line-height: 21px;
    font-size: 16px;
  }
}

.wrapper {
  color: #000;
  min-height: 100%;
  overflow: hidden;
  background-position: top center;
  background-size: 100%;
  background-repeat: no-repeat;
  background-color: #4e0000;
}

@media only screen and (max-width: 812px) {
  .wrapper {
    background-size: 150%;
  }
}

.methodBtn {
  position: absolute;
  top: 0.5em;
  left: 0.3em;
  width: 2em;
  height: 2em;
}

.methodBtn a {
  display: block;
  width: 100%;
  padding-bottom: 100%;
  background-image: url(../../images/lottoDrawBtn.png);
  background-position-y: 100%;
  background-size: 100%;
  cursor: default;
}

.methodBtn.active a {
  background-position-y: 0;
  cursor: pointer;
}

.winnerListBtn {
  position: absolute;
  top: 3em;
  left: 0.3em;
  width: 2em;
  height: 2em;
}

.winnerListBtn a {
  display: block;
  width: 100%;
  padding-bottom: 100%;
  background-image: url(../../images/winnerListBtn.png);
  background-position-y: 100%;
  background-size: 100%;
  cursor: default;
}

.winnerListBtn.active a {
  background-position-y: 0;
  cursor: pointer;
}

.main {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  max-height: 750px;
  margin: 0 auto;
}

.main--totalBonus {
  position: relative;
  width: 100%;
  padding-bottom: 17.5%;
  background-image: url("../../images/lottoTotal.png");
  background-size: 100%;
  background-repeat: no-repeat;
}

.main--totalBonus .totalBonus {
  position: absolute;
  top: 64.5%;
  left: 29.5%;
  width: 55%;
  height: 32%;
  z-index: 1;
  overflow: hidden;
}

.main--totalBonus .totalBonus .digital {
  float: left;
  height: 10000%;
  width: 7%;
  background-image: url("../../images/digital.png");
  background-size: 100% 10%;
  background-repeat: repeat-y;
  background-position: center 0%;
}

.main--totalBonus .totalBonus .digital.currency {
  width: 14%;
  background-image: url("../../images/currency.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top center;
}

.main--totalBonus .totalBonus .digital.comma {
  width: 3.5%;
  background-image: url("../../images/comma.png");
  background-size: 200%;
  background-repeat: no-repeat;
  background-position: top center;
}

.main--totalBonus .totalBonus .digital.no0 {
  margin-top: -499%;
}

.main--totalBonus .totalBonus .digital.no1 {
  margin-top: -488.8%;
}

.main--totalBonus .totalBonus .digital.no2 {
  margin-top: -478.6%;
}

.main--totalBonus .totalBonus .digital.no3 {
  margin-top: -468.4%;
}

.main--totalBonus .totalBonus .digital.no4 {
  margin-top: -458.2%;
}

.main--totalBonus .totalBonus .digital.no5 {
  margin-top: -448.0%;
}

.main--totalBonus .totalBonus .digital.no6 {
  margin-top: -437.8%;
}

.main--totalBonus .totalBonus .digital.no7 {
  margin-top: -427.6%;
}

.main--totalBonus .totalBonus .digital.no8 {
  margin-top: -417.4%;
}

.main--totalBonus .totalBonus .digital.no9 {
  margin-top: -407.2%;
}

.main--lotteryInfo {
  position: relative;
  width: 100%;
  padding-bottom: 8%;
  background-image: url("../../images/lotteryInfoBg.jpg");
  background-size: 100%;
  background-repeat: no-repeat;
}

.main--lotteryInfo .drawDate {
  position: absolute;
  left: 1%;
  width: 20%;
  height: 100%;
  padding: 0.5%;
}

.main--lotteryInfo .drawDate .date {
  color: #ffef69;
  padding: 2px;
  text-align: center;
}

.main--lotteryInfo .drawDate .resultsBtn {
  width: 70%;
  margin: 0 auto;
}

.main--lotteryInfo .drawDate .resultsBtn a {
  display: block;
  width: 100%;
  padding-bottom: 40%;
  cursor: default;
  background-image: url(../../images/resultsBtn.png);
  background-size: 100%;
  background-repeat: no-repeat;
}

.main--lotteryInfo .drawDate .resultsBtn.active a {
  background-position-y: 0;
  cursor: pointer;
}

.main--lotteryInfo .gray {
  -webkit-filter: grayscale(1);
}

.main--lotteryInfo .lottoBalls {
  position: absolute;
  left: 50%;
  width: 45%;
  height: 100%;
  margin-left: -22.5%;
}

.main--lotteryInfo .lottoBalls .lottoNo {
  float: left;
  margin-top: 1.5%;
  margin-right: 1.5%;
  width: 15.11%;
  height: 85%;
  border-radius: 50%;
  -webkit-box-shadow: 3px 3px 9px #000;
          box-shadow: 3px 3px 9px #000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 175%;
  color: #fff;
  background-image: url("../../images/Boll0.png");
  background-size: 100%;
  background-repeat: no-repeat;
}

.main--lotteryInfo .speciaBall {
  position: absolute;
  right: 0;
  width: 25%;
  height: 100%;
}

.main--lotteryInfo .speciaBall .speciaNo {
  width: 40%;
  height: 100%;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  float: left;
  font-weight: 800;
  color: #ffef69;
  font-size: 110%;
}

.main--lotteryInfo .speciaBall .lottoNo {
  float: left;
  margin-top: 2.5%;
  margin-right: 1.5%;
  width: 27.199%;
  height: 85%;
  border-radius: 50%;
  -webkit-box-shadow: 3px 3px 9px #000;
          box-shadow: 3px 3px 9px #000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 175%;
  color: #fff;
  background-image: url("../../images/Boll1.png");
  background-size: 100%;
  background-repeat: no-repeat;
}

.main--selectDate {
  position: relative;
  width: 100%;
  padding-bottom: 5.8%;
  background-color: #4d4d27;
  background-image: url("../../images/selectDateBg.jpg");
  background-size: 100%;
  background-repeat: no-repeat;
}

.main--selectDate .oneGetBtn {
  position: absolute;
  display: block;
  top: 48%;
  right: 2%;
  width: 16.5%;
  height: 88%;
  margin-top: -2.5%;
  background-image: url("../../images/oneGetBtn.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  cursor: default;
}

.main--selectDate .oneGetBtn.receive {
  background-position: center top;
  cursor: pointer;
}

.main--selectDate .selectDate {
  position: absolute;
  top: 50%;
  left: 0.5%;
  width: 63%;
  height: 100%;
  margin-top: -2.5%;
}

.main--selectDate .selectDate .select {
  position: relative;
  width: 100%;
  height: 90%;
  border: 3px solid #c1ad6f;
  background: #fff;
  border-radius: 8px;
  padding: 5px;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.main--selectDate .selectDate .select::after {
  content: '\f107';
  font-family: fontAwesome;
  position: absolute;
  top: 50%;
  right: 3px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.main--selectDate .selectDate .option {
  position: absolute;
  right: 0;
  top: 92%;
  width: 100%;
  max-height: 5em;
  cursor: pointer;
  z-index: 1;
  background: #fff;
  list-style: none;
  padding: 5px;
  border: 1px solid #000;
  opacity: 0;
  display: none;
  overflow-y: scroll;
}

.main--selectDate .selectDate .option.show {
  opacity: 1;
  display: block;
}

.main--selectDate .selectDate select {
  width: 100%;
  border: 3px solid #fadc82;
  border-radius: 5px;
  -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
          box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  padding: 5px;
}

.main--data {
  position: relative;
  width: 100%;
  height: 49.9%;
  background-color: #ffffcd;
}

.main--data .getlottoBalls {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  padding-bottom: 10%;
}

.main--data .getlottoBalls .rows {
  width: 100%;
  height: 3.3em;
  padding: 5px;
}

.main--data .getlottoBalls .rows .balls {
  position: relative;
  float: left;
  display: block;
  width: 49.5%;
  height: 100%;
  padding-left: 1%;
  margin-right: 0.5%;
}

.main--data .getlottoBalls .rows .balls .lottoNo {
  float: left;
  margin-top: 1%;
  margin-right: 1.5%;
  width: 11.1%;
  height: 85%;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 120%;
  color: #fff;
  background-image: url("../../images/orangeBoll.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.main--data .getlottoBalls .rows .balls .lottoNoGet {
  background-image: url("../../images/redBoll.png");
}

.main--data .getlottoBalls .rows .balls .get0 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid #ee2122;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding-right: 4%;
  text-indent: -9999px;
  background-image: url("../../images/imgWinning.png");
  background-size: 3.8em;
  background-repeat: no-repeat;
  background-position: right  -4px;
}

.main--data .getlottoBalls .rows .balls .get1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid #a50094;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding-right: 4%;
  text-indent: -9999px;
  background-image: url("../../images/imgJackpot.png");
  background-size: 3.8em;
  background-repeat: no-repeat;
  background-position: right  -4px;
}

.main--data .getlottoBalls .rows:nth-child(odd) {
  background-color: #fff2a7;
}

.popup {
  width: 100%;
  height: 100vmin;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  z-index: 1000;
}

.popup.action {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.popup .results {
  width: 80%;
  height: 80%;
  padding: 20px 15px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  position: relative;
  z-index: 1001;
  display: none;
}

.popup .results.action {
  display: block;
}

.popup .results .container {
  overflow: auto;
  height: 100%;
}

.popup .winnerList {
  width: 80%;
  height: 80%;
  padding: 20px 15px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  position: relative;
  z-index: 1001;
  display: none;
}

.popup .winnerList.action {
  display: block;
}

.popup .winnerList .container {
  overflow: auto;
  height: 100%;
}

.popup .method {
  width: 80%;
  height: 80%;
  padding: 20px 15px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  position: relative;
  z-index: 1001;
  display: none;
}

.popup .method.action {
  display: block;
}

.popup .method .container {
  overflow: auto;
  height: 100%;
}

.popup .method h4 {
  position: relative;
  display: block;
  color: #930944;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.35em;
  margin: 12px 0 0 0;
  padding: 5px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.popup .method h4:before {
  content: '';
  width: 1.9em;
  height: 1.9em;
  display: inline-block;
  margin: -3px 3px;
  background-image: url("../../images/icon.svg");
  background-size: 100%;
  background-repeat: no-repeat;
}

.popup .method p {
  margin-left: 2em;
}

.popup .method p a {
  color: #6f00ff;
  text-decoration: underline;
}

.popup .method p a:hover {
  color: #f835ff;
}

.popup .method p.txt-center {
  margin-left: 0;
}

.popup .method ol, .popup .method ul {
  margin-left: 2em;
}

.popup .method ol li > a, .popup .method ul li > a {
  color: #0084ce;
  text-decoration: underline;
}

.popup .method ol li > a:hover, .popup .method ul li > a:hover {
  color: #e100ff;
}

.popup .method ol.list, .popup .method ul.list {
  list-style-type: none;
  text-align: left;
  margin-bottom: 0.8em;
}

.popup .method ol.list li, .popup .method ul.list li {
  margin-left: 1em;
  text-indent: -1em;
}

.popup .method ol.arrow li::before, .popup .method ul.arrow li::before {
  content: '※ ';
  margin-left: 2px;
}

.popup .method ol.asterisk > li:before, .popup .method ul.asterisk > li:before {
  content: '● ';
}

.popup .method ol.asterisk > li table, .popup .method ul.asterisk > li table {
  margin-left: 0;
  text-indent: 0;
}

.popup .closeBtn {
  width: 50px;
  height: 50px;
  position: absolute;
  background: #930944;
  border-radius: 25px;
  text-align: center;
  top: -20px;
  right: -20px;
}

.popup .closeBtn::before {
  content: '\f00d ';
  font-family: fontAwesome;
  font-size: 30px;
  line-height: 50px;
  color: #fff;
}

/*================= table ================= */
.table tr th, .table tr td {
  border: 1px solid #ffafbf;
}

.table {
  font-family: "Helvetica Neue","微軟正黑體","Helvetica","Arial","PingFangTC-Light","STHeitiTC-Light","Microsoft JhengHei",sans-serif;
  font-size: 1em;
  border-collapse: initial;
  border-radius: 5px;
  color: #202c0d;
  border: 5px solid #930944;
  table-layout: fixed;
}

.table tr {
  background: #fff;
}

.table tr th {
  color: #fff;
  background: #930944;
}

.table tr th.thStyle02 {
  color: #752b00;
  background: #ffec80;
}

.table tr td p {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.table tr td img {
  display: block;
  margin: 0 auto;
}

.table tr td img.img-inline {
  width: 4em;
  display: inline;
  margin: 0;
}

.rotate0 {
  -webkit-animation-name: Rotate0;
          animation-name: Rotate0;
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
}

@-webkit-keyframes Rotate0 {
  from {
    -webkit-transform: translateY(-5%);
            transform: translateY(-5%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate0 {
  from {
    -webkit-transform: translateY(-5%);
            transform: translateY(-5%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate1 {
  -webkit-animation-name: Rotate1;
          animation-name: Rotate1;
  -webkit-animation-duration: 2.2s;
          animation-duration: 2.2s;
}

@-webkit-keyframes Rotate1 {
  from {
    -webkit-transform: translateY(-8%);
            transform: translateY(-8%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate1 {
  from {
    -webkit-transform: translateY(-8%);
            transform: translateY(-8%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate2 {
  -webkit-animation-name: Rotate2;
          animation-name: Rotate2;
  -webkit-animation-duration: 2.4s;
          animation-duration: 2.4s;
}

@-webkit-keyframes Rotate2 {
  from {
    -webkit-transform: translateY(-11%);
            transform: translateY(-11%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate2 {
  from {
    -webkit-transform: translateY(-11%);
            transform: translateY(-11%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate3 {
  -webkit-animation-name: Rotate3;
          animation-name: Rotate3;
  -webkit-animation-duration: 2.6s;
          animation-duration: 2.6s;
}

@-webkit-keyframes Rotate3 {
  from {
    -webkit-transform: translateY(-14%);
            transform: translateY(-14%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate3 {
  from {
    -webkit-transform: translateY(-14%);
            transform: translateY(-14%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate4 {
  -webkit-animation-name: Rotate4;
          animation-name: Rotate4;
  -webkit-animation-duration: 2.8s;
          animation-duration: 2.8s;
}

@-webkit-keyframes Rotate4 {
  from {
    -webkit-transform: translateY(-17%);
            transform: translateY(-17%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate4 {
  from {
    -webkit-transform: translateY(-17%);
            transform: translateY(-17%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate5 {
  -webkit-animation-name: Rotate5;
          animation-name: Rotate5;
  -webkit-animation-duration: 3.5s;
          animation-duration: 3.5s;
}

@-webkit-keyframes Rotate5 {
  from {
    -webkit-transform: translateY(-35%);
            transform: translateY(-35%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate5 {
  from {
    -webkit-transform: translateY(-35%);
            transform: translateY(-35%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate6 {
  -webkit-animation-name: Rotate6;
          animation-name: Rotate6;
  -webkit-animation-duration: 4s;
          animation-duration: 4s;
}

@-webkit-keyframes Rotate6 {
  from {
    -webkit-transform: translateY(-40%);
            transform: translateY(-40%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate6 {
  from {
    -webkit-transform: translateY(-40%);
            transform: translateY(-40%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate7 {
  -webkit-animation-name: Rotate7;
          animation-name: Rotate7;
  -webkit-animation-duration: 4.5s;
          animation-duration: 4.5s;
}

@-webkit-keyframes Rotate7 {
  from {
    -webkit-transform: translateY(-45%);
            transform: translateY(-45%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate7 {
  from {
    -webkit-transform: translateY(-45%);
            transform: translateY(-45%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

.rotate8 {
  -webkit-animation-name: Rotate8;
          animation-name: Rotate8;
  -webkit-animation-duration: 5s;
          animation-duration: 5s;
}

@-webkit-keyframes Rotate8 {
  from {
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}

@keyframes Rotate8 {
  from {
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
  to {
    -webkit-transform: translateY(0%);
            transform: translateY(0%);
  }
}
