html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* 系統通用頭部背景樣式 */
.header-gradient-bg {
    background-color: #4ac3da;
    background-image: linear-gradient(135deg, #4ac3da 0%, #36b3cf 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/*一閃閃閃*/
@keyframes blink {
    0% {
        opacity: 1.0;
    }


    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

.blink_text {
    animation: blink 1s infinite;
}

/*=============主選單======================*/

#mainMenu {
    position: fixed;
    top: 0;
    left: -290px;
    width: 300px;
    height: 100%;
    background-color: #333;
    transition: left 0.3s ease;
    z-index: 999;
    border-top-right-radius: 25px;
    overflow: auto; /* 顯示捲軸列，當內容超過父容器高度時 */
}

    #mainMenu nav {
        list-style: none;
        padding: 0;
        margin: 20px;
    }

        #mainMenu nav div {
            margin-bottom: 10px;
        }

            #mainMenu nav div a {
                text-decoration: none;
                color: white;
            }

    #mainMenu.open {
        left: 0;
    }

#menuIcon {
    padding: 5px;
    position: fixed;
    bottom: 50px;
    left: 10px;
    width: 60px;
    height: 60px;
    background-color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 999;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: center;
    white-space: pre-wrap;
}

    #menuIcon.open {
        transform: translateX(290px);
    }

/* 在您的 CSS 中添加樣式來美化清單項目 */
.parent-item {
    cursor: pointer;
}

.child-item {
    display: none;
    padding-left: 20px;
    /* 垂直排列第二層項目 */
    display: flex;
    flex-direction: column;
}
/*=============================================*/


/* 題目內的參數 */

.parameter-box {
    background: #FFFDE3;
    padding: 3px 6px;
    border-bottom: 1px dashed #ccc;
}

.fillquiz-box, .matchanswer-box {
    background: #ddff99;
    padding: 3px 6px;
    border-bottom: 1px dashed #ccc;
}


/*準備CSP規則============================*/
nav > ol > li > a {
    text-decoration: none;
}



/*參數選單==============*/
.paramRow {
    display: flex;
}

.paramContent, .paramMenu, .fillParamMenu, .matchAnsParamMenu {
    padding: 1em;
}

.paramContent {
    flex: 10;
}

.paramMenu, .fillParamMenu, .matchAnsParamMenu {
    flex: 2;
}

.paramHide, .fillParamHide, .matchAnsParamHide {
    display: none;
}

#paramMenu, #fillParamMenu, #matchAnsParamMenu {
    max-height: 800px; /* 根據需要調整高度 */
    overflow-y: auto;
}

/*datatable js設定*/
.table > tbody > tr > td {
    vertical-align: middle;
}

.table > thead > tr > th {
    text-align: center;
    vertical-align: middle;
}

#tablelist {
    width: 100% !important;
}

/*所有的label 設定*/
label {
    font-weight: bold;
}

/* 新增：標記按鈕即時樣式 */
.btn-mark-answer,
.btn-mark-answer i {
  transition: none !important;
}
.btn-mark-answer.btn-mark {
  color: #FFC107 !important;
}
.btn-mark-answer.btn-mark i {
  color: #FFC107 !important;
}

