/* styles.css */
body {
    --bgColor: #fff;
    --fontColor: #424242;
    background: var(--bgColor);
    color: var(--fontColor);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    --bgColor: #121212;
    --fontColor: #ffffff;
}


.logo-container {
    margin-bottom: 20px;
    /* 添加一個底部間距 */
}

.logo {
    width: auto;
    height: auto;
    max-width: 300px;
    max-height: 156px;
    content: url('hchs.png');
    /* 正常模式下使用 hchs.png 圖片 */
}

.dark-mode .logo  {
    content: url('hchsdark.png');
    /* 在暗黑模式下使用 hchsdark.png 圖片 */
}

@media (prefers-color-scheme: dark) {
	body {
		--content: url('hchsdark.png');
	}
}



.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    padding: 15px;
    border: 1px solid var(--search-input-border-color, #ccc);
    /* 使用變數定義正常模式下的邊框顏色 */
    border-radius: 30px;
    outline: none;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--search-input-bg-color, #fff);
    /* 使用變數定義正常模式下的背景顏色 */
}

.dark-mode .search-input {
    --search-input-bg-color: #373737;
    --search-input-border-color: transparent;
    /* 在暗黑模式下，將背景顏色設置為 #373737，邊框顏色設置為透明 */
}


.search-button {
    position: absolute;
    right: -25px;
    top: 5px;
    background: linear-gradient(to right, #008efe, #00c9ff);
    border: 2px solid #00afff;
    border-radius: 30px;
    padding: 5px;
    cursor: pointer;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: scale(1.1);
}

.search-button:active {
    transform: scale(0.9);
}

.search-button img {
    width: 50px;
    height: 20px;
}

.color-squares {
    display: flex;
    justify-content: space-between;
    width: 300px;
    margin-top: 15px;
}

.color-square {
    flex: 1;
    height: 85px;
    background-color: var(--square-bg-color, #e2e2e2);
    /* 使用變數定義正常模式下的背景顏色 */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 7.5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.dark-mode .color-square {
    --square-bg-color: #373737;
    /* 在暗黑模式下，將背景顏色設置為 #373737 */
}


.status-text {
    margin-bottom: 5px;
}

.api-text {
    text-align: center;
}

.menu-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    z-index: 1100;
}

.menu-icon {
    width: 50px;
    height: 50px;
}

.menu-btn {
    background-color: transparent;
    border: unset;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    z-index: 1100;
}

.menu-btn:hover {
    background-color: transparent;
}

.menu-btn .bar {
    background-color: #acacac;
    border-radius: 100px;
    height: 4px;
    position: absolute;
    transform: translateX(-50%);
    width: 30px;
}

.menu-btn .bar-one {
    -webkit-animation: line-one-rev 0.7s forwards;
    animation: line-one-rev 0.7s forwards;
}

.menu-btn .bar-two {
    -webkit-animation: line-two-rev 0.7s forwards;
    animation: line-two-rev 0.7s forwards;
    top: 50%;
    transition: all 0.2s linear;
    transform: translate(-50%, -50%);
}

.menu-btn .bar-three {
    -webkit-animation: line-three-rev 0.7s forwards;
    animation: line-three-rev 0.7s forwards;
}

.animate .bar-one {
    -webkit-animation: line-one 0.7s forwards;
    animation: line-one 0.7s forwards;
}

.animate .bar-two {
    -webkit-animation: line-two 0.2s forwards;
    animation: line-two 0.2s forwards;
}

.animate .bar-three {
    -webkit-animation: line-three 0.7s forwards;
    animation: line-three 0.7s forwards;
}

@-webkit-keyframes line-one {
    0% {
        top: 0px;
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
}

@keyframes line-one {
    0% {
        top: 0px;
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
}

@-webkit-keyframes line-two {
    to {
        width: 0;
    }
}

@keyframes line-two {
    to {
        width: 0;
    }
}

@-webkit-keyframes line-three {
    0% {
        top: 26px;
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(135deg);
    }
}

@keyframes line-three {
    0% {
        top: 26px;
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(135deg);
    }
}

@-webkit-keyframes line-one-rev {
    0% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
           top: 0px;
    }
}

@keyframes line-one-rev {
    0% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 0px;
    }
}

@-webkit-keyframes line-two-rev {
    0%, 50% {
        width: 0;
    }
    100% {
        width: 30px;
    }
}

@keyframes line-two-rev {
    0%, 50% {
        width: 0;
    }
    100% {
        width: 30px;
    }
}

@-webkit-keyframes line-three-rev {
    0% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(135deg);
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 26px;
    }
}

@keyframes line-three-rev {
    0% {
        top: 50%;
        transform: translate(-50%, -50%) rotate(135deg);
    }
    50% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 26px;
    }
}

.drawer {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30px;
}

.drawer-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.drawer.open {
    transform: translateX(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 900;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.option {
    margin: 15px 0;
}

.option a {
    color: #000;
    text-decoration: none;
    font-size: 20px;
}

.option a:hover {
    text-decoration: underline;
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    margin: 0 13px;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 0;
}

.social-container {
    padding: 10px;
    text-align: left;
}
/* 在暗黑模式下修改导航抽屉的颜色 */
.dark-mode .drawer {
    background-color: #373737; /* 修改抽屉的背景颜色 */
    color: #bdbdbd; /* 修改抽屉中的文本颜色 */
}

.dark-mode .drawer a {
    color: #bdbdbd; /* 修改导航链接的文本颜色 */
}

.dark-theme {
    background-color: #222;
    color: #fff;
}

.option:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .search-container {
        width: 100%;
        padding: 0 10px;
    }
}

.menu-open+.backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.show {
    display: block;
}

.center {
    text-align: center;
}

.small-font {
    font-size: 12px;
}

.disclaimer {
    margin-top: 60px;
}

.container {
    border-radius: 10px;
    margin-top: 20px;
}

.container-bot {
    width: 800px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-top: 20px;
}

.rule-container {
    width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    margin-top: 1500px;
}

h1 {
    text-align: center;
    color: #333;
}

p {
    line-height: 1.5;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.rulebugbutton {
    position: absolute;
    right: 0px;
    top: 0px;
    background: linear-gradient(to right, #ffffff, #ffffff);
    border: 0px solid #008efe;
    border-radius: 0px;
    padding: 0px;
    cursor: pointer;
    color: white;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
}

.button-container img {
    width: 300px;
    height: auto;
}

.footer {
    text-align: center;
    margin-top: 20px;
}

.footer p {
    font-size: 40px;
}

.button-container {
    display: flex;
    justify-content: space-between;
}

.download-button {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.bottom-text {
    font-size: 32px;
    text-align: center;
    margin-top: 20px;
    color: white;
}

textarea {
    white-space: nowrap;
    overflow-x: auto;
}

.post {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.comment {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.comment .username {
    font-weight: bold;
}

.comment .timestamp {
    font-size: 12px;
    color: #666;
}

.comment .content {
    margin-top: 5px;
}

.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.comment-form button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment-form button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }
}

.dark-mode .footer {
    color: #fff;
}

.dark-mode .footer a {
    color: #ff0;
}

.theme-toggle,
.automatic-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    width: 40px; /* 調整按鈕寬度 */
    height: 40px; /* 調整按鈕高度 */
}

.theme-toggle:hover,
.automatic-toggle:hover {
    transform: scale(1.1);
    /* 鼠標懸停時放大按鈕 */
}

.theme-toggle:focus,
.automatic-toggle:focus {
    outline: none;
    /* 移除按鈕焦點時的輪廓 */
}
@media (prefers-color-scheme: dark) {
    body {
        --square-bg-color: #373737;
        --fontColor: #bdbdbd;
        --bgColor: #121212;
        --fontColor: #ffffff;
        --search-input-bg-color: #373737;
        --search-input-border-color: transparent;
        background: var(--bgColor);
        color: var(--fontColor);
    }

    .logo {
        content: url('hchsdark.png');
    }
}
/* styles.css */
.theme-toggle {
  --theme-toggle__classic--duration: 500ms;
}

.theme-toggle__classic path {
  transition-timing-function: cubic-bezier(0, 0, .15, 1.25);
  transform-origin: center;
  transition-duration: calc(var(--theme-toggle__classic--duration) * .8);
}

.theme-toggle__classic g path {
  transition-property: opacity, transform;
  transition-delay: calc(var(--theme-toggle__classic--duration) * .2);
}

.theme-toggle__classic :first-child path {
  transition-property: transform, d;
}

.theme-toggle--toggled .theme-toggle__classic g path {
  transform: scale(.5) rotate(45deg);
  opacity: 0;
  transition-delay: 0s;
}

.theme-toggle--toggled .theme-toggle__classic :first-child path {
  d: path("M-12 5h30a1 1 0 0 0 9 13v24h-39Z");
  transition-delay: calc(var(--theme-toggle__classic--duration) * .2);
}

@supports not (d:path("")) {
  .theme-toggle--toggled .theme-toggle__classic :first-child path {
    transform: translate3d(-12px, 10px, 0);
  }
}

.theme-toggle svg {
  position: absolute;
  top: 15px;
  right: -25px;
  transition: transform 0.5s ease;
}

.drawer {
  transition: transform 0.3s ease;
}

.drawer.open {
  transform: translateX(0);
}

.overlay {
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}
.theme-toggle .theme-toggle__classic circle,
.theme-toggle .theme-toggle__classic path {
    --tw-text-opacity: 1;
    color: rgb(172 172 172 / var(--tw-text-opacity));
}
.theme-toggle .theme-toggle__classic circle,
.theme-toggle .theme-toggle__classic path {
    fill: #acacac;
}


