@import url('them.css');

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 
    Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

div {
    margin: 0;
    padding: 0;
}


#books {
    position: fixed;
    display:contents;
    top:160px;
    font-size: 20px;
    height: 10vh;
    overflow: hidden;
}

#main {
    position: absolute;
    top: 60px;
    left: 0px;
    /* background-color: bisque; */
}


#main1 {
    /* position: fixed; */
    top: 100px;
    left: 0px;
    /* background-color: bisque; */
}

.titleBar {

    display: flex;
    justify-content: space-between;
    align-items: center;
    background-blend-mode: soft-light;
    background-color: inherit
}

#floatingButton {
    position: fixed;
    right: 0px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border: #beafaf;
    /* border-radius: 100px; */
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.507), inset 0px 0px 10px #beafaf;
    background-color: rgb(210, 158, 27,0.3);
    font-size: xx-large;
    z-index: 10000;
    display: block;
}

.floatPopup {
    border-radius: 20px;
    width: 10vw;
    height: 25vh;
    background-color: transparent;
    position: fixed;
    top: 62%;
    left: 85%;
    transform: translate(-50%, -50%);
    border: transparent;

    padding: 5px;

    /* box-shadow: 0px 0px 200px rgba(0,0,0,0.8), inset 0px 0px 10px #000000; */

    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 50px;
    z-index: 1000;

    /* 添加這行使按鈕垂直排列 */
    flex-direction: column;
}


.top_div {
    overflow: visible;
    display: block;
    height: 100%;
    padding-left: 1px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.001);
}

.top_div::first-letter {
    font-size: 5em; /* 调整为你想要的突出效果 */
    float: left; /* 使首字母悬浮 */
    line-height: 5; /* 可选：调整行高，使其与文本对齐 */
    margin-right: 18px; /* 可选：为首字母添加右边距 */
}

.book_cover {
    overflow: auto;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(55px, 2fr));
    gap: 5px;
}


.book {

    height: 8vh;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0px 0px 50px rgba(236, 228, 228, 0.882), inset 0px 0px 10px #effcfe7e;

}

.title {
    padding: 20px;
    font-weight: bold;
    font-size: 50%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1000;

}

.title1 {
    padding: 10px  ;
    font-weight: bold;
    font-size: 24px;
    position: fixed;
    top: 0px;
    left: 10px;
    z-index: 2000;

}

.title2 {
    padding: 10px;
    width: 35%;
    font-weight: bold;
    font-size: 100%;
    display: block;
}

.title-popup {
    padding: 10px;
    width: 100%;
    font-weight: bold;
    font-size: 100%;
    display: block;
}

.b {
    background-color: rgba(168, 212, 223, 0.684);
}

.g {
    background-color: rgb(190, 150, 228);
}

.r {
    background-color: rgb(244, 197, 161);
}

.i {
    background-color: rgb(179, 226, 162);
}

.k {
    background-color: rgba(246, 213, 169, 0.719);
}

.l {
    background-color: rgb(134, 169, 245);
}

.o {
    background-color: rgba(128, 255, 0, 0.293);
}

.a {
    background-color: rgba(241, 238, 122, 0.471);
}

/* ...其他書卷的顏色... */

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(213, 240, 222, 0.339);
}

.popup {
    /* 其他樣式 */
    border-radius: 20px;
    width: 400px;
    /* height: auto;  */
    background-color: rgba(244, 255, 249, 0.861);
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -70%);
    border: 10px solid rgba(151, 143, 143, 0.677);

    padding: 3px;
    display: block;
    box-shadow: 0px 0px 200px rgba(0, 0, 0, 0.8), inset 0px 0px 10px #000000;

    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 120%;
}


.pop-grid {
    width: 360px;
    height: 500px;
    overflow-y: auto; 
    /* 修改這裡 */
    /* background-color: rgba(221, 236, 236, 0.927); */
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(7, minmax(30px, .5fr));
    grid-auto-rows: 50px;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 100%;
}

/*  */

.contentZh {
    font-size: 100%;
    padding-top: 2px;
    display: flex;
    left:5px;
    align-items: flex-start;

}

.contentEn {
    font-size: 80%;
    font-weight: lighter;
    padding-bottom: 2px;
    display: flex;
    left:0px;
    align-items: flex-start;

}

.marker {
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;  /* 设置上边框 */
    border-bottom: 10px solid transparent;  /* 设置下边框 */
    border-left: 10px solid transparent;  /* 初始状态下为透明 */
    position: sticky;
    top: 3px;
    left: 2px;
    background-color: transparent;
  }
  
  .marker.marked {
    border-left: 10px solid #f30d0d9c;  /* 点击后显示箭头 */
    background-color: rgba(104, 168, 31, 0);
    box-shadow: 0px 0px 200px rgba(0, 0, 0, 0.588), inset 0px 0px 5px #000000;
  }
.marker.marked {
    background-color: rgba(104, 168, 31, 0);
    box-shadow: 0px 0px 200px rgba(0, 0, 0, 0.588), inset 0px 0px 5px #000000;
}


.menuButton {
    width: 100px;
    height: 50px;
    font-size:10px;
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 260px;
    color: #000000;
    background-color: #becbc6;
    box-shadow: 0px 0px 200px rgba(0, 0, 0, 0.588), inset 0px 0px 5px #000000;
}

.flipPage {
    font-size: small;
    width: 20px;
    margin: 0 5px;
}
.chapter {
    font-size: 20px;
}

.remind { 
    width: 80vw;
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: #f8eeee;
    padding:20px;
    border-radius: 10px;
}

.chapterSelect {
    width: 20px; 
    height: 30px; 
    margin-top: 8px;
    padding-left: 0; 
    padding: 4px; 
    text-align: center; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.dropdown-menu li {
    margin-bottom: 10px; /* 调整间距 */
}

/* 可选：增加下方间距 */
.dropdown-menu .dropdown-item {
    padding: 10px 15px; /* 调整内边距 */
}

.modal-body {
    color: #000;
    font-weight: 300;
    font-size: 20px;
}

.fixed-button {  /* 主頁固定按钮 */
    position: fixed; /* 使其固定在视口位置 */
    bottom: 20px; /* 距离底部20像素 */
    right: 20px; /* 距离右侧20像素 */
    background-color: rgba(249, 178, 178, 0.602); /* 背景颜色透明50% */
    border-radius: 50%; /* 圆形按钮 */
    padding: 10px; /* 内边距 */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* 添加阴影效果 */
    cursor: pointer; /* 鼠标悬停时显示为可点击指针 */
    transition: background-color 0.3s; /* 添加过渡效果 */
}

#chapterGrid {
    display: flex;
    flex-wrap: wrap;  /* 允许换行 */
    gap: 2px; /* 可选: 设置按钮之间的间距 */
}

.grid-button {
    width: 42px;  
   height: 40px;
}
.chapter-button {
    width: 100%;  
   height: 40px;
}

.overlay1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 确保在最上层 */
}

.custom-fixed-bottom {  /* 自定义的固定底部样式 */
    height: 6%;
    background-color: rgb(221, 234, 240);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* 添加向上方向的阴影 */
}

.empty-content {
    height: 24px; /* 可根据需要设置高度 */
}


.chapterSelect:disabled {
    opacity: 0.5; /* 使按钮呈现淡灰色 */
    cursor: not-allowed; /* 修改光标样式 */
}