@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);
/* 背景顏色 */
body{
    /* background-color: #D3E6DD; */
    background: url(背景.png);
    background-size: cover;
    overflow-y: scroll;
}
tbody{
    /* background-color: white; */
    float:center;
    display:table;
    border-collapse: collapse;
    font-family: Microsoft YaHei;
}
thead{
    width: 100%;
    line-height: 2;
    display: block;
    text-align: center;
    font-family: Microsoft YaHei;
    color:#29ABE2;
    font-size: 15pt;
    /* background-image: url(外框.png);
    background-size: cover; */
}
table{
    margin:0 auto;
    border-collapse: collapse;
    /* border-spacing: 10px; */
    z-index: 1;
}
td{
    background-color: white;
}
th{
    background-color: white;
}
/* 只有電腦版出現的 */
@media only screen and (min-width:800px){
    table{
        width:70%;
        
    }
    tbody{
        
        width:100%;
    }
    tr{
        width: 70vw;

        /* width: 100%; */
    }
    td{
        border-right:1.5px black solid;
    }
    th.thTitle{
        width:30%;
    }
    /* table的外框 */
    .notebook{
        background: url(外框.png);
        background-size: 100% 2.3em;
        width: 10%;
        height:2.3em;
        border-bottom: 0px;
        border-right:0px;
    }
    .TIME{
        width:10%;
    }
    .HOT{
        width:10%;
        text-align: center;
    }
    
    /* 分類排序的顏色 */
    .classfi{
        color:white;
        display: table-cell;
    }
    /* 分類排序的排版 */
    p.classfi{
        vertical-align: top;
        /* line-height: 1.8; */
    }
    a.classfi{
        line-height: 1.8;
        vertical-align: middle;
    }
    .clbtn{
        line-height: 1.8;
        vertical-align: middle;
    }
    /* 回到頁面最頂端按鈕 */
    .goTop{
        background: url(移至頂端2.png) no-repeat;
        background-size: cover;
        border-color: transparent;
        border-radius: 50%;
        width: 60px;
        height:60px;
        position: fixed;
        bottom: 3vw;
        right:50px;
    }
    /* 搜尋的位置 */
    .search{
        margin-right:15px;
        float:right;
    }
    /* 電腦版我要發問按鈕 */
    .askbutton{
        background: url(發問按鈕1.png) no-repeat;
        background-size: contain;
        width:130px;
        height:180px;
        float: right;
        vertical-align: middle;
        position: fixed;
        bottom: 20vh;
        right:15px;
    }
    /* 太空人舉手 */
    .askbutton-act{
        background: url(發問按鈕2.png) no-repeat;
        background-size: contain;
        width:130px;
    }
    tr.admin{
        width: 10%;
        /* width: 10vw; */
    }
    th.admin{
        /* width: 10%; */
        width: 10vw;
    }
    .type{
        width: 15%;
    }
    .askbutton2{
        display:none;
    }
    .classificationBtn{
        display:none;
    }
    /* 選到的分類/排序的切換 */
    .onclick{
        background-color:#29ABE2 !important;
        border-radius:20px !important;
    }
     /* 電腦版搜尋過後要返回首頁的按鈕 */
    .backToIndex{
        right:80px;
        top:20vh;
    }
    
}
        
/* 只有手機板介面出現的 */
@media only screen and (max-width:800px){
    .admin{
        display:none;
    }
    table{
        top:20vh;
        /* position: absolute; */
        width: 97%;
        float: center;
        font-size:12px;
    }
    thead{
        /* width: 100%; */
        font-size:14px;
    }
    tbody{
        width: 100%;
    }
    tr{
        /* height:50x; */
        width: 100%;
    }
    /* 手機版的thead */
    th.type{
        width:25vw;
    }
    th.thTitle{
        width:45vw;
    }
    th.TIME{
        width:20vw;
    }
    th.HOT{
        width:10vw;
    }
    /* 手機版的tbody */
    .notebook{
        display: none;
    }
    td.type{
        width:25vw;
    }
    td.title{
        width:40vw;
    }
    td.TIME{
        width:15vw;
    }
    td.HOT{
        width:10vw;
    }
    .modal{
        height:100%;
    }
    .classfi{
        color:black;
    }
    .search{
        float: left;
    }
    /* 手機版的排序分類排版 */
    .classification{
        margin:20px;
        position: absolute;
        z-index: 3999;
    }
    a.classfi{
        text-align: center;
    }
    p.classfi{
        text-align: center;
    }
    button.classfi{
      margin: 0 auto;
    }
    /* 選到的分類/排序的切換 */
    .onclick{
        color:#29ABE2;
        font-weight:bold;
    }
    /* 手機板回到頁面最頂端按鈕 */
    .goTop{
        background: url(移至頂端3.png) no-repeat;
        background-size: contain;
        border-color: transparent;
        border-radius: 50%;
        width: 40px;
        height:40px;
        position: fixed;
        bottom: 5vh;
        right:10px;
    }
    /* 手機版的我要發問按鈕 */
    .askbutton{
        background: url(手機發問2.png);
        background-size: 40px 40px;
        border-radius: 50%;
        width: 40px;
        height:40px;
        color: white;
        border-color: white;
        position: fixed;
        bottom: 20vh;
        right:10px;
        z-index: 3999;
    }
    /* 手機版搜尋過後要返回首頁的按鈕 */
    .backToIndex{
        right:0;
        margin-top: 10px;
        height:30px;
        font-size: 12px;
    }
    
}
/* 問題合集 */
.title{
    /* 標題的寬度一定要設成px才能用text-overflow: ellipsis
    網址:https://stackoverflow.com/questions/17779293/css-text-overflow-ellipsis-not-working */
    width:30%;
}
.Q{
    line-height: 2.3em;
    width: 100%;
    /* border-bottom: 1.5px #29ABE2 solid; */
}
/* 板規合集 */
.R{
    line-height: 2.3em;
    width: 100%;
    /* border-bottom: 1.5px #29ABE2 solid; */
}
td{
    text-align: center;
    /* width:120px; */
    border-bottom: 1.5px #29ABE2 solid;
}
/* th{
    width:120px;
} */
/* li{
    height:40px;
} */
/* 滑鼠移動到按鈕上面會變色的動畫 */
.mouseOn{
    color: #0056b3;
}
.article{
    text-align: left;
    /* margin:15px; */
    margin-left: 5px;
    font-family: Noto Sans TC;

}
/* 排序的按鈕 */
.clbtn{
    background: transparent;
    border-color: transparent;
}
/* 排序與分類 */
.classification{
    font-family: YouYuan;
    margin: 15px;
    /* display : flex;
    vertical-align : center; */
}
/* 排序與分類的按鈕 */
.classificationBtn{
    background: url(排序2.png);
    background-size: 25px 25px;
    float: left;
    border: medium none;
    width: 25px;
    height:25px;
    color: transparent;
    margin-top:15px;
    margin-left:10px;
}
/* 讓箭頭消失 */
.classificationBtn.dropdown-toggle::after{
    display:none;
}
/* 排序與分類文字 */
p.classfi{
    font-size:20px;
    font-weight:bold;
}
/* 搜尋按鈕 */
.searchbtn{
    background: url(搜尋2.png);
    background-size: 25px 15px;
    background-color: transparent;
    border: medium none;
    color: transparent;
    background-size: cover; 
    width: 25px;
    height:25px;
    margin-top:5px;
    margin-left: 5px;
}
.search{
    display: inline;
}
/* 搜尋輸入關鍵字欄 */
#searchtext{
    border-radius: 30px;
    height: 30px;
    width:150px;
    border-color: white;
    color:white;
    background-color: transparent;
    vertical-align: center;
}
#answer{
    width: 90%;
    margin: 0 auto;
}
/* modal標題欄 */
.modal-title{
    margin:0;
    font-family: Microsoft YaHei;
    font-weight:bold;
}
/* 發問modal的背景圖 */
.postQuestionAndRule{
    background-image: url(我要發問.png);
    background-size: cover;
  }
/* modal長寬設置 */
.modal{
    z-index: 5000;
    height:100%;
}
.modal-body{
    margin-left:20px;
    margin-right:20px;
}
/* 答案文字太長可以換行 */
p#show-answer{
    word-wrap:break-word;
}
/* 問題內容文字太長可以換行 */
p#show-content{
    word-wrap:break-word;
}
/* 板規內容文字太長可以換行 */
p#show-rule-content{
    word-wrap:break-word;
}
/* 問題與答案樣式 */
 .QA{
    background-image: url(問題.png);
    background-size: cover;
    font-family: Microsoft YaHei;
 }
 .blueLetter{
    display: inline;
    color: #29ABE2;
    font-weight:bold;
 }
 /* 送出問題與答案鈕 */
.submitbtn{
    border-radius: 15px;
    background-color: #29ABE2;
    border-color: #29ABE2;
    font-family: Microsoft YaHei;
 }
 /* 新增板規鈕 */
 .addRulebtn{
    float: left;
    border-radius: 15px;
    background-color: #29ABE2;
    border-color: #29ABE2;
    font-family: Microsoft YaHei;
 }
 /* 表單 */
 form{
    font-weight:bold;
    font-family: Microsoft YaHei;
 }
 /* OK按鈕 */
 .closemodal{
    background-color: #29ABE2;
    color: white;
    font-family: Microsoft YaHei;
    border-color: #29ABE2;
    border-radius: 20px;
    font-weight:bold;
 }
 /* 關閉按鈕 */
 .closebtn{
    font-family: Microsoft YaHei;
    border-radius: 15px;
 }
 /* 區別已送出刪除理由的問題 */
 /* .gray{
    background:gray;
 } */
 /* 搜尋過後要返回首頁的按鈕 */
 .backToIndex{
     display: none;
     /* float: right; */
     position: fixed;
     border-radius: 15px;
 }