/* index.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    background-color: #080404; /* 確保 html 元素背景也設定為 #080404 */
}
body {
    font-family: "Noto Serif TC", serif;
    font-optical-sizing: auto;
    font-style: normal;
    /* background: url('images/TinyPNG\ 新背景.jpg') no-repeat center center fixed;
    background-size: cover; */
    background-color: #080404;
}


/* -------------------nav------------------- */
nav a {
    text-decoration: none;
}
.nav-logo {
    margin-left: 35px;
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
}

.nav-text {
    font-size: 24px;
    margin-left: 15px;
    color: #fff;
}

.nav-icons {
    margin-left: auto;
    margin-right: 35px;
    display: flex;
    align-items: center;
}

.icon {
    width: 45px;
    height: auto;
    margin-left: 25px;
}

.main-nav {
    width: 100%;
    height: 100px; /* Set the height of the nav */
    background-color: #000000d6;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(30px);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* -------------------menu-btn------------------- */
.menu-btn {
    display: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-right: 35px;
}
/* ------------------- TOP ------------------------ */
.top{
    height: 100px;
}
/* -------------------collapse-overlay------------------- */
.collapse-overlay {
    position: fixed;
    top: 100px; /* Adjust to the height of your nav */
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    overflow: hidden;
    max-height: 0;
    transition: max-height 1s ease-out;
    -webkit-transition: max-height 1s ease-out; /* Safari */
}

.collapse-overlay.show {
    max-height: 100vh; /* Make sure it's tall enough to cover the entire viewport */
    -webkit-max-height: 100vh; /* Safari */
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    background-color: black;
    border-radius: 0.25rem;
    padding: 10px;
    color: #fff;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    -webkit-transition: opacity 1s ease-out, transform 1s ease-out; /* Safari */
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100px; /* Adjust as needed */
}

.collapse-overlay.show .card {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 10px;
}

@media (min-width: 768px){
    .collapse-overlay{
        top: 70px;
    }
}

/* -------------------header------------------- */
header {
    width: 100%;
    margin-top: 100px; /* 緊貼 nav */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* 為了讓 ::after 層次覆蓋圖片 */
    height: auto;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 2s ease-out;
}

header.show {
    opacity: 1; /* 當添加 show 類時，透明度變為 1 */
}
header .cover-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 1; /* 確保圖片位於偽元素之下 */
}
header .cover-img2{
    display: none;
}

header h1 {
    font-size: 3em;
}

.content {
    padding-top: 50px;
}
.mobile-cover {
    position: absolute;
    top: 230px;
    right: 0;
    width: 550px; /* 根据需要调整大小 */
    height: auto;
}
.event-details {
    position: absolute;
    top: 500px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 1.5px;
}
.event-details p {
    margin-bottom: 10px;
}
.enter-icon {
    display: block;
    margin: 20px auto 0; /* 上下左右居中对齐 */
    width: 120px; /* 根据需要调整图标大小 */
    height: auto;
}
/* -------------------block------------------- */
.block {
    min-height: 300px;
    margin: 20px 0;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #ffffff;
}
.block h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
    color: #D76F9C ;
}
.block h2 {
    text-align: center; /* 使 h2 元素水平居中 */
    color: #A7506A;     /* 設定 h2 的顏色 */
    font-size: 24px;    /* 設定 h2 的字體大小 */
    font-weight: normal; /* 取消加粗 */
    margin-bottom: 30px;
}
/* -------------------block1----------------- */
#block1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 70%; 
    margin: 100px auto; /* 水平至中 */
    min-height: 300px; /* 設置最小高度為 300px */
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin-bottom: 230px;
}
#block1.show {
    opacity: 1;
    transition: opacity 2hs ease-in-out;
}

/* 當 block1 不可見時，設置透明度為 0，觸發淡出效果 */
#block1.hide {
    opacity: 0.1;
    transition: opacity 1.2s ease-in-out;
}
#block1 p {
    margin: 0px;
    letter-spacing: 1.5px; 
}
/* 新增效果到 red-block, white-block, final-text */

/* 紅色文字樣式 */
.red-block{
    padding-bottom: 60px; /* 增加段落之間的距離 */
}
.red-text {
    font-size: 25px;
    color: #d00000;
    line-height: 0; /* 增加行距，讓每行文字之間的距離更大 */
    padding-bottom: 45px;
}

/* 白色文字樣式 */
.white-block{
    padding-bottom: 60px;
}
.white-text {
    font-size: 25px;
    color: #ffffff;
    line-height: 0; /* 增加行距，讓每行文字之間的距離更大 */
    padding-bottom: 45px; /* 增加段落之間的距離 */
}

/* 最後一段樣式 */
.final-text {
    font-size: 25px;
    color: #ffffff;
}
/* -------------------block2------------------- */
.feature{
    text-align: center;
}
.feature img{
    width: 65%;
    height: auto;
    margin-bottom: 50px;
    margin-top: 40px;
}
.signup {
    text-align: center;
    align-items: center;
    margin-bottom: 140px;
    display: flex;       /* 使用 flexbox 讓內容居中 */
    justify-content: center; /* 水平置中 */
}
.signup-btn {
    background: none;    /* 移除背景色 */
    width: 280px;
    height: auto;
    text-align: center;
    align-items: center;
    border: none;        /* 移除邊框 */
    padding: 0;          /* 移除內邊距 */
    display: flex;       /* 使用 flexbox 讓內容居中 */
    justify-content: center; /* 水平置中 */
}
.signup-btn img {
    width: 100%;         /* 圖片寬度為 100% */
    height: auto;        /* 保持圖片比例 */
    display: block;      /* 讓圖片作為區塊元素顯示 */
}

.sign-t{
    color: #A7506A;     /* 設定 h2 的顏色 */
    font-size: 24px;
    width: 100%;
    text-align: center;
    margin-bottom: 140px;
    background-color: transparent; /* 確保背景色為透明 */
    padding: 0;                    /* 移除不必要的內邊距 */
}
/* -------------------faq------------------- */
#block4h1{
    min-height: 50px;
    width: 100%;
}
#block4h1 h1{
    color: #d76f9c;
}

#block4 {
    height: 640px; /* Full height minus nav bar */
    margin: 0;
    display: flex;
    align-items: center;
}

.block4 {
    display: flex;         /* 使用 flex 布局 */
    justify-content: center; /* 讓內部內容水平置中 */
    align-items: center;   /* 讓內容垂直置中 */
    width: 60%;           /* 設定容器的寬度 */
    height: 100%;          /* 設定容器的高度 */
}

.iframe-content {
    width: 100%;
    height: 100%;
}
#block4-2 {
    width: 55%;
    margin: 40px auto;      /* 讓區塊水平居中 */
    text-align: left;      /* 區塊內文字靠右對齊 */
    margin-bottom: 140px;
}

.notice-title p{
    color: red;             /* 標題為紅色 */
    font-size: 20px;        /* 字體大小 18px */
    margin-bottom: 20px;    /* 與內文保持距離 */
}

.notice-list {
    list-style: none;       /* 移除列表符號 */
    padding: 0;
}

.notice-list li {
    color: white;           /* 內文為白色 */
    font-size: 18px;        /* 字體大小 15px */
    margin-bottom: 12px;
    line-height: 30px;
}
.notice-list li a{
    text-decoration: none;
    color: #d76f9c;
}
.notice-list #karma-gmail a{
    color: #ffffff;
}
/* -------------------button------------------- */
#block5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 140px;
}
.buttons {
    display: flex;
    justify-content: center;
    gap: 40px; /* 按钮之间的间距 */
}
.buttons img {
    cursor: pointer;
    width: 100px; /* 根据需要调整图片大小 */
    height: auto;
    transition: transform 0.3s; /* 添加转场动画 */
}
.buttons img:hover {
    transform: scale(1.1); /* 鼠标悬停时放大 */
}
.buttons button {
    margin: 10px 0; /* 按钮之间的间距 */
}

.page {
    display: none;
    /* border: 1px solid #ccc; */
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
    width: 55%;
    text-align: center; /* 居中对齐内容 */
    border-radius: 15px; /* 添加弧度 */
    transition: opacity 0.5s ease-in-out; /* 添加透明度变化的转场动画 */
    opacity: 0; /* 初始状态为透明 */
}
.page.active {
    display: block;
    opacity: 1;
    margin-top: 10px; /* 激活状态显示并设置为不透明 */
}

.page p{
    padding: 10px 40px;
    font-size: 20px;
    color: #d9d9d9;
    line-height: 2;
}
/* -------------------block6------------------- */
#block6 {
    margin: 0;
    margin-bottom: 140px;
}
#block6 h2{
    margin-bottom: 30px;
}
.fund {
    width: 100%;
    text-align: center;
}
.fund p{
    color: #d9d9d9;             /* 標題為紅色 */
    font-size: 20px;        /* 字體大小 18px */
    margin-bottom: 30px;    /* 與內文保持距離 */
}
.fund-img {
    width: 65%;           /* 設置圖片容器寬度為 70% */
    margin: 20px auto;    /* 讓圖片容器水平居中 */
    text-align: center;   /* 讓圖片內容居中 */
}

.funding-image {
    width: 100%;          /* 圖片寬度填滿容器 */
    height: auto;         /* 保持圖片比例 */
}

/* -------------------block7------------------- */
#block7{
    margin-bottom: 140px;
}
.about-img {
    width: 60%;           /* 設置圖片容器寬度為 70% */
    margin: 20px auto;    /* 讓圖片容器水平居中 */
    text-align: center;   /* 讓圖片內容居中 */
}

.about-image {
    width: 100%;          /* 圖片寬度填滿容器 */
    height: auto;         /* 保持圖片比例 */
}
.member-img {
    width: 60%;           /* 設置圖片容器寬度為 70% */
    margin: 20px auto;    /* 讓圖片容器水平居中 */
    text-align: center;   /* 讓圖片內容居中 */
}

.member-image {
    width: 100%;          /* 圖片寬度填滿容器 */
    height: auto;         /* 保持圖片比例 */
}
.t1, .t2, .t3{
    display: block;
    text-align: center;
}
.t1, .t2, .t3 p{
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
}
.t1{
    margin-top: 60px;
}
.t3{
    margin-top: 20px;
}
/* -------------------1024-footer------------------- */
.min-footer {
    display: none;
}
/* -------------------footer------------------- */
footer {
    background-color: #3F3F3F;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* -------------------side------------------- */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    color: #d76f9c;
    padding: 10px;
    display: block; /* Change to block to ensure it's displayed */
    z-index: 1000; /* Ensure it appears above other content */
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Add transition effect */
    -webkit-transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* Safari */
    opacity: 0; /* Start as transparent */
}

.side-nav.show {
    transform: translateY(-50%) translateX(0); /* Slide in from the right */
    opacity: 1; /* Become fully opaque */
}

.side-nav ul {
    list-style: none;
    padding: 0;
}

.side-nav ul li {
    text-align: right;
}

.side-nav ul li a {
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    padding: 12px 20px; /* Adjust padding to position content within side-nav */
    color: #d76f9c;
    position: relative; /* Needed for the line */
    transition: color 0.5s ease; /* Smooth color transition */
    -webkit-transition: color 0.5s ease; /* Safari */
}

.side-nav ul li a::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1px;
    background-color: #d76f9c;
    margin-left: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.5s ease;
    -webkit-transition: background-color 0.5s ease; /* Safari */
}

.side-nav ul li a:hover::after {
    background-color: #ffffff;
}

.side-nav ul li a:hover {
    color: #ffffff;
}
.fixed-icon {
    position: fixed;
    right: 20px;
    bottom: 40px;
    z-index: 1000;
}

.fixed-icon img {
    width: 140px;  /* Adjust the size as needed */
    height: 105px; /* Adjust the size as needed */
}
.fixed-bottom-div {
    display: none; /* 默认隐藏 */
}
.bottom-item {
    display: flex;
    align-items: center;
    padding: 4px;
}

.bottom-item img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.bottom-item p {
    font-size: 16px;
    margin: 0;
}

/* -------------------page switch styles------------------- */


/* -------------------media queries------------------- */
@media (max-width: 1024px) {
    .main-nav {
        height: 80px;
    }
    .nav-logo {
        margin-left: 20px;
    }
    .logo {
        width: 50px;
        height: 50px;
    }
    .nav-text {
        font-size: 18px;
        margin-left: 12px;
        color: #fff;
    }
    .nav-icons {
        display: none;
    }
    .icon {
        width: 40px;
        height: 40px;
    }
    .header {
        margin-top: 80px; /* nav 高度 80px，讓 header 緊貼 nav */
    }

    .header h1 {
        font-size: 2.5em;
    }
    #block1 p {
        font-size: 18px;
    }
    .red-block{
        padding-bottom: 30px; /* 增加段落之間的距離 */
    }
    .white-block{
        padding-bottom: 30px;
    }
    .red-text, .white-text {
        line-height: 1; /* 行距稍微縮小 */
        padding-bottom: 20px;
    }
    #block4 {
        height: 800px; /* Full height minus nav bar for mobile */
    }
    #block4 {
            height: 700px; /* 调整高度为500px */
            margin: 0;
    }
    .block4 {
        width: 90%;
        height: 100%;
    }

    .page{
        width: 70%;
        padding: 0px 20px 20px;
    }
    .page p {
        font-size: 12px;
    }

    .menu-btn {
        display: block;
    }
    .min-footer {
        display: block;
        width: auto;
        background-color: #3F3F3F;
        height: auto;
    }
    .min-footer p{
        color: #ffffff;
        font-size: 16px;
    }
    .ft-gmail {
        width: 65%;
        display: flex;
        text-align: center;
        height: auto;
        /* justify-content: center; */
        margin-left: 35%;
        padding: 20px 0 10px 0;
    }
    .ft-ig {
        width: 65%;
        display: flex;
        text-align: center;
        height: auto;
        /* justify-content: center; */
        margin-left: 35%;
        padding: 10px 0 20px 0;
    }
    .gmail-icon, .ig-icon{
        width: 20px;
        height: auto;
        margin-right: 20px;
    }
    
    .min-footer img{
        width: 100%;
        height: auto;
    }
    
    footer{
        display: none;
    }

    .side-nav {
        display: none; /* Hide side-nav on tablets */
        font-size: 0px;
        color: #00000000;
        background-color: #00000004;
        padding: 0px;
    }
    .fixed-icon {
        display: none;
    }
    .fixed-bottom-div {
        display: flex; /* 在平板和手机上显示 */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background-color: #000000; /* 可以根据需要修改背景颜色 */
        z-index: 1000; /* 确保其在最前面 */
        flex-direction: column;
        align-items: flex-start; /* 将子元素对齐到左侧 */
        justify-content: center;
        padding-left: 10px; /* 根据需要调整左侧填充 */
        color: #d9d9d9;
    }
    .bottom-item img{
        margin-left: 80px;
    }
}
@media (max-width: 768px) {
    body {
        background-size: cover;
    }

    .main-nav {
        height: 70px;
    }
    .nav-logo {
        margin-left: 15px;
    }
    .logo {
        width: 40px;
        height: 40px;
    }
    .nav-text {
        font-size: 15px;
        margin-left: 9px;
        color: #fff;
    }
    .nav-icons {
        margin-right: 15px;
    }
    .icon {
        width: 35px;
        height: 35px;
    }

    header {
        margin-top: 70px; /* nav 高度 70px，讓 header 緊貼 nav */
    }
    header .cover-img {
        display: none;
    }
    header .cover-img2 {
        display: block;
        width: 80%;
        height: auto;
        object-fit: contain;
        z-index: 1; /* 確保圖片位於偽元素之下 */
    }
    #block1 {
        margin-top: 100px;  /* 將 margin-top 設為 0 讓 block1 緊貼 header */
        min-height: 50px;
        margin-bottom: 100px;
    }

    .block h1{
        font-size: 20px;
    }
    .block h2{
        font-size: 18px;
    }
    #block1 p {
        font-size: 18px;
    }
    .red-block{
        padding-bottom: 20px; /* 增加段落之間的距離 */
    }
    .white-block{
        padding-bottom: 20px;
    }
    .red-text, .white-text, .final{
        line-height: 1; /* 行距稍微縮小 */
        padding-bottom: 15px;
    }
    #block2 h2{
        margin-bottom: 30px;
    }

    .feature img.fea-img {
        content: url('images/網頁設計特色.png'); /* 切換為新的圖片 */
        width: 65%; /* 確保寬度百分比保持一致 */
        height: auto;
        margin-right: 2%;
        margin-top: 0px;
        margin-bottom: 40px;
    }
    .signup-btn {
        width: 40%;
    }
    .sign-t p{
        font-size: 16px;
    }
    #block4h1{
        margin-top: -60px;
        height: 10px;
        width: 100%;
        margin-bottom: 40px;
    }
    #block4 {
        height: 920px; /* Full height minus nav bar for mobile */
    }
    #block4h1 h1{
        color: #d76f9c;
    }

    #block4-2{
        margin-top: -200px;
        width: 78%;
    }
    .notice-title p{
        font-size: 14px;
        margin-bottom: 10px;
    }
    .notice-list li {
        font-size: 11px;
        line-height:25px;
        margin-bottom: 8px;
    }
    .buttons{
        gap: 10px;
        margin-bottom: 0;
    }
    .buttons img {
        width: 25%; /* 根据需要调整图片大小 */
        height: auto;
        transform: scale(1);
    }
    .buttons img:hover{
        transform: none;
    }
    #block5 {
        margin-top: 0px;
    }
    .page{
        width: 100%;
        padding: 0px 80px 80px;
    }
    .page p {
        font-size: 12px;
        padding: 0 15px;
    }
    #block6 {
        margin-top: -80px;
    }
    #block6 h2{
        margin-bottom: 15px;
    }
    #block6 p{
        font-size: 10px;
    }
    .fund-img{
        width: 80%;
    }

    #block7 {
        margin-top: -60px;
    }
    #block7 h2{
        margin-bottom: 15px;
    }
    .about-img {
        content: url('images/about\ us\ mobile.png'); /* 切換為新的圖片 */
        width: 80%; /* 確保寬度百分比保持一致 */
        height: auto;
        margin-top: 0px;
        margin-bottom: 40px;
    }
    .member-img {
        content: url('images/member\ mobile.png'); /* 切換為新的圖片 */
        width: 80%; /* 確保寬度百分比保持一致 */
        height: auto;
        margin-top: 0px;
        margin-bottom: 40px;
    }
    .t1, .t2, .t3{
        display: block;
        text-align: center;
    }
    .t1, .t2, .t3 p{
        color: #ffffff;
        font-size: 11px;
        margin-bottom: 8px;
    }
    .t1{
        margin-top: 30px;
    }
    .t3{
        margin-top: 20px;
    }
    .min-footer{
        margin-top: -70px;
    }
    .min-footer p{
        color: #ffffff;
        font-size: 14px;
    }
    .ft-gmail {
        width: 72%;
        display: flex;
        text-align: center;
        height: auto;
        /* justify-content: center; */
        margin-left: 28%;
        padding: 20px 0 10px 0;
    }
    .ft-ig {
        width: 72%;
        display: flex;
        text-align: center;
        height: auto;
        /* justify-content: center; */
        margin-left: 28%;
        padding: 10px 0 20px 0;
    }
    .gmail-icon, .ig-icon{
        width: 20px;
        height: auto;
        margin-right: 20px;
    }
    .side-nav {
        display: none; /* Hide side-nav on mobile */
    }
    .fixed-bottom-div {
        height: 80px;
    }
    .bottom-item img{
        margin-left: 40px;
    }
    .bottom-item p {
        font-size: 12px;
        margin: 0;
    }
    .bottom-item img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }


}
@media (max-width: 500px){
    
    header {
        margin-top: 70px; /* nav 高度 70px，讓 header 緊貼 nav */
    }
    header .cover-img2 {
        display: block;
        width: 90%;
        height: auto;
        object-fit: contain;
        z-index: 1; /* 確保圖片位於偽元素之下 */
    }
    .content{
        margin-top: -100px;
    }
    #block1{
        width: 80%;
    }
    #block1 p {
        font-size: 12px;
    }
    .red-block{
        padding-bottom: 20px; /* 增加段落之間的距離 */
    }
    .white-block{
        padding-bottom: 20px;
    }
    .red-text, .white-text, .final{
        line-height: 1; /* 行距稍微縮小 */
        padding-bottom: 15px;
    }


    .page{
        width: 100%;
        padding: 0px 20px 20px;
    }
    .min-footer{
        margin-top: -90px;
    }
    .min-footer p{
        color: #ffffff;
        font-size: 12px;
    }
    .ft-gmail {
        width: 80%;
        display: flex;
        text-align: center;
        height: auto;
        /* justify-content: center; */
        margin-left: 20%;
        padding: 10px 0 5px 0;
    }
    .ft-ig {
        width: 80%;
        display: flex;
        text-align: center;
        height: auto;
        /* justify-content: center; */
        margin-left: 20%;
        padding: 5px 0 10px 0;
    }
    .gmail-icon, .ig-icon{
        width: 15px;
        height: auto;
        margin-right: 20px;
    }
    .bottom-item img{
        margin-left: 80px;
    }
    .fixed-bottom-div {
        height: 70px;
    }
    .bottom-item p {
        font-size: 8px;
        margin: 0;
    }
}
@media (max-width: 440px){
    #block4 {
        height: 670px; /* Full height minus nav bar for mobile */
    }
}
