/* element */

html {
    font-size: 15px;
    display: none;
}

*:not(html) {
    transition: opacity 0.25s;
}

select {
    max-width: 100%;
}

* {
    -webkit-overflow-scrolling: touch;
}

html[data-after-async-hide="true"] {
    display: block;
}

/* main */

@media(min-width:992px) {
    main {
        /* Header高度 calc(3.25rem + 2px) */
        padding-top: calc(3.25rem + 2px);
        /* footer高度 calc(18rem - 2.5px) */
        min-height: calc(100vh - 18rem + 1.5px);
    }
}

html, body {
    touch-action: manipulation;
}

* {
    /* font-family: 'Noto Sans TC', "微軟正黑體", sans-serif; */
    font-family: "微軟正黑體", sans-serif;
    letter-spacing: 0.025rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width:575px) {
    html {
        font-size: 14px;
    }
}

@media (max-width:1199px) {
    .container {
        max-width: 100% !important;
    }
}

/* 自製按鈕 */

.btn-fb {
    background-color: hsl(214, 89%, 52%);
    color: white;
}

.btn-outline-fb {
    border-color: hsl(214, 89%, 52%);
    color: hsl(214, 89%, 52%);
}

.btn-outline-fb:hover {
    border-color: hsl(214, 89%, 52%);
    color: #fff;
    background-color: hsl(214, 89%, 52%);
}

.btn-outline-fb:not(:disabled):not(.disabled):focus, .btn-outline-fb:not(:disabled):not(.disabled):active:focus, .btn-outline-fb:not(:disabled):not(.disabled):active, .btn-fb:not(:disabled):not(.disabled):focus, .btn-fb:not(:disabled):not(.disabled):active:focus, .btn-fb:not(:disabled):not(.disabled):active {
    box-shadow: 0 0 0 0.2rem hsla(214, 89%, 52%, 0.5);
}

.btn-outline-fb:not(:disabled):not(.disabled):active, .btn-fb:not(:disabled):not(.disabled):active {
    background-color: hsl(214, 89%, 52%);
    border-color: hsl(214, 89%, 52%);
}

.btn-line {
    background-color: hsl(120, 100%, 36.3%);
    color: white;
}

.btn-line:not(:disabled):not(.disabled):focus, .btn-line:not(:disabled):not(.disabled):active:focus, .btn-line:not(:disabled):not(.disabled):active {
    box-shadow: 0 0 0 0.2rem hsla(120, 100%, 36.3%, 0.5);
}

/* text decoration */

.text-underline {
    text-decoration: underline !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* word-break */

.word-break-all {
    word-break: break-all !important;
}

/* border */

.border-primary-disbled {
    border-color: #ffea7f !important;
}

.border-darkcyan {
    border-color: #14ada6 !important;
}

.border-lightgrey {
    border-color: #7d7d7d !important;
}

.border-bottom.border-dotted {
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-style: dotted !important;
}

.border-top.border-dotted {
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    border-style: dotted !important;
}

.border-bold {
    border-width: 2px !important;
}

.border-bolder {
    border-width: 4px !important;
}

.border-left-0.border-bold {
    border-top-width: 2px !important;
    border-right-width: 2px !important;
    border-left: 0 !important;
    border-bottom-width: 2px !important;
}

.border-right-0.border-bold {
    border-top-width: 2px !important;
    border-right-width: 0 !important;
    border-left-width: 2px !important;
    border-bottom-width: 2px !important;
}

@media (max-width:991px) {
    .border-mobile-white {
        border-color: #fff !important;
    }
    .border-mobile-solid {
        border-style: solid !important;
        border-width: 1px;
    }
    .rounded-mobile-0 {
        border-radius: 0 !important;
    }
    .rounded-mobile {
        border-radius: 0.25rem !important;
    }
}

@media (min-width:992px) {
    .border-mobile-solid {
        border-style: none !important;
        border-width: 0px !important;
    }
}

/* shadow */

.shadow-nt-sm {
    box-shadow: 0 .25rem .25rem 0 rgba(0, 0, 0, .16), 0 .75rem .75rem 0 rgba(0, 0, 0, .12) !important;
}

/* width */

.w-33 {
    width: 33.3% !important;
}

/* color */

.text-orange {
    color: #f39500;
}

.text-lightgrey {
    color: #7d7d7d !important;
}

.text-darkyellow {
    color: #FFCE00 !important;
}

@media(max-width:991px) {
    .text-mobile-white {
        color: #fff !important;
    }
    .text-mobile-primary {
        color: hsl(50, 100%, 64.9%) !important;
    }
}

/* white-space */

.text-wrap-normal {
    white-space: normal !important;
}

/* position */

.work-top.custom-control-label::before {
    top: 0 !important;
}

.work-top.custom-control-label::after {
    top: 0 !important;
}

.position-relative.right, .position-absolute.right, .position-fixed.right {
    right: 0 !important;
}

.position-relative.top, .position-absolute.top, .position-fixed.top {
    top: 0 !important;
}

.position-relative.left, .position-absolute.left, .position-fixed.left {
    left: 0 !important;
}

.position-relative.bottom, .position-absolute.bottom, .position-fixed.bottom {
    bottom: 0 !important;
}

/* bg */

.bg-lightgrey {
    background-color: #7d7d7d !important;
}

.bg-lightyellow {
    background-color: #ffea7f !important;
}

.bg-darkcyan {
    background-color: #14ada6 !important;
}

@media ( max-width: 991px) {
    .bg-mobile-light {
        background-color: hsl(0, 0%, 92.5%) !important;
    }
    .bg-mobile-primary {
        background-color: hsl(50, 100%, 64.9%) !important;
    }
    .bg-mobile-darkcyan {
        background-color: #14ada6 !important;
    }
    .bg-mobile-white {
        background-color: #fff !important;
    }
}

/* align */

@media ( min-width: 992px) {
    .text-lg-center {
        text-align: center !important;
    }
}

/* cursor */

.cursor-pointer, [data-toggle], [data-dismiss] {
    cursor: pointer !important;
}

.cursor-zoomin {
    cursor: zoom-in;
}

/* overlay */

#overlay {
    transition: background-color 0.25s, opacity 0.25s;
}

/* overflow */

.overflow-hidden {
    overflow: hidden !important;
}

/* Medium */

@media ( max-width: 991px) {
    /* 小螢幕時遮罩層 */
    .work-filter-dark {
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #000;
        opacity: 0.75;
        z-index: 999;
    }
}

/*** Custom Component ***/

.work-outer-component {
    /* TOUPDATE 特殊上稿需求 */
    width: 100% !important;
    max-width: 900px!important;
    border: 0 !important;
    overflow: hidden !important;
    display: block;
    margin: auto;
}

.row .work-fill {
    margin-left: -15px;
    margin-right: -15px;
}

.work-rounded {
    border-radius: 999rem;
}

/* modal覆寫 */

.modal {
    overflow: hidden !important;
}

.modal-content {
    border: 4px solid hsl(50, 100%, 74.9%);
    border-radius: 0;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.modal-content .modal-header {
    position: relative;
}

.modal-content .modal-header .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-dialog {
    margin-top: 0;
    margin-bottom: 0;
}

@media ( max-width: 576px) {
    .modal {
        padding-right: 0 !important;
    }
    .modal-dialog {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media ( max-width: 991px) {
    .modal-content {
        border: 0;
        border-radius: 0;
    }
    #plusDetail .modal-content {
        height: 80vh;
    }
    .modal-body {
        max-height: 50vh;
        overflow-y: scroll !important;
    }
    .modal-body>iframe {
        height: 100%;
    }
}

.modal-backdrop {
    display: none;
}

.modal {
    background: rgba(0, 0, 0, 0.75);
}

.modal .modal {
    background-color: transparent;
}

@media ( min-width: 992px) {
    .modal {
        background: rgba(255, 255, 255, 0.75);
    }
    .modal-body {
        max-height: 50vh;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    .modal-body>iframe {
        height: 45vh;
    }
}

.modal-open {
    max-height: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* swiper覆寫 */

.swiper-button-next, .swiper-button-prev {
    background-image: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.swiper-button-next {
    right: 0;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next::before, .swiper-button-prev::before {
    width: 100%;
    height: 100%;
    font-size: 1.8rem;
    display: block;
    /*font-family: 'Material Icons';*/
    color: white;
    text-align: center;
}

@media (min-width: 992px) {
    .breadCrumb-pt {
        padding-top: 10rem;
    }
}

/* Datepicker覆寫 */

.bootstrap-datetimepicker-widget table td.day {
    vertical-align: middle;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

@media (max-width:576px) {
    .bootstrap-datetimepicker-widget.dropdown-menu {
        position: fixed;
        top: calc(50vh - 140px) !important;
        left: calc(50vw - 140px) !important;
        bottom: auto !important;
        outline: calc(100vw + 100vh) solid rgba(0, 0, 0, 0.75);
        outline-offset: -1px;
        width: 280px;
        height: 280px;
        padding: 15px;
    }
    .bootstrap-datetimepicker-widget.dropdown-menu>ul, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-days, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-days>table, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-months, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-months>table, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-years, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-years>table, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-decades, .bootstrap-datetimepicker-widget.dropdown-menu>ul>li.show>.datepicker>.datepicker-decades>table {
        height: 100%;
    }
    .bootstrap-datetimepicker-widget.dropdown-menu.usetwentyfour:before, .bootstrap-datetimepicker-widget.dropdown-menu.usetwentyfour:after, .bootstrap-datetimepicker-widget.dropdown-menu.float-left:before, .bootstrap-datetimepicker-widget.dropdown-menu.float-left:after, .bootstrap-datetimepicker-widget.dropdown-menu.float-right:before, .bootstrap-datetimepicker-widget.dropdown-menu.float-right:after, .bootstrap-datetimepicker-widget.dropdown-menu.top:after, .bootstrap-datetimepicker-widget.dropdown-menu.top:before {
        display: none;
    }
}

/* 客製化Checkbox放大 */

.custom-control-secondary .custom-control-input:checked~.custom-control-label::before {
    background-color: #6c757d;
}

.custom-control-primary .custom-control-input:checked~.custom-control-label::before {
    background-color: #ffe14c;
}

.custom-control-secondary .custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(130, 138, 145, .5);
}

.custom-control-primary .custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(255, 234, 127, .5);
}

.custom-checkbox-lg .custom-control-label::before, .custom-checkbox-lg .custom-control-label::after {
    width: 1.5rem;
    height: 1.5rem;
    left: -0.5rem;
}

/* 客製化form元素(開關) */

.custom-control.custom-switch .custom-control-label {
    padding-left: 2rem;
}

.custom-switch .custom-control-input~.custom-control-label::before {
    top: 0;
    content: "";
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    color: #fff;
    padding-left: 24px;
    box-sizing: border-box;
    transition: all 0.15s;
}

.custom-switch .custom-control-input~.custom-control-label::after {
    content: "";
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    position: absolute;
    top: 0.2rem;
    left: calc(-1.5rem + 0.2rem);
    border-radius: 100%;
    background-color: white;
    transition: all 0.15s;
}

.custom-switch .custom-control-input:checked~.custom-control-label::after {
    left: 0.2rem;
}

/* 區塊標題 */

.work-legend {
    padding-bottom: 0.5rem;
    border-bottom-width: 3px !important;
}

.work-legend .border-left {
    padding-left: 1rem;
    border-left-width: 8px !important;
}

/* TAB效果 */

.work-tabs {
    border-bottom-width: 0;
}

.work-tabs {
    background-color: #f8f9fa !important;
}

.work-tabs .nav-link {
    border: 0;
    background-color: transparent !important;
    color: #343a40 !important;
}

.work-tabs .nav-link.active {
    background-color: #343a40 !important;
    color: #fff !important;
}

.work-tabs~.tab-content {
    border-top: 2px solid #343a40;
}

@media ( max-width: 991px) {
    .work-tabs {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        right: 0;
        width: 100%;
        z-index: 999;
        border-bottom: 1px solid;
        border-color: hsl(50, 100%, 64.9%) !important;
    }
    .work-tabs.nav-tabs .nav-item {
        margin-bottom: 0;
    }
    .work-tabs .nav-link {
        border-width: 0;
        background-color: #f8f9fa !important;
        color: #343a40 !important;
    }
    .work-tabs .nav-link:hover {
        border-color: #fff;
    }
    .work-tabs .nav-link.active {
        border-color: #343a40;
        background-color: hsl(50, 100%, 64.9%) !important;
        color: hsl(206, 10.8%, 12.7%) !important;
    }
    .work-tabs .nav-link span {
        margin-left: -1px;
        border-left: 1px solid hsl(50, 100%, 64.9%);
        width: 100%;
    }
    .work-tabs .nav-link.active span {
        margin-left: -1px;
        border-color: #fff;
    }
    .work-tabs~.tab-content {
        border-top: 0;
        margin-top: 0;
    }
}

.modal hr {
    margin-left: -1rem;
    margin-right: -1rem;
}

/**** Scroll Bar ****/

@media (min-width:992px) {
    ::-webkit-scrollbar {
        width: 10px;
        padding-right: 4px;
        background: #fff;
    }
    ::-webkit-scrollbar-track {
        background: hsl(0, 0%, 92.5%);
        border-radius: 100px;
        margin-left: 4px;
    }
    ::-webkit-scrollbar-thumb {
        background: hsl(50, 100%, 74.9%);
        border-radius: 100px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: hsl(50, 100%, 65.4%);
    }
}

/* placeholder */

::placeholder {
    color: rgba(0, 0, 0, 0.25) !important;
    /* Firefox */
    opacity: 1;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: rgba(0, 0, 0, 0.25) !important;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: rgba(0, 0, 0, 0.25) !important;
}

/* 頁數 */

.work-page {
    cursor: pointer;
    text-align: center;
}

.work-page:hover {
    text-decoration: underline;
}

.work-page.work-page-number {
    transition: all 0.15s;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    line-height: 1.5rem;
}

.work-page.work-page-number:hover, .work-page-active {
    text-decoration: unset;
    background-color: hsl(50, 100%, 74.9%);
}

/* IE10+ CSS styles */

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .d-flex>* {
        flex: 0 0 auto;
    }
    /* .rotateOut {
        animation-name: rotateOut-IE;
    } */
}

/* @keyframes rotateOut-IE {
    from {
        -webkit-transform-origin: center;
        transform-origin: center;
        opacity: 1;
    }
    to {
        -webkit-transform-origin: center;
        transform-origin: center;
        -webkit-transform: rotate3d(0, 0, 1, 180eg);
        transform: rotate3d(0, 0, 1, 180deg);
        opacity: 0;
    }
} */

/* 文章編輯器還原 */

.ckeditor * {
    word-break: break-all;
    max-width: 100%;
}

.ckeditor blockquote {
    font-style: italic !important;
    padding: 2px 8px 2px 20px !important;
    border: 0 solid #ccc !important;
    border-left-width: 5px !important;
}

.ckeditor blockquote p {
    font-family: Georgia, Times, "Times New Roman", serif;
}

.ckeditor p {
    margin: 1em 0;
    display: block !important;
}

.ckeditor ul, .ckeditor ol {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    padding: 0 40px;
}

@media (max-width:991px) {
    .ckeditor ul, .ckeditor ol {
        padding: 0 0 0 20px;
    }
}

.ckeditor ol {
    list-style-type: decimal !important;
}

.ckeditor ul {
    list-style-type: disc !important;
}

.ckeditor table {
    display: table;
    border-collapse: separate;
    border-style: outset;
    border-color: #000;
    width: auto !important;
}

.ckeditor table[cellspacing="0"] {
    border-collapse: collapse;
}

/* 表格內容修正 */

.ckeditor table td * {
    white-space: normal;
    word-break: break-all;
}

.ckeditor img {
    max-width: 100%;
    height: auto !important;
}

.ckeditor * {
    font-family: inherit;
}

.ckeditor iframe {
    max-width: 100%;
}

/* Datepicker覆寫 */

.bootstrap-datetimepicker-widget table td.disabled, .bootstrap-datetimepicker-widget table td.disabled:hover {
    color: #ddd;
}

.bootstrap-datetimepicker-widget table td.day.weekend:not(.disabled):not(.active) {
    color: hsl(200, 71.9%, 53.9%);
}

input[data-toggle="datetimepicker"]:read-only {
    background-color: white;
}

/* Animate CSS 擴寫 */

.rotate {
    -webkit-animation-name: rotate;
    animation-name: rotate;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
        opacity: 0;
    }
    12.5% {
        transform: rotate(45deg);
    }
    25% {
        transform: rotate(90deg);
    }
    37.5% {
        transform: rotate(135deg);
    }
    50% {
        transform: rotate(180deg);
        opacity: 1;
    }
    62.5% {
        transform: rotate(225deg);
    }
    75% {
        transform: rotate(270deg);
    }
    87.5% {
        transform: rotate(315deg);
    }
    100% {
        transform: rotate(360deg);
        opacity: 0;
    }
}

/* 回到頂端 */

#goTop {
    position: fixed;
    font-size: 28px;
    padding: 4px;
    line-height: 1;
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border: 2px solid #1d2124;
    display: block;
}

/* TEST 測試漸次顯示 */

[v-cloak] {
    opacity: 0;
}

/* footer設定 */

@media(max-width: 991px) {
    footer {
        display: block;
        width: 0;
        height: 0;
        overflow: hidden;
    }
}

img[src^="https://sp.analytics.yahoo.com"] {
    display: none;
}