/* #region reset css */
@charset "UTF-8";
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
/* #endregion */

/* #region default */
body {
  background-color: #FAFAFA;
  color: black;
  font-size: 16px;
  font-family: "微軟正黑體" !important;
}

/* #region container */

/* bootstrap v4.4 settings
 * reference https://getbootstrap.com/docs/4.4/layout/overview/
 */
.container {
  margin: 0 auto;
  max-width: 100%;
}
@media screen and (min-width: 576px) {
.container {
    max-width: 540px;
}
}
@media screen and (min-width: 768px) {
.container {
    max-width: 720px;
}
}
@media screen and (min-width: 992px) {
.container {
    max-width: 960px;
}
}
@media screen and (min-width: 1200px) {
.container {
    max-width: 1140px;
}
}

/* #endregion */

/* #region main-header - from v2 header scss compile */

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 5.5rem;
  margin-bottom: 3rem;
  background-color: #FFC777;
}
@media screen and (max-width: 768px) {
  .main-header {
    top: -5rem;
    height: 5rem;
    margin-bottom: 8.5rem;
  }
}
.main-header .image {
  display: flex;
  text-align: center;
  object-fit: contain;
}
.main-header .image.vertical {
  height: 100%;
}
.main-header .image.horizontal {
  width: 100%;
}
.main-header .image.contain {
  height: 100%;
  width: 100%;
}
.main-header .image-wrapper {
  display: block;
  height: 100%;
  width: 100%;
}
.main-header .logo {
  position: relative;
  margin: 0.55rem 0;
  width: 10rem;
}
.main-header .run-mode-mark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  color: olivedrab;
  font-weight: bold;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .main-header .run-mode-mark {
    bottom: -0.5rem;
  }
}
.main-header .container {
  display: flex;
  align-items: flex-start;
}
@media screen and (max-width: 768px) {
  .main-header .container {
    flex-wrap: wrap;
    position: relative;
    max-width: 100%;
  }
}
.main-header .wrapper-side {
  display: flex;
  justify-content: space-between;
  height: 100%;
  position: absolute;
}
@media screen and (max-width: 768px) {
  .main-header .wrapper-side {
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2;
    background-color: #FFC777;
  }
}
.main-header .wrapper-main {
  display: flex;
  justify-content: center;
  width: 100%;
}
@media screen and (max-width: 991px) {
  .main-header .wrapper-main {
    justify-content: flex-end;
  }
}
@media screen and (max-width: 768px) {
  .main-header .wrapper-main {
    position: absolute;
    top: 5rem;
    background: #FFFEE8;
  }
}
.main-header .logo {
  width: 15rem;
}
@media screen and (max-width: 768px) {
  .main-header .logo {
    height: 5rem;
    width: unset;
  }
}
.main-header .logo-wrapper {
  display: flex;
  align-items: center;
}
.main-header .zig-zag-borders {
  position: relative;
  bottom: 2rem;
  width: 100%;
  /** 波峰 */
  /** 波谷 */
}
.main-header .zig-zag-borders .trough, .main-header .zig-zag-borders .crest {
  position: absolute;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 1rem;
  background-repeat: repeat-x;
}
@media screen and (max-width: 768px) {
  .main-header .zig-zag-borders {
    position: absolute;
    top: 6rem;
    bottom: unset;
    z-index: 1;
  }
}
.main-header .zig-zag-borders .crest {
  background-image: radial-gradient(circle 1rem at top, #FFC777 80%, transparent 0);
  background-size: 2rem;
  background-position: 0;
}
.main-header .zig-zag-borders .trough {
  height: 0.6rem;
  background-image: radial-gradient(circle 1rem at bottom, transparent 62.5%, #FFC777 0);
  background-size: 2rem 2rem;
  background-position-x: 1rem;
  background-position-y: -1rem;
}
.main-header .fill-bg {
  position: absolute;
  bottom: -3rem;
  z-index: -2;
  height: 3rem;
  width: 100%;
  background-color: #FFFEE8;
}
@media screen and (max-width: 768px) {
  .main-header .fill-bg {
    display: none;
  }
}
.main-header .nav {
  display: flex;
  justify-content: space-between;
  margin: auto 0;
  padding: 0 0.5rem;
}
@media screen and (max-width: 768px) {
  .main-header .nav {
    width: 100%;
  }
}
@media screen and (max-width: 320px) {
  .main-header .nav {
    padding: 0;
  }
}
.main-header .link {
  cursor: pointer;
}
.main-header .nav-item {
  display: flex;
  padding-bottom: 1rem;
  background-color: silver;
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  box-shadow: 0 5px 0 #FFC777;
}
@media screen and (max-width: 768px) {
  .main-header .nav-item {
    margin-bottom: 10px;
  }
}
.main-header .nav-item-wrapper {
  margin: 0rem 0.25rem;
  cursor: pointer;
}
.main-header .nav-item .icon {
  display: block;
  padding: 2rem 1rem 0.5rem;
  width: 5rem;
}
@media screen and (max-width: 567px) {
  .main-header .nav-item .icon {
    padding: 2rem 0.5rem 0.5rem;
    width: 100%;
  }
}
.main-header .nav-item .label {
  display: block;
  color: white;
  text-align: center;
  font-weight: bold;
  cursor: inherit;
}
.main-header .nav-game .nav-item {
  background-color: #55009D;
}
.main-header .nav-knowledge .nav-item {
  background-color: #CD092D;
}
.main-header .nav-read .nav-item {
  background-color: #F59000;
}
.main-header .nav-shop .nav-item {
  background-color: #24AA00;
}
.main-header .nav-user .nav-item {
  background-color: #0A5FDF;
}

/* #endregion */

/* #region mini */
@media screen and (max-width: 567px) {
  .main-header.mini {
    height: revert;
    margin-bottom: revert;
  }

  .main-header.mini .container {
    flex-wrap: nowrap;
    align-items: center;
  }

  .main-header.mini .zig-zag-borders {
    display: none;
  }

  .main-header.mini .container .wrapper-side {
    width: unset;

    background-color: #FFC777;
  }

  .main-header.mini .container .logo {
    margin-left: 0.5rem;
    width: revert;
    height: 1.75rem;
  }

  .main-header.mini .container .logo .image {
    width: revert;
    height: 100%;
  }

  .main-header.mini .container .logo .run-mode-mark {
    font-size: 75%;
  }

  .main-header.mini .container .wrapper-main {
    flex: 1;

    position: revert;
    top: revert;

    justify-content: space-between;

    width: revert;
    background: revert;
  }

  .main-header.mini .container .nav-item {
    padding-bottom: 0;

    border-radius: 50%;
    border: revert;
    box-shadow: revert;
  }

  .main-header.mini .container .nav-item .link {
    display: flex;
  }

  .main-header.mini .container .nav-item .icon {
    margin: 0.375rem;
    padding: 0;
  }

  .main-header.mini .container .nav-item .label {
    display: none;
  }

  .main-header.mini .container .nav-item-wrapper {
    height: 2rem;
    width: 2rem;
  }

  .main-header.mini .router-link-exact-active .nav-item-wrapper {
    margin: 0.25rem;
  }
}

@media screen and (max-width: 320px) {
  .main-header.mini .container .logo {
    height: 1.5rem;
  }
}
/* #endregion */