@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-rounded/css/uicons-solid-rounded.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-solid-straight/css/uicons-solid-straight.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-brands/css/uicons-brands.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css");
@import url("https://cdn-uicons.flaticon.com/3.0.0/uicons-bold-rounded/css/uicons-bold-rounded.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Sacramento&display=swap");

body {
  font-family: "Noto Sans TC", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex-grow: 1;
}

h2,
h1 {  
  font-weight: 700;
}
h3 {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 0.5rem 0;
}
p {
  font-weight: 400;
  line-height: 1.5;
}

/* main */
.loader {
  display: block;
  position: relative;
  height: 32px;
  width: 100px;
  box-sizing: border-box;
  overflow: hidden;
}
.loader:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 24px;
  height: 24px;
  animation: ballbns 2s ease-in infinite;
}

@keyframes ballbns {
  0% {
    left: 0;
    transform: translateX(-100%) rotate(0deg);
    border-radius: 0;
    background: var(--color-turf-green);
  }
  100% {
    left: 100%;
    transform: translateX(0%) rotate(360deg);
    border-radius: 50%;
    background: #fff;
  }
}

/* Swiper */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: var(--color-amber-50);
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #fff;
}

.swiper-pagination {
  bottom: 10px;
}

.swiper-pagination-bullet-active {
  background: #fff;
}

/* Back to top */
#scroll {
  z-index: 50;
  position: fixed;
  right: 10px;
  bottom: 70px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  background-color: var(--color-sage-green);
  text-indent: -9999px;
  display: none;
  -webkit-border-radius: 60px;
  -moz-border-radius: 60px;
  border-radius: 60px;
}
#scroll span {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -12px;
  height: 0;
  width: 0;
  border: 8px solid transparent;
  border-bottom-color: #ffffff;
}
#scroll:hover {
  background-color: var(--color-warning-red);
  opacity: 1;
  filter: "alpha(opacity=100)";
  -ms-filter: "alpha(opacity=100)";
}

/* loader */
.loader {
  display: block;
  position: relative;
  height: 32px;
  width: 100px;
  box-sizing: border-box;
  overflow: hidden;
}
.loader:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 24px;
  height: 24px;
  animation: ballbns 2s ease-in infinite;
}

@keyframes ballbns {
  0% {
    left: 0;
    transform: translateX(-100%) rotate(0deg);
    border-radius: 0;
    background: var(--color-turf-green);
  }
  100% {
    left: 100%;
    transform: translateX(0%) rotate(360deg);
    border-radius: 50%;
    background: #fff;
  }
}

/* FCK Box */
.fck-box {
  color: #696969;
}
.fck-box p,
.fck-box span {
  line-height: 2;
}
.fck-box img {
  max-width: 100%;
  height: auto !important;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.fck-box iframe {
  margin: 1rem auto;
  max-width: 100% !important;
}
.fck-box ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 20px;
}
.fck-box ol {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 20px;
}
.fck-box li,
.fck-box p {
  margin-bottom: 1rem;
}
.fck-box table {
  width: 100%;
  max-width: 100%;
  margin: 1rem auto;
}
.fck-box table > tbody > tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}
.fck-box table > tbody > tr > td,
.fck-box table > tbody > tr > th,
.fck-box table > tfoot > tr > td,
.fck-box table > tfoot > tr > th,
.fck-box table > thead > tr > td,
.fck-box table > thead > tr > th {
  padding: 8px;
  line-height: 1.5;
  border: 1px solid #ccc;
}
