:root {
  --1st: #eee5d9; /*light-ivory*/
  --2nd: #e8e4e0; /*grey*/
  --3rd: #d2b68a; /*golden*/
  --4th: #fdffff; /*white*/
  --5th: #222d52; /*navy*/
  --6th: #000000; /*black*/
}

html,
body {
  font-family: "Noto Sans TC", sans-serif;
  color: #737373;
}

.bg-grey-fix {
  background: #666;
}

.bg-grey-transparent {
  background: rgba(0, 0, 0, 0.5);
  transition: 0.5s all;
}

.navbar-toggler {
  color: white !important;
  border: unset;
  line-height: 1em;
  font-size: 30px;
  float: none;
  text-align: right;
}

.navbar-toggler:focus {
  outline: unset;
}

.navbar-toggler > i {
  line-height: 1em;
}

#navbarNav {
  background: #f68836;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  max-height: 100%;
  overflow: auto;
}

#navbarNav a {
  color: white;
}

#navbarNav hr {
  border-top: unset;
  border-bottom: solid 1px white;
  max-width: 190px;
}

#close {
  color: white;
  position: absolute;
  right: 20px;
}

.nav-item {
  line-height: 3em;
}

#header img {
  max-width: 280px !important;
}

#logo_nav {
  order: 1;
}

#setting_nav {
  order: 2;
  margin-right: 12px;
  width: 200px;
  text-align: right;
}

#setting_nav a {
  color: white;
  font-size: 12px;
}

#setting_nav a:hover {
  color: #f19c4f;
}

#menu_nav {
  order: 3;
}

[aria-labelledby="language_menu"] {
  padding: unset;
  text-align: center !important;
  min-width: unset;
}

[aria-labelledby="language_menu"] > a {
  font-size: 12px !important;
  width: 120px;
  padding: 10px 15px 10px 15px;
  cursor: pointer;
  text-align: center;
}

[aria-labelledby="language_menu"] > a:hover {
  background-color: #ed8323;
  color: white !important;
}

[aria-labelledby="language_menu"] > a > img {
  width: 20px;
  height: 20px;
  margin-right: 3px;
  opacity: 0.8;
}

#language_menu {
  margin-left: 2px;
}

#language_menu > i.fas.fa-chevron-up,
#language_menu > i.fas.fa-chevron-down,
#currency_menu > i.fas.fa-chevron-up,
#currency_menu > i.fas.fa-chevron-down {
  font-size: 90%;
  opacity: 0.7;
}

#language_menu > img {
  width: 16px;
  height: 16px;
}

[aria-labelledby="currency"] {
  padding: unset;
  min-width: unset;
}

[aria-labelledby="currency"] > a {
  font-size: 12px !important;
  width: 70px;
  padding: 10px 15px 10px 15px;
  cursor: pointer;
}

[aria-labelledby="currency"] > a:hover {
  background-color: #ed8323;
  color: white !important;
}

#menu_nav button {
  border-left: 2px solid #777;
}

[aria-labelledby="language_menu"] a:nth-child(1):before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent #343a40 transparent;
  top: -6px;
  left: 8px;
}

[aria-labelledby="currency"] a:nth-child(1):before {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 6px 6px;
  border-color: transparent transparent #343a40 transparent;
  top: -6px;
  left: 2px;
}

.collapsing {
  overflow: hidden !important;
}

.collapse.show {
  height: 100%;
}

/*Start of loader*/

#page-loader.fade {
  display: none;
}

#page-loader.fade.show {
  display: block;
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: #fff;
  z-index: 9999;
}

.fade.show .spinner {
  -webkit-animation: rotation 0.6s infinite linear;
  animation: rotation 0.6s infinite linear;
}

.spinner {
  height: 50px;
  width: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -20px 0 0 -20px;
  border: 2px solid var(--gbbOrange);
  border-top: 2px solid #fff;
  border-radius: 100%;
}

@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(359deg);
  }
}

@keyframes rotation {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(359deg);
  }
}

/*End of loader*/

/*Start of scroll to top*/

.scroll-to-top {
  background-color: #ed8323;
  width: 50px;
  height: 50px;
  font-size: 25px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  position: fixed;
  right: 0;
  bottom: 80px;
  z-index: 999;
}

.scroll-to-top:focus,
.scroll-to-top:hover {
  background-color: #ed8323;
  color: #fff;
}

/*End of scroll to top*/

#content_container_base {
  padding-top: 72.15px;
}

@media (max-width: 590px) {
  #header img {
    max-width: 210px !important;
  }
  #content_container_base {
    padding-top: 66px;
  }
}

a {
  text-decoration: none !important;
}

@media (max-width: 520px) {
  #setting_nav {
    order: 3;
  }
  #menu_nav {
    order: 2;
  }
  #menu_nav button {
    border-left: unset;
    padding-right: 14px;
  }
  #language_menu {
    vertical-align: top;
  }
  .dropdown-menu-left {
    left: -17px;
  }
  [aria-labelledby="language_menu"] a:nth-child(1):before {
    left: 20px;
  }
  #content_container_base {
    padding-top: 90px;
  }
}

/* Chrome, Safari, Edge, Opera */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */

input[type="number"] {
  -moz-appearance: textfield;
}

.iti {
  width: 100%;
}

.iti input {
  padding-left: 100px !important;
}

/*fix the on9 safari and firefox issues*/

input[type="date"],
input[type="time"],
[type="button"] {
  -webkit-appearance: none;
  -moz-appearance: none;
}

.messenger {
  position: fixed;
  bottom: 130px;
  right: 0;
  padding: unset;
  margin: unset;
  text-align: -webkit-center;
  background: #25d366;
  z-index: 2;
}

.messenger img {
  width: 50px;
  height: auto;
}

.vertical-text {
  writing-mode: vertical-rl; /* Set the text orientation to vertical */
  text-orientation: mixed; /* Optional property for better browser support */
  white-space: nowrap; /* Prevent text from wrapping */
  padding: 10px;
  color: var(--4th);
}

#header {
  background: rgb(113, 124, 125, 0.5);
}

.container-fluid {
  max-width: unset !important;
  padding: 0 5%;
}

.row {
  margin: unset;
}

.clickable {
  cursor: pointer;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  align-content: center;
  justify-content: center;
}

.hidden {
  display: none;
}

section {
  padding: 5%;
  margin-bottom: 50px;
}

.overlay {
  border-image: linear-gradient(45deg, hsl(0 0% 0% / 0.5), hsl(0 0% 100% / 0.3))
    fill 1;
}
