/* 當你想為某一個區塊或方塊，增加背景，請在該區塊/方塊上增加class名稱
例如：

在HTML裡：
<div class="abc">我要增加背景</div> 

在css裡：
.abc{
    background-image: url(../images/body_bg.webp);  <------圖檔位置
    background-position: center; <-----圖片在區塊/方塊裡的定位
    background-size: cover;  <-----圖片在區塊/方塊裡的大小
}

 */

/* 補充 
    學習資料
    https://ithelp.ithome.com.tw/articles/10223887
    https://ithelp.ithome.com.tw/articles/10224214
*/

/* === 全站背景 === */
body {
  /* background-color: #67ccfc; */
  background-position: center;
  background-size: 2400px;
}

/* === 固定背景圖 === */
.bgFixed {
  z-index: -1;
  position: fixed;
  background: url("../images/mainbg.png") no-repeat center top / 2200px auto;
  height: 100vh;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .bgFixed {
    background: url("../images/mainbg-mb.png") no-repeat center top / cover;
  }
}

/* === 主區塊背景 === */
main {
  /* background: url(../images/mainbg.png) repeat-y top center / 2400px; */
  /* background: #67CCFC; */
  overflow: hidden;
  position: relative;
}

@media (max-width: 767px) {
  main {
    /* background: url(../images/mainbg-mb.png) repeat-y top center / 2400px; */
    overflow: hidden;
    position: relative;
  }
}

/* === 首圖區 === */
#kvTopBN {
  position: relative;
  background: url("../images/kvbg.png") no-repeat center top / 2400px 100%;
}

@media (max-width: 767px) {
  #kvTopBN {
    background: url("../images/kvbg-mb.png") no-repeat center top / 100% 100%;
  }
}

/* === KV 導覽點 === */
#kvTopBN2 .swiper-pagination {
  bottom: 25px;
}
@media (max-width: 991px) {
  #kvTopBN2 .swiper-pagination {
    bottom: 4%;
  }
}

/* === Swiper 分頁點樣式 === */
.swiper-pagination-bullet {
  background: #ffe100a9;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #ffe000;
}

/* === 發光文字效果 === */
.shineWord {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: transparent;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.5);
  mask-size: 500% 400%;
  mask-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transition: mask-position 3s;
  transform: translate3d(0, 0, 0);
  animation: move 2s linear infinite;
}

@keyframes move {
  from {
    mask-position: 150% 0px;
  }
  to {
    mask-position: 0% 0px;
  }
}

/* === 按鈕區塊 === */
.btnset a {
  color: #ca9f37;
  border: 3px solid #be0602;
  background: #fff;
  box-shadow: 3px 5px #880f0f;
  line-height: 1.2;
}
.btnset a:hover {
  color: #fff;
  border: 3px solid #ffd392;
  background: #ca141d;
  box-shadow: 3px 5px #8d6e40;
}

@media (max-width: 991px) {
  .btnset {
    font-size: 14px;
  }
}
@media (max-width: 425px) {
  .btnset {
    font-size: 12px;
  }
}

/* === 活動辦法區塊 === */
section#method {
  color: #fff;
}
section#method .container {
  background: #228dc6ce;
  padding: 10px;
  border-radius: 12px;
}
section#method a {
  color: #ffff00;
}
section#method a:hover {
  background: #ffff00;
  color: #013b4a;
  padding: 0 5px;
  border-radius: 24px;
}

section#method .watermark {
  width: 15%;
  max-width: 15%;
}

@media (max-width: 767px) {
  section#method .watermark {
    width: 30vw;
    max-width: 30vw;
  }
}

/* === 頁尾區 === */
footer {
  position: relative;
  z-index: 999;
}

/* === 區塊樣式 === */
.nocarslideinnBox01 {
  background: #084b7d;
  padding: 10px;
}

.productSetprice .priceBox {
  flex-direction: row !important;
}

.logooutbox .logoinn {
  flex-basis: 11%;
}
@media screen and (max-width: 640px) {
  .logooutbox .logoinn {
    flex-basis: 24%;
  }
}

.squarepppinfoinn-box.pppinfobox {
  background: #075f9e;
  color: #fff;
  text-decoration: none;
}

/* === 活動表格 === */
@media screen and (max-width: 767px) {
  .actablebox {
    font-size: 14px;
  }
  .actablebox th.table-title {
    font-size: 1.2rem;
  }
}

/* === 特效：硬幣飛 === */
.flyCoins {
  z-index: 9;
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../images/coins.png) repeat-y center top / 1450px;
}
@media (max-width: 767px) {
  .flyCoins {
    background: unset;
  }
}
.flyLeft,
.flyRight {
  z-index: 0;
  position: fixed;
  pointer-events: none;
  width: 38vw;
}
.flyLeft {
  top: 45vh;
  left: 0vw;
}
.flyRight {
  top: 42vh;
  right: -13vw;
  width: 48vw;
}

@media (max-width: 767px) {
  .flyLeft,
  .flyRight {
    display: none;
  }
}

/* === 滑鼠視差區塊 === */
.mouseParallax {
  position: fixed;
  width: 100vw;
  height: 100vh;
  bottom: -50vh;
  left: 0;
  background: #7f7f7f29;
}

/* === 雲朵圖層 === */
.cloud {
  position: absolute;
  top: 0;
  bottom: 0;
  width: auto;
  height: auto;
  z-index: 999;
  opacity: 0.8;
}

/* KV */
#kvTopBN .kvtitle {
  animation-duration: 0.8s;
  transform-origin: 50% 50%;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-name: tremble;
}

@keyframes tremble {
  0% {
    -webkit-transform: translate(2px, 1px) rotate(0deg);
  }
  10% {
    -webkit-transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    -webkit-transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    -webkit-transform: translate(0px, 2px) rotate(0deg);
  }
  40% {
    -webkit-transform: translate(5px, -1px) rotate(1deg);
  }
  50% {
    -webkit-transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    -webkit-transform: translate(-2px, 1px) rotate(0deg);
  }
  70% {
    -webkit-transform: translate(6px, 2px) rotate(-1deg);
  }
  80% {
    -webkit-transform: translate(-1px, -3px) rotate(1deg);
  }
  90% {
    -webkit-transform: translate(2px, 1px) rotate(0deg);
  }
  100% {
    -webkit-transform: translate(5px, -2px) rotate(-1deg);
  }
}

#kvTopBN .kvpromotion {
  position: absolute;
  width: 100%;
  max-width: 100%;
  top: 48%;
  left: 50%;
  transform: translate(-188px, -35px);
}

#kvTopBN .kvcloud {
  position: absolute;
  top: 18%;
  left: 10%;
}

#kvTopBN .kvcloud.kvcloud02 {
  top: 30%;
  left: unset;
  right: 5%;
  transform: scale(1.2) rotateX(20deg);
}

@media (max-width: 767px) {
  #kvTopBN .kvpromotion {
    position: absolute;
    width: 50%;
    max-width: 50%;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  #kvTopBN .kvcloud {
    display: none;
  }
}

#kvTopBN .kvcountdown {
  position: absolute;
  width: 100%;
  max-width: 100%;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#countdown {
  /* display: inline-block; */
  text-align: center;
}

#countdown .num {
  font-size: 2rem;
  font-weight: bold;
  background: #1b3643;
  color: #fff;
  padding: 10px 8px;
  margin: 5px;
  border-radius: 10px;
}

#countdown .numText {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1b3643;
}

.countdownword {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  margin-top: 25px;
  color: #1b3643;
}

@media (max-width: 1099px) {
  #kvTopBN .kvcountdown {
    top: 78%;
    font-size: 36px;
  }

  #countdown .num {
    font-size: 1em;
    font-weight: bold;
    padding: 8px 5px;
    margin: 4px;
    border-radius: 12px;
  }

  #countdown .numText {
    /* font-size: 0.8em; */
    font-weight: 700;
  }

  .countdownword {
    /* font-size: 0.8em; */
    font-weight: 900;
    text-align: center;
    margin-top: 25px;
  }
}

@media (max-width: 767px) {
  #kvTopBN .kvcountdown {
    top: 60%;
    font-size: 30px;
  }

  #countdown .num {
    font-size: 1em;
    padding: 5px 5px;
    margin: 4px 10px;
    border-radius: 6px;
  }

  #countdown .numText {
    font-size: 0.6em;
  }

  .countdownword {
    font-size: 0.6em;
    margin-top: 14px;
  }
}

@media (max-width: 420px) {
  #kvTopBN .kvcountdown {
    top: 66%;
    font-size: 24px;
  }

  #countdown .num {
    padding: 3px 2px;
    margin: 4px 2px;
    border-radius: 6px;
  }

  #countdown .numText {
    font-size: 0.6em;
  }

  .countdownword {
    font-size: 0.6em;
    margin-top: 4px;
  }
}

.bgcards {
  background: linear-gradient(to bottom, #9fe5ff 0%, #1374ec 100%);
  box-shadow: 2px 4px 3px #fff inset, 0 9px 0 #0094dc;
  border-radius: 20px;
  padding: 15px 10px;
}

@media (max-width: 767px) {
  .bgcards {
    background: linear-gradient(to bottom, #9fe5ff 0%, #1374ec 100%);
    box-shadow: 1px 2px 1px #fff inset, 0 4px 0 #0094dc;
    border-radius: 8px;
    padding: 6px 2px;
  }
}
