body {
    margin: 0;
    padding: 0;
    background-color: rgb(193, 3, 15); /* 紅色背景，符合生力啤酒的品牌顏色 */
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px; /* 限制最大寬度為手機寬度 */
    margin: 0 auto;
    padding: 0;
    position: relative; /* 為絕對定位子元素提供參考點 */
    min-height: 100vh; /* 確保容器至少有視窗高度 */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* 添加陰影效果 */
}

@media (min-width: 501px) {
    body {
        background-color: rgb(193, 3, 15);
        padding: 0;
    }
    
    .container {
        margin: 0 auto;
    }
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 5%;  /* 左右兩邊各留5%的空間 */
    margin-bottom: 50px; /* 增加底部空間，為18+圖標留位置 */
}

.btn-image {
    display: block;
    transition: transform 0.3s ease;
    width: 90%; /* 按鈕闊度設為90% */
}

.btn-image:hover {
    transform: scale(1.05);
}

.btn-image img {
    max-width: 100%;
    height: auto;
}

.age-restriction {
    width: 25px; /* 更小尺寸，從40px減小到25px */
    height: auto;
    margin-top: 90px; /* 向下移動少少 */
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding: 0;
}

.tnc-content {
    background-color: white;
    width: 80%;
    color: #333;
    padding: 20px;
    margin: 10px auto 20px auto; /* 上右下左，並設為自動居中 */
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* 增強行動裝置上的滾動體驗 */
}

.tnc-content p {
    margin-bottom: 0px;
}

.tnc-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.tnc-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0px;
    text-align: center; /* 表格文字置中 */
}

.tnc-content table td {
    border: 1px solid #ddd;
    padding: 0px; /* 減少填充 (padding) 從8px減到5px */
    text-align: center; /* 確保單元格內容置中 */
}

.tnc-content table tr:first-child {
    background-color: #f0f0f0;
    font-weight: bold;
}

.tnc-title {
    color: white;
    text-align: center;
    margin: 0px 0 10px 0;
}

.tnc-title h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tnc-title h2 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
}

.license-footer {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-left: 15px;
}

.license-text {
    color: white;
    font-size: 9px;
    line-height: 1.3;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 0;
}

.schedule-container {
    width: 90%;
    margin: 15px auto;
}

.schedule-title {
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

.schedule-title h2 {
    font-size: 18px;
    margin: 0;
}

.schedule-table {
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    overflow-x: auto;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.schedule-table th {
    background-color: rgb(193, 3, 15); /* 更改為生力啤酒的紅色 */
    color: white;
    padding: 5px 2px;
    text-align: center;
    font-weight: bold;
}

.schedule-table td {
    border: 1px solid #ddd;
    padding: 5px 2px;
    text-align: center;
}

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

.schedule-date {
    background-color: rgb(193, 3, 15); /* 更改為生力啤酒的紅色 */
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.schedule-date p {
    margin: 0;
    font-weight: bold;
}

.schedule-table {
    border-radius: 0 0 8px 8px;
}

.title-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin: 10px auto;
}

.title-image img {
    width: 90%; /* Adjust this percentage as needed */
    max-width: 450px;
    height: auto;
    display: block;
}