:root {
  --GREY: #e6e6e6;
  --DARKGREY: #757575;
  --BRIGHTRED: #be0000;
  --GREY_1: #999999;
  --GREY_2: #2b2b2b;
  --yellow_1: #DD9E52;
}

/* 全局使用 Oswald 字型 */
body {
  font-family: 'Oswald', sans-serif;

}

/* * {
    font-family: 'Noto Serif TC', serif ;
    font-family: "Noto Sans TC", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
} */


/* 漢堡選單樣式：容器 */
.navbar-toggler {
  position: absolute;
  top: 4rem;
  right: 5rem;
  z-index: 1100;
  background-color: transparent;
  border: none;
  /* cursor: pointer; */
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform 0.3s ease;
}

.navbar-toggler.vertical {
  flex-direction: column;
  transform: rotate(90deg);
}

/* 漢堡選單線條樣式 */
.navbar-toggler .line {
  display: block;
  height: 10px;
  background-color: var(--yellow_1);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.3s ease, width 0.3s ease;
}

/* 不同線條的寬度 */
.navbar-toggler .line:nth-child(1) {
  width: 35px;
}

.navbar-toggler .line:nth-child(2) {
  width: 25px;
}

.navbar-toggler .line:nth-child(3) {
  width: 20px;
}

/* 隱藏時導覽列在螢幕右側外 */
.custom-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 20%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(13.5px);
  -webkit-backdrop-filter: blur(81.55px);
  /* Webkit 瀏覽器的模糊濾鏡 */
  z-index: 1050;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 顯示時滑入 */
.custom-nav.show {
  right: 0;
}

/* 導覽列連結樣式 */
.navbar-nav .nav-link {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem 0;
  text-decoration: none;
}

.navbar-nav .nav-link:hover {
  color: var(--yellow_1);
}

/* 禁止滾動 */
.no-scroll {
  overflow: hidden;
  height: 100%;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #dd9e52;
}

/* 左上角 LOGO */
.logo-overlay1 {
  position: absolute;
  top: calc(1rem + 3vh);
  left: calc(0rem + 5vw);
  z-index: 1101;
  width: calc(5rem + 2vw);
  height: auto;
}

.logo-overlay1 img {
  max-width: 100%;
  height: auto;
}

.dropdown-menu {
  position: absolute !important;
  top: 100%;
  left: 0;
  right: auto;
  transform: none;
}


pre {
  font-size: initial;
  color: initial;
}

/* old */
.text-blue {
  color: var(--BLUE);
}

.text-lightblue {
  color: var(--LIGHTBLUE);
}

.text-darkblue {
  color: var(--DARKBLUE);
}

.bg-blue {
  background-color: var(--BLUE);
}

.bg-darkblue {
  background-color: var(--DARKBLUE);
}

.bg-lightblue {
  background-color: var(--LIGHTBLUE);
}

.border-bottom-blue {
  border-bottom: 1px solid var(--BLUE);
}

.ratio-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* If you want text inside of it */
}

.ratio-container-1-1 {
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
}

.ratio-container-16-9 {
  padding-top: 56.25%;
  /* 1:1 Aspect Ratio */
}

.ratio-container-4-3 {
  padding-top: 75%;
  /* 1:1 Aspect Ratio */
}

/* If you want text inside of the container */
.ratio-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.sticky-top {
  position: -webkit-sticky;
  position: fixed;
  top: 0;
  z-index: 1020;
}

/* new 小於或等於 768px  */
@media (max-width: 768px) {
  .navbar-toggler {
    top: 1rem;
    right: 1rem;
    gap: 3px;
    transform: scale(0.6);
  }

  .navbar-toggler .line:nth-child(1) {
    width: 35px;
  }

  .navbar-toggler .line:nth-child(2) {
    width: 25px;
  }

  .navbar-toggler .line:nth-child(3) {
    width: 20px;
  }

  /* 導覽列寬度 */
  .custom-nav {
    width: 70%;
  }

  .custom-nav {
    width: 100%;
  }
}

@media (min-width: 576px) {
  .sticky-sm-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

@media (min-width: 768px) {
  .sticky-md-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

@media (min-width: 992px) {
  .sticky-lg-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

@media (min-width: 1200px) {
  .sticky-xl-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

@media (min-width: 1400px) {
  .sticky-xxl-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}


#othermenu1 ol li:hover {
  color: var(--LIGHTBLUE);
}

@media (min-width: 992px) {

}


#switch.is-active {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

#switch.is-active .line:nth-child(2) {
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

#switch .line:nth-child(3) {
  height: .1rem;
}

#switch .line:nth-child(2) {
  -webkit-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  transition-delay: 0.3s;
}


#switch.is-active .line:nth-child(2) {
  opacity: 0;
}

#switch.is-active .line:nth-child(1),
#switch.is-active .line:nth-child(3) {
  width: 1rem;
  margin: .8rem auto;
  -webkit-transform-origin: left;
  -moz-transform-origin: left;
  -ms-transform-origin: left;
  -o-transform-origin: left;
  transform-origin: left;
}

#switch.is-active .line:nth-child(1) {
  -webkit-transform: translateY(15px) rotate(45deg);
  -ms-transform: translateY(15px) rotate(45deg);
  -o-transform: translateY(15px) rotate(45deg);
  transform: translateY(15px) rotate(45deg);
}

#switch.is-active .line:nth-child(3) {
  -webkit-transform: translateY(-15px) rotate(-45deg);
  -ms-transform: translateY(-15px) rotate(-45deg);
  -o-transform: translateY(-15px) rotate(-45deg);
  transform: translateY(-15px) rotate(-45deg);
}


.morebutton {
  background-color: blue;
  letter-spacing: .2rem;
  border: 2px solid yellow;
}


@media (min-width: 576px) {
  .position-sm-static {
    position: static !important;
  }

  .position-sm-relative {
    position: relative !important;
  }

  .position-sm-absolute {
    position: absolute !important;
  }

  .position-sm-fixed {
    position: fixed !important;
  }

  .position-sm-sticky {
    position: sticky !important;
  }

  .w-sm-45 {
    width: 45% !important;
  }

  .w-sm-50 {
    width: 50% !important;
  }
}

@media (min-width: 768px) {
  .position-md-static {
    position: static !important;
  }

  .position-md-relative {
    position: relative !important;
  }

  .position-md-absolute {
    position: absolute !important;
  }

  .position-md-fixed {
    position: fixed !important;
  }

  .position-md-sticky {
    position: sticky !important;
  }

  .w-md-50 {
    width: 50% !important;
  }

}

@media (min-width: 992px) {
  .position-lg-static {
    position: static !important;
  }

  .position-lg-relative {
    position: relative !important;
  }

  .position-lg-absolute {
    position: absolute !important;
  }

  .position-lg-fixed {
    position: fixed !important;
  }

  .position-lg-sticky {
    position: sticky !important;
  }
}

@media (min-width: 1200px) {
  .position-xl-static {
    position: static !important;
  }

  .position-xl-relative {
    position: relative !important;
  }

  .position-xl-absolute {
    position: absolute !important;
  }

  .position-xl-fixed {
    position: fixed !important;
  }

  .position-xl-sticky {
    position: sticky !important;
  }
}

body {
  line-height: 2em;
}

@media (min-width: 576px) {
  body {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.75em;
  }
}

@media (min-width: 992px) {
  body {
    font-size: 16px;
    line-height: 2.5em;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 16px;
    line-height: 2.5em;
  }
}
