/* =============================================================================== */
/* fonts START
/* =============================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap");

/* =============================================================================== */
/* Var START
/* =============================================================================== */
:root {
  --Max-Width: 900px;
  /* https://www.w3schools.com/colors/colors_hsl.asp */

  --hue: 216;
  --saturation: 20%;
  --lightness: 40%;
  --main-color: hsl(var(--hue), var(--saturation), var(--lightness));

  --white: hsl(0, 0%, 100%);

  /* text colors */
  --text-white: hsl(0, 0%, 100%);
  --text-light-gray: hsl(0, 0%, 96%);
  --text-x-dark-gray: hsl(0, 0%, 10%);
  --text-dark-gray: hsl(0, 0%, 20%);

  /* input bg color */
  --input-bg-color: hsl(var(--hue), 48%, 92%);

  /* bg colors */
  --body-bg-color: hsl(var(--hue), 60%, 98%);
  /*主體背景色*/
  /* --body-bg-color: hsl(var(--hue), 60%, 94%); */
  --bg-color: hsl(var(--hue), 60%, 97%);
  /*橫福背景色*/
  --bg-color-2: hsl(var(--hue), 60%, 96%);
  /*橫福背景色*/
  /* --bg-color: hsl(var(--hue), 60%, 96%); */
  --bg-white: hsl(0, 0%, 100%);

  /* border color */
  --border-color: hsl(var(--hue), 48%, 80%);
  --border-color-1: hsl(0, 0%, 90%);

  /* shadow */
  /* --shadow: 0 0 5px hsla(var(--hue), 57%, 63%, 0.3); */
  /* --shadow: 0 0 5px hsla(var(--hue), 57%, 20%, 0.3); */
  --shadow: 0 0 2px hsla(var(--hue), 57%, 10%, 0.3);
  --focus-shadow: 0 0 10px hsla(var(--hue), 57%, 63%, 0.6);

  /* font size */
  --fs-4xl: 50px;
  --fs-3xl: 35px;
  --fs-2xl: 26px;
  --fs-xl: 22px;
  --fs-lg: 18px;
  --fs-md: 16px;
  --fs-sm: 14px;
}

body.t-dark {
  /* --white: hsl(var(--hue), 8%, 21%); */
  --white: hsl(var(--hue), 8%, 21%);
  /* text colors */
  --text-x-dark-gray: hsl(0, 0%, 94%);
  --text-dark-gray: hsl(0, 0%, 84%);

  /* bg colors */
  --body-bg-color: hsl(var(--hue), 13%, 14%);
  --bg-color: hsl(var(--hue), 13%, 17%);
  --bg-color-2: hsl(var(--hue), 13%, 17%);

  /* input bg color */
  --input-bg-color: hsl(var(--hue), 15%, 20%);

  /* border color */
  --border-color: hsl(var(--hue), 15%, 30%);
  --border-color-1: hsl(240, 9%, 30%);
  /* shadow */
  --shadow: 0 0 10px hsla(var(--hue), 19%, 7%, 0.9);
}

/* =============================================================================== */
/* Base START
/* =============================================================================== */
html {
  scroll-behavior: smooth;
}

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

::before,
::after {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text-dark-gray);
  background-color: var(--body-bg-color);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--main-color);
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-x-dark-gray);
  line-height: 1.3;
}

p {
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

::selection {
  color: var(--text-white);
  background-color: var(--main-color);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--body-bg-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}

.wrap {
  overflow: hidden;
}

.container {
  max-width: var(--Max-Width);
  margin: auto;
  padding: 0 20px;
}

/* =============================================================================== */
/* grid START
/* =============================================================================== */
.grid-fieldset {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /*12等分,一欄*/
  /*grid-auto-rows: minmax(100px, auto); 指定列最小高度*/
  gap: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /*12等分,一欄*/
  /*grid-auto-rows: minmax(100px, auto); 指定列最小高度*/
  gap: 10px;
}

.col-12 {
  grid-column: span 12;
  /*指定跨幾欄*/
}

.charts-item,
.col-6 {
  grid-column: span 6;
}

/* =============================================================================== */
/* Charts & Charts-Table START
/* =============================================================================== */
.charts-date-table>table {
  border-collapse: collapse;
  /* 單層框線 */
  width: 95%;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 40px;
  font-size: 17px;
  text-align: center;
}

.charts-date-table>table th, tr, td {
  border: 1px solid var(--border-color);
  padding: 5px;
  width: 50%;
}

.chart-size {
  width: 100%;
  height: 400px;
  margin: 0 auto;
  padding: auto;
  margin-bottom: 0px;
  overflow: hidden;
}

.indicator-explain {
  text-align: center;
}

/* =============================================================================== */
/* Responsive START
/* =============================================================================== */
@media (max-width: 767px) {
  .charts-item {
    grid-column: span 12;
  }
}