@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');

a {
  display: block;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
main {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #000;
  background: url('../images/bg.png'), #ffedf0;
  background-position: top center;
  background-repeat: no-repeat;
  padding-bottom: 100px;
}
.inline{
  display: inline-block;
}
.logo {
  padding: 15px 0 0 15px;
}
.logo img {
  width: 180px;
  height: auto;
}
.gacha {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  position: relative;
}
.gacha-stage {
  position: relative;
}
.gacha-stage>div {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.gacha-ball {
  width: 100%;
  height: 100%;
}
.gacha-ball img:first-child {
  animation: ballAni-1 .8s infinite alternate;
}
@keyframes ballAni-1 {
  0% {opacity: 1;}
  50% {opacity: 1;}
  50.1% {opacity: 0;}
  100% {opacity: 0;}
}
.gacha-ball img:last-child {
  position: absolute;
  top: 0;
  left: 0;
  animation: ballAni-2 .8s infinite alternate;
}
@keyframes ballAni-2 {
  0% {opacity: 0;}
  49.9% {opacity: 0; }
  50% {opacity: 1;}
  100% {opacity: 1;}
}
.coin {
  font-size: 20px;
  color: #fff;
  top: 208px!important;
  left: 50%!important;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.coin i {
  display: block;
  width: 18px;
  height: 20px;
  background: url('../images/gacha-coin.png') no-repeat;
  margin-right: 5px;
}
.history a, .info a, .start a {
  cursor: pointer;
}
.history {
  top: 200px!important;
  left: 520px!important;
  transform: translateX(0);
  animation: historyAni 2s infinite alternate;
}
@keyframes historyAni {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(10px);
  }
}
.info {
  top: 300px!important;
  left: 50%!important;
  transform: translateX(-50%);
  transition: all .3s;
}
.info:hover {
  transform: translateX(-50%) scale(1.05);
}
.start {
  top: 560px!important;
  left: 460px!important;
}
.start a {
  position: relative;
}
.start a>img {
  position: absolute;
  z-index: 1;
}
.start a div img {
  transition: all .3s;
  transform: rotate(-45deg);
}
.start a:active div img,
.start a:hover div img {
  transform: rotate(0deg);
}
.btn-notice {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.btn-notice a {
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to bottom,  #15da6d 0%,#11b058 100%);
  border-radius: 50rem;
  padding: 8px 40px;
}
.notice {
  border: 4px solid #11b058;
  border-radius: 30px;
  background-color: #fff;
  padding: 50px;
  margin-top: 30px;
}
.notice a {
  display: inline;
  text-indent: 0;
}
.notice li:not(:last-child) {
  margin-bottom: 10px;
}
.notice li span {
  color: #11b058;
}
.notice > ol > li > ul {
  list-style-type: disc;
}
.notice ol.list-number {
  list-style: none;
  counter-reset: my-counter;
}
.notice ol.list-number > li {
  counter-increment: my-counter;
  text-indent: -30px;
}
.notice ol.list-number > li:before {
  content: "("counter(my-counter) ")";
  margin-right: 5px;
}
.notice ol.list-number > li ul li {
  text-indent: 0;
  margin-bottom: 5px;
}

/*modal style*/
.modal-title {
  font-size: 24px;
  font-weight: 700;
}
.modal-body {
  font-size: 18px;
}
.modal-body p {
  font-size: 16px;
  margin-top: 5px;
}
.modal-body p span {
  color: #d60a22;
}
.modal-body ul {
  font-size: 16px;
  list-style: none;
  padding-left: 0;
}
.modal-body > ul > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.modal-body > ul > li:not(:last-child) {
  border-bottom: 2px dotted #ddd;
}
.modal-body > ul > li li:nth-child(1):before {
  content: "獎項名稱：";
}
.modal-body > ul > li li:nth-child(2):before {
  content: "序　　號：";
}
.modal-body > ul > li li:nth-child(3):before {
  content: "抽獎日期：";
}
.modal-body > ul div {
  text-align: center;
  min-width: 140px;
  padding: 10px;
}
.modal-body > ul div a {
  display: inline-block;
  color: #fff;
  background-color: #6dc138;
  border-radius: 5px;
  padding: 5px 30px;
 }
.code-box {
  width: 100%;
  border: 1px solid #5eb720;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  margin-top: 20px;
}
.point-code {
  padding: 0 15px;
}
.btn-copy {
  color: #fff;
  background-color: #5eb720;
  border-radius: 0;
}
.btn-copy:hover {
  color: #fff;
  background-color: #5eb720e6;
}
.modal-footer {
  justify-content: center;
}
.modal-footer .btn {
  font-size: 18px;
  color: #fff;
  background-color: #5eb720;
  padding-right: 20px;
  padding-left: 20px;
}
.modal-footer .btn:hover {
  background-color: #5eb720e6;
}
.modal-footer .btn.btn-ok {
  background-color: #095130;
}
.modal-footer .btn.btn-ok:hover {
  background-color: #095130e6;
}

@media screen and (max-width: 900px) {
  .coin {
    top: 27.1%!important;
  }
  .history {
    top: 26%!important;
    left: 62%!important;
  }
  .info {
    top: 36%!important;
  }
  .start {
    top: 72.5%!important;
    left: 55%!important;
  }
  .notice {
    border-radius: 20px;
    padding: 30px;
  }
}
@media screen and (max-width: 767px) {
  .gacha {
    margin-top: 30px;
  }
  .coin {
    font-size: 18px;
  }
  .start {
    top: 71% !important;
    left: 53% !important;
  }
  .history img, .info img, .start div, .start img {
    transform: scale(0.8);
    transform-origin: center center;
  }
}
@media (max-width:576px) {
  main {
    overflow: hidden;
  }
  .logo {
    padding: 10px 0 0 10px;
  }
  .gacha {
    width: 160%;
    margin-left: -30%;
  }
  .coin {
    top: 26.5% !important;
  }
  .history {
    top: 26% !important;
    left: 58% !important;
  }
  .history img, .info img, .start div, .start img {
    transform: scale(0.75);
  }
  .btn-notic a {
    font-size: 24px;
  }
  .notice {
    padding: 20px;
  }
}
@media (max-width:575px) {
  main {
    background-size: 400%;
    padding-bottom: 60px;
  }
  .start {
    top: 73% !important;
  }
  .modal-body > ul > li {
    align-items: flex-start;
    flex-direction: column;
  }
  .modal-body > ul div {
    text-align: left;
    padding-left: 0;
  }
  .notice {
    font-size: 16px;
  }
  .notice a {
    word-break: break-all;
  }
}
@media (max-width:400px) {
  .start {
    top: 70% !important;
  }
}