@import url('https://fonts.googleapis.com/css2?family=Lobster+Two&family=Noto+Sans+TC:wght@400;500&family=Righteous&display=swap');

/*  
font-family: 'Lobster Two', cursive; 英文
font-family: 'Righteous', cursive;   英文
font-family: 'Noto Sans TC', sans-serif;  中文
font-family: 'Righteous', 'Noto Sans TC', sans-serif;  英中文
*/

/* 設定CSS的變數 */
:root {
  --c-nav-10: #143c60;
  --c-nav-btn-10: #226795;

  --c-assist-10: rgba(34, 100, 150, 1);
  --c-assist-03: rgba(34, 100, 150, 0.3);
  --c-assist-01: rgba(34, 100, 150, 0.1);
  --c-assist-00: rgba(34, 100, 150, 0);

  --c-gray-c: #ccc;
  --c-gray-9-03: rgba(153, 153, 153, 0.3);
  --c-gray-9-08: rgba(153, 153, 153, 0.8);

  --f-family-1: 'Righteous', 'Noto Sans TC', sans-serif;
  --f-family-2: 'Lobster Two', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  /* font-family: Arial, Helvetica, sans-serif; */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: bold;
}

ul, ol { list-style: none; }

a {
  text-decoration: none;
}

mark {
  padding: 0.2rem 0.3rem;
  background-color: rgba(255, 105, 180, 0.3);
}

.ts-text-center {
  text-align: center;
}

.ts-tophr {
  border-top: 10px solid var(--c-gray-9-03);
}

.ts-redword {
  color: red;
}

.ts-blueword {
  color: blue;
}

.ts-gray-9-08 {
  color: var(--c-gray-9-08);
}


/* animate area ===================================== */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both
}

.animate__delay_03 {
  animation-delay: .3s;
}

@keyframes bounceInRight {

  0%,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(.215, .61, .355, 1)
  }

  0% {
    opacity: 0;
    transform: translate(3000px, -50%) scaleX(3) skewX(7deg)
  }

  60% {
    opacity: 1;
    transform: translate(-25px, -50%) scaleX(1) skewX(7deg)
  }

  75% {
    transform: translate(10px, -50%) scaleX(.98) skewX(7deg)
  }

  90% {
    transform: translate(-5px, -50%) scaleX(1) skewX(7deg)
  }

  to {
    transform: translate(0, -50%) skewX(7deg)
  }
}

.animate__bounceInRight {
  animation-delay: .5s;
  animation-name: bounceInRight;
  animation-duration: 2s;
}

@keyframes fadeInRightBig {
  0% {
    opacity: 0;
    transform: translate3d(2000px, 0, 0)
  }

  to {
    opacity: 1;
    transform: translateZ(0)
  }
}

.animate__fadeInRightBig {
  animation-name: fadeInRightBig
}



/* header area ====================================== */
header {
  min-height: 100px;
  background-color: var(--c-nav-10);
  border-bottom: 5px solid var(--c-gray-c);
  box-shadow: inset 0 -3px 3px rgba(0, 0, 0, 0.2), 0 2px 0 rgba(0, 0, 0, 0.5);
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9;
}

.ts-logo a {
  font-size: min(calc(16px + 2vw), 30px);
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
}

.show-menu {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.close-menu {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 15px;
  right: 15px;
}

@keyframes navAni {
  0% { transform: translateX(200%); }
}

header nav.show {
  display: block !important;
  animation: navAni .5s;
  position: fixed;
  top: 0;
  right: 0;
  width: 70vw;
  height: 100vh;
  padding: 70px 20px;
  background-color: var(--c-nav-10);
  box-shadow: -5px 0 5px rgba(0, 0, 0, 0.7);
  overflow: auto;
}

header nav a {
  color: #fff;
  display: block;
  line-height: 2;
  text-align: center;
}

header nav a:hover {
  color: #fff;
}

header nav.show .ts-nav-link {
  background-color: var(--c-nav-btn-10);
  border-radius: 30px;
  margin-bottom: 10px;
}

header nav.show .ts-submenu {
  margin-bottom: 30px;
  display: none;
}

@media (min-width: 992px) {
  header nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    align-self: flex-end;
    display: flex;
    align-items: flex-end;
    white-space: nowrap;
    overflow: visible;
  }

  header nav .ts-nav-item {
    position: relative;
    margin: 0 5px;
    font-family: var(--f-family-1);
  }

  header nav a {
    line-height: 1.5;
  }

  header nav .ts-nav-link {
    background-color: var(--c-nav-btn-10);
    padding: .5rem 1rem;
    margin-bottom: 0;
    border-radius: 7px 7px 0 0;
    font-size: 1.1rem;
    letter-spacing: .05rem;
    box-shadow: 0 -2px 2px rgba(0, 0, 0, 0.8);
    transition: padding-bottom .2s, box-shadow .5s;
  }

  header nav .ts-nav-link:hover {
    padding-bottom: 1.1rem;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.8);
  }

  header nav .ts-submenu {
    background-color: var(--c-gray-c);
    position: absolute;
    left: 0;
    padding-top: 10px;
    padding-bottom: 15px;
    min-width: 100%;
    text-align: center;
    display: none;
  }

  header nav .ts-nav-item:last-child .ts-submenu {
    left: auto;
    right: 0;
  }

  header nav .ts-submenu a {
    display: block;
    padding: 5px 10px;
    color: var(--c-nav-10);
    border-bottom: 1px solid rgba(153, 153, 153, 0.5);
  }

  header nav .ts-submenu a:last-child {
    border-bottom: none;
  }

  header nav .ts-submenu a:hover {
    background-color: var(--c-nav-10);
    color: #fff;
  }

  header nav .ts-submenu hr {
    margin: 0;
    opacity: .1;
    height: 5px;
  }
}



/* main area ========================================= */
main {
  height: 100vh;
  position: relative;
}

main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

main article {
  position: absolute;
  left: min(calc(10px + 1vw), 50px);
  right: min(calc(10px + 1vw), 50px);
  top: calc(50% + 50px);
  transform: translateY(-50%) skewX(7deg);
  background-color: rgba(255, 255, 255, 0.8);
  padding: min(calc(1rem + 1vw), 2rem);
  border-radius: min(calc(10px + 1vw), 20px);
}

main article h1 {
  margin-bottom: 1rem;
  font-family: var(--f-family-1);
  font-weight: normal;
}

main article p {
  margin-bottom: 1rem;
}


@media (min-width: 992px) {
  main article {
    left: 40%;
    right: 60px;
  }
}



/* section area ====================================== */
section {
  min-height: 100vh;
  background-image: url(./img/test/shadow1.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  padding: 130px 0 30px 0;
  position: relative;
}

progress {
  width: 300px;
  height: 25px;
  border: 3px solid var(--c-gray-9-03);
  border-radius: 15px;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background-color: var(--c-assist-03);
  border-radius: 15px;
}

progress::-webkit-progress-value {
  background-color: var(--c-assist-10);
  border-radius: 15px;
}


/* #sec1 area ======================================== */
.thumbnail-area img {
  cursor: pointer;
}


/* #sec2 area ======================================== */
.nav-tabs {
  border-bottom: 2px solid var(--c-assist-03);
}

/* tab按鈕的一般狀態 */
.nav-tabs .nav-link {
  margin-bottom: -2px;
  border: 2px solid transparent;
  color: rgba(0, 0, 0, 0.6);
  font-family: var(--f-family-1);
  font-size: 17px;
}

/* tab按鈕的滑入狀態 */
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: #000;
}

/* tab按鈕的active作用中狀態 */
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #495057;
  border-color: var(--c-assist-03);
  border-bottom-color: transparent;
  background-color: #e9eff4;
}

.tab-pane {
  padding: 40px 0;
  background: var(--c-assist-01);
  background: linear-gradient(var(--c-assist-01), var(--c-assist-00) 50%);
}

.tab-pane .col-12 {
  padding: 0 30px;
}

@media (min-width: 576px) and (max-width: 767px) {
  .tab-pane .col-12 {
    padding: 0 30px;
  }
}

@media (min-width: 578px) and (max-width: 991px) {
  .tab-pane .col-12 {
    padding: 0 15px;
  }
}

@media(min-width: 768px) {

  .tab-pane .col-12,
  .tab-pane .col-12 img {
    transition: .7s cubic-bezier(0.48, 0.01, 0.58, 1);
    cursor: pointer;
  }

  .scaleB {
    transform: scale(1.1);
  }

  .scaleB img {
    box-shadow: 0 -2px 8px var(--c-assist-03);
  }

  .scaleS {
    transform: scale(0.8);
    opacity: 0.15;
  }
}


/* #sec3 area ======================================== */
#sec3 input[type=radio],
#sec3 input[type=checkbox] {
  width: 20px; height: 20px; transform: translateY(-2px);
}



/* Tutorial area ===================================== */
#Tutorial { padding: 0; }

#Tutorial .first { display: block; }

.Tutorial-menu {
  width: 260px;
  white-space: nowrap;
  z-index: 7;
  flex: 0 0 auto;
}

.Tutorial-menu nav {
  background-color: #eee;
  width: 240px;
  min-height: 100%;
  padding: 130px 0 30px 0;
}

.Tutorial-menu .tt-link {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  height: 40px;
}

.Tutorial-menu .tt-submenu { display: none; }

.Tutorial-menu .tt-submenu a { padding: 0 2rem; }

.Tutorial-menu .tt-link:hover {
  background-color: rgba(255, 105, 180, 0.1);
  color: hotpink;
}

.Tutorial-menu a:not(.tt-link, .active):hover {
  background-color: #999;
  color: #fff;
}

.Tutorial-menu nav a {
  height: 28px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  box-sizing: content-box;
}

.Tutorial-menu nav a.active {
  background-color: var(--c-nav-btn-10);
  color: #fff;
  position: relative;
}

.Tutorial-menu nav a.active::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border: 14px solid transparent;
  border-left-color: var(--c-nav-btn-10);
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(100%);
}

#Tutorial .ts-container { padding: 130px 30px 50px; }

#Tutorial h2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#Tutorial h2 span {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

#Tutorial h2 small {
  font-size: 16px;
  font-weight: normal;
  padding: 0 5px;
}

#Tutorial .ts-bg-pink    { background-color: rgba(229, 133, 181, 0.2) }
#Tutorial .ts-bg-green   { background-color: rgba(124, 208, 173, 0.2) }
#Tutorial .ts-bg-skyblue { background-color: rgba(109, 170, 193, 0.2) }
#Tutorial .ts-bg-yellow  { background-color: rgba(206, 191, 89, 0.2)  }


/* table1 ===================== */
.table1 {
  border: 1px solid #999;
  border-collapse: collapse;
  width: 95%;
}

.table1 th,
.table1 td {
  border: 1px solid #999;
  padding: 0.2rem 0.5rem;
  text-align: center;
  border-color: #999;
}

.table1 tr:first-of-type th { 
  background-color: #666;  color: #fff; 
}

.table1 tr th:first-child,
.table1 tr td:last-child {
  white-space: nowrap;
}

.table1 tr:first-of-type th:first-child { width: 150px; }
.table1 tr:first-of-type th:nth-of-type(3) { width: 70px; }
.table1 tr:first-of-type th:last-child { width: 150px; }

.table1 tr td:nth-of-type(1) { text-align: left; }

/* table2 ======================== */
.table2 { width: 800px; }
.table2 tr:first-of-type th:first-child { width: auto; }
.table2 th:first-child,
.table2 td:first-child { text-align: left; }

/* table3 ======================== */
.table3 tr:first-of-type th:first-child { width: 220px; }
.table3 tr th:nth-of-type(1) { text-align: left; }

/* table4 ======================== */
.table4 tr:first-of-type th:nth-of-type(1) { width: 150px; }
.table4 tr:first-of-type th:nth-of-type(2) { width: 150px; }
.table4 tr:first-of-type th:nth-of-type(3) { width: auto; }
.table4 tr:first-of-type th:nth-of-type(4) { width: 70px; }
.table4 tr th:nth-child(2) { white-space: nowrap; }

/* table5 ======================== */
.table5 tr:first-of-type th:nth-of-type(1) { width: 80px; }
.table5 tr:first-of-type th:nth-of-type(2) { width: 150px; }
.table5 tr:first-of-type th:nth-of-type(3) { width: auto; }
.table5 tr:first-of-type th:nth-of-type(4),
.table5 tr:first-of-type th:nth-of-type(4) { width: 150px; }
.table5 tr td:nth-of-type(1) { text-align: center; }
.table5 tr td:nth-of-type(3) { text-align: left; }

/* table6 ======================== */
.table6 td:nth-of-type(1) { width: 220px; }
.table6 td { text-align: left !important; }
.table6 tr td { white-space: wrap !important; }
.table6 th, .table6 td { padding: 0.5rem 0.8rem; }

/* table7 ======================== */
.table7 tr:first-of-type th:nth-of-type(1) { width: 50px; }
.table7 tr:first-of-type th:nth-of-type(2) { width: 100px; }
.table7 tr:first-of-type th:nth-of-type(3) { width: 150px; }
.table7 tr:first-of-type th:nth-of-type(6) { width: 70px; }
.table7 tr:first-of-type th:nth-of-type(7) { width: 70px; }

.table7 tr td:nth-of-type(1) { text-align: center; }
.table7 tr td:nth-of-type(4),
.table7 tr td:nth-of-type(5) { text-align: left; }

/* table8 ======================== */

/* table9 ======================== */
.table9 tr:first-of-type th:nth-of-type(1) { width: 150px; }
.table9 tr:first-of-type th:nth-of-type(2) { width: 150px; }
.table9 tr:first-of-type th:nth-of-type(3) { width: 150px; }

.table9 tr td:nth-of-type(1) { text-align: center; }
.table9 tr td:nth-of-type(2) { text-align: center; }
.table9 tr td:nth-of-type(3) { text-align: center; }
.table9 tr td:nth-of-type(4) { text-align: left; }

/* table10 ======================== */
.table10 tr:first-of-type th:nth-of-type(1) { width: 240px; }
.table10 tr:first-of-type th:nth-of-type(3),
.table10 tr:first-of-type th:nth-of-type(4) { width: 120px; }
.table10 tr th:nth-of-type(1) { text-align: left; }

/* table11 ======================== */
.table11 tr:first-of-type th { width: auto !important; }
.table11 tr td { text-align: left !important; }

/* footer area ======================================= */
footer {
  display: flex;
  justify-content: end;
  align-items: center;
  color: #fff;
  background-color: var(--c-nav-10);
  border-top: 5px solid var(--c-gray-c);
  box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.2), 0 -2px 0 rgba(0, 0, 0, 0.5);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 8;
}