:root {
    /*ecard*/
    --brand-color: #F0BB00;
    /*--primary: #343660;*/
    --primary: #F0BB00;
    --primary-15: rgba(240, 187, 0, 0.15);
    --primary-25: rgba(240, 187, 0, 0.25);
    --primary-50: rgba(240, 187, 0, 0.5);
    --primary-70: rgba(240, 187, 0, 0.7);
    --primary-medium: #D69D00;
    --primary-dark: #A37800;
    --secondary: #f4810e;
    --secondary-15: rgba(244, 129, 14, 0.15);
    --secondary-dark: #d7710b;
    --info: #35A6DF;
    --info-15: rgba(53, 166, 223, 0.15);
    --success: #2ADEB9;
    --success-dark: #1c947c;
    --success-15: rgba(42, 222, 185, 0.15);
    /*--warning: #DEB11F;*/
    --warning: #FED859;
    --warning-light: #DEB11F26;
    --warning-15: rgba(222, 177, 31, 0.15);
    --danger: #DE724B;
    --danger-light: #DE724B26;
    --danger-dark: #a94e2d;
    --danger-15: rgba(222, 114, 75, 0.15);
    --white: #f5f7fe;
    --white-25: rgba(255, 255, 255, 0.25);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-10: rgba(255, 255, 255, 0.1);
    --gray-01: #F4F4F4;
    --gray-02: #F2F2F2;
    --gray-06: #E8E8E8;
    --gray-10: #DDDDDD;
    --gray-25: #B9B9B9;
    --gray-45: #878787;
    --gray-65: #565656;
    --gray-85: #242424;
    --font-family: "Heiti TC", "微軟正黑體", "Microsoft JhengHei", "CS_font";
    --title-font-family: 'Noto Sans TC', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');
/*@font-face {*/
/*font-family: 'HunInn';*/
/*src: url(https://cdn.jsdelivr.net/gh/marsnow/open-huninn-font@1.1/font/jf-openhuninn.eot); !* IE9 Compat Modes *!*/
/*src: url(https://cdn.jsdelivr.net/gh/marsnow/open-huninn-font@1.1/font/jf-openhuninn.eot?#iefix) format("embedded-opentype"), !* IE6-IE8 *! url(https://cdn.jsdelivr.net/gh/marsnow/open-huninn-font@1.1/font/jf-openhuninn.woff) format("woff"), !* Modern Browsers *! url(https://cdn.jsdelivr.net/gh/marsnow/open-huninn-font@1.1/font/jf-openhuninn.ttf) format("truetype"), !* Safari, Android, iOS *! url(https://cdn.jsdelivr.net/gh/marsnow/open-huninn-font@1.1/font/jf-openhuninn.svg#SealmemoryHeader) format("svg"); !* Legacy iOS *!*/
/*}*/

.dev {
    position: relative;
    padding: 0.5rem 0;
    color: #03A696;
}

.dev:before {
    content: "開發說明";
    padding: 0.25rem;
    margin: 0.25rem;
    border-radius: 0.5rem;
    color: #ffffff;
    background-color: #03A696;
    font-size: 0.875rem;
}


.dev-block {
    position: relative;
    margin: 1rem 0;
    border: 2px solid var(--danger);
    border-style: dashed;
    padding: 1rem;
    border-radius: 1rem;
}

.dev-block:before {
    content: "開發中";
    color: var(--danger);
    font-size: 1.5rem;
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    width: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: #ffffff;
    /*color: var(--primary);*/
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}


/* === GRID === */
.row {
    margin-right: -7.5px;
    margin-left: -7.5px;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-left: 7.5px;
    padding-right: 7.5px;
}


/* COLUMN-COUNT */
.custom-col-4 {
    -webkit-column-count: 4;
    -moz-column-count: 4;
    column-count: 4;
}

.custom-col-3 {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
}

.custom-col-2 {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

.custom-col-1 {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
}

@media (min-width: 576px) {
    .custom-col-sm-4 {
        -webkit-column-count: 4;
        -moz-column-count: 4;
        column-count: 4;
    }

    .custom-col-sm-3 {
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
    }

    .custom-col-sm-2 {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .custom-col-md-4 {
        -webkit-column-count: 4;
        -moz-column-count: 4;
        column-count: 4;
    }

    .custom-col-md-3 {
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
    }

    .custom-col-md-2 {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
}


/* Masonry */
.card-columns {
    -webkit-column-count: 1;
    -moz-column-count: 1;
    column-count: 1;
}

.card-columns .card {
    margin-bottom: 1rem;
    border-radius: 0.125rem;
    overflow: hidden;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.card-columns .card:hover {
    -webkit-transform: translate(0, -8px);
    -ms-transform: translate(0, -8px);
    transform: translate(0, -8px);
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);
}

.card-columns .card-header {
    border: none;
    color: var(--gray-85);
    background-color: transparent;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-columns .card:hover .card-header {
    color: var(--primary);
    white-space: normal;
}

/* limit ratio */
.card-columns .card figure {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: calc((9 / 16) * 100%); /*作品上傳尺寸為1280*720*/
    margin-bottom: 0;
    text-align: center;
    overflow: hidden;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.card-columns .card figure.portrait {
    padding-bottom: calc(16 / 9 * 100%);
}

.card-columns .card.default .item {
    background-color: var(--primary-15);
}

.card-columns .card.default figure:after {
    content: '\f03e';
    font-family: "Font Awesome 5 Free";
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--gray-45);
    font-size: 3rem;
    transform: translate(-50%, -50%);
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.card-columns .card.default img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
    color: var(--gray-45);
    font-size: 0.875rem;
}


.card-columns .card figure img {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    -o-object-fit: cover;
    object-fit: cover;
}

@media (min-width: 768px) {
    .card-columns {
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
    }
}

@media (min-width: 992px) {
    .card-columns {
        -webkit-column-count: 4;
        -moz-column-count: 4;
        column-count: 4;
    }
}


/*------------------------------------*\
    $UTILITY
\*------------------------------------*/
.divider {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 1px;
    margin: 0 0 1.5rem 0;
    padding: 0;
    color: var(--gray-06);
    font-size: 0.875rem;
    font-variant: tabular-nums;
    line-height: 1.375;
    list-style: none;
    -webkit-font-feature-settings: "tnum", "tnum";
    font-feature-settings: "tnum", "tnum";
    background: var(--gray-10);
}

.divider-vertical {
    position: relative;
    top: -.06em;
    display: inline-block;
    width: 1px;
    height: .9em;
    margin: 0 8px;
    vertical-align: middle;
}

.divider-horizontal {
    display: block;
    width: 100%;
    height: 1px;
    clear: both;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
}


/* === TEXT === */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    /*font-weight: 900;*/
    font-family: var(--title-font-family);
}

a {
    color: var(--gray-85);
    cursor: pointer;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

a.text {
    background-color: var(--primary);
}


a.text:hover {
    background-color: var(--primary-70);
    color: var(--gray-85);
}


caption {
    color: var(--gray-45);
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-md {
    font-size: 1.25rem !important;
}

.text-underline {
    text-decoration: underline;
}

.text-primary {
    color: var(--gray-85) !important;
    background-color: var(--primary);
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-muted {
    color: var(--gray-65) !important;
}

.text-back {
    display: block;
    margin-bottom: 1rem;
}

.text-distributed {
    text-align: justify;
    text-justify: distribute-all-lines;
    text-align-last: justify;
}

textarea {
    resize: none;
}

i.left {
    padding-right: 0.25rem;
}

i.right {
    padding-left: 0.25rem;
}

a[aria-expanded="false"] span > i {
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

a[aria-expanded="true"] span > i {
    padding-left: 0.25rem;
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

textarea, input {
    padding: .375rem .75rem;
    border: 1px solid var(--gray-25);
    border-radius: 0.25rem;
}

.small, small {
    font-size: 90%;
}


ul {
    padding-left: 0;
}

ul > li {
    list-style: none;
    line-height: 1.5;
}

ul.list-style-none > li {
    list-style-type: none;
}

ul.list-style-disc > li {
    list-style: disc;
    margin-left: 1.5rem;
}

ul.list-style-ckj > li {
    list-style-type: cjk-ideographic;
    margin-left: 2rem;
}

.span-comma > span:not(:first-child):before {
    content: '、';
}

.a-comma > a:not(:first-child):before {
    content: '、';
    color: var(--gray-85);
}


.alert-primary {
    color: var(--gray-85);
    background-color: var(--primary-15);
    border-color: var(--primary);
}

.alert-secondary {
    color: var(--gray-85);
    background-color: var(--secondary-15);
    border-color: var(--secondary);
}

.alert a.btn {
    color: var(--primary);
    text-decoration: none;
}

.alert a.btn:hover {
    color: #FFFFFF;
}


/* === BORDER === */
.border-primary {
    border-color: var(--primary) !important;
}

.border-danger {
    border-color: var(--danger) !important;
}

/*===== BACKGROUND =====*/
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-info {
    background-color: var(--info) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-purple {
    background-color: var(--purple) !important;
}

.bg-primary-light {
    background-color: var(--primary-15) !important;
}

.bg-primary-light > a {
    color: var(--gray-85) !important;
}

.bg-gray-02 {
    background-color: var(--gray-02) !important;
    color: var(--gray-85) !important;
}


/* === MAIN === */
main {
    position: relative;
}

.main-content {
    padding-top: calc(0.75rem * 1.5 + 1.125rem * 1.5 + 1rem * 2); /* nav height */
    min-height: calc(100vh - 107px); /* view height - footer height */
}

.main-content > section:first-of-type {
    /*margin-top: calc(1.25rem * 1.5 + 0.75rem * 2 + 1rem * 1.5 + 2px * 2 + 1px * 2);*/
}


.container {
    position: relative;
}

h2.title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

h3.sub-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

section {
    position: relative;
    padding: 0rem 0;
}

section:nth-of-type(2n) {
    background-color: var(--gray-01) !important;
}

@media (min-width: 576px) {
    h2.title {
        margin-bottom: 2rem;
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    h2.title {
        margin-bottom: 2.5rem;
    }

    section {
        position: relative;
        padding: 0rem 0;
    }

    .main-content {
        padding-top: calc(0.875rem * 1.5 + 1.25rem * 1.5 + 1rem * 2);
    }
}


@media (min-width: 992px) {
    /*section {*/
    /*    padding-top: 40px;*/
    /*    margin-bottom: 40px;*/
    /*}*/
    .main-content {
        min-height: calc(100vh - 144px); /* view height - footer height */
    }
}


@media (min-width: 1400px) {
    .container {
        max-width: 1370px;
    }
}


.title-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    /*overflow: hidden;*/
}

.title-wrapper h2.title,
.title-wrapper .form-group,
.title-wrapper .btn {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.title-wrapper h3.sub-title {
    line-height: 1.9;
}

.title-wrapper h3.sub-title,
.title-wrapper .form-group {
    margin-bottom: 0;
}

.title-wrapper .label-title {
    font-weight: 600;
    color: var(--gray-85);
}

.title-wrapper .form-group {
    max-width: 10rem;
}

.title-wrapper .form-group + .form-group {
    margin-left: 0.5rem;
}

.title-wrapper .form-group-inline {
    display: inline-flex;
    align-items: center;
}

.title-wrapper__main {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-10);
}

@media (max-width: 575.99px) {
    .title-wrapper h2.title {
        display: block;
        margin-bottom: 1rem;
    }

    .title-wrapper .d-flex {
        width: 100%;
    }

    .title-wrapper .form-group-inline {
        width: 100%;
    }

    .title-wrapper .form-group {
        width: calc(50% - 0.25rem);
        margin-top: 0.5rem;
    }

    .title-wrapper .form-group + .form-group:nth-child(odd) {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    /*.title-wrapper h2.title {*/
    /*    margin-bottom: 0;*/
    /*}*/
}

/* === CARD === */
.card {
    border-color: var(--gray-10);
}


.data-section:not(:last-of-type) {
    padding-bottom: 3rem;
}

.data-section .title-wrapper .sub-title {
    position: relative;
    padding-left: 1rem;
}

.data-section .title-wrapper .sub-title:before {
    content: '';
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 0.25rem;
    height: calc(100% - 0.5rem);
    background-color: var(--primary);
}

.data-section .table {
    margin-bottom: 0;
}


.overview-block .row {
    margin-left: 0;
    margin-right: 0;
}

.overview-item {
    padding: 1rem 0.25rem;
}

.overview-item:not(:last-of-type):after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 2rem;
    background-color: var(--gray-10);
}

.overview-item .caption {
    color: var(--gray-45);
}

.overview-item .content {
    padding-top: 0.75rem;
    color: var(--gray-85);
    font-size: 1.25rem;
}


@media (min-width: 768px) {
    .overview-item .content {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .overview-item.col-6:nth-child(even):after {
        width: 0;
    }
}

@media (min-width: 576px) {
    .overview-item {
        padding: 1.5rem 0.25rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .overview-item.col-sm-4:nth-child(3):after {
        width: 0;
    }
}

@media (min-width: 768px) {
    .overview-item.col-md-3:nth-child(4):after {
        width: 0;
    }
}


/* === BUTTON === */
.btn.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.btn-primary {
    color: var(--gray-85);
    background-color: var(--primary);
    border-color: var(--gray-85);
}

.btn-primary:hover {
    background-color: var(--primary-70);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
    background-color: var(--primary-medium);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-primary.focus, .btn-primary:focus {
    background-color: var(--primary-70);
    border-color: var(--gray-85);
    color: var(--gray-85);
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);
}

.btn-primary.disabled, .btn-primary:disabled {
    background-color: var(--primary);
    border-color: var(--gray-85);
    color: var(--gray-85);
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-secondary.disabled, .btn-secondary:disabled {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--gray-85);
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-danger.disabled, .btn-danger:disabled {
    background-color: var(--danger);
    border-color: var(--danger);
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-outline-primary {
    color: var(--gray-85);
    border-color: var(--gray-85);
    background-color: var(--primary-15);
}

.btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active, .show > .btn-outline-primary.dropdown-toggle {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);;
}

.btn-outline-primary.disabled, .btn-outline-primary:disabled {
    color: var(--primary);
    border-color: var(--primary);
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-outline-primary.focus, .btn-outline-primary:focus {
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);
}

.btn-outline-primary.disabled:hover,
.btn-outline-primary:hover:disabled {
    color: var(--primary);
    background-color: transparent;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show > .btn-secondary.dropdown-toggle {
    background-color: var(--secondary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn-secondary.focus, .btn-secondary:focus {
    background-color: var(--secondary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.btn + .btn {
    margin-left: 0.5rem;
}


.btn-circle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 0 0 6rem;
    width: 6rem;
    height: 6rem;
    border-radius: 100%;
    padding-left: 5px;
    padding-right: 5px;
    color: var(--gray-85);
    background: var(--primary);
    box-shadow: 0 0 20px rgba(244, 129, 14, 0.6);
    transition: box-shadow .15s;
}

.btn-circle:hover, .btn-circle:active {
    color: #fff !important;
    background: var(--secondary);
    /*box-shadow: 0 0 32px rgba(254, 216, 89, 0.8);*/
    box-shadow: 0 0 32px rgba(244, 129, 14, 0.8);
    transition: box-shadow .15s;
    transform: translateY(-10px);
}

.btn-circle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}


@media (min-width: 768px) {
    .btn-circle {
        width: 10rem;
        height: 10rem;
        flex: 0 0 10rem;
    }
}


/* dataTable 操作欄位文字按鈕使用function-btn */
.function-btn {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--gray-85);
    border-radius: 1rem;
    background: var(--primary);
    color: var(--gray-85);
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    margin: 0.125rem 0;
}

.function-btn:not(:first-child) {
    margin-left: 0.25rem;
}


.function-btn:hover {
    background-color: var(--primary-medium);
    color: var(--gray-85);
}

.function-btn:not(:disabled):not(.disabled).active,
.function-btn:not(:disabled):not(.disabled):active {
    color: var(--gray-85);
}

.function-btn[disabled] {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}


/* === NAVBAR === */
.navbar {
    padding: 1rem 15px;
    z-index: 1002;
    /*background-color: var(--primary);*/
}

.navbar.scroll,
.navbar.expanded,
.navbar.navbar-light {
    background-color: var(--primary);
    color: var(--gray-85);
    transition: ease;
}


.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item .nav-link {
    position: relative;
    text-align: center;
    transition: 0.3s ease;
    padding: 0.75rem;
}

.navbar-light .navbar-nav .nav-link:not(.btn-secondary):hover:after, .navbar-nav .nav-item .nav-link.active:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
}

.navbar-nav .nav-item .nav-link.btn-secondary.active {
    border: 2px solid #FFFFFF;
    color: var(--primary);
}

.navbar-nav .nav-item .nav-link.btn-secondary.active:after {
    display: none;
}

.navbar-light .navbar-nav .nav-item {
    margin-right: 0.5rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--gray-85);
}

.navbar-light .navbar-nav .nav-link.btn-secondary {
    color: var(--primary);
    background-color: var(--gray-85);
}

.navbar-light .navbar-nav .nav-link.btn-secondary:hover {
    color: var(--primary);
}

.navbar.expanded .navbar-toggler {
    color: #ffffff;
}

.navbar-light .navbar-toggler {
    border-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.125rem;
}

.navbar.expanded .navbar-toggler svg path {
    fill: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
}

.navbar-nav .dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary);
    color: var(--gray-85);
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-15);
}

.navbar-brand {
    padding: 0;
    color: var(--gray-85) !important;
    font-size: 1.125rem;
    font-weight: bold;
}

.navbar-brand small {
    font-size: 0.75rem;
}

.navbar-brand img {
    margin-right: 0.5rem;
}

.navbar.scroll {
    padding: 0.5rem 0;
}

.navbar-brand img,
.navbar.scroll .navbar-brand img {
    width: 36px;
}

.navbar-toggler[aria-expanded="false"] .navbar-toggler-close {
    display: none;
    transition: ease 0.3s;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-open {
    display: none;
    transition: ease 0.3s;
}

.navbar-dark .navbar-toggler {
    border: none;
}

.navbar-dark .navbar-toggler svg path {
    fill: #ffffff;
}

.navbar-nav .dropdown-toggle {
    transition: 0.3s ease;
}

.navbar-nav .dropdown-menu {
    right: 0;
    left: auto;
    border: 1px solid var(--gray-85);
}

.navbar-nav .dropdown-menu .dropdown-divider {
    border-color: var(--gray-85);
}

@media (max-width: 991.99px) {
    .navbar-nav .dropdown-toggle[aria-expanded="true"] {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
}


@media (min-width: 576px) {
    .navbar {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand img {
        width: 58px;
    }

    .navbar-brand small {
        font-size: 0.875rem;
    }
}

@media (min-width: 992px) {
    .navbar.scroll {
        border-bottom: 2px solid #ffffff;
    }

    .navbar-light .navbar-nav .nav-link {
        /*padding: 0.75rem;*/
        margin-bottom: 0;
        /*background: #ffffff;*/
        color: var(--gray-85);
        /*border: 2px solid #ffffff;*/
        /*border-radius: 50rem !important;*/
        transition: 0.3s ease;
    }

    .navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link.active {
        color: var(--gray-85);
        font-weight: bold;
    }

}

@media (max-width: 991.99px) {
    .nav-item .dropdown-menu {
        background-color: #FFFFFF;
        text-align: center;
        transition: 0.3s ease;
    }

    .nav-item .dropdown-item {
        padding: 0.75rem 0;
    }


}

.slide-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .45);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    z-index: 101;
}


/* nav tabs*/
.nav.nav-tabs {
    margin-bottom: 1.5rem;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    position: relative;
}

.nav-tabs .nav-link.active {
    color: var(--secondary);
    background-color: #fff;
    border-radius: 0;
    border-color: transparent;
}

.nav-tabs.analysis .nav-link {
    background: url("../img/brain_rb_1_bold.svg") right center no-repeat;
    background-position: -5rem -10%;
    background-size: 4.8rem;
    border: 1px solid #ffffff;
    overflow: hidden;
    transition: 0.5s;
}

.nav-tabs.analysis .nav-link:hover {
    background-position: left top;
}

.nav-tabs.analysis .nav-link.active {
    background: url("../img/brain_bp_3_bold.svg") right center no-repeat;
    background-position: left top;
    background-size: 4.8rem;
    text-align: right;
}

.nav-tabs.analysis .nav-link.active:hover {
    background-image: url("../img/brain_rb_1_bold.svg");
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    color: var(--secondary);
    border-color: #ffffff;
}

.nav-tabs .nav-link.active:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--secondary-light);
    transform: none;
    transition: 0.3s ease;
}

.nav-tabs .nav-link.active:hover:after, .nav-tabs .nav-link.active:after {
    background: var(--secondary);
}

.nav-tabs .nav-link:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(.215, .61, .355, 1);
    transform-origin: 100% 0;
}

.nav-tabs .nav-link:hover:after {
    transform: none;
    transform-origin: 0 0;
}

.container > .nav-tabs {
    font-size: 1.125rem;
}

@media (max-width: 991.99px) {
    .nav-tabs {
        flex-wrap: inherit;
        white-space: nowrap;
        overflow-x: scroll;
        /* Hide scrollbar for IE, Edge and Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    .nav-tabs::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width: 576px) {
    .nav-tabs.analysis .nav-link.active {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .card .nav-tabs .nav-link {
        padding: .5rem 0.75rem;
    }
}


/* === FOOTER === */
footer {
    /*padding-top: 40px;*/
}

/* footer info */
.footer {
    background-color: var(--primary);
    /*background-image: url(../img/footer-tablet.png);*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--gray-85);
    padding-top: 32px;
    font-size: 0.875rem;
}

.footer a {
    color: var(--secondary);
    border-bottom: 1px solid var(--secondary);
    -webkit-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer .footer-main {
    display: flex;
    justify-content: center;
    /*margin-bottom: 1rem;*/
}

.footer-info {
    text-align: left;
    line-height: 1.5;
}

.footer .copyright {
    text-align: center;
    font-size: 0.75rem;
    padding: 1rem 0 1.25rem;
}


@media (max-width: 576px) {
    footer {
        padding-top: 0;
    }

    .footer {
        padding-top: 24px;
    }

    .footer .footer-main,
    .footer-info p {
        margin-bottom: 0.5rem;
    }
}

/*@media (min-width: 768px) {*/
/*    .footer {*/
/*        background-image: url(../img/footer-tablet.png);*/
/*    }*/
/*}*/

/*@media (min-width: 1200px) {*/
/*    .footer {*/
/*        background-image: url(../img/footer.png);*/
/*    }*/
/*}*/


/* === TABLE === */
.table th {
    color: var(--gray-85);
    background-color: var(--primary);
}

.table thead th {
    vertical-align: middle;
    border-bottom: 2px solid var(--gray-06);
}

.table-striped tbody tr:nth-of-type(2n+1) {
    background-color: #ffffff;
}

.table-striped tbody tr:nth-of-type(2n) {
    background-color: var(--gray-02);
}

.table-bordered td, .table-bordered th {
    border-color: var(--gray-10);
}

.table-hover tbody tr:hover {
    background-color: var(--primary-15);
}

.table .list-group-item {
    background-color: transparent;
}


/* Table Color */
.table-info, .table-info > td, .table-info > th {
    background-color: var(--info-15);
}

.table-warning, .table-warning > td, .table-warning > th {
    background-color: var(--warning-15);
}


/* Custom Table */
.c-tb-table {
    margin-bottom: 1rem;
}

.c-tb-thead, .c-tb-tbody {
    vertical-align: middle;
}

.c-tb-thead {
    display: table-header-group;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    background: var(--primary);
    color: var(--white);
}

.c-nav-tab .c-tb-thead {
    border-top: none;
    border-bottom-width: 2px;
    background-color: transparent;
    color: var(--primary);
}

.c-tb-tbody .c-tb-tr {
    padding: 1rem;
    color: var(--gray-85);
    transition: 0.3s;
}

.c-tb-tbody .c-tb-tr.c-tb-separate {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--primary-15);
}

.c-tb-hover .c-tb-tbody .c-tb-tr:hover {
    background-color: var(--primary-15);
}

.c-tb-hover .c-tb-tbody .c-tb-tr.c-tb-separate:hover {
    background-color: var(--primary-50);
}

.c-tb-tbody .c-tb-tr:hover .btn {
    background-color: var(--primary);
    color: var(--gray-85);
}

.c-tb-tbody .c-tb-tr:active .c-tb-title {
    color: var(--primary-dark);
}

.secondary .c-tb-hover .c-tb-tbody .c-tb-tr:hover {
    background-color: var(--secondary-15);
}

.secondary .c-tb-tbody .c-tb-tr:hover .c-tb-title {
    color: var(--secondary);
}

.secondary .c-tb-tbody .c-tb-tr:active .c-tb-title {
    color: var(--secondary-dark);
}

.c-tb-bordered {
    border-bottom: 1px solid var(--gray-06) !important;
}

.c-tb-th {
    font-weight: 700;
}

.c-tb-td a {
    display: inline-block;
    width: 100%;
    height: 100%;
    color: var(--gray-85);
    vertical-align: middle;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.c-tb-td a:hover, .c-tb-td a:focus {
    color: var(--primary);
}

.c-tb-td a:active {
    color: var(--primary-dark);
}

.c-tb-td a.btn.btn-outline-primary {
    color: var(--primary);
}

.c-tb-td a.btn.btn-outline-primary:hover,
.c-tb-td a.btn.btn-outline-primary:focus {
    background-color: var(--primary);
    color: var(--white);
}

/* 多檔 list-group*/
.c-tb-td .list-group .list-group-item {
    border-color: var(--primary);
    border-bottom-color: var(--primary-25);
    background-color: transparent;
}

.c-tb-td .list-group .list-group-item:last-of-type {
    border-bottom-color: var(--primary);
}

.c-tb-td .list-group .list-group-item:hover {
    background-color: var(--primary-15);
}

.c-tb-title {
    width: 100%;
    text-align: left !important;
}

.c-tb-nowrap {
    white-space: nowrap;
}

.c-tb-truncate {
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-tb-table .collapse .c-tb-td ol {
    margin-bottom: 0;
}


@media (min-width: 576px) {
    .c-tb-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    .c-tb-thead, .c-tb-tbody {
        vertical-align: middle;
        border-color: inherit;
    }

    .c-tb-thead {
        display: table-header-group;
        background-color: var(--primary);
        color: var(--gray-85);
    }

    .c-tb-tbody {
        display: table-row-group;
    }

    .c-tb-tbody .c-tb-tr {
        padding: 0;
    }

    .c-tb-tr {
        display: table-row;
        vertical-align: inherit;
        border-color: inherit;
    }

    .c-tb-thead .c-tb-th, .c-tb-tbody .c-tb-th, .c-tb-tbody .c-tb-td {
        display: table-cell;
        padding: 0.75rem;
        text-align: center;
        vertical-align: middle;
    }

    .c-tb-truncate {
        white-space: normal;
    }

    .c-tb-col-6 {
        width: 60px;
    }

    .c-tb-col-8 {
        width: 80px;
    }

    .c-tb-col-10 {
        width: 100px;
    }

    .c-tb-col-11 {
        width: 110px;
    }

    .c-tb-col-12 {
        width: 120px;
    }

    .c-tb-col-15 {
        width: 150px;
    }

    .c-tb-col-18 {
        width: 180px;
    }
}

@media (max-width: 575.99px) {
    .c-tb-xs-none {
        display: none;
    }

    .c-tb-tbody .c-tb-tr {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .c-tb-tbody .c-tb-tr.collapse:not(.show) {
        display: none;
    }

    .c-tb-td-xs-inline {
        margin-right: 0.5rem;
        display: inline-block;
    }

    .c-tb-title > span {
        display: flex;
    }

    .c-tb-title {
        width: 100%;
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
    }

    .c-tb-date,
    .c-tb-type {
        display: inline-block;
        margin: 0.25rem 0.5rem 0 0;
    }

    .c-tb-type {
        -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
        order: 3;
    }

    .c-tb-date {
        padding: 0.25rem 0.25rem 0 0 !important;
        color: var(--gray-65);
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }


    /* traditional table rwd under tablet view */
    .c-tb-responsive table thead {
        display: none;
    }

    .c-tb-responsive .table thead th, .c-tb-responsive .table tbody td {
        text-align: left;
    }

    .c-tb-responsive .table.table-striped tbody tr:nth-of-type(2n+1) {
        background-color: unset;
    }

    .c-tb-responsive table tr,
    .c-tb-responsive table td {
        display: block;
    }

    .c-tb-responsive table tr {
        position: relative;
        margin-bottom: 1rem;
        border: 1px solid var(--primary-15);
        border-radius: 0.5rem;
        -webkit-box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
        box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
        -webkit-transition: 0.3s ease;
        -o-transition: 0.3s ease;
        transition: 0.3s ease;
    }

    .c-tb-responsive table.table-hover tr:focus,
    .c-tb-responsive table.table-hover tr:active,
    .c-tb-responsive .table.table-hover.table-striped tbody tr:focus,
    .c-tb-responsive .table.table-hover.table-striped tbody tr:active {
        background-color: var(--primary-50);
    }

    .c-tb-responsive table td {
        position: relative;
        min-height: 3rem;
        padding-left: 30%;
        padding-right: 1.25rem;
        border-top: none;
    }

    .c-tb-responsive.c-tb-pl-4 table td {
        padding-left: 40%;
    }

    .c-tb-responsive.c-tb-pl-5 table td {
        padding-left: 50%;
    }

    .c-tb-responsive table td:nth-child(1) {
        padding-top: 1.25rem;
    }

    .c-tb-responsive table td:last-child {
        padding-bottom: 1.25rem;
        min-height: 3.5rem;
    }

    .c-tb-responsive table td:before {
        content: attr(data-th);
    }

    .c-tb-responsive table td:before {
        position: absolute;
        left: 1.25rem;
        font-weight: bold;
    }

    .c-tb-responsive table td.line:after {
        content: attr(data-th);;
        color: transparent;
        position: absolute;
        display: block;
        width: calc(100% - 1.25rem - 30%);
        height: 1px;
        background-color: var(--gray-45);
        top: 50%;
        left: 30%;
    }
}


.page-nav {
    margin-bottom: 2rem;
}

.page-nav .nav-item {
    margin-right: 0.5rem;
}

.page-nav .nav-link {
    padding-bottom: 0.5rem;
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.page-nav .nav-link:hover {
    border-color: var(--secondary);
}

.page-nav .nav-link.active {
    border-color: var(--primary);
    background-color: transparent;
    color: var(--primary);
}


/* === NAV TAB === */
ul.nav li.nav-item {
    margin-bottom: 0;;
}

.c-nav-tab .nav {
    position: relative;
}

.c-nav-tab .nav:after {
    content: "";
    height: 3px;
    width: 100%;
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    background-color: var(--primary);
    -webkit-transition: .3s ease-in-out;
    -o-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.c-nav-tab.secondary .nav:after {
    background-color: var(--secondary);
}

.c-nav-tab .nav-item {
    width: 50%;
}

.c-nav-tab .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
    font-weight: bold;
}

.c-nav-tab .nav-link:hover {
    background-color: var(--primary-15);
    color: var(--gray-85);
}

.c-nav-tab .nav-link.active:hover {
    color: var(--white);
}

.c-nav-tab.secondary .nav-link {
    color: var(--secondary);
}


.c-nav-tab.secondary .nav-link:hover {
    background-color: var(--secondary-15);
    color: var(--secondary);
}

.c-nav-tab .nav-pills .nav-link.active,
.c-nav-tab .nav-pills .show > .nav-link {
    background-color: var(--primary);
    color: var(--gray-85);
}

.c-nav-tab.secondary .nav-pills .nav-link.active,
.c-nav-tab.secondary .nav-pills .show > .nav-link {
    background-color: var(--secondary);
    color: var(--white);
}

.c-nav-tab table tbody tr:first-of-type td {
    border-top: none;
}

.c-nav-tab table.table-bordered tbody tr:first-of-type td {
    border-top: 1px solid var(--primary-50);
}

.c-nav-tab .table .td-organization {
    white-space: nowrap;
}

.c-nav-tab .table .td-date {
    width: 7rem;
}

@media (min-width: 576px) {
    .c-nav-tab .nav-item {
        width: initial;
    }
}


/* === FORM === */
label, .label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-85);
}

label.required::after {
    content: ' *';
    color: var(--danger);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
}

textarea {
    resize: none;
}


.form-control, .custom-select {
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    color: var(--gray-85);
    border: 1px solid var(--gray-25);
}

.form-control:focus, .custom-select:focus {
    color: var(--gray-65);
    border-color: var(--primary);
    outline: 0;
    -webkit-box-shadow: 0 0 0 .2rem var(--primary-25);
    box-shadow: 0 0 0 .2rem var(--primary-25);
}

.input-group > .form-control:not(:last-child) {
    padding-right: 0.25rem;
}


.form-control::placeholder {
    color: var(--gray-25);
}

.form-check-inline {
    height: calc(1.5em + .75rem + 2px);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-label, .filter-group label:first-child {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.filter-action {
    padding-top: 1rem;
    text-align: right;
}

.form-inline-group {
    display: flex;
    align-items: center;
}

.form-inline-group .form-control {
    width: 45%;
}

.form-inline-group span {
    width: 10%;
    text-align: center;
}

.filter-section .title-wrapper {
    display: none;
}


.form-row:not(:first-of-type) {
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .filter-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
        background-color: var(--primary-15);
        border-radius: 0.5rem;
    }

    .filter-section .title-wrapper {
        display: flex;
        margin-bottom: 0;
    }

    .filter-section .collapse {
        margin-top: 1rem;
    }

    .filter-group {
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) {
    .filter-section {
        order: 2;
    }
}

@media (max-width: 576px) {
    .filter-action {
        padding-top: 0;
    }
}


/* === PAGINATION === */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.25rem;
    padding-top: 0.5rem;
    color: var(--gray-85);
    border-color: var(--gray-10);
    border-radius: 2.5rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.page-link:hover {
    color: var(--gray-85);
    background-color: var(--primary-15);
    border-color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--gray-85);
    color: var(--gray-85);
}

.page-item.disabled .page-link {
    color: var(--gray-45);
    border-radius: 2.5rem;
}

.page-item:first-child .page-link, .page-item:last-child .page-link {
    border-radius: 2.5rem;
}


/*===== COLLAPSE =====*/
a[aria-expanded="true"] .rotate-icon {
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

a[data-toggle][aria-expanded="false"] .rotate-icon {
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(-180deg);
    -webkit-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

a[data-toggle][aria-expanded="false"] i.right.rotate-icon {
    padding-left: 0;
    padding-right: 0.25rem;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}


/* === CHART === */
.chart-container {
    position: relative;
    margin: auto;
    height: 40vh;
    width: 80vw;
}

@media (min-width: 768px) {
    .chart-container {
        height: 40vh;
        width: auto;
    }
}

@media (min-width: 1200px) {
    .chart-container {
        height: 50vh;
        width: 100%;
    }
}


/* === $CUSTOM-CHECKBOX === */
.custom-checkbox {
    padding-left: 2rem;
}

.form-group.custom-checkbox {
    padding-left: 0;
}

.custom-control {
    padding-left: 2rem;
}

.custom-multi-checkbox .custom-control {
    padding-left: 2rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: var(--white);
    border-color: var(--gray-85);
    background-color: var(--primary);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: var(--primary-70);
    border-color: var(--primary-70);
}

.secondary .custom-control-input:checked ~ .custom-control-label::before {
    color: var(--white);
    border-color: var(--secondary);
    background-color: var(--secondary);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.secondary .custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: var(--secondary-70);
    border-color: var(--secondary-70);
}

.custom-control-label::before {
    background-color: #ffffff;
}

.custom-control-label::before,
.custom-control-label::after {
    width: 1.25rem;
    height: 1.25rem;
}

.custom-control-label::before,
.custom-control-label::after {
    top: 0;
    left: -2rem;

}


.custom-radio .custom-control-input {
    margin-right: 1rem;
}


.custom-control-label, label:not(.form-check-label):not(.custom-file-label).custom-control-label {
    font-weight: normal !important;
    color: var(--gray-85);
}

.custom-checkbox .form-check {
    /*width: 100%;*/
    padding-left: 2rem;
}

/*.form-check + .form-check {*/
/*    margin-top: 0.5rem;*/
/*}*/


/*.custom-checkbox .form-check-inline:first-of-type {*/
/*    margin-left: -1.25rem;*/
/*}*/

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: var(--primary);
    opacity: 0.65;
}

/* custom checkbox validation */
.custom-checkbox.invalid .custom-control-label,
.custom-checkbox.invalid label:not(.form-check-label):not(.custom-file-label).custom-control-label {
    color: var(--danger);
}

.custom-checkbox.invalid .custom-control-label:before {
    border-color: var(--danger);
}

.custom-checkbox.valid .custom-control-label,
.custom-checkbox.valid label:not(.form-check-label):not(.custom-file-label).custom-control-label {
    color: var(--success);
}

.custom-checkbox.valid .custom-control-label:before {
    border-color: var(--success);
    background-color: var(--success);
}

.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    color: var(--white);
    background-color: var(--primary-15);
    border-color: var(--primary-15);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.secondary .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    background-color: var(--secondary-15);
    border-color: var(--secondary-15);
}

.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: var(--primary);
}


.custom-switch .custom-control-label::before {
    height: 1.5rem;
    border-radius: 1rem;
}


/* announcement content */
.content h2.content-title {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
}


.content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content h3:not(:first-of-type) {
    margin-top: 2rem;
}

.content h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.content h4:not(:first-of-type) {
    margin-top: 1.5rem;
}

.content h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.content .content-info, .content .content-footer {
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 3px solid var(--primary);
    color: var(--gray-65);
}


.content .content-detail {
    margin-bottom: 1rem;
    /*border-bottom: 1px solid var(--gray-06);*/
    padding-bottom: 2rem;
}

.content-detail h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .content h2.content-title {
        font-size: 1.75rem;
        font-weight: 400;
    }

    .content h3 {
        font-size: 1.5rem;
    }

    .content h4 {
        font-size: 1.25rem;
    }

    .content h5 {
        font-size: 1.125rem;
    }

    .content .content-info, .content .content-footer {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-bottom: 2rem;
        padding-top: 1rem;
        border-top: 3px solid var(--primary);
        color: var(--gray-65);
    }

    .content .content-info {
        justify-content: space-between;
    }


    .content-footer div:not(:first-child):before {
        content: '';
        display: inline-block;
        position: relative;
        width: 1px;
        height: .875rem;
        margin: 0 0.5rem;
        vertical-align: middle;
        background: var(--gray-10);
    }

}

/* content file */
.content-detail .attachment {
    margin-top: 2rem;
}


.content-detail .attachment a {
    background-color: var(--primary);
    color: var(--gray-85);
}

/* === $BADGE === */
.badge {
    line-height: 1.25;
    font-weight: 400;
}

.badge-primary {
    background-color: var(--primary);
}

.badge-secondary {
    background-color: var(--secondary);
}

.badge-light {
    color: var(--gray-65);
    border: 1px solid var(--gray-25);
    background-color: var(--gray-10);
}

.badge-success {
    color: var(--gray-85);
    border: 1px solid var(--success-dark);
    background-color: var(--success);
}

.badge-danger {
    color: var(--danger);
    border: 1px solid var(--danger);
    background-color: var(--danger-light);
}

.badge-warning {
    color: var(--primary-dark);
    border: 1px solid var(--warning);
    background-color: var(--warning-light);
}

.badge-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    background-color: transparent;
}

.badge-outline-secondary {
    color: var(--secondary);
    border: 1px solid var(--secondary);
    background-color: transparent;
}


.badge-outline-light {
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    background-color: transparent;
}


.badge-outline-info {
    color: var(--info);
    border: 1px solid var(--info);
    background-color: transparent;
}


.badge-outline-warning {
    color: var(--warning);
    border: 1px solid var(--warning);
    background-color: transparent;
}


/* === $GRAPHIC === */
.graphic {
    position: relative;
}

h2.graphic,
h2 .graphic {
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-25);
}

h2 .graphic {
    margin-left: 0;
}


h2.graphic.content-title {
    border-bottom: none;
}

h3.g-brain_ry_2:before {
    content: "";
    /*background: url(../img/brain_ry_2_bold.svg) center center/cover no-repeat;*/
    position: absolute;
    top: 50%;
    left: -3.5rem;
    transform: translateY(-50%);
    width: 3rem;
    height: 2.5rem;
}

h3.graphic {
    margin-left: 3.5rem;
}


/*.banner {*/
/*    position: relative;*/
/*    padding-top: 80px !important;*/
/*    background-image: url("../img/banner-desktop.png");*/
/*    background-position: center;*/
/*    background-repeat: no-repeat;*/
/*    background-size: cover;*/
/*    overflow: hidden;*/
/*}*/

.banner {
    position: relative;
    padding-top: 47%;
    background-image: url("../img/banner-mobile.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /*overflow: hidden;*/
}


.g-mascot {
    width: 488px;
    height: 508px;
    position: absolute;
    bottom: -33%;
    right: -40%;
    background: url(../img/mascot.png) 50%/cover no-repeat;
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    /*transform: scale(0.9);*/
    z-index: 100;
    scale: 0.3;
}

.g-mascot-body {
    width: 437px;
    height: 392px;
    position: absolute;
    bottom: -15%;
    right: 5%;
    background: url(../img/mascot-body.png) 50%/cover no-repeat;
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    /*transform: scale(0.9);*/
    z-index: 100;
}

.g-mascot-left-hand {
    width: 126px;
    height: 130px;
    position: absolute;
    bottom: -10%;
    right: 2%;
    background: url(../img/mascot-left-hand.png) 50%/cover no-repeat;
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    /*transform: scale(0.9);*/
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 100;
}

.g-mascot-right-hand {
    width: 147px;
    height: 156px;
    position: absolute;
    bottom: 16%;
    right: 23%;
    background: url(../img/mascot-right-hand.png) 50%/cover no-repeat;
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    /*transform: scale(0.9);*/
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 100;
}

.g-mascot-right-leg {
    width: 158px;
    height: 198px;
    position: absolute;
    bottom: -36%;
    right: 20%;
    background: url(../img/mascot-right-leg.png) 50%/cover no-repeat;
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    /*transform: scale(0.9);*/
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 100;
}

.g-mascot-left-leg {
    width: 149px;
    height: 176px;
    position: absolute;
    bottom: -33%;
    right: 11%;
    background: url(../img/mascot-left-leg.png) 50%/cover no-repeat;
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
    /*transform: scale(0.9);*/
    -webkit-animation-duration: 10s;
    animation-duration: 10s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    z-index: 100;
}

@media (min-width: 768px) {
    .banner {
        padding-top: 35%;
        background-image: url("../img/banner-tablet.png");
    }

    .g-mascot {
        scale: 0.45;
        right: -14%;
        bottom: -26%;
    }
}

@media (min-width: 1200px) {
    .banner {
        background-image: url("../img/banner-desktop.png");
    }

    .g-adapter {
        position: absolute;
        left: 0;
        top: -20%;
        width: 100%;
        height: 100%;
        background-image: url("../img/typography.png");
        background-position: center;
        background-repeat: no-repeat;
        /*background-size: cover;*/
    }

    .g-mascot {
        bottom: -34%;
        right: 1%;
        scale: .9;
    }
}

@media (min-width: 1440px) {
    .g-mascot {
        right: 3%;
        bottom: -25%;
        scale: 1;
    }
}


@media (max-width: 1440px) and (min-width: 1200px) {
    div[class*="g-mascot"] {
        scale: 0.75;
    }

    .g-mascot-body {
        bottom: -20%;
    }

    .g-mascot-right-hand {
        bottom: 11%;
        right: 26%;

    }

    .g-mascot-left-hand {
        bottom: -20%;
        right: 4%;
    }

    .g-mascot-right-leg {
        bottom: -50%;
        right: 23%;
    }

    .g-mascot-left-leg {
        bottom: -47%;
    }
}


@keyframes swing {
    0% {
        transform: rotate(0deg);
    }
    /*25% {*/
    /*    transform: rotate(15deg);*/
    /*}*/
    50% {
        transform: rotate(15deg);
    }
    100% {
        transform: rotate(-15deg);
    }
}

@keyframes swing-reverse {
    0% {
        transform: rotate(0deg);
    }
    /*25% {*/
    /*    transform: rotate(15deg);*/
    /*}*/
    50% {
        transform: rotate(-15deg);
    }
    100% {
        transform: rotate(15deg);
    }
}

.swing {
    transform-origin: bottom right;
    -webkit-animation-name: swing;
    animation-name: swing;
    animation: swing 1s infinite;
}

.swing-reverse {
    transform-origin: bottom right;
    -webkit-animation-name: swing-reverse;
    animation-name: swing-reverse;
    animation: swing-reverse 1s infinite;
}

.g-mascot-right-hand.swing-reverse {
    transform-origin: bottom right;
}

.g-mascot-left-hand.swing {
    transform-origin: top left;
}

.g-mascot-right-leg.swing {
    transform-origin: top right;
}

.g-mascot-left-leg.swing-reverse {
    transform-origin: top left;
}


/*.jumbotron {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    justify-content: center;*/
/*    min-height: 50vh;*/
/*    overflow: hidden;*/
/*    background-image: url(../img/banner-desktop.png);*/
/*    background-position: center;*/
/*    background-repeat: no-repeat;*/
/*    background-size: cover;*/
/*}*/

.jumbotron {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 30vh;
    padding: 2rem 0;
    background-color: transparent;
    overflow: hidden;
}

@media (min-width: 768px) {
    .jumbotron h1 {
        font-size: 3rem;
    }

    .jumbotron h1 > span {
        display: block;
    }

    footer .host {
        margin-bottom: 1rem;
    }

    footer .host span {
        display: inline;
    }

    footer .host span:first-of-type:after {
        content: "｜";
        padding: 0 0.5rem;
    }
}

@media (min-width: 1200px) {
    .jumbotron.jumbotron-secondary {
        min-height: 30vh
    }

    .jumbotron h1 {
        font-size: 4rem;
    }
}


.waitMe_container {
    min-height: 100px;
}


.tooltip-inner {
    background-color: var(--secondary);
}

.bs-tooltip-auto[x-placement^="top"] .arrow::before, .bs-tooltip-top .arrow::before {
    border-top-color: var(--secondary);
}

.empty-content {
    position: relative;
    /*padding-top: 4rem;*/
    /*margin-top: 2rem;*/
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.empty-content:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f071";
    display: block;
    font-size: 6rem;
    color: var(--warning);
    animation: spin 3s;
}

.pagination {
    width: 100%;
    margin-top: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.pagination .page-item {
    /*margin-bottom: 0.25rem;*/
}


.noscript {
    display: block;
    padding: 2rem;
    margin: 80px 0 -80px 0;
    background-color: var(--danger-light);
}


.activity-photo {
    display: block;
    width: 100%;
    padding-bottom: 66.67%;
    margin-bottom: 0;
    position: relative;
    border-radius: 0.25rem 0.25rem 0 0;
    overflow: hidden;
}

.activity-photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    -o-object-fit: cover;
    object-fit: cover;
}


/* === INDEX === */
.now-event {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /*margin-bottom: 1.5rem;*/
}

.now-event span {
    font-size: 0.875rem;
}

.now-event .event-text {
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}


.now-event > .btn-circle, .now-event .event-group {
    flex-direction: column;
    margin: 0 3% 4rem 3%;
    overflow: visible;
}

.now-event .event-group {
    position: relative;
}

.now-event .event-group .btn-circle {
    flex-direction: column;
}

.event-group .more-info {
    position: absolute;
    bottom: -5.5rem;
    left: 50%;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    transform: translateX(-50%);
}

.now-event .btn-circle > span {
    animation: fade-in 0.3s 5.1s both;
}

.now-event .btn-circle:hover .event-text {
    transform: scale(1.1);
}

.now-event .event-help:before {
    content: "";
    position: absolute;
    bottom: 1rem;
    left: 50%;
    width: 1rem;
    height: 3px;
    margin-bottom: 0.75rem;
    background: var(--primary);
    border-radius: 1rem;
    transform: translateX(-50%);
}

.now-event:hover .event-help:before {
    background: var(--secondary);
}

.now-event .event-help {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-85);
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .event-group .more-info .btn-sm {
        padding: 0.25rem;
    }
}

@media (min-width: 768px) {
    .now-event span {
        font-size: 1rem;
    }

    .now-event .event-text {
        font-size: 1.5rem;
    }
}


@media (min-width: 1200px) {
    .now-event .event-text {
        padding: 0.5rem;
        font-size: 1.5rem;
        line-height: 1.5;
    }
}


.onging {
    position: relative;
    padding: 1rem 35% 1rem 1rem;
    background-color: var(--gray-85);
    overflow: hidden;
}


.onging h4 {
    position: relative;
    color: #FFFFFF;
    font-size: 1rem;
    z-index: 10;
}

.road {
    width: 3000px;
    height: 100%;
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    animation: road 20s infinite linear;
}

.road > .marking {
    width: 3000px;
    height: calc(50% + 0.125rem);
    border-bottom: dashed 0.25rem var(--warning);
    opacity: 0.5;
}

@keyframes road {
    0% {
        left: -400px;
    }
}


@media (min-width: 768px) {
    .onging {
        padding: 1.5rem 30% 1.5rem 1.5rem;
    }

    .onging h4 {
        font-size: 1.25rem;
    }
}

@media (min-width: 1200px) {
    .onging {
        padding: 2rem 30% 2rem 2rem;
    }

    .onging h4 {
        font-size: 1.5rem;
    }
}


.bts {
    width: 100vw;
    overflow: hidden;
}


.bts .owl-carousel .owl-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--gray-85);
    font-size: 1.25rem;
    -webkit-box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 1px 10px 0 rgb(0 0 0 / 12%), 0 4px 5px 0 rgb(0 0 0 / 14%);
    box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 1px 10px 0 rgb(0 0 0 / 12%), 0 4px 5px 0 rgb(0 0 0 / 14%);
    overflow: hidden;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.bts .owl-carousel .owl-item .item {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* padding: 1rem; */
    text-align: center;
}

.bts .item figure {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 66.66667%;
    margin-bottom: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.bts .item img {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    -o-object-fit: cover;
    object-fit: cover;
}


.bts .item img:before {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


.bts .owl-carousel .item .item-text {
    position: absolute;
    bottom: -8px;
    left: calc(50% - 1rem);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    white-space: normal;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-transform: translate(calc(-50% + 1rem), calc(-50% + 1rem));
    -ms-transform: translate(calc(-50% + 1rem), calc(-50% + 1rem));
    transform: translate(calc(-50% + 1rem), calc(-50% + 1rem));
    z-index: 1;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease
}

.bts .owl-carousel .item.default:hover .item-text,
.bts .owl-carousel .item.upload:hover .item-text {
    font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
}


/* === 作品上傳 === */
.contest-main .header {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.contest-main .header .title {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    background-color: var(--primary);
    color: var(--gray-85);
    border: 1px solid var(--primary);
    border-radius: 1.5rem 1.5rem 0 0;
    z-index: 1;
}

.contest-main .time {
    position: absolute;
    top: -2rem;
    right: 0;
}

.contest-main .card {
    border: 3px solid var(--primary);
    border-radius: 2rem;
}

.contest-main .header + .card {
    border-radius: 0 0 2rem 2rem;
}

.contest-main .title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.contest-main .content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem;
    color: var(--gray-85);
    font-size: 1.125rem;
    line-height: 1.5;
}

.contest-block {
    padding-top: 1rem;
    text-align: center;
}

.content-block .btn-group-lg > .btn, .btn-lg {
    font-size: 1.125rem;
}


/*賀卡寄送*/
.send .card {
    border-radius: 0.5rem !important;
    background-color: #f6f0ea;
}

.send .card figure {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: calc((9 / 16) * 100%);
    margin-bottom: 0;
    border: 0.25rem solid var(--primary);
    border-radius: 0.25rem;
    text-align: center;
    overflow: hidden;
    -webkit-transition: 0.3s ease;
    -o-transition: 0.3s ease;
    transition: 0.3s ease;
}

.send .card figure.portrait {
    height: 50vh;
    width: 0;
    padding-right: calc(9 / 16 * 50vh);
    padding-bottom: 0;
    margin: 0 auto;
}

.send .card figure img {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    -o-object-fit: cover;
    object-fit: cover;
}

.send .card figure:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 5rem solid var(--primary-70);
    border-right: 5rem solid transparent;
    z-index: 1;
}

.send .card figure:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-bottom: 5rem solid var(--primary-70);
    border-left: 5rem solid transparent;
    z-index: 1;
}

.send .form-group.form-inline label {
    margin-right: 1rem;
    color: var(--gray-85);
}

.send .form-group.form-inline input.form-control {
    border: none;
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
    background-color: transparent;
    color: var(--gray-85);
}

.send .title {
    margin-bottom: 1rem;
    font-weight: bold;
}

.send .author {
    color: var(--gray-65);
    font-size: 80%;
    margin-bottom: 1rem;
}


.fixed-btn {
    display: flex;
    position: fixed;
    right: 5%;
    bottom: 8%;
    font-size: 1.25rem;
    z-index: 102;
}

.fixed-btn .btn-circle {
    flex-direction: column;
    border: 4px solid var(--gray-85);
    animation: glowBtn 2s infinite;
}


.fixed-btn .btn-circle > i {
    margin-top: -1rem;
    margin-bottom: 0.5rem;
}

@keyframes glowBtn {
    from {
        box-shadow: 0 0 20px rgba(254, 216, 89, 0.6);
    }
    to {
        box-shadow: 0 0 40px rgba(254, 216, 89, 0.8);
    }
}

.animation-spin {
    animation: spin 2s infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@media (min-width: 768px) {
    .fixed-btn {
        font-size: 2rem;
    }

    .contest-main .header .title {
        width: auto;
        font-size: 2rem;
    }

    .contest-main .header .title:before {
        position: absolute;
        bottom: 0;
        width: 10px;
        height: 10px;
        border-radius: 2rem;
        border: 1px solid var(--primary);
    }

    .contest-main .header .title:after,
    .contest-main .header .title:before {
        content: '';
        width: 2rem;
        height: 2rem;
        border: 2px solid var(--primary);
        position: absolute;
        bottom: -3px;
        border-top: 0;
    }

    .contest-main .header .title:after {
        border-left: 0;
        -moz-border-radius: 0 0 5px 0;
        -webkit-border-radius: 0 0 5px 0;
        left: calc(-2rem + 1px);
    }

    .contest-main .header .title:before {
        border-right: 0;
        -moz-border-radius: 0 0 0 5px;
        -webkit-border-radius: 0 0 0 5px;
        right: calc(-2rem + 1px);
    }

    .contest-main .time {
        position: absolute;
        top: auto;
        bottom: 1rem;
        right: 0;
    }

    .contest-main .card, .contest-main .header + .card {
        border-radius: 2rem;
    }

    .contest-main .title {
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .contest-main .content {
        font-size: 1.25rem;
    }


    .contest-block {
        padding-top: 1.5rem;
    }

    .content-block .btn-group-lg > .btn, .btn-lg {
        font-size: 1.25rem;
    }
}


@media (max-width: 575.99px) {
    .d-sm-title .c-tb-td {
        padding-left: 45%;
    }

    .d-sm-title .c-tb-td:before {
        content: attr(data-th);
        position: absolute;
        left: 2rem;
        font-weight: bold;
    }
}


.test-mode .navbar, .test-mode .navbar.scroll, .test-mode .navbar.expanded, .test-mode .navbar.navbar-dark {
    border: 2px solid var(--danger);
}

.test-mode [class*="sidebar-dark-"] {
    border: 2px solid var(--danger);
}

#timer {
    text-align: right;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    #timer {
        font-size: 1.125rem;
        margin-bottom: -2rem;
    }
}


/*.lottery {*/
/*    margin-bottom: 1.5rem;*/
/*}*/

/*.lottery .nav-link {*/
/*    margin: 0.5rem 0;*/
/*    padding: 0;*/
/*    border: 2px solid #DDDDDD;*/
/*    border-radius: 0.25rem;*/
/*}*/

/*.lottery .nav-link.pass-btn {*/
/*    position: relative;*/
/*    background-color: #E8E8E8;*/
/*}*/

/*.lottery .nav-item:last-child .nav-link.pass-btn {*/
/*    border: 2px solid var(--secondary);*/
/*    background-color: var(--secondary-15);*/
/*}*/

/*.lottery .nav-item:last-child .nav-link.pass-btn:before {*/
/*    font-family: 'Font Awesome 5 Free';*/
/*    content: "\f0a3";*/
/*    position: absolute;*/
/*    right: 0;*/
/*    top: 0;*/
/*    font-size: 5rem;*/
/*    font-weight: 900;*/
/*    color: var(--primary);*/
/*    transform: translate(50%, -50%);*/
/*}*/

/*.lottery .nav-item:last-child .nav-link.pass-btn:after {*/
/*    content: "得獎";*/
/*    position: absolute;*/
/*    right: -1.5rem;*/
/*    top: -1.125rem;*/
/*    font-size: 1.5rem;*/
/*    color: var(--gray-85);*/
/*    rotate: 15deg;*/
/*}*/

/*.lottery .nav-link.doing-btn {*/
/*    background-color: rgba(240, 187, 0, 0.15);;*/
/*    border-color: #F0BB00;*/
/*}*/

/*.lottery .nav-link .content {*/
/*    padding: 1.5rem 1.25rem;*/
/*    text-align: center;*/
/*}*/


/* GIFT BOX */
.gift-box {
    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}

.gift-box .gift-header {
    position: relative;
    transition: all 0.7s ease;
    /*animation-name: gift-top-wiggle;*/
    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}

.gift-box.open .gift-header {
    transform: translateY(-50%) rotate(5deg);
}

.gift-box .gift-body {
    position: relative;
}

.gift-box .gift-body .gift-body__bottom {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 14rem;
    height: 10rem;
    margin: 0 auto;
    background: var(--secondary);
    border: 0.25rem solid var(--gray-85);
    border-radius: 0 0 0.5rem 0.5rem;
    border-top: 0;
}

.gift-box .gift-body .gift-body__bottom .gift-text {
    padding: 0 0.5rem;
    background-color: rgba(225, 225, 225, 0.6);
    font-size: 1.5rem;
    text-align: center;
    z-index: 1;
}


.gift-box .gift-cover {
    position: relative;
    width: 16rem;
    height: 3rem;
    background: var(--secondary-dark);
    margin: 0 auto;
    border: 0.25rem solid var(--gray-85);
    border-radius: 0.5rem;
}


.gift-box:not(.open) .gift-cover:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.75rem;
    width: 13.5rem;
    height: 0.5rem;
    background-color: var(--secondary-dark);
    transform: translateX(-50%);
    opacity: 0.6;
    z-index: 1;
}


.gift-box .gift-cover .gift-text {
    position: relative;
    font-size: 1.25rem;
    text-align: center;
    line-height: 1;
    font-weight: bold;
    z-index: 1;
}

.gift-box .gift-stipe {
    position: absolute;
    width: 3.5rem;
    height: 3rem;
    bottom: 0;
    left: 50%;
    border: 0.25rem solid var(--gray-85);
    background: var(--primary);
    transform: translateX(-50%);
}

.gift-box .gift-body .gift-body__bottom .gift-stipe {
    height: 100%;
    left: 52%;
    border-top: 0;
    border-bottom: 0;
}

.gift-box .ribbon-wrapper {
    width: 10rem;
    height: 3.5rem;
    margin: 0 auto;
    position: relative;
}

.gift-box .ribbon-wrapper .ribbon-rope {
    transform-origin: 50% 100%;
    transition: all 0.25s ease;
}

.gift-box .ribbon-wrapper .ribbon-rope.ribbon-rope__left {
    float: left;
    animation-name: ribbon-rope-2-wiggle;
    animation-duration: 1.25s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}

.gift-box .ribbon-wrapper .ribbon-rope.ribbon-rope__right {
    float: right;
    animation-name: ribbon-rope-1-wiggle;
    animation-duration: 1.25s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}

.gift-box .ribbon-wrapper .ribbon-rope-part {
    border-radius: 0.75rem;
}

.gift-box .ribbon-wrapper .ribbon-rope-part.part__big {
    width: 4.5rem;
    height: 3.5rem;
    background: var(--primary);
    border: 0.25rem solid var(--gray-85);
    -moz-transform: scale(1, 1) rotateZ(45deg) translate(18px, 23px) skewX(8deg);
    -ms-transform: scale(1, 1) rotateZ(45deg) translate(18px, 23px) skewX(8deg);
    -webkit-transform: scale(1, 1) rotateZ(45deg) translate(18px, 23px) skewX(8deg);
    transform: scale(1, 1) rotateZ(45deg) translate(18px, 23px) skewX(8deg);
}

.gift-box .ribbon-wrapper .ribbon-rope__right .ribbon-rope-part.part__big {
    transform: scale(1, 1) rotateZ(-45deg) translate(-18px, 23px) skewX(-8deg);
}

.gift-box .ribbon-wrapper .ribbon-rope__right .ribbon-rope-part.part__small {
    transform: scale(1, 1) rotateZ(-29deg) translate(-1px, 16px) skewX(20deg);
}

.gift-box .ribbon-wrapper .ribbon-rope-part.part__small {
    margin: -2rem 0.5rem 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary-medium);
    -moz-transform: scale(1, 1) rotateZ(29deg) translate(1px, 16px) skewX(-20deg);
    -ms-transform: scale(1, 1) rotateZ(29deg) translate(1px, 16px) skewX(-20deg);
    -webkit-transform: scale(1, 1) rotateZ(29deg) translate(1px, 16px) skewX(-20deg);
    transform: scale(1, 1) rotateZ(29deg) translate(1px, 16px) skewX(-20deg);
}

.gift-box .ribbon-wrapper .ribbon-node__wrapper {
    width: 3.5rem;
    height: 1.5rem;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    overflow: hidden;
}

.gift-box .ribbon-wrapper .ribbon-node__wrapper > div {
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    width: 100%;
}

.gift-box .ribbon-wrapper .ribbon-node__wrapper .ribbon-node__big {
    height: 3.5rem;
    background: var(--primary);
    border: 0.25rem solid var(--gray-85);
}

.gift-box .ribbon-wrapper .ribbon-node__wrapper .ribbon-node__small {
    top: 0.75rem;
    width: 3rem;
    height: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-medium);
}


@media (min-width: 1200px) {
    .gift-box {
        transform-origin: top center;
        scale: 1.5;
        height: calc(16.5rem * 1.5);
    }
}


.lottery-wrapper {
    position: relative;
}

.lottery-wrapper:before {
    content: "";
    display: block;
    width: 100%;
    height: 0.25rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    background-color: var(--gray-85);
}

.lottery-ticket {
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 10rem;
    padding: 0;
    margin: 0.25rem;
    background-color: var(--secondary-15);
    border: 0.25rem solid var(--gray-85);
    border-radius: 1rem;
}

.lottery-ticket:before {
    content: "";
    position: absolute;
    left: -0.25rem;
    top: 50%;
    width: 1rem;
    height: 2rem;
    border-radius: 0 2rem 2rem 0;
    background-color: #FFFFFF;
    border: 0.25rem solid var(--gray-85);
    border-left: 0;
    transform: translateY(-50%);
}

.lottery-ticket:after {
    content: "";
    position: absolute;
    right: -0.25rem;
    top: 50%;
    width: 1rem;
    height: 2rem;
    border-radius: 2rem 0 0 2rem;
    background-color: #FFFFFF;
    border: 0.25rem solid var(--gray-85);
    border-right: 0;
    transform: translateY(-50%);
}

.lottery-ticket.ticket-pass {
    background-color: var(--primary-15);
}

.lottery-ticket.ticket-last .pass-btn:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f0a3";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 5rem;
    font-weight: 900;
    color: var(--secondary);
    transform: translate(50%, -50%);
}

.lottery-ticket.ticket-last .pass-btn:after {
    content: "得獎";
    position: absolute;
    right: -1.5rem;
    top: -1.25rem;
    color: var(--gray-85);
    font-size: 1.5rem;
    letter-spacing: initial;
    rotate: 15deg;
    writing-mode: initial;
}

.lottery-ticket.ticket-main:not(:last-of-type) {
    margin-bottom: 1rem;
}

.lottery-ticket .ticket-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    flex-grow: 1;
    padding: 2rem;
}

.lottery-ticket.lottery-unset, .lottery-ticket.lottery-unset:before, .lottery-ticket.lottery-unset:after {
    border: dashed;
}

.lottery-ticket.lottery-unset:before {
    border-left: 0;
}

.lottery-ticket.lottery-unset:after {
    border-right: 0;
}

.lottery-ticket.lottery-unset .ticket-wrapper {
    justify-content: center;
}

.lottery-ticket.ticket-main .ticket-wrapper {
    flex-direction: row;
}

.lottery-ticket .ticket-caption {
    font-size: 1.5rem;
}

.lottery-ticket .ticket-text {
    font-size: 2.5rem;
}

.lottery-ticket button {
    border-radius: 0 0.75rem 0.75rem 0;
    border: 0;
    font-size: 1.25rem;
    writing-mode: vertical-rl;
    padding-right: 1.25rem;
    letter-spacing: 0.5rem;
}

.lottery-list {
    position: relative;
    padding: 1.5rem;
    border: 0.25rem solid var(--gray-85);
    border-radius: 1rem;
    background-color: var(--secondary-15);
}

@keyframes gift-top-wiggle {
    0% {
        transform: rotate(0deg);
        transform-origin: 100% 100%;
    }
    10% {
        transform: rotate(5deg);
    }
    14% {
        transform-origin: 100% 100%;
        transform: rotate(0deg);
    }
    50% {
        transform-origin: 0% 100%;
        transform: rotate(0deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    64% {
        transform-origin: 0% 100%;
        transform: rotate(0deg);
    }
    100% {
        transform-origin: 100% 100%;
        transform: rotate(0deg);
    }
}

@keyframes gift-wiggle {
    0% {
        transform: rotate(0deg) scaleX(1);
        transform-origin: 100% 100%;
    }
    8% {
        transform: rotate(2deg) scaleX(0.99);
    }
    12% {
        transform: rotate(0deg) scaleX(1);
    }
    16% {
        transform: rotate(1deg) scaleX(1);
    }
    20% {
        transform: rotate(0deg) scaleX(1);
        transform-origin: 100% 100%;
    }
    50% {
        transform: rotate(0deg) scaleX(1);
        transform-origin: 0% 100%;
    }
    58% {
        transform: rotate(-2deg) scaleX(0.99);
    }
    62% {
        transform: rotate(0deg) scaleX(1);
    }
    66% {
        transform: rotate(-1deg) scaleX(1);
    }
    70% {
        transform: rotate(0deg) scaleX(1);
        transform-origin: 0% 100%;
    }
    100% {
        transform: rotate(0deg) scaleX(1);
        transform-origin: 100% 100%;
    }
}

@keyframes ribbon-rope-1-wiggle {
    0% {
        transform: rotate(0deg);
    }
    6% {
        transform: rotate(-5deg);
    }
    22% {
        transform: rotate(10deg);
    }
    38% {
        transform: rotate(-20deg);
    }
    44% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes ribbon-rope-2-wiggle {
    0% {
        transform: rotate(0deg);
    }
    6% {
        transform: rotate(5deg);
    }
    22% {
        transform: rotate(-10deg);
    }
    38% {
        transform: rotate(20deg);
    }
    44% {
        transform: rotate(5deg);
        /*transform: rotate(-45deg);*/
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes gift-floating {
    0% {
        transform: rotate(-1deg);
        transform-origin: 50% 100%;
    }
    50% {
        transform: rotate(1deg);
        transform-origin: 50% 100%;
    }
    100% {
        transform: rotate(-1deg);
        transform-origin: 50% 100%;
    }
}

@keyframes gift-top-floating {
    0% {
        transform: rotate(-3deg) translateY(-10px);
        transform-origin: 50% 100%;
    }
    50% {
        transform: rotate(3deg) translateY(-10px);
        transform-origin: 50% 100%;
    }
    100% {
        transform: rotate(-3deg) translateY(-10px);
        transform-origin: 50% 100%;
    }
}

@keyframes gift-mini-rotate {
    100% {
        background-position: -504px;
    }
}

@keyframes confirmation-icon-hue-cycle {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}
