body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 禁止橫向滾動 */
    width: 100vw;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}
header {
    position: fixed;
    width: 100vw;
    color: black;
    background-color: white;
    font-weight: bold;
    height: 55px;
    padding: 10px 0px;
    z-index: 9999;
}

/* 默认导航链接样式 */
.nav-links {
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    font-size: 18px;
}

/* 汉堡菜单（默认隐藏） */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    padding: 21px 30px 20px 30px;
    position: absolute;
    top: 0px;
    right: 0px;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .nav-links {
        display: none;  /* 默认隐藏 */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0px;
        background: rgba(255, 255, 255, 1);
        padding: 10px;
        border-radius: 8px;
        width: 200px;
    }

    .nav-links.active {
        display: flex;  /* 当 .active 类存在时，显示菜单 */
    }

    .menu-toggle {
        display: block;  /* 移动端显示汉堡按钮 */
        cursor: pointer;
        padding: 21px 30px 20px 30px;
        position: absolute;
        top: 0px;
    }
}

.footer-fixed{
    position: fixed;
    bottom: 0;
    width: 100%;
}

.site-logo{
    width: 300px;
    font-size: 20px;
    padding: 20px 10px;
    position: absolute;
    left: 0px;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

nav {
    padding: 30px;
    position: absolute;
    top: 0px;
    right: 0px;
}

nav a {
    color: black;
    text-decoration: none;
    margin: 0 10px;
    padding: 20px 0px;
    cursor: pointer;
}

nav a:hover{
    color: #1fffff;
}

nav a.active {
    color: #1fffff;
}

.max-width-panel {
    max-width: 1500px;
    width: 100%;
    height: 100vh;
}

.max-width {
    max-width: 1500px;
    width: 100%;
}

.space-between{
    display: flex;
    align-items: center;
    justify-content: space-between; /* 文字和圖片兩側對齊 */
    flex-wrap: wrap; /* 保持響應式 */
}

.mission-title-size{
    font-size: clamp(16px, 2vw, 30px);
}

.mission-content-size{
    font-size: clamp(14px, 1.5vw, 18px);
}

/* 适配移动端：改为纵向排列 */
@media (max-width: 768px) {
    .flex-center {
        flex-direction: column;
        align-items: center;  /* 可选，确保子元素居中 */
    }
    .mission p{
        padding: 0px !important;
    }
    .mission-card{
        margin: 90px 50px !important;
    }
}

.title-size{
    font-size: clamp(24px, 3vw, 40px);
}

.content-size{
    font-size:clamp(14px, 2vw, 24px);
    line-height: clamp(22px, 2.8vw, 35px);
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.9),
        0 0 35px rgba(255, 255, 255, 0.7);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4);
    }
}

.mission-title{
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.4);
    animation: glow 1.5s infinite alternate;
}

.mission-title:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 1),
    0 0 25px rgba(255, 255, 255, 0.8),
    0 0 35px rgba(255, 255, 255, 0.6);
    transition: 0.3s ease-in-out;
}

.mission-card{
    backdrop-filter: blur(8px);
    border-radius: 20px;
    margin: 10px 50px;
    padding: 10px 20px 20px 20px;;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(0, 162, 255, 0.4),
    0 0 45px rgba(0, 162, 255, 0.3);
    background-color: #0000005e;
}

.mission-background{
    background-image: url(../assets/bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.mining-background{
    background-image: url(../assets/mining.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.mission{
    color: white;
}

.mission p{
    text-align: left;
    padding: 0px 30px;
}

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


.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section{
    width: 100%;
    min-height: 100vh; /* 讓每個 section 佔滿整個瀏覽器高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.space-paradise-text{
    width: 50vw;
    position: absolute;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*background-color: #ffffffb8;*/
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (max-width: 768px) {
    .space-paradise-text{
        width: 80vw;
    }
}

.space-paradise-text p{
    text-align:left;
    padding: 0px 30px;
}

.space-paradise-image-container{
    display: flex;
    justify-content: flex-end; /* 讓內容靠右對齊 */
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.space-paradise-image {
    width: 100vh;
    height: 100vh;
    position: absolute;
    right: 0px;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.space-transportation-box{
    position: relative;
    /* top: 0px; */
    width: 100%;
    height: 100vh;
}

.space-transportation-text{
    width: 50vw;
    position: absolute;
    right: 0px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background-color: #ffffffb8; */
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (max-width: 768px) {
    .space-transportation-text{
        width: 80vw;
    }
}

.space-transportation-text p{
    text-align: right;
    padding: 0px 30px;
}

.space-transportation-image-container{
    display: flex;
    justify-content: flex-start; /* 讓內容靠右對齊 */
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: absolute;
    left: 0px;
    overflow: hidden;
}

.space-transportation-image {
    width: 100vh;
    height: 100vh;
    position: absolute;
    left: 0px;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.space-mining-card {
    width: 50vw;
    backdrop-filter: blur(5px);
    border-radius: 0px 30px 30px 0px;
    padding: 20px;
}

@media (max-width: 768px) {
    .space-mining-card{
        width: 80vw;
    }
}

.space-mining-card p{
    text-align: left;
}

.mining-text{
    font-size: clamp(24px, 4vw, 50px);
    color: white;
}

.about-container{
    background-color: #292929;
}

.about-card{
    background-color: #4d4d4d;
    padding: 0px 30px;
    margin: 20px;
    position: relative;
    width: 80%;
    border-radius: 30px;
    color: white;
    overflow: hidden;
}

.about-card p{
    text-align: left;
}

.games-image{
    width: 50%;
    position: relative;
    left: -30px;
}

.games-container{
    width: 50%;
    position: relative;
}

.privacy-content{
    color: white;
    text-align: left;
    padding: 30px;
    margin-bottom: 100px;
    position: relative;
    top: 60px;
    line-height: 30px;
}

.privacy-content a{
    color: white;
}

.column{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.footer-container{
    width: 100%;
}

footer {
    background-color: #222;
    color: white;
    padding: 10px 0px;
    bottom: 0;
    width: 100%;
}
