@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC&family=Roboto+Slab&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Ramabhadra&display=swap');

/* BS5修改預設 */
html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}

body {
  font-family: 'Ramabhadra', 'Arial', 'Noto Serif TC', '黑體-繁', '微軟正黑體',
    serif !important;
  background: #fff;
  color: #6d6a5f;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.subtitle {
  color: #c88d45;
  font-family: 'Great Vibes', 'Arial', 'Noto Serif TC', '黑體-繁', '微軟正黑體',
    sans-serif;
  font-size: 6rem;
  line-height: 6rem;
}

h2 {
  color: #fff;
  font-family: 'Ramabhadra', 'Arial', 'Noto Serif TC', '黑體-繁', '微軟正黑體',
    cursive;
  font-weight: 700;
  font-size: 2rem;
}

img {
  object-fit: cover;
  object-position: center center;
}

a {
  color: #fff;
  text-decoration: none;
}

.border-brown {
  border: 2.5px solid #6d6a5f !important;
}

.leaf {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 0;
}

.leaf li {
  background-image: url(../../images/leaf.svg);
  position: absolute;
  list-style: none;
  display: block;
}

.leaf li:nth-child(1) {
  width: 2vw;
  height: 1.5vw;
  top: -1.5vw;
  right: -0.5vw;
}

.leaf li:nth-child(2) {
  width: 1.3vw;
  height: 1vw;
  top: -1vw;
  right: 1.5vw;
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.leaf li:nth-child(3) {
  width: 2.5vw;
  height: 2vw;
  top: -2vw;
  right: 2.8vw;
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.leaf li:nth-child(4) {
  width: 1.6vw;
  height: 1.3vw;
  top: -1.3vw;
  right: 5.3vw;
}

.divider {
  border-top: 3px solid #6d6a5f !important;
  width: 5%;
  margin-bottom: 3vh;
}

/* nav */
.navbar-default {
  background: none;
  border: none;
  margin-bottom: 0;
}
.navbar-default .navbar-nav > li > a {
  color: #333;
}

.navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
  color: #fff !important;
  background-color: #6d6a5f;
  /* font-weight: 900 !important; */
}

.letter2 {
  letter-spacing: 0.2rem;
}

.letter8 {
  letter-spacing: 0.8rem;
}

/* Slider */

.slick-slide img {
  width: 100%;
}

.portfolio-item {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

footer {
  color: #999999;
}

footer a,
footer a:hover,
footer a:active {
  color: #999999 !important;
}

footer span {
  color: #c88d45 !important;
}

/*top*/
#side {
  position: fixed;
  display: inline-block;
  cursor: pointer;
  z-index: 999;
  bottom: 1vh;
  right: 1rem;
  width: 12vw;
  height: 8vh;
  min-width: 70px;
  max-width: 100px;
}

.ball {
  position: block;
  width: 12vw;
  height: 12vw;
  min-width: 70px;
  min-height: 70px;
  max-width: 100px;
  max-height: 100px;
  display: block;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 100%;
  color: #fff;
  text-align: center !important;
}

.ball:before {
  position: absolute;
  left: 20%;
  top: 21%;
  width: 25%;
  content: '';
  background: rgba(255, 255, 255, 0.2);
  display: block;
  height: 25%;
  border-radius: 100%;
}

.ball p {
  font-size: 1.5vw;
  color: #fff;
  position: absolute;
  bottom: 15%;
  right: 15%;
}

/*把動畫效果寫在這個class上*/
.bouncing-ball {
  animation: bounce 1s cubic-bezier(0.5, 0.2, 0.8, 0.8) infinite alternate;
  -webkit-animation: bounce 1s cubic-bezier(0.5, 0.2, 0.8, 0.8) infinite
    alternate;
}

@keyframes bounce {
  0% {
    transform: scale(1, 1);
    transform: rotate(0deg);
  }
  10% {
    transform: scale(1, 1.1);
    transform: rotate(-15deg);
  }
  50% {
    transform: rotate(10deg);
  }
  90% {
    transform: scale(0.8, 1.3);
  }
  95% {
    transform: scale(1.2, 0.8);
  }
  100% {
    transform: scale(1.2, 0.6);
    transform: rotate(0deg);
  }
}

.side-content a {
  display: block;
  padding: 0.5rem 0.3rem;
  margin: 0.5rem 0 0.5rem 0.5rem;
  text-decoration: none;
  background-color: #f39c29;
  color: #fff;
  border-radius: 2rem;
  text-align: center;
}

.shake:hover {
  animation-name: shake;
  animation-duration: 1.5s;
}

@keyframes shake {
  0% {
    -webkit-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
    transform-origin: center center;
  }

  50% {
    -webkit-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    transform: rotate(-10deg);
    transform-origin: center center;
  }

  100% {
    -webkit-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    transform: rotate(10deg);
    transform-origin: center center;
  }
}

/* header */
.header-banner img.slick {
  height: 100vh;
  object-fit: cover;
  object-position: center center;
  padding-bottom: 5vh;
}

.header-box {
  position: relative;
}

.header-content {
  position: absolute;
  z-index: 10;
  color: #fff;
  width: 300px;
  height: 300px;
  padding: 1vw;
  text-align: center;
  left: calc(50% - 150px);
  bottom: 5vh;
}

.header-content .next {
  position: absolute;
  height: 100px;
  width: 7rem;
  bottom: 0;
  left: calc(50% - 3.5rem);
}

.next img {
  width: 100%;
  height: auto;
  z-index: 100;
  -webkit-animation: finger 1s infinite;
  animation: finger 1s infinite;
}

@-webkit-keyframes finger {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
  }
}

.header-title {
  font-size: 3rem;
}

.header-subtitle {
  font-size: 1.5rem;
}

.blog-header {
  /* line-height: 2; */
  border-bottom: 0;
}

.blog-header-logo {
  font-family: 'Playfair Display', Georgia, 'Times New Roman',
    serif /*rtl:Amiri, Georgia, "Times New Roman", serif*/;
  font-size: 2.25rem;
  /* line-height: 4rem; */
}

.blog-header-logo:hover {
  text-decoration: none;
}

@media (max-width: 767px) {
  .offcanvas-collapse {
    position: fixed;
    top: 54px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #fff;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
  }
}
.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
  margin-bottom: 2rem;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: 2F292D;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #2f292d;
  cursor: pointer;
}

.nav-underline .nav-link:hover {
  color: #6d6a5f;
}

.nav-underline .active {
  font-weight: 500;
  color: #6d6a5f;
}

/* .product {
    background-image: url(../../images/whitebg.jpg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
} */

.product-slick div {
  margin: 0 8px;
}

/* content*/
.content {
  /* background-image: url(../../images/whitebg.jpg); */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  text-align: left;
  color: #2f292d;
  position: relative;
}
.content h2 {
  color: #2f292d !important;
}

.content img {
  width: 100%;
  height: 100%;
  max-height: 550px;
  object-fit: cover;
  object-position: center center;
}

.long-divider {
  border-top: 4px solid #6d6a5f !important;
  width: 75vw;
  margin-top: 1vh;
  max-width: 700px;
  position: relative;
}

@media (max-width: 991.98px) {
  .long-divider {
    max-width: 400px;
  }
}

.content h2 span {
  font-size: 3rem;
  margin-bottom: 0;
}

.content .subtitle {
  margin-top: 7vh;
  margin-bottom: 2vh;
  text-align: right;
  font-size: 0.75rem;
}

.content .mintitle {
  font-size: 0.8rem;
  margin-left: 4px;
}

.content p {
  margin-bottom: 1rem;
}

.end {
  position: relative;
}

.end_box {
  position: absolute;
  top: 20%;
  right: 10%;
}

.end img {
  object-position: center center;
}

/* card */
.card img {
  height: 350px;
  object-fit: cover;
}

@media (max-width: 1399px) {
  .card img {
    height: 300px;
  }
}

@media (max-width: 1199px) {
  .card img {
    height: 250px;
  }
}

@media (max-width: 991.98px) {
  .card img {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .card img {
    height: 200px;
  }
}

@media (max-width: 575px) {
  .card img {
    height: 350px;
  }
}

@media (max-width: 400px) {
  .card img {
    height: 200px;
  }
}

/* boba */

.boba {
  background-image: url(../../images/boba.jpg?v=2);
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 700px;
}
/* tea */

.tea {
  background-image: url(../../images/recommendbg.jpg?v=8);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 700px;
  position: relative;
}

.carousel {
  position: absolute;
  bottom: 0;
  left: calc(50% - 250px);
  z-index: 100;
}

.carousel div {
  width: 500px;
  height: 530px;
  position: relative;
}

@media (max-width: 768px) {
  .recommend {
    height: 500px;
  }
}

@media (max-width: 414px) {
  .recommend {
    height: 350px;
  }
  .carousel {
    left: calc(50% - 125px);
  }

  .carousel div {
    width: 250px;
    height: 280px;
  }
}

/* bubble */
.bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*z-index defult value=1*/
  z-index: 0;
  /*upgrade gpu rendering*/
  transform: translateZ(0);
}

.bubble li {
  position: absolute;
  list-style: none;
  display: block;
  background: rgba(255, 255, 255, 0.2);
  /*make bubble on page bottom*/
  bottom: -100px;
  animation: bubble-ani 10s linear infinite;
  border-radius: 100%;
}

/* glow of the bubbles*/
.bubble li:before {
  position: absolute;
  left: 20%;
  top: 21%;
  width: 25%;
  content: '';
  background: rgba(255, 255, 255, 0.2);
  display: block;
  height: 25%;
  border-radius: 100%;
}

.bubble li:nth-child(1) {
  width: 20px;
  height: 20px;
  left: 15%;
}

.bubble li:nth-child(2) {
  width: 40px;
  height: 40px;
  left: 40%;
  animation-duration: 13s;
  animation-delay: 2s;
}

.bubble li:nth-child(3) {
  width: 25px;
  height: 25px;
  left: 30%;
  animation-duration: 18s;
  animation-delay: 3.5s;
}

.bubble li:nth-child(4) {
  width: 60px;
  height: 60px;
  left: 55%;
  animation-duration: 23s;
  animation-delay: 1.5s;
}

.bubble li:nth-child(5) {
  width: 20px;
  height: 20px;
  left: 35%;
  animation-duration: 16s;
  animation-delay: 2s;
}

@keyframes bubble-ani {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    -webkit-transform: translateY(-1080px);
    transform: translateY(-1080px);
  }
}

/*=======================================================*/
.wave-container {
  width: 100%;
  height: 100px;
  position: absolute;
  bottom: 0;
}
.wave-container_2 {
  width: 100%;
  height: 100px;
  position: absolute;
  transform: rotate(180deg);
  top: 0;
}
.wave-container_3 {
  width: 100%;
  height: 100px;
  position: absolute;
  bottom: -1px;
}
.wave-container_4 {
  width: 100%;
  height: 100px;
  position: absolute;
  transform: rotate(180deg);
  top: 0px;
  z-index: 1;
}
.wave-container_5 {
  width: 100%;
  height: 100px;
  position: absolute;
  transform: rotate(180deg);
  top: 100%;
  z-index: 1;
}

@media (max-width: 991px) {
  .wave-container,
  .wave-container_5,
  .wave-container_2,
  .wave-container_3,
  .wave-container_4 {
    height: 70px;
  }
}

@media (max-width: 767px) {
  .wave-container_5 {
    bottom: -70px;
    height: 70px;
  }
}
@media (max-width: 575px) {
  .wave-container_4 {
    top: 0;
  }

  .wave-container,
  .wave-container_5,
  .wave-container_2,
  .wave-container_3,
  .wave-container_4 {
    height: 40px;
  }
}

.parallax > use {
  animation: wave-move 12s linear infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
}

.parallax > use:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 5s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 3s;
}
@keyframes wave-move {
  0% {
    transform: translate(-90px, 0);
  }

  100% {
    transform: translate(85px, 0);
  }
}

#contact span {
  color: #c88d45 !important;
}

#control {
  background-image: url(../../images/controlbg.jpg);
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
}

#news {
  background-image: url(../../images/newsbg.jpg);
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}

.hideme {
  opacity: 0;
}
