/* next/prev button styling */
input[type=button] {
    cursor: pointer;
    background: white;
    width: 5vw;
    height: 3vh;
    border-radius: 5px;
    font-size: 0.8em;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    margin-top: var(--nav-height);
}

.optionsbtn {
    height: 50px;
    padding: 5px 10px;
    top: var(--nav-height);
    left: 0;
    position: fixed;
    z-index: 2;

    font-size: 20px;
    cursor: pointer;
    background-color: var(--nav-color);
    color: white;
    border: none;
}

.optionsbtn:hover {
    background-color: silver;
}


#option-panel {
    position: sticky;
    z-index: 3;
    height: 250px;
    top: var(--nav-height);
    left: 0;
    background-color: rgb(31, 38, 52);
    overflow-x: hidden;
    transition: 0.5s;
    height: calc(100vh - var(--nav-height) - 40px);
    display: flex;
    flex-direction: column;
    /* justify-content: space-around; */
    align-items: center;
    width: 25vw;
    padding-top: 40px;
    color: rgba(255, 255, 255, 0.75);
}
@media screen and (max-width: 600px) {
    #option-panel {
        width: 0vw;
    }
}

#option-panel a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

#option-panel a:hover {
    color: #f1f1f1;
}

#option-panel .closebtn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 36px;
}

#display {
    float: right;
    width: 70vw;
    transition: 0.5s;
    padding: 0px 5vw;
    color: rgba(255, 255, 255, 0.75);
    z-index: 1;
}
@media screen and (max-width: 600px) {
    #display {
        width: 100vw;
        padding: 0px 2.5vw;
    }
}

#display p {
    font-size: 0.8em;
}

#content-body {
    /* height: 200vh; */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.display-col {
    width: 100%;
    margin: 0;
}

.box {
    padding: 25px;
    margin: 10px 0;
    background-color: rgb(31, 38, 52);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    /* box-shadow: 5px 5px 5px rgba(0,0,0,0.2); */
    overflow-y: auto;
    max-height: 100vh;
    width: 100%;
    min-width: 500px;
    min-height: 200px;
}

#title {
    margin: 50px 0;
}

.question-title {
    vertical-align: middle;
}

.question-txt {
    overflow-y: hidden;
    /* color: rgb(255, 255, 255); */
    /* font-size: 0.7em; */
}

.hint-txt {
    margin-bottom: 2px;
}

.question-img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 确保文本中的图片正确显示 */
.question-txt img, .analysis-txt img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.choices {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.choices-vertical {
    display: grid;
    row-gap: 10px;
}

.choice-txt {
    border: 1px solid silver;
    /* text-align: center; */
    padding: 5px 10px;
    margin-right: 10px;
    width: fit-content;
    /* font-size: 0.7em; */
}

.answer-txt {
    color: green;
    font-weight: bold;
    /* font-size: 0.7em; */
}

.optbox {
    width: calc(90%);
    margin-bottom: 10px;
    transition: 0.5;
}

.opttitle {
    width: 90%;
    text-align: left;
}

.dd-label {
    margin: 0px 0;
    display: block;
}

#filter-submit {
    color: white;
    border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.button-success {
    background-color: rgb(28, 184, 65);
}

/* 统一字体大小和颜色 */
.question-txt {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    white-space: pre-wrap; /* 保留换行符和空格 */
    word-wrap: break-word; /* 长单词自动换行 */
    overflow-wrap: break-word; /* 现代浏览器的换行支持 */
}

.analysis-txt {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    white-space: pre-wrap; /* 保留换行符和空格 */
    word-wrap: break-word; /* 长单词自动换行 */
    overflow-wrap: break-word; /* 现代浏览器的换行支持 */
}

.meta-txt {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 确保段落内的文本样式一致 */
.question-txt p {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 12px 0;
    white-space: pre-wrap; /* 保留换行符 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.analysis-txt p {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 12px 0;
    white-space: pre-wrap; /* 保留换行符 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 列表样式 */
.question-txt ul, .analysis-txt ul {
    margin: 12px 0;
    padding-left: 25px;
}

.question-txt li, .analysis-txt li {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 6px 0;
    white-space: pre-wrap; /* 保留换行符 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 粗体和斜体样式 */
.question-txt strong, .analysis-txt strong {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: bold;
}

.question-txt em, .analysis-txt em {
    color: rgba(255, 255, 255, 0.9) !important;
    font-style: italic;
}

/* 确保所有文本元素都使用一致的字体 */
.question-txt *, .analysis-txt * {
    font-family: inherit !important;
}

/* 重置可能的默认样式 */
.question-txt br, .analysis-txt br {
    line-height: 1.5;
}

/* MathJax 数学公式样式调整 */
.MathJax {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.MathJax_Display {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    margin: 20px 0;
}

/* 确保 MathJax 渲染的公式与文本颜色一致 */
.question-txt .MathJax, .analysis-txt .MathJax {
    color: rgba(255, 255, 255, 0.9) !important;
}

.question-txt .MathJax_Display, .analysis-txt .MathJax_Display {
    color: rgba(255, 255, 255, 0.9) !important;
}