/* =============================
*    fix Bootstrap CSS 
** ============================= */

table td {
    border-top: none;
}

.nav-tabs li a {
    border-bottom: 6px solid #ddd;
    text-decoration: underline;
}

.nav-tabs li a {
    border-bottom: 6px solid #ddd;
}

.nav-tabs li.active a {
    border-bottom: 6px solid #3276b1;
    text-decoration: none;
}

    .nav-tabs li.active a:hover {
        border-bottom: 6px solid #3276b1;
    }

table.borderless td {
    border-top-style: none !important;
}

/* 幫 table 裡的 label 加 line-height*/
.table-label-lineHeight-25px label {
    line-height: 25px;
}

/* 第一個 tr 沒有上方 border*/
table.borderlessTop tr:first-child td {
    border-top-style: none !important;
}

/* table 裡面的 li 之間有間隔*/
.table-li-space-8px li {
    padding-bottom: 8px;
}

/* 第一欄靠右對齊*/
.table-tdTextAlignRight tr td:first-child {
    text-align: right;
}

/* 第一個 td 寬 100*/
.table-firstTd100 tr:first-child td:first-child {
    width: 110px;
}

/* 為了做只有中間有線的表格 */
table.borderColumn td:first-child {
    border-left: 0px solid;
}

table.borderColumn td {
    border-left: 1px solid #ddd;
}

.form-column .input-group {
    margin-bottom: 10px;
}

/* fixed Bootstrap Modal Body offset bug*/

html {
    height: 100%;
}

body {
    height: 100%;
}

#logoImage {
    width: 420px;
}

#searchContainer {
    margin: 0 auto;
    width: 100%;
}

#searchArea {
    margin-top: 20px;
}

.wordRatingCollectCounter {
    float: right;
}

.wordListFilter {
    float: right;
}

/* unset bs3 setting */
.modal-open {
    overflow: auto;
}

.container {
    min-height: 100%;
    *display: table; /* For IE7 Hack */
    *height: 100%; /* For IE7 Hack */
}

.datepicker {
    z-index: 1151 !important;
}

/* =============================
*    customize CSS 
** ============================= */

a:active {
    color: #5cb85c;
}

h4.blue-back-ground {
    font-family: "微軟正黑體", Arial, Helvetica, sans-serif;
    font-size: medium;
    font-weight: normal;
    color: #fff;
    background: #3276b1;
    height: 30px;
    line-height: 30px;
    padding: 0 0 0 18px;
    margin-left: -25px;
}

.shadow {
    margin-left: -25px;
    margin-top: -10px;
    width: 11px;
    height: 11px;
    background: url(/Content/Images/shadow.png);
    float: left;
}


body {
    background-image: url(/Content/Images/background/bodyBg.jpg);
}

    body#backend {
        background-image: none;
    }


.content-area {
    padding: 10px 20px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}


.content-area-danger {
    border-left-color: #3276b1;
}

.content-area-primaryBlue {
    border-left-color: #3276b1;
}

.content-area-warning {
    border-left-color: #f0ad4e;
}

.content-area-success {
    border-left-color: #5cb85c;
}

.content-area-System {
    border-left-color: #4a9864;
}

.content-area-primaryBlue h4 {
    color: #3276b1;
    margin-bottom: 20px;
}

.content-area-success h4 {
    border-left-color: #5cb85c;
}

.content-area-System h4 {
    color: #4a9864;
    margin-bottom: 20px;
}

/* ==========  header  ========== */

.header {
    margin-bottom: 0px;
}

/* ========== 色塊 ========== */

.vertical-blue-bar {
    width: 3px;
    background-color: #3276b1;
    margin-right: 2px;
}

/* ========== 搜尋  ========== */

/* 搜尋區背景 */
#indexSearchBg {
    /*background-image:url("/Content/Images/background/search_background.jpg");*/
    background-size: 100% auto;
    max-height: 100%;
    max-width: 100%;
    height: 300px;
}

/* 搜尋框 */
.search-input-rounded-corners {
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    border-radius: 14px;
    border: 1px solid #cccccc;
    height: 50px;
    width: 500px;
}

/* 搜尋框(小) */
.search-input-rounded-corners-small {
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    border-radius: 14px;
    border: 1px solid #cccccc;
    height: 35px;
    width: 400px;
}

/* 搜尋框 */
#searchForm {
    text-align: center;
    padding-top: 20px;
}

/* 提示的顯示空間 */
input.search-query {
    padding-left: 20px;
}

/* ==========  首頁 Tab : 最新消息,熱門辭條,新增辭條, 相關連結  ========== */

#newsBg {
    background-image: url("/Content/Images/background/bg_grey_circle.png");
    background-repeat: repeat;
    box-shadow: -4px 4px 10px 4px rgba(20%,20%,40%,0.5);
    max-height: 100%;
    max-width: 100%;
    height: 500px;
    padding: 20px;
}

#newsBg-mobile {
    display: none;
}

#news_tab {
    padding: 0px;
}

#relatedBg {
    height: 100px;
    margin-top: -20px /* because Bootstrap Table auto bottom 20*/
}

/* ==========  列表頁的工具列 === */

.toolBar {
    margin-bottom: 70px;
}

/* ==========  辭條內容 ========= */

#wordList tr:nth-child(odd) {
    background-color: #F9F9F9;
}

.wordTitleBar {
    padding: 10px 0px;
}

.wordContent {
    padding: 5px 0px;
    font-size: larger;
}

.wordTitle {
    font-size: x-large;
    font-weight: bold;
}

.wordCount {
    font-size: 0.9em;
}

.wordDefination {
    word-break: break-all;
    font-size: 0.9em;
}

.withRefLink a {
    margin: 5px 0px 0px 1px;
    padding: 3px;
    background-color: #428bca;
    border-color: #357ebd;
    color: #FFFFFF;
    line-height: 30px;
}

/* ==========  mobile CSS ========== */

.mobile-word-menu {
    display: none;
}

#memberMenu-mobile {
    display: none;
}

/* ==========  print CSS ========== */

.printShow {
    display: none;
}

@media print {

    .tab-content > .tab-pane {
        margin-top: 20px;
        display: block !important;
        opacity: 1 !important;
    }

    .printHidden {
        display: none !important;
    }

    .printShow {
        display: inline !important;
    }
}

/* ==========  Footer & wrapper ========== */

.main-container {
    min-height: 100%;
    position: relative;
    background-color: #FEFBD0;
}

.main-body {
    padding-bottom: 25px; /* Height of the footer */
}

.main-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 25px; /* Height of the footer */
    background: #000000;
    color: #FFFFFF;
    font-size: 0.6em;
    margin: 0 auto;
    text-align: center;
    padding-top: 5px;
}

/* ==========  詞條資訊  ========== */

.wordTag {
    line-height: 30px;
    float: left;
}

.removeTag {
    line-height: 30px;
    float: left;
}

.collectTagPack {
    float: left;
}

.dropdown-menu li {
    text-align: left;
}

/* ==========  教育 Wiki  ========== */

#edu_wiki h1 {
    font-size: 1.4em;
    text-decoration: underline;
    margin-top: 30px;
}

#edu_wiki h2 {
    font-size: 1.3em;
    margin-top: 20px;
}

#edu_wiki h3 {
    font-size: 1.2em;
    margin-top: 15px;
}

#edu_wiki h4 {
    font-size: 1em;
    margin-top: 10px;
}

#edu_wiki div {
    word-break: break-all;
}

#edu_wiki ul {
    background-color: #F0F0F0;
    padding: 10px 10px 10px 30px;
    border: 1px solid #C9C9C9;
}

/* 教育 Wiki 的內容是外部來的 HTML，站上有兩條沒有限定範圍的規則會打到它的表格：
   search_result.css 的 tr td:first-child { width: 20% } 與
   PartialKeyboard.cshtml 內嵌的 tr td:first-child { width: 0 }。
   兩條都是為了搜尋結果的表格才寫的，這裡改回瀏覽器預設值，
   不然只有一欄的目錄會整張塌掉、多欄的表格第一欄也會被擠成一個字寬 */
#edu_wiki td {
    width: auto;
}

/* 目錄的表格寬度。原本只寫 #toc，但 Wiki 內容的 id 會被 SanitizeWiki 一律加上 "wiki-" 前綴
   （避免跟站上自己的 id 撞名），#toc 永遠比對不到，所以改用不會被改動的 class */
#edu_wiki .toc {
    width: 100%;
}

/* ==========  詞條評分  ========== */

.wordRating {
    unicode-bidi: bidi-override;
    direction: rtl;
}

    .wordRating > span {
        display: inline-block;
        position: relative;
        width: 1.1em;
    }

        .wordRating > span:hover:before,
        .wordRating > span:hover ~ span:before,
        .wordRating > span.ratingDone:before {
            content: "\2605";
            position: absolute;
            color: #ffd800;
        }

.dic {
    display: inline-block;
}
