/*共通樣式歸零*/
a,
abbr,
acronym,
address,
applet,
b,
big,
blockquote,
body,
button,
caption,
center,
cite,
code,
dd,
del,
dfn,
div,
dl,
dt,
em,
fieldset,
font,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
nav,
object,
ol,
p,
pre,
q,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
title,
tr,
tt,
u,
ul,
var {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    /* font-size: 100%; 
    font: initial; */
    vertical-align: baseline;
    background: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    line-height: 1.5 !important;
    /* background-image: url("assets/img/bkimg.jpg"); */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    /* scrollbar-gutter: stable; */
    font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: calc(18px + (1.3-1.2) * ((100vw - 600px) / (1200 - 600))) !important;
    color:#373C38 !important;
}

@media screen and (max-width: 576px) {
    body {
        font-size: calc(16px + (1.3-1.2) * ((100vw - 600px) / (1200 - 600))) !important;
    }
}

ol,ul {
    list-style: none;
}

blockquote,q {
    quotes: none;
}

blockquote:before, blockquote:after,q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

ins {
    text-decoration: none;
}

del {
    text-decoration: line-through;
}

/* 標題文字 */
h1 {
    font-size: 240%;
    font-weight: bold;
}

.header_h1 {
    text-shadow: 1px 1px 1px #000000;
    color: rgb(255, 255, 255);
}

h2{
    font-size: 220%;
    font-weight: bold;
}
h3{
    font-size: 200%;
    font-weight: bold;
}

h4 {
    font-size: 180%;
    font-weight: bold;
}

.subtitle_h4 {
    border-left: 2mm ridge rgba(203, 64, 66, .6) ;
}

.footer_h4 {
    text-shadow: 1px 1px 1px #000000;
    color: rgb(255, 255, 255);
}

h5 {
    font-size: 160%;
    font-weight: bold;
}

.subtitle_h5 {
    border-left: 2mm ridge rgba(224, 60, 138, .5) ;
}

h6 {
    font-size: 140%;
    font-weight: bold;
}

.subtitle_h6 {
    font-size: 130%;
    border-left: 2mm ridge rgba(255, 60, 138, .4) ;
    color: rgba(45, 57, 73,.8);
}
.form_tips_h6 {
    font-size: 110%;
    color: rgba(45, 57, 73,.8);
}

/* 文字 */
span {
    white-space: pre-line;  /* 連續空白合併正常換行 */
}

label,
legend {
    white-space: pre-line; /* 連續空白合併正常換行 */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 40px;
}

p,
pre {
    white-space: pre-line; /* 連續空白合併正常換行 */
    letter-spacing: 2px;
    line-height: 2;
    font-weight: 400;
}

.pre_about {
    font-size: 100%;
}

.p_article {
    width: 100%;
    max-width: 1024px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 200;
    overflow: hidden;
}

/* 超連結 */
a {
    cursor: pointer;
    text-decoration: none;
    color: rgb(250, 250, 250);
    background-color: transparent;
    width: auto;
    display: inline-flex;
    align-items: center;
}

a:hover {
    color: rgb(250, 250, 250);
    text-shadow: 1px 1px 1px #000000;
    background-color: none;
}

.a_buttom {
    border: none;
    background-color: #24936E;
    color: #ECEBEB;
    margin: 0;
    width: 100%;
    max-width: 120px;
    min-width: 120px;
    padding: 12px 8px;
    border-radius: 4px;
    height: 45px;
    font-weight: bolder;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* button */
button:hover {
    font-weight: bold;
    box-shadow: 0 1px;
    /* 增加文字底線 */
}

/* 多行文本輸入框 */
textarea {
    width: 100%;
    min-width: 700px;
    padding: 12px 8px;
    margin: 0;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    border: 1px solid rgb(170, 170, 167,0.6);
}

/* input */
input,
select,
textarea {
    box-sizing: border-box;
    outline: none;  /*點擊時不顯示border*/
}

input:focus,
textarea:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
}

input::placeholder,
input::-webkit-input-placeholder {
    margin: auto;
}

/* 按鈕 */
input[type="button"],
input[type="reset"],
input[type="submit"]{
    border: none;
    background-color: #24936E;
    color: #ECEBEB;
    margin: 0;
    width: 100%;
    max-width: 160px;
    min-width: 160px;
    padding: 0;
    line-height: 0;
    border-radius: 4px;
    height: 45px;
    font-weight: bolder;
}

input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover{
    background-color: #B5CAA0;
    color: #373C38;
}

/* 一般輸入和密碼 */
input[type="text"],
input[type="password"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    max-width: 180px;
    min-width: 180px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 45px;
    margin: 0;
    text-decoration: none;
    display: inline-block;
}

/* 查詢 */
input[type="search"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    max-width: 270px;
    min-width: 270px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 45px;
    margin: 0;
    text-decoration: none;
    display: inline-block;
}

/* 網址 */
input[type="url"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    min-width: 700px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 45px;
    margin: 0;
    text-decoration: none;
    display: inline-block;
}

/* 年月日 */
input[type="date"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    max-width: 180px;
    min-width: 180px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 45px;
    margin: 0;
    text-decoration: none;
    display: inline-block;
}

/* time */
input[type="time"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    max-width: 180px;
    min-width: 180px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 40px;
    margin: 0;
    text-decoration: none;
    display: block;
}

/* email */
input[type="email"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    max-width: 350px;
    min-width: 350px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 40px;
    margin: 0;
    text-decoration: none;
    display: block;
}

/* number */
input[type="number"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    max-width: 180px;
    min-width: 180px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 40px;
    margin: 0;
    text-decoration: none;
    display: block;
}

/* tel */
input[type="tel"] {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 12px 8px;
    width: 100%;
    max-width: 180px;
    min-width: 180px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 40px;
    margin: 0;
    text-decoration: none;
    display: block;
}

@media screen and (max-width: 576px) {
    input[type="button"],
    input[type="reset"],
    input[type="submit"],
    input[type="text"],
    input[type="password"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="time"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        max-width: none;
        min-width: auto;
    }
}

/* 單選和複選 */
input[type="checkbox"],
input[type="radio"] {
    padding: 3px 6px;
    border: 1px solid rgb(170, 170, 167,0.6);
    user-select: none;
    /* 防止文字被滑鼠選取反白 */
    display: inline-block;
}

/* 下拉選單 */
select,option {
    border: 1px solid rgb(170, 170, 167,0.6);
    padding: 0 8px;
    width: 100%;
    max-width: 180px;
    min-width: 180px;
    background-color: rgb(250, 250, 250);
    border-radius: 4px;
    height: 45px;
    margin: 0;
    text-decoration: none;
    display: inline-block;
}

/* 表格 */
table {
    width: 100%;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-gutter: stable;
    text-overflow: ellipsis;
    font-size: 90%;
}

@media screen and (max-width: 768px) {
    table {
        display: block;
    }
}

.table_article tbody {
    margin: 0;
}

.td_article {
    text-align: center;
}

.table_icon {
    max-width: 25px;
    max-height: 20px;
}

tr:nth-child(odd) {
    background-color: #DAC9A6;
    /* 表格奇數tr */
}

tr:nth-child(even) {
    background-color: #FFFFFF;
    /* 表格偶數tr */
}

th {
    background-color: #7D6C46;
    color: white;
    text-align: center;
}

th,
td {
    padding: .4rem;
}

/* table的page換頁 */
.td_page,
.td_more {
    padding: 0;
    background-color: transparent !important;
}

.table_page .img_icon {
    max-width: 25px;
    max-height: 25px;
}

.table_page a {
    display: flex;
}

.table_page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table_page tbody {
    margin: auto;
}

.table_page tr {
    background-color: transparent !important;
}

.table_page th {
    width: auto;
}

.table_page td {
    text-align: center;
    width: auto !important;
    vertical-align: middle;
    padding: 0;
    width: auto;
}

.table_page label {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

/* 分隔線 */
hr:not([size]) {
    height: 2px;
}

hr {
    margin: .5rem 0 0 0;
    color: inherit;
    background: linear-gradient(to right, #89916B, #B5CAA0);
    border: 0;
    opacity: 1;
}

/* 圖片 */
img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.img_icon {
    max-width: 25px;
    max-height: 25px;
}

.search_icon {
    max-width: 40px;
    max-height: 40px;
}

/* 純圖片牆 */
.img_item {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.item {
    margin: auto;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.item_img {
    background-color: rgba(100, 100, 100, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 25px;
}

.item_img:hover {
    border: 2px solid #66afe9;
}

.img_text_bg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg,rgba(0,0,0,.4) 30%,rgba(255,255,255,.4) 100%);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-end;
    border-radius: 25px;
}
.img_h6 {
    width: 100%;
    text-shadow: 1px 1px 1px #000000;
    padding: .3rem 1rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}
.img_span {
    width: 100%;
    text-shadow: 1px 1px 1px #000000;
    padding: .3rem 1rem .5rem 1rem;
    height: 80px;
    font-weight: bold;
}



@media screen and (max-width:1024px) {
    .img_item {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .item {
        max-width: 300px;
        max-height: 225px;
        min-height: 225px;
    }
    .item_img {
        max-height: 225px;
        min-height: 225px;
    }
}
@media screen and (max-width:768px) {
    .img_item {
        grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    }
    .item {
        max-width: 330px;
        max-height: 248px;
        min-height: 248px;
    }
    .item_img {
        max-height: 248px;
        min-height: 248px;
    }
    
}

/* 活動牆 */
.img_activity {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.activity {
    margin: 0;
}

.activity_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 5px;
}

/* 圖片牆結合卡片 */
/* 圖片卡 編輯呈現 */
.img_card {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card{
    margin: auto;
    max-width: 300px;
    min-width: 300px;
}

.img_big_card {
    grid-column: 1/3;
    grid-row: 1/3;
}

.card_img {
    max-width: 100%;
    max-height: 225px;
    min-height: 225px;
    object-fit: cover;
    object-position: center center;
    margin: auto;
    border: 1px solid rgb(108, 117, 125);
    border-radius: 5px;
}

.card_icon {
    object-position: center center;
    margin: auto;
    border-radius: 5px;
    max-height: 40px;
}

.card_bg {
    background-color: #fff;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0,0.175);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
}

.card_bg a {
    flex-direction: column;
}

.card_bg label {
    font-weight: 900;
}

.card_imgadd {
    max-width: 100px;
    border-radius: 50%;
    background-color: #24936E;
}

.card_imgadd:hover {
    background-color: #B5CAA0;
}

@media screen and (max-width:576px) {
    .img_card {
        margin: 0 auto;
    }
    .img_card .card{
        margin: auto;
    }
}

@media screen and (max-width:414px) {
    .img_big_box {
        grid-column: auto;
        grid-row: auto;
    }
}
.card_li_title{
    font-size: 110%;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgb(155, 115, 35);
    height: 50px;
}
.card_li_text {
    height: 85px;
    font-weight: bold;
    letter-spacing: 0;
    font-size: 90%;
}
.card-body {
    border: 1px solid #dee2e6;
    padding: 0 0 0 .4rem;
}

.div_card {
    display: flex;
    justify-content: space-between;
    max-height: 40px;
    min-height: 40px;
}

/* 遷入ifram */
.embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/*container*/
#container {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*header*/
.header_bg {
    background-color: #000000;
    background-position: 60% 70%;
    width: 100%;
    height: calc(10vh);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    z-index: 49;
}

.header {
    background-color: transparent;
    width: 100%;
    max-width: 1440px;
    --above-all-in-container: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

@media screen and (max-width: 1024px) {
    .header, .subtitle, .content {
        padding: 0 4vw;
    }
}

/* content */
.content {
    /* padding-top: calc(10vh); */
    width: 100%;
    max-width: 1440px;
    margin: auto;
    --transition-duration: 700ms;
    flex-grow: 1;
}

/* content的div row */
.d_row {
    justify-content: start;
    align-items: center;
}

/* content的div col */
.d_cols {
    display: flex;
    justify-content: start;
    align-items: start;
    margin-top: .5rem;
    padding: 0 .5rem;
}

@media screen and (max-width: 768px) {
    
}

@media screen and (max-width: 576px) {
    .d_cols {
        display: block;
        padding: 0 calc(1.5rem*.5);
    }
}

/*footer
.footer {
    background-color: rgb(91,173,146);
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 1024px;
    height: 100%;
    max-height: 100px;
    margin: auto;
    --pinned-layer-in-container: 54;
    --above-all-in-container: 49;
    display: flex;
    align-items: center;
} */

/*footer*/
.footer_bg {
    background-color: #000000;
    background-position: center center;
    width: 100%;
    height: calc(50px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer {
    background-color: transparent;
    width: 100%;
    max-width: 1440px;
    --above-all-in-container: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* subtitle */
.subtitle {
    position: relative;top: calc(33vh);
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    margin-top: 1rem;
}

/*背景影片*/
#myVideo {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
}

/* 換頁樣式 pagination */
.pagination_border {
    background-color: rgb(170, 170, 167,0.2);
    max-height: 60px;
    min-height: 60px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 4px;
    padding: 0 1rem;
 }

.pagination_border button {
    background-color: rgb(250, 250, 250);
    max-width: 40px;
    min-width: 40px;
    max-height: 40px;
    min-height: 40px;
    border: 2px solid rgb(170, 170, 167,0.6);
    margin: 0 .3rem;
    border-radius: 4px;
}

.pagination_icon {
    max-width: 40px;
    max-height: 40px;
}

.pagination_border select {
    background-color: rgb(250, 250, 250);
    width: 100%;
    max-width: 60px;
    min-width: 60px;
    max-height: 40px;
    min-height: 40px;
    height: 40px;
}

.pagination_border label {
    margin: 0 .2rem;
    padding: 0;
    max-height: 40px;
    min-height: 40px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Carousel輪播 */
.carousel {
    margin-top: 1rem;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
} 
.carousel-item {
    background-color: rgba(0,0,0);
    height: 100%;
    position: revert;
}
.rwdimg {
    min-width: 560px;
    min-height: 560px;
    display:block;
    background-position: center center;
    background-repeat: no-repeat;
    background-size:cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.carousel-caption {
    width: 100%;
    right: 0;
    bottom: 0;
    left: 0;
    padding-bottom: 0;
}
.carousel_h5 {
    background-color: rgba(0,0,0,.5);
    color: #FFFFFF;
    text-shadow: 1px 1px 1px #000000;
    border: none;
}
.carousel_p {
    background-color: rgba(0,0,20,.5);
    color: #FFFFFF;
    text-shadow: 1px 1px 1px #000000;
}
.carousel-control-next, .carousel-control-prev {
    width: 8%;
}
.carousel-control-next-icon, .carousel-control-prev-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255,255,255,.5);
}

/* 圖片牆圖片放大 */
.alloverlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.8);
}

.alloverlay-content {
    position: relative;
    top: 10vh;
    width: 100%;
    max-width: 1024px;
    margin: auto;
}

.alloverlay .closebtnimg {
    position: absolute;
    top: 0;
    right: 45px;
    font-size: 60px;
}

@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

/* 活動花絮卡的標題 */
.card-title {
    font-size: 140%;
    font-weight: bold;
    color: rgba(255, 177, 27, .9);
    text-shadow: 1px 1px 1px rgb(155, 115, 35);
}

.card-text {
    padding: 0 0 0 1rem;
}

/* 圖片平移CSS */
.image-slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.image-slider>div {
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
}
.image-slider>div>span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}
.image-slider>div>span:nth-child(1) {
    left: 0;
    background-color: #B3E0B6;
}
.image-slider>div>span:nth-child(2) {
    left: 100%;
    background-color: #F7B5B4;
}
.image-slider>div>span:nth-child(3) {
    left: 200%;
    background-color: #B2B0D5;
}
.image-slider>div>span:nth-child(4) {
    left: 300%;
    background-color: #F7E7B4;
}
.image-slider>div>span:nth-child(5) {
    left: 400%;
    background-color: #B3E0B6;
}
.image-slider>div>span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12rem;
    color: white;
}
.image-slider>div {
    animation: image-slider-anime 15s linear infinite;
}
@keyframes image-slider-anime {
    0%,
    20% {
        left: 0;
    }
    25%,
    45% {
        left: -100%;
    }
    50%,
    70% {
        left: -200%;
    }
    75%,
    95% {
        left: -300%;
    }
    100% {
        left: -400%;
    }
}