/* Layout */
body {
  overflow-x: hidden;
  background: #faefb1;
  background-image:url(../../images/bg.png);
}
header {
  position: fixed;
  top: 0px;
  max-height: 100%;
  width: 100%;
  background: white;
  z-index: 2;
  overflow: auto;
}
main {
  padding-top: 78px;
}
button{
  cursor: pointer;
  border: 0;
  background-color: #f8f6f1;
}
.d-none {
  display: none !important;
}
@media screen and (max-width: 960px) {
  html {
    width: 100%;
  }
  body {
    width: 100%;
    min-width: 320px;
  }
  .box > :last-child,
  .box > :last-child > :last-child,
  .box > :last-child > :last-child > :last-child {
	margin: 0 3em;
  }
}
@media (max-width: 768px) {
  body {
    position: relative;
    min-height: 100vh;
    overflow: auto !important;
  }
  header {
    position: fixed;
    top: 0px;
    max-height: 100%;
    width: 100%;
    background: white;
    z-index: 1;
    overflow: auto;
    user-select: none;
  }
  .box > :last-child,
  .box > :last-child > :last-child,
  .box > :last-child > :last-child > :last-child {
	margin: 0 2em;
  }
}
@media (max-width: 450px) {
  #Logo img {
    height: 32px;
    width: 145px;
  }
  .box > :last-child,
  .box > :last-child > :last-child,
  .box > :last-child > :last-child > :last-child {
	margin: 0 2em;
  }
}

/* Navbar */
.navbar {
    padding: 14px 22px 14px 22px;
    border-bottom: 3px solid #f8f6f1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    background: #ffffff;
    position: fixed;
    width: 100%;
    z-index: 1;
	border-color: #f5e07b;
	border-width: 3px;
}

/*Logo*/
.navbar #Logo {
  margin-right: auto;
}
.navLogo {
  width: auto;
  height: 36px;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}

/*九宮格按鈕*/
.navbar #dots-menu{
  all: unset;
  cursor: pointer;
}

/*九宮格hover*/
.navbar .navbar_dots-menu_hover{
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  margin-right: 20px;
}
.navbar .navbar_dots-menu_hover:hover{
  border-radius: 100%;
  background-color: #CCCCCC;
}
.navbar .navbar_hover_show{
  border-radius: 100%;
  background-color: #CCCCCC;
}

/*九宮格選單*/
.jiugonggeContainer{
  position: fixed;
  width: 400px;
  height: 700px;
  top: 0%;
  right: 0%;
  margin: 60px 20px;
  z-index: 10;
  padding: 10px 0px;
  background: white;
  border: 3px solid #878787;
  border-radius: 15px;
}
.jiugonggeContent {
  width: 397px;
  height: 615px;
  top: 4%;
  display: flex;
  flex-wrap: wrap;
  overflow: auto;
  justify-content: center;
  position: relative;
}
/* iOS 設備檢測 */
@supports (-webkit-touch-callout: none) {
  button {
    /* 移除默認的邊框和輪廓 */
    border: none;
    outline: none;
    /* 移除默認的背景色和文字顏色 */
    background: none;
    color: inherit;
    /* 移除內邊距 */
    padding: 0;
    /* 移除 iOS 的默認按鈕樣式 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* 確保按鈕可以正確換行 */
    white-space: normal;
  }
}
.jiugonggeContainer.hide {
  display: none;
}
.jiugonggeContent div {
  width: 102px;
  height: 164px;
  margin: 0px 5px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.jiugonggeContent div:hover{
  background: #CCCCCC;
  border-radius: 15px;
  cursor: pointer;
}
.jiugonggeContent button {
  background: none;
  border: none;
  display: grid;
  align-items: flex-start;
  color: black !important;
  white-space: normal;
  line-height: 1.5;
}
.jiugonggeContent img {
  height: 90px;;
}
.jiugonggeContent span {
    font-size: 18px;
}
.jiugonggeContent::-webkit-scrollbar {
  width: 6px;
}
.jiugonggeContent::-webkit-scrollbar-track {
  background: rgb(0 0 0 / 0%);
}
.jiugonggeContent::-webkit-scrollbar-thumb {
  background: #CCCCCC;
}

/*RWD*/
@media (max-width: 768px) {
  .navbar #Logo {
    margin-right: auto;
  }
}
@media (max-height: 750px) {
  .jiugonggeContainer{
    height: 500px;
  }
  .jiugonggeContent {
    height: 435px;
  }
}
@media (max-width: 450px) {
  .navbar .navbar_dots-menu_hover{
    margin-right: 0px;
  }
  .jiugonggeContainer{
    width: 350px;
    height: 500px;
  }
  .jiugonggeContent {
    width: 347px;
    height: 430px;
  }
  .jiugonggeContent button {
    width: 90%;
  }
}
