/* 字體庫 */
@import url('https://fonts.googleapis.com/css2?family=Klee+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru&display=swap');

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #0e0d0d;
}

/* 滾動條 */
main::-webkit-scrollbar {
    width: 8px;
}

main::-webkit-scrollbar-track {
    background: #f1f1f100;
}

main::-webkit-scrollbar-thumb {
    background-color: #4d4b4b;
    border-radius: 5px;
    border: 2px solid #f1f1f100;
}

header, footer {
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none; 
}

header::-webkit-scrollbar, footer::-webkit-scrollbar {
    display: none;  
}

main {
    flex: 1;
    overflow-y: auto;
}

/* Header */
header {
    background-color: rgba(28, 33, 56, 0.507);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.home-link {
    text-decoration: none; 
    color: inherit; 
    cursor: pointer; 
}

h1 {
    color: #487598;
    background-image: url("/images/logo.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 450px;
    height: 80px;
    text-indent: -9999px; 
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-family: "Kiwi Maru", serif;
}

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

footer {
    background-color:#000000;
    color:#B7B7B7;
    height:60px;
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.menu {
    display: none;
}

.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 20px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    
}

.footer-column {
    flex: 1;
}

.footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 12px;
    font-family: "Klee One", cursive;
}

.footer p {
    font-size: 14px;
    margin: 5px 0;
    font-family: "Kiwi Maru", serif;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: white;
    text-decoration: none;
}

.social-icons img {
    width: 30px;
    height: 30px;
}

/* 響應式設計 */

@media screen and (max-width: 768px) {
    header {
        justify-content: center;
    }

    h1 {
        width: 500px;
        height: 100px;
        background-size: cover;
    }

    .menu {
        display: block;
        background-color: transparent;
        color: white;
        font-size: 30px;
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100% - 80px);
        background-color: rgba(28, 33, 56, 0.95);
        transition: left 0.3s ease;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
    }

    nav li {
        margin: 20px 0;
    }

    nav a {
        font-size: 24px;
    }

    .footer-container {
        background-color: #000000;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}