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

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: linear-gradient(
        45deg,
        #0066cc 0%,    /* 藍色 */
        #1a1a1a 50%,   /* 黑色 */
        #cc0000 100%   /* 紅色 */
    );
    background-attachment: fixed;
}

.container {
    width: 95%;
    max-width: 800px;
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;

}

.update-time {
    text-align: right;
    color: #fff;
    font-size: 0.9rem;
    margin-right: 70px;
    margin-top: 10px;

}

table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: transparent;
}

th, td {
    padding: 10px 5px;
    text-align: center;
    font-size: 21px;
    color: #fff;
    font-weight: bold;
}

th {
    background-color: transparent;
    font-weight: bold;
}


.logo {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto;
}

/* 手機版樣式 */
@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 5px;
        margin: 0;
        border-radius: 0;
    }

    .logo {
        width: 100%;
        padding: 0 5px;  /* 與容器的 padding 保持一致 */
    }

    th, td {
        padding: 2px 4px;
        font-size: 0.8rem;
    }

    .update-time {
        font-size: 0.5rem;
        margin-bottom: 10px;
        padding: 0 5px;
        margin-right: 30px;
        margin-top: 2px;
    }

    /* 可選：調整某些列的寬度 */
    th:first-child, td:first-child {
        width: 20%;  /* Rank 列 */
    }

    th:nth-child(2), td:nth-child(2) {
        width: 25%;  /* Nickname 列 */
    }

    th:nth-child(3), td:nth-child(3) {
        width: 30%;  /* Mobile 列 */
    }

    th:nth-child(4), td:nth-child(4) {
        width: 25%;  /* Points 列 */
    }
    .buttomImgS {
        width: 40%; /* 調整為更小的寬度，讓四個按鈕能夠並排 */
        height: auto;
        display: inline-block;
    }
}

.game-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    margin-top: 30px;
}

.game-bg {
    display: block;
}

.table-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    color: white;
}

.buttomImgXL {
    width: 40%; /* 調整為更小的寬度，讓四個按鈕能夠並排 */
    height: auto;
    display: inline-block;
}
.buttomImgL {
    width: 60%; /* 調整為更小的寬度，讓四個按鈕能夠並排 */
    height: auto;
    display: inline-block;
}
.buttomImgL {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;  /* 可選：添加底部間距 */
}
.buttomImgS {
    width: 30%; /* 調整為更小的寬度，讓四個按鈕能夠並排 */
    height: auto;
    display: inline-block;
}

.buttomImgS {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 20px;  /* 可選：添加底部間距 */
}

.button-container {
   margin-top: 40px;

}

.rules-list {
    text-align: left;
    line-height: 1.6;
}

.rules-list li {
    margin-bottom: 15px;
    color: white;
}
.rules-list  {
    margin-bottom: 15px;
    color: white;
}
.rules-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    color: white;
    margin-top: 10px;
    font-size: 30px; /* 電腦版字體大小 */
}

@media screen and (max-width: 768px) {
    .rules-container {
        font-size: 15px; /* 手機版字體大小 */
        padding: 15px;
    }
    .rules-container1 {
        font-size: 15px; /* 手機版字體大小 */
        padding: 25px;
    }
    .tc{
        font-size: 10px !important;
    }
    .rules-list li {
        margin-bottom: 10px;
        color: white;
        font-size: 15px;
    }
    .rules-list  {
        margin-bottom: 10px;
        color: white;
    }
    .ranking-title {
        font-size: 1.5rem;  /* 您可以調整這個值來改變大小 */
    }
    
}

.prize-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prize-image {
    width: 150px;  /* 電腦版圖片大小 */
    height: auto;
    margin-top: -150px;
}

@media screen and (max-width: 768px) {
    .prize-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .prize-image {
        width: 80px;  /* 保持與電腦版相同的圖片大小 */
        margin-top: -50px;
    }
}
.ranking-title {
    font-size: 1.5rem;  /* 您可以調整這個值來改變大小 */
}