
body {
    background-color: var(--custom-color-5);
    min-height: 100vh;
}

.text-shadow-1px-1px-black {
    text-shadow: 1px 1px black;
}
.bg-white-opacity-75 {
    background: rgba(255, 255, 255, 0.75);
}
.border-radius-5 {
    border-radius: 5px;
}

#content {
    margin: 140px auto 60px auto;
    position: relative;
    max-width: 1280px;
    width: 100%;
    padding: 0 15px;
}

.no-wrap {
    white-space: nowrap;
}
a:hover {
    text-decoration: none;
}

#mainNav {
    height: 100px;
}
nav,
.copyright {
    z-index: 1000;
}

.copyright small {
    color: var(--custom-nav-link);
}

div {
    position: relative;
}

/* 主區塊背景 */
#container {
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    max-width: 2000px;
    background-position-y: 100px;
    min-height: 100vh;
}
#container .image-bottom img {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* 標題 */
h1 { color: var(--custom-h1); font-size: 1.2em; margin: 0; }
h2 { color: var(--custom-h2); }
h2 > hr { border-top: 1px solid var(--custom-h2); }
h3 { color: var(--custom-h3); }

/* 頁首選單 */
.bg-nav { background-color: var(--custom-color-1); }

/* 頁尾背景 */
.bg-footer { background-color: var(--custom-color-1); }

/* 連結樣式 */
nav a.nav-link { color: var(--custom-nav-link); }
nav a.nav-link:hover { color: var(--custom-color-7); }

/* 按紐 */
.btn-go {
    color: white;
    background-color: var(--custom-color-2);
}
.btn-go:hover {
    color: white;
    background-color: var(--custom-color-3);
}


/* 徽章 */
.badge-lang {
    color: white;
    background-color: var(--custom-color-4);
}



.texts {
    position: relative;
}
.text-component {
    margin: 1%;
    border-radius: 1em;
}
.text-component .card-header {
    background-color: white;
    border-radius: 1em 1em 0 0;
}
.text-component .card-header a {
    color: #003AAD;
    font-weight: bold;
}

.pagination {}
.pagination .page-item .page-link {
    color: white;
    background: var(--custom-color-1);
    opacity: 0.5;
}
.pagination .page-item.active .page-link,
.pagination .page-item:hover .page-link {
    opacity: 1;
}

.bg-pink {
    background-color: #FD788D;
}
.bg-14356A {
    background-color: #14356A;
    color: #FFF;
}
.text-link {
    color: #003AAD;
}

.btn-group-label {
    background-color: #ffb5c0;
}
.btn-group-label:hover,
.btn-group-label.active {
    background-color: #D51259;
    color: white;
}
.btn-group-label a {
    color: black;
}
.btn-group-label:hover a,
.btn-group-label.active a {
    color: white;
}

.template {
    display: none;
}


.article-title {
    font-size: 18pt;
    padding: 180px 2rem 2rem 2rem;
}

.article-view {
    background-color: white;
}
.article-view .sentence-char {
    margin-right: 2em;
}

.article-view .btn-play-sound {
    font-size: 3rem;
}

.article-view .btn-play-sound[disabled] {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
    _filter: none;
    opacity: 0.25;
}

.article-view .sentence-ch {
    color: var(--custom-sentence-text);
    font-size: 1.25rem;
}

.article-view .word {
    font-size: 1.75rem;
    border-radius: 10px;
    color: #555;
}

.article-view .word:hover {
    text-decoration: none;
    background-color: var(--custom-color-2);
    color: white;
    cursor: pointer;
}

.article-view .pinyin {
    font-size: 1rem;
}

.article-view .card-header {
    color: #14356A;
    font-size: 16pt;
}

.article-view .btn-play-sound {
    width: 48px;
}

.text-image {
    max-width: 100%;
}
@media (min-width: 576px){
    .article-title {
        padding: 15px;
    }
    .article-title {
        font-size: 1.75rem;
        border-radius: 20px 20px 0 0;
        border-bottom: 1px solid #CCC;
    }
}

#word-detail-side-bar {
    position: fixed;
    width: 360px;
    background-color: rgba(255, 255, 255, 0.9);
    top: 0;
    z-index: 10;
    height: 100vh;
    padding-top: 100px;
    right: -100%;
    border-left: 1px solid #EEE;
}

#word-detail-side-bar .close-btn {
    text-align: right;
    margin-right: 24px;
    font-size: 16pt;
}

#word-detail-side-bar.show {
    right: 0;
}

#word-detail-side-bar .sentence {
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 10px 0;
}
#word-detail-side-bar .sentence .pinyin { font-size: 6pt; }
#word-detail-side-bar .sentence .text { font-size: 14pt; }
#word-detail-side-bar .sentence .sentence-ch {
    font-size: 10pt;
    color: var(--custom-sentence-text);
}
#word-detail-side-bar .sentence .dialect_name { }
#word-detail-side-bar .detail {
    height: calc(100vh - 350px);
    overflow-y: auto;
    overflow-x: hidden;
}

#word-detail-side-bar .prev-word:empty {
    display: none;
}
#word-detail-side-bar .word-info > .text {
    font-size: 36pt;
    background: #484848;
    color: white;
    margin-bottom: 10pt;
    border-radius: 50px;
    padding: 20px;
    display: inline-block;
    line-height: 36pt;
}
#word-detail-side-bar .word-info > .text > .word {
    color: white;
}
#word-detail-side-bar .derived-word {
    color: var(--custom-btn-text-color);
    background-color: var(--custom-btn-text-bg);
}
#word-detail-side-bar .derived-word:hover {
    background-color: var(--custom-btn-text-bg-hover);
}
#word-detail-side-bar .pinyins {
}
#word-detail-side-bar .pinyins .pinyin {
}
#word-detail-side-bar .pinyins .pinyin .text {
    font-size: 10pt;
}

#word-detail-side-bar .title {
    margin-top: 15px;
    font-size: 12pt;
}

#word-detail-side-bar .word-search-trigger:hover {
    cursor: pointer;
    text-decoration: underline;
}

#word-detail-side-bar .word .pinyin {
    font-size: 8pt;
}
