@font-face {
    font-family: 'GensenFont';
    src: url('../font/gensen-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('../image/background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    margin-bottom: 20px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-height: 80px;
}

.logo-item {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.logo-text {
    font-weight: bold;
    color: #003366;
    font-size: 24px;
    max-width: 300px;
    line-height: 1.3;
}

.logo-item.text-right {
    flex-direction: row;
    gap: 20px;
}

.logo-item.text-left {
    flex-direction: row-reverse;
    gap: 20px;
}

.logo-item.text-right .logo-text {
    margin-left: 0;
    text-align: left;
}

.logo-item.text-left .logo-text {
    margin-right: 0;
    text-align: right;
}

.logo-item.text-center {
    text-align: center;
}

h1 {
    font-size: 42px;
    color: #333;
    text-align: center;
    font-weight: bold;
    font-family: 'GensenFont', "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
}

h2.org-title {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin: 0px;
    font-family: 'GensenFont', "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
}

h3.sub-title {
    font-size: 22px;
    color: #333;
    margin: 10px 0;
    text-align: center;
    font-weight: normal;
    font-family: 'GensenFont', "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
}

h2 {
    font-size: 20px;
    color: #005599;
    margin: 20px 0 10px 0;
}

p, li {
    margin-bottom: 10px;
}

ul, ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.section img {
    width: 100%;
}

.section a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
}

.award-group {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.schedule td, .schedule th {
    border: 1px solid #ddd;
    padding: 8px;
}

.schedule tr:nth-child(even) {
    background-color: #f2f2f2;
}

.emphasis {
    font-weight: bold;
    color: #003366;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.org-info, .honorable-members {
    padding: 10px;
    text-align: left;
}

.org-info {
    flex: 1;
    min-width: 300px;
}

.honorable-members {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
}

.member-group {
    margin-right: 20px;
    margin-bottom: 15px;
    min-width: 120px;
}

.org-title, .member-title {
    font-weight: bold;
    color: #003366;
    margin-bottom: 5px;
}

.org-title-en {
    font-style: italic;
    margin-bottom: 10px;
}

.copyright {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

footer a {
    color: #005599;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.floating-signup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateX(0);
    opacity: 1;
}

.floating-signup.hide {
    transform: translateX(150%);
    opacity: 0;
}

.signup-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.signup-link:hover {
    opacity: 0.8;
}

.floating-signup:hover {
    transform: translateY(-5px);
}

.floating-signup-text {
    font-size: 20px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.floating-signup img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto;
    margin-bottom: 10px;
}

.whatsapp-text {
    font-size: 16px;
    color: #003366;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.whatsapp-number {
    color: #25D366;  /* WhatsApp品牌色 */
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.whatsapp-number:hover {
    transform: scale(1.05);
}

.click-hint {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #003366;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: translateX(-50%) scale(0.95); }
    50% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.7; transform: translateX(-50%) scale(0.95); }
}

#poster-pc {
    display: block;
}

#poster-phone {
    display: none;
}   

/* 手機版響應式設計 */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 25px;
    }
    
    h2.org-title {
        font-size: 18px;
    }
    
    h3.sub-title {
        font-size: 16px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .logo-container img {
        max-height: 60px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .logo-item {
        margin: 0 5px;
    }
    
    .section {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .award-group {
        padding: 10px;
    }
    
    .floating-signup {
        bottom: 15px;
        right: 15px;
        padding: 10px;
    }
    
    .floating-signup-text {
        font-size: 16px;
    }
    
    .whatsapp-text {
        font-size: 12px;
    }
    
    .click-hint {
        font-size: 12px;
    }
    
    .footer-info {
        flex-direction: column;
    }
    
    .org-info, .honorable-members {
        min-width: 100%;
    }
    
    .honorable-members {
        margin-top: 20px;
    }
    
    #poster-pc {
        display: none;
    }
    
    #poster-phone {
        display: block;
    }   
    
    .caritas-title {
        margin: 5px 0;
    }
    
    .caritas-logo {
        width: 40px;
        margin-right: 0px;
        margin-bottom: 4px;
    }
} 

/* 語言切換按鈕樣式 */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 14px;
}

.lang-btn {
    color: #003366;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: #003366;
    color: white;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(0, 51, 102, 0.1);
}

.lang-separator {
    margin: 0 5px;
    color: #003366;
}

/* 
    SEGEN KOMET 寶力創科 製作
    https://www.segenkomet.com/
*/

.sponsor-box {
    display: inline-block;
    padding: 5px 15px;
    border: 2px solid #003366;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    color: #003366;
}

.caritas-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.caritas-logo {
    width: 50px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .caritas-logo {
        width: 40px;
        margin-right: 00px;
    }
    
}