﻿/*share-start*/
h2 {
    font-size: 50px;
    text-align: center;
    font-weight: 800;
}
h3 {
    font-size: 46px;
    text-align: center;
    font-weight: 600;
}
h4 {
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}
body {
    line-height: 1;
    background-color: #e2e2e2;
}
.en-font {
    font-family: "Source Sans 3",sans-serif;
}
.ch-font {
    font-family: "Noto Sans TC",sans-serif;
}

.img-circle {
    border-radius: 50%;
}
/*黑*/
#ABOUT, #APPLICATION, #NOTICE, #COMMITTEE {
    background-color: #000;
    color: #fff;
    padding: 40px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5
}
/*白*/
#APPLY, #SELECTION, #IMPORTANT, #DOMESTIC {
    background-color: #fff;
    color: #000;
    padding: 40px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5
}
/*灰*/
#VOTING, #CHALLENGE, #REWARDS, #DOWNLOAD, #VIDEO {
    background-color: #d4d4d4;
    color: #000;
    padding: 40px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5
}
#VOTING span, #DOMESTIC span {
    position: relative;
    display: block;
    margin: 25px;
    text-align: center;
    font-size: 50px;
}
    #ABOUT .content, #APPLY .content, #CHALLENGE .content, #APPLICATION .content,
    #REWARDS .content, #NOTICE .content, #IMPORTANT .content, #DOWNLOAD .content,
    #SELECTION .content {
        width: 60%;
        margin: 0 auto
    }


.nav-link.active {
    background-color: #fff !important;
    box-shadow: -4px 4px 10px 2px rgb(0 0 0 / 20%);
    color: #2441ff !important;
}
.nav-link {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    /*min-width: 190px;*/
    padding: 10px 24px;
    background-color: #2441ff !important;
    border-radius: 16px 16px 0 0;
    color: #fff !important;
    margin: 2px;
}

/*share-end*/
/*navbar-start*/
.title {
    margin: 0;
}
#navbar-menu {
    padding: 8px;
}
/*navbar-end*/

/*header-start*/
header .logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}
header .logo .title {
    font-weight: 700;
    font-size: 20px;
    margin-left: 20px;
    margin-right: 0;
}
.mt-scroll-top {
    scroll-margin-top: 82px;
}
.carousel-item {
    width: 100%;
    /*height: 500px !important;*/
}
.carousel-item img {
    /*position: absolute;*/
    top: -9999px;
    bottom: -9999px;
    left: -9999px;
    right: -9999px;
    margin: auto;
    height: 100%;
}
/*header-end*/

/*NEWS-start*/
#NEWS {
    background-color: #fff;
    padding: 40px 0;
}
#NEWS .news-list {
    width: 60%;
    margin: 20px auto 0;
}
.news-date {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 10px;
    border-right: 2px solid #e7e7e7;
    font-weight: 600;
    text-align: center;
}
.news-date .day {
    font-size: 30px;
    width: 60px;
    border-bottom: 2px solid #c90000;
}
.news-date .month {
    color: #c90000;
    margin-top: 5px;
    font-size: 12px;
}
#NEWS .news-list-item {
    display: flex;
    border: 2px solid #e7e7e7;
    border-radius: 2px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
#NEWS .news-list-item .date-wrapper {
    display: flex;
    width: 80%;
}
#NEWS .news-list-item .content-txt {
    overflow: hidden;
    padding: 20px;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#NEWS .arrow-desktop {
    display: flex;
    width: 20%;
    justify-content: center;
}
#NEWS .arrow-mobile {
    display: none;
}
#NEWS .arrow-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #555;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    align-items: center;
}
#NEWS .arrow-wrapper img {
    filter: invert(1);
}
[id^='mews-modal-'] .modal-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 10px 40px;
    align-items: center;
    background-color: #000;
    color: #fff;
}
[id^='mews-modal-'] .modal-dialog{
    max-width: 90%;
}
[id^='mews-modal-'] .modal-header button {
    filter: invert(1);
    font-size: x-large;
}
[id^='mews-modal-'] .content-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 32px;
}
[id^='mews-modal-'] .content-txt p {
    margin-top: 1rem !important;
	line-height: 20px !important;
}
[id^='mews-modal-'] .news-date {
    border: 0;
}
/*NEWS-end*/
/*SELECTION-start*/
#nav-tabContent {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 512px;
    padding: 0 65px;
    background-color: #fff;
    box-shadow: -4px 4px 10px 2px rgb(0 0 0 / 20%);
    font-weight: 700;
    margin: 2px;
}
/*SELECTION-end*/

/*IMPORTANT-start*/
#IMPORTANT table {
    font-size: 18px;
}
/*IMPORTANT-end*/

/*TopBtn-start*/
.top-btn:hover {
    color: white !important;
}
.top-btn {
    position: fixed;
    width: 84px;
    height: 84px;
    font-size: 20px;
    text-align: center;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-weight: 600;
    line-height: 1 !important;
    cursor: pointer;
    z-index: 99;
    text-decoration: none;
}
.top-btn img {
    width: 40px;
    filter: invert(1)
}
/*TopBtn-end*/

/*footer-start*/
.footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center
}
.footer p {
    line-height: 1.5
}
.footer .copyright {
    margin-top: 10px
}
/*footer-end*/

@media screen and (max-width:1200px) {
    #NEWS .news-list {
        width: 70%;
    }
}
@media screen and (max-width:992px) {
    #NEWS .news-list {
        width: 90%;
    }
    #ABOUT .content, #APPLY .content, #CHALLENGE .content, #APPLICATION .content,
    #REWARDS .content, #NOTICE .content, #IMPORTANT .content, #DOWNLOAD .content,
    #SELECTION .content {
        width: 100%
    }
}
@media screen and (max-width:767px) {
    #VOTING, #SELECTION, #APPLICATION, #ABOUT, #APPLY, #CHALLENGE, #REWARDS, #NOTICE, #IMPORTANT, #DOWNLOAD {
        padding: 20px
    }
    .top-btn{
        width: 56px;
        height: 56px;
        right: 30px;
        bottom: 50px;
    }
    .top-btn img {
        width: 20px
    }
}
@media screen and (max-width:576px) {
    #NEWS .news-list-item .content-txt {
        -webkit-box-orient: vertical;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: unset;
        padding: 0 20px;
        line-height: 1.5;
    }
    .news-date {
        display: none;
    }
    .arrow-mobile .news-date{
        display: flex;
        border: 0;
    }
    #NEWS .arrow-desktop {
        display: none;
    }
    #NEWS .arrow-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        height: 100%;
    }
    #nav-tab button{
        width: 100%;
    }
    #nav-tabContent{
    padding: 0;
    font-size: 16px;
    }

}
@media screen and (max-width: 480px) {
    .carousel-item {
        width: 100%;
        height: 200px !important;
    }
    h2 {
        font-size: 25px;
        font-weight: 600;
    }
    h3 {
        font-size: 20px;
        font-weight: 600;
    }
    #NEWS {
        padding: 20px 0;
    }
    .news-date {
        display: none;
        padding: 0px 5px;
    }
    .news-date .day {
        font-size: 20px;
    }
    #NEWS .news-list{
        margin: auto 0;
    }
    #NEWS .news-list-item .content-txt {
        padding: 0 10px;
        line-height: 1;
        font-weight: 600;
        font-size: 12px;
    }
    #VOTING span, #DOMESTIC span {
        margin: 12px;
        font-size: 25px;
    }
    #nav-tab button{
        width: 100%;
    }
    #nav-tabContent{
        padding: 0;
        font-size: 16px;
    }
    #IMPORTANT table{
        font-size: 14px;
    }
}

