/* 當你想為某一個區塊或方塊，增加背景，請在該區塊/方塊上增加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-image: url("../images/bgfixed.png");
  background-color: #fdd410;
  background-position: center center;
  background-attachment: fixed;
  background-size: 2400px;
}

@media (max-width: 767px) {
  body {
    background-image: url("../images/bgfixed-mb.png");
    background-color: #fdd410;
    background-position: center center;
    background-attachment: fixed;
    background-size: 2400px;
  }
}

/* === 固定背景圖 === */
.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/topBn_bgrepeat.webp) repeat-x top center / 100% 100%; */
  overflow: hidden;
  position: relative;
}

/* === 首圖區 === */
#kvTopBN2 {
  position: relative;
  background: center bottom / 2400px no-repeat url("../images/kvbg.png");
}

@media (max-width: 767px) {
  #kvTopBN2 {
    position: relative;
    background: center bottom / 100% no-repeat url("../images/kvbg-mb.png");
  }
}

/* === 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: #ff0000db;
  padding: 16px;
  border-radius: 10px;
}
section#method a {
  color: #ffff00;
}
section#method a:hover {
  background: #ffff00;
  color: #ff0000db;
  padding: 0 5px;
  border-radius: 24px;
}

/* === 頁尾區 === */
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;
}

.kvtt {
  transform-style: preserve-3d;
  /* animation: kvtt 2.5s ease-in-out -1s infinite forwards alternate,
  shine 5s linear -1s infinite forwards alternate; */
  animation: kvttTurn 6s ease-in-out -1s infinite both alternate,
    shine 5s linear -1s infinite both alternate;
}

.kvttm {
  position: absolute;
  top: 0;
  animation: kvttTurn 6s ease-in-out -1s infinite both alternate,
    shine 5s linear -1s infinite both alternate;
}

@keyframes kvttTurn {
  0% {
    transform: translateY(-18px) rotateY(-90deg);
    opacity: 0;
  }
  /* 
  10%,90% {
    opacity: 0.5;
  } */

  15%,
  85% {
    transform: rotateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(15px);
  }

  100% {
    transform: translateY(-18px) rotateY(90deg);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  @keyframes kvttTurn {
    0% {
      transform: translateY(-8px) rotateY(-50deg);
      opacity: 0;
    }

    10%,
    90% {
      opacity: 0.5;
    }

    15%,
    85% {
      transform: rotateY(0);
      opacity: 1;
    }

    50% {
      transform: translateY(5px);
    }

    100% {
      transform: translateY(-8px) rotateY(50deg);
      opacity: 0;
    }
  }
}

/* 天天享優惠 */
.weekday .week {
  width: 14.2%;
  max-width: 14.2%;
}

@media (max-width: 767px) {
}

.bglong {
  background-color: #c01f33;
  background-image: url("../images/bglong.png");
  background-size: 2400px;
  background-position: top center;
  background-repeat: no-repeat;
  padding-top: 70px;
}

@media (max-width: 767px) {
  .bglong {
    background-color: unset;
    background-image: url("../images/bglong-mb.png"),
      linear-gradient(to bottom, #ffffff00 10%, #c01f33 10%);
    background-size: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    padding-top: 20px;
  }
}

#secop .pdop {
  position: relative;
  width: 24.6%;
  max-width: 24.6%;
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media (max-width: 767px) {
  #secop .pdop {
    width: 49.5%;
    max-width: 49.5%;
  }
}

#secop .pdinner {
  position: absolute;
  width: 100%;
  max-width: 100%;
  bottom: 0;
  left: 0;
}

#secop .pdop.pdop01 {
  background-image: url("../images/bgop10x.png");
}

#secop .pdop.pdop02 {
  background-image: url("../images/bgop15x.png");
}

#secop .pdop.pdop03 {
  background-image: url("../images/bgop20x.png");
}

#secop .bgop {
  background-color: #fff;
  background-image: url("../images/bgop2.png");
}

#secop .bgop .carsboxbg {
  background-color: unset;
}

/* 愛心捐贈 */
.bglove {
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url("../images/bglove.png");
}

.pdlove {
  margin-top: -50px;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .pdlove {
    margin-top: -20px;
    margin-bottom: 10px;
  }
}

/* BOGO */
.bgbogo {
  background-image: url("../images/bgbogo.png");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 19px 19px 0 0;
}

.titlebogo {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.bogo {
  position: absolute;
}

.bogo01 {
  width: 21.75%;
  max-width: 21.75%;
  left: 0;
  top: 0;
}

.bogo02 {
  width: 17.37%;
  max-width: 17.37%;
  left: 19.5%;
  top: 0;
}

.bogo03 {
  width: 22.11%;
  max-width: 22.11;
  right: 22.5%;
  top: 0;
}

.bogo04 {
  width: 21.49%;
  max-width: 21.49%;
  right: 0;
  top: 0;
}

@media (max-width: 767px) {
  .bgbogo {
    background-image: url("../images/bgbogo-mb.png");
    border-radius: 10px 10px 0 0;
  }
}

/* 精選活動 */
.frozenlaundryBox .imgzidex {
  background-size: 100% 100%;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-image: url("../images/bg01.png");
}

.frozenlaundryBox #sec02 .imgzidex {
  background-image: url("../images/bg02.png");
}

.frozenlaundryBox .pd {
  position: absolute;
  width: 50%;
  max-width: 50%;
}

.frozenlaundryBox .pd.pda {
  bottom: 0;
  left: 0;
}

.frozenlaundryBox .pd.pdb {
  bottom: 0;
  right: 0;
}

/* 撒金箔 */
#gold {
  position: fixed;
  pointer-events: none;
  overflow: hidden;
  z-index: 8887;
}

.bdrs-19 {
  border-radius: 19px;
}

.bd-pink {
  border: 6px solid #fa8787;
}

@media (max-width: 767px) {
  .bdrs-19 {
    border-radius: 8px;
  }

  .bd-pink {
    border: 4px solid #fa8787;
  }
}

.flex-1 {
  flex: 1;
}
