@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

.marqueeContainer {
  /* height: 100vh; */
  overflow: hidden;
  /*隱藏超出外層容器的元素*/
  max-width: 100%;
  padding: 0.5% 0;
  cursor: pointer;
  background-color: #00c3ff;
  position: fixed;
  z-index: 90;
  margin: 0 auto;
  max-width: 1000px;
  top: 105px;
}

.loop {
  display: inline-block;
  font-family: "Noto Serif TC", serif;
  /* font-family: "Roboto", sans-serif; */
  font-weight: 700;
  font-size: 2rem;
  color: transparent;
  white-space: nowrap;
  /*文字必須設為nowrap，否則文字會自動換行*/
  height: 100%;
  color: #fff;
  padding: 0 0 0.25% 0;
  /* -webkit-text-stroke: 1px rgb(255, 255, 255); */
  /* background: linear-gradient(180deg, rgba(249, 226, 133, 1) 0%, rgba(241, 236, 223, 1) 33%, rgba(241, 236, 223, 1) 57%, rgba(233, 186, 88, 1) 100%); */
  /* background-color: #ff0004; */
  letter-spacing: 2px;
}

.loop > span {
  display: inline-block;
}

@media (max-width: 768px) {
  .loop {
    font-size: 1rem;
  }
  .marqueeContainer {
    top: 60px;
  }
}
.discount_box {
    max-width: 500px;
    width: 500px;
    height: 80px;
    position: fixed;
    bottom: 100%;
    /* top: 3%; */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #787878;
    color: #fff;
    font-weight: 500;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 28px;
    padding: 0% 2%;
     opacity: 0;
    pointer-events: none;
}

.discount_box.openDiscount {
opacity:1;
    animation: openDiscount 1.5s ease-in-out;
}

@keyframes openDiscount {
    0% {
        transform: translate(-50%, 0%);
    }

    20% {
        transform: translate(-50%, 140%);
    }

    85% {
        transform: translate(-50%, 140%);
    }

    100% {
        transform: translate(-50%, 0%);
    }
}

@media (max-width:768px) {
    .discount_box {
        width: 450px;
        height: 70px;
        font-size: 24px;
    }
}

@media (max-width:576px) {
    .discount_box {
        max-width: 90vw;
        width: 90vw;
        height: 15vw;
        font-size: 5vw;
        padding: 0% 3%;
    }
}