/* 當你想為某一個區塊或方塊，增加背景，請在該區塊/方塊上增加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: linear-gradient(to bottom, #4b575e 0%, #242f36 100%); */
  background-color: #242f36;
  background-image: url(../images/bgblackonlydeco.png);
  background-position: center;
  background-size: 2400px;
}

@media (max-width: 1199px) {
  body {
    background-size: 2100px;
  }
}

@media (max-width: 991px) {
  body {
    background-size: 1600px;
  }
}

@media (max-width: 767px) {
  body {
    background-position: center;
    background-size: 195vw;
  }
}

/* === 固定背景圖 === */
.bgFixed {
  z-index: -1;
  position: fixed;
  background: url("../images/bgsky.png") no-repeat center bottom / 2000px 100vh;
  height: 100vh;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .bgFixed {
    background: url("../images/bgsky-mb.png") no-repeat center top / cover;
  }
}

/* === 主區塊背景 === */
main {
  /* background: url(../images/bgblackonlydeco.png) repeat-y top center / 2800px; */
  overflow: hidden;
  position: relative;
  margin-top: -150px;
}

@media (max-width: 991px) {
}

@media (max-width: 767px) {
  main {
    margin-top: 0;
  }
}

/* === 首圖區 === */
#kvTopBN2 {
  position: relative;
  background: url("../images/kvbg.png") no-repeat center top / 2400px;
}

@media (max-width: 991px) {
  #kvTopBN2 {
    background: url("../images/kvbg.png") no-repeat center top / 2000px;
  }
}

@media (max-width: 767px) {
  #kvTopBN2 {
    position: relative;
    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: #ffffffa9;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #ffff00;
}

/* === 發光文字效果 === */
.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: #242f36;
  border: 3px solid #ffff00;
  background: #fff;
  box-shadow: 0 6px #ffc400;
  line-height: 1.2;
}
.btnset a:hover {
  color: #fff;
  border: 2px solid #ffffff;
  background: #2daad4;
  box-shadow: 0 3px #242f36;
}

@media (max-width: 991px) {
  .btnset {
    font-size: 14px;
  }
}
@media (max-width: 425px) {
  .btnset {
    font-size: 12px;
  }
}

/* === 活動辦法區塊 === */
section#method {
  color: #fff;
}
section#method .container {
  background: #0f0f0fd7;
  padding: 10px;
  border-radius: 16px;
}
section#method a {
  color: #ffff00;
}
section#method a:hover {
  background: #ffff00;
  color: #013b4a;
  padding: 0 5px;
  border-radius: 24px;
}

@media (max-width: 767px) {
  section#method .container {
    background: #0f0f0fd7;
    padding: 10px 5px;
    border-radius: 4px;
  }
}

/* === 頁尾區 === */
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: 9;
  position: fixed;
  pointer-events: none;
  width: 25vw;
}
.flyLeft {
  top: 58vh;
  left: -10vw;
}
.flyRight {
  top: 20vh;
  right: -10vw;
}

/* === 滑鼠視差區塊 === */
.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;
}

/* for this page */
#kvTopBN2 .kvtt {
  animation: kvTitleMove 2.5s ease-in-out infinite 2s both;
}

@keyframes kvTitleMove {
  0% {
    transform: translateY(0);
  }

  10% {
    transform: translateY(-5px);
  }

  20% {
    transform: translateY(0);
  }
  30%,
  40% {
    transform: translateY(-10px);
  }
  35%,
  50%,
  100% {
    transform: translateY(0);
  }
}

.kvbus {
  position: absolute;
  top: 42%;
  left: 5%;
  width: 30.61%;
  max-width: 30.61%;
  z-index: 199;
  animation: moveagain 3s ease-in-out 3s infinite alternate forwards;
}

@media (max-width: 767px) {
  .kvbus {
    display: none;
  }
}

@keyframes movein {
  0% {
    transform: translate(-1000px, 0);
  }
  80% {
    transform: translate(50px, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes moveagain {
  0% {
    transform: translate(0px, 0);
  }
  7.5% {
    transform: translate(50px, 0);
  }
  15% {
    transform: translate(0, 0);
  }
}

.mt-back-2 {
  margin-top: -20px;
}

.sleep-slides {
  margin-top: -40px;
}

@media (max-width: 767px) {
  .sleep-slides {
    margin-top: -20px;
  }
}

.bg-slides {
  background: linear-gradient(
    to bottom,
    #ffffff00 0%,
    #ffffff00 7%,
    #ffffff 7%,
    #ffffff 100%
  );
  padding-top: 50px;
}

@media (max-width: 767px) {
  .bg-slides {
    padding-top: 15%;
  }
}

.bgblue {
  background: url("../images/bgblue.png");
  background-size: 2400px;
  background-position: center bottom;
  background-attachment: fixed;
  padding-bottom: 50px;
}

@media (max-width: 1199px) {
  .bgblue {
    background-size: 2000px;
    padding-bottom: 50px;
  }
}

@media (max-width: 991px) {
  .bgblue {
    background-size: auto 100%;
    padding-bottom: 50px;
  }
}

@media (max-width: 767px) {
  .bgblue {
    background: url("../images/bgblue-mb.png");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
  }
}

/* 品類標籤 */
.cate {
  width: 23%;
  max-width: 23%;
}

@media (max-width: 767px) {
  .cate {
    width: 48%;
    max-width: 48%;
  }
}
