body {
  background-color: #333;
  font-family: sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}
.webtitle {
  margin-top: 60px;
  margin-bottom: 0;
  font-family: 'Arial Black', sans-serif; /* 使用Arial Black字體，或其他粗黑體字體 */
  font-size: 4em; /* 文字大小為4em，相當於瀏覽器預設字體大小的4倍 */
  text-align: center; /* 文字置中對齊 */
  color: rgb(255, 88, 88);
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* 增加文字陰影效果 */
  animation: shine 2s linear infinite; /* 新增閃爍動畫 */
}
.websubtitle {
  margin: 0;
  font-family: 'Arial Black', sans-serif; /* 使用Arial Black字體，或其他粗黑體字體 */
  font-size: 2em; /* 文字大小為4em，相當於瀏覽器預設字體大小的4倍 */
  text-align: center; /* 文字置中對齊 */
  color: rgb(11, 184, 11); /* 文字顏色為紅色 */
  animation: shine2 5s linear infinite; /* 新增閃爍動畫 */
}
@keyframes shine {
  0% {
    color: rgb(255, 88, 88);
  }
  50% {
    color: rgb(255, 105, 255);
  }
  100% {
    color: rgb(255, 88, 88);
  }
}
@keyframes shine2 {
  0% {
    color: rgb(11, 184, 11);
  }
  50% {
    color: gold;
  }
  100% {
    color: rgb(11, 184, 11);
  }
}
.header {
  background-color: #d00095;
  color: white;
  padding: 5px 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: fixed; /* Fixed position */
  top: 0; /* Align to the top */
  width: 100%; /* Make sure it spans the full width */
  z-index: 1000; /* Ensure it stays on top of other content */
}
.header a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
  padding: 10px;
  transition: background-color 0.3s;
}
.header a:hover {
  background-color: #ff00b7;
}
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.lesson-category{
  text-align: center;
  border-radius: 15px;
  background-color: rgb(0, 0, 190);
  width: max-content;
  padding: 4px 10px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  margin-bottom: 10px;
}
.button {
  margin: 5px 10px;
  padding: 15px 15px;
  border: none;
  border-radius: 50px;
  background-color: #2a842d;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}
.button:hover {
  background-color: #246427;
}
.chapter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 100%;
}
.chapter-list {
  display: none;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 10px;
  max-width: 400px;
  text-align: center;
  position: absolute;
  z-index: 1;
  background-color: white;
}
.chapter-button {
  display: block;
  margin: 5px auto;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background-color: #f0f0f0;
  color: #333;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.chapter-button:hover {
  background-color: #e0e0e0;
}
.container {
  position: relative;
  top: 100px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 80%;
  max-width: 1000px;
  background-color: #f2f2f2;
  padding: 30px;
  margin-bottom: 200px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.heading {
  color: black;
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}
.subheading {
  color: black;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}
.content {
  color: black;
  text-align: left;
  padding-top: 6px;
  padding-bottom: 6px;
  margin: 10px 0;
}
.contenthl {
  font-weight: bold;
  color: rgb(198, 35, 35);
  text-align: left;
  padding-top: 6px;
  padding-bottom: 6px;
  margin: 10px 0;
}
.dropdown-content {
  background-color: rgb(255, 247, 232);
  display: none;
  border: 1px solid gray; /* 添加邊框 */
  border-radius: 10px;
  padding-left: 10px;
  padding-right: 10px;
}
.expanded .dropdown-content {
  display: block;
}
.toggle-btn {
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: right;
  padding-top: 0px;
  padding-bottom: 0px;
}
.toggle-btn span{
  background-color: rgba(255, 217, 0, 0.2);
  height: 1.5em;
}
.floating-window {
  color: black;
  position: fixed;
  bottom: 110px;
  left: 10px;
  width: auto;
  height: auto;
  background-color: rgba(245, 222, 179, 0.8);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 10px 30px 10px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  z-index: 998; /* Ensure it stays on top of other content */
}
.floating-window.hidden {
  display: none;
}
.floating-window.comment {
  bottom: auto;
  top: 100px;
  text-align: left;
  padding: 30px 10px 10px 10px;
}
.floating-window.hidden {
  display: none;
}
.comment-window.hidden {
  display: none;
}
.toggle-button {
  position: fixed;
  bottom: 110px;
  left: 0;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  z-index: 999; /* Ensure it stays on top of other content */
}
.toggle-button.comment {
  bottom: auto;
  top: 100px;
}
.toggle-button.show {
  left: 10px;
  border-radius: 0 20px 0 20px;
}
.toggle-button.comment.show {
  left: 10px;
  border-radius: 20px 0 20px 0;
}
table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
  border-color: blue;
  padding: 3px;
  text-align: center;
}
.next-btn{
  position: fixed;
  bottom: 60px;
  right: 10px;
  padding: 10px;
  border-radius: 20px;
  background-color: #2a842d;
  text-decoration: none;
  color: white;
  transition: background-color 0.3s ease;
  z-index: 900;
}
.next-btn:hover {
  background-color: #246427;
}
.prev-btn{
  position: fixed;
  bottom: 60px;
  left: 10px;
  padding: 10px;
  border-radius: 20px;
  background-color: #2a842d;
  text-decoration: none;
  color: white;
  transition: background-color 0.3s ease;
  z-index: 900;
}
.prev-btn:hover {
  background-color: #246427;
}
.prac-btn{
  position: fixed;
  bottom: 110px;
  right: 10px;
  padding: 10px;
  border-radius: 20px;
  background-color: #a26400;
  text-decoration: none;
  color: white;
  transition: background-color 0.3s ease;
  z-index: 900;
}
.prac-btn:hover {
  background-color: #865300;
}