

:root {
  --custom-bg-body: #E7EDF2; /* 主要背景 */
  --custom-bg-card: #A7D450; /* 卡片黃綠色 */
  --custom-text-dark-green: #3A470F; /* 深綠色文字 */
  --custom-bg-flip-number: #FFFDD0; /* 翻頁數字奶油色背景 */
  --custom-text-flip-number: #C0392B; /* 翻頁數字紅色 */
  --custom-text-ended: #C0392B; /* 活動截止時的紅色 */
  --custom-countdown-bg-card: #A7D450;
}

html, body {
  height: 100%;            
  margin: 0;
  display: flex;
  flex-direction: column;   
}

body {
  flex: 1;
  background-color: var(--custom-bg-body);
}
.navbar {
    background-color: var(--custom-bg-body);
}
.navbar-brand {
    font-weight: bold;
}
.container {
  flex: 1;
}
.container.content {
  flex: 1; /* 主體內容自動撐開 */
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #e9ecef;
    margin-top: 50px;
}

/* 小螢幕寬度 */    
/*.indexlogo-svg {
    width: 1100px;
}*/

.promote-svg {
    width: 80px;
}
.promote-link:hover{
    opacity: 0.5;
}

.moes-image {
    width: 80px; /* 小螢幕寬度 */
}

.content-text {
    font-size: 0.75rem; /* 小螢幕字型大小 */
}
.copyright {
    font-size: 0.6rem; /* 小螢幕字型大小 */
}

#newstb {
    font-size: 14px; /* 設定整個表格的文字大小 */
}

.newstb-type {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    color: white;    
}

.newstb-type1 {
    background-color: green;
}
.newstb-type2 {
    background-color: red;    
}
.newstb-type3 {
    background-color: orange;    
}
.newstb-type4 {
    background-color: rgb(149, 158, 240);    
}

.index-padding{
    padding-top: 60px;
    padding-bottom: 60px;
}

.master-title {
    background-color: #78B0D4; /* 設定背景顏色 */
    color: white; /* 設定文字顏色 */
    padding: 10px 20px; /* 設定內距 */
    border-radius: 5px; /* 設定圓角 */
    font-size: 2.0em; /* 設定文字大小 */

    display: flex;
    justify-content: center;
    align-items: center; 

    /* 使用 line-height 達到垂直置中效果 */
    line-height: 2em; /* 調整此值以符合你的需求 */
    height: 2em; /* 設定高度 */
}

.master-second-title{
    color: white; /* 設定文字顏色 */
    font-size: 2.0em; /* 設定文字大小 */

    display: flex;
    justify-content: center;
    align-items: center; 

    /* 使用 line-height 達到垂直置中效果 */
    line-height: 2em; /* 調整此值以符合你的需求 */
    height: 2em; /* 設定高度 */  
}

.index-content-title{
    color: #67a4c0;
}
.index-content-subTitle{
    color: #0e5f93;
}
.index-content-text{
    text-align: justify;
    text-indent: 2em;/*空兩個字*/
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

/*background image*/
.origin-bg1 {
  background-image: url('../imges/2025index_bg1.png'); 
  background-size: 100%;   
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position-y: 108px;
}

.origin-bg2 {
  background-image: url('../imges/2025index_bg2.png'); 
  background-size: 100%;   
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position-y: 108px;
}

.ml-3 {
    margin-left: 1rem !important; /* 設定左邊的外距 */
}

.linkdata {    
    color: #c57070;
}

.linkdata a {
    color: #c57070; /* 設定連結顏色 */
}

.resulttb-type {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    color: white;    
}

.resulttb-type1 {
    background-color: green;
}
.resulttb-type2 {
    background-color: red;    
}
.resulttb-type3 {
    background-color: orange;    
}
.resulttb-type4 {
    background-color: rgb(149, 158, 240);    
}
.resulttb-type5 {
    background-color: rgb(252, 156, 67);    
}
.resulttb-type6 {
    background-color: rgb(137, 248, 161);    
}

.result-title {
  color: #005A9C; /* 一個範例藍色 */
  font-family: 'Noto Sans TC', sans-serif; /* 使用思源黑體 (需從 Google Fonts 引入) */
  font-weight: 700; /* 設定字體粗細為粗體 */
}

/*精彩影音button*/
.nav-pills>.active {
    background-color: #be524a !important;
    font-weight: 700;
    color: #fff !important;
}
.nav-pills>.nav-link:hover {
    background-color: #be524a20 !important;
    color: #000 !important;
    font-weight: 700;
}
.nav-pills .nav-link {
    border-radius: var(--bs-nav-pills-border-radius);
}
button:not(:disabled), [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled) {
    cursor: pointer;
}
.nav-pills>.nav-link {
    color: #000 !important;
}

/*倒數*/
.custom-card-countdown {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--custom-countdown-bg-card);
  color: #4b4b00;
  border-radius: 10px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background-color 0.3s;
  min-width: 220px; /* 最小寬度以防太窄 */
  width: auto; /* 讓寬度自動依文字調整 */
  white-space: nowrap;
}

.custom-card-countdown:hover {
  transform: translateY(-3px);
  background-color: #dbe97e;
}

.custom-card-header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3a3a00;
  margin-bottom: 1rem;
}

.custom-card-countdown.ended .custom-card-header-title {
  color: #b54b4b;
}

/*倒數 - 翻頁卡片*/
.flip-card {
  position: relative;
  width: 50px;
  height: 65px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.flip-card .top,
.flip-card .bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #f8f5d2;
  color: #a3473c;
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 65px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid #e1dca9;
  border-right: 1px solid #e1dca9;
}

.flip-card .top {
  top: 0;
  border-top: 1px solid #e1dca9;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid #333;
  align-items: flex-start;
}

.flip-card .bottom {
  bottom: 0;
  border-bottom: 1px solid #e1dca9;
  border-radius: 0 0 6px 6px;
  align-items: flex-end;
  box-shadow: inset 0px 3px 5px rgba(0, 0, 0, 0.1);
}

.days-label {
  font-size: 0.95rem;
  font-weight: bold;
  margin-top: 0.3rem;
  color: #4b4b00;
}

/* 中間那一條線 */
.custom-divider {
  height: 1px;
  width: 100%;
  background-color: rgba(0,0,0,.1); 
  opacity: 0.6;            
  margin: 1rem 0 0.5rem;
}

.custom-card-footer-date {
  font-size: 0.95rem;
  color: #3a3a00;
  margin-top: auto;
}

/* 活動截止時的標題顏色 */
.custom-card-countdown.ended .custom-card-header-title {
  color: var(--custom-text-ended);
}


/*後台*/
.btn-light-blue{
    background-color: #bccfe0;
}

.btn-light-blue:hover{
    background-color: #bccfe0;
}

/*查看作品常用的樣式*/
.bg-purpleBlue{
    background-color: #696cff;
}
.leader-card-text{
    color:#566a7f;
}

@media (min-width: 768px) and (max-width: 1920px) { /* md 以上螢幕 */
    .indexlogo-svg {
        padding: 6rem;
    }
    .moes-image {
        width: 120px;
    }
    .content-text {
        font-size: 1rem; /* 預設字型大小 */
    }
    .copyright {
        font-size: 0.8rem; /* 預設字型大小 */
    }
    /*table style response */
    .table-reSize{
        table-layout: fixed;
        width: 100%;
    }
    .table-reSize th, 
    .table-reSize td {
        white-space: normal;    /* 允許換行 */
        word-break: break-word; /* 長字自動斷行 */
    }
}


@media (max-width: 768px) { /*縮手機*/
    .indexlogo-div {
        margin-top: 5vh;
        padding: 0 10px 10px 10px;
    }
    /*banner 下方logo*/
    .promote-svg {
        width: 60px;
    }
    /*table style response */
    .table-reSize{
        table-layout: fixed;
        width: 100%;
    }
}