body {
    margin: 0;
}

.wrap {
    position: relative;
    margin: 0 auto;
    max-width: 850px;
}

.w-100 {
    display: block;
    width: 100%;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.img_btn {
    position: absolute;
    top: 75%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
}

.img_btn2 {
    position: absolute;
    top: 86%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
}

.img_btn3 {
    position: absolute;
    top: 78.5%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
}

.img_btn4 {
    position: absolute;
    top: 89.5%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%);
}

.footer {
    background: #000;
    padding: 10px;
    text-align: center;
}

.footer a {
    font-size: 20px;
    font-family: Arial, "微軟正黑體", sans-serif;
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

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

/* 彈窗樣式 */

.modal {
    display: none; 
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.modal-content h2 {
    font-size: 34px;
    font-family: Arial, "微軟正黑體", sans-serif;
    text-align: center;
    margin: 0 0 20px 0;
}
  
.modal-content h3 {
    margin-top: 22px;
    font-size: 22px;
    font-family: Arial, "微軟正黑體", sans-serif;
    font-weight: normal;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    color: #333;
}

.modal-content p, .modal-content li {
    margin: 0;
    list-style: none;
    font-size: 15px;
    font-family: Arial, "微軟正黑體", sans-serif;
    line-height: 28px;
}

.modal-content ul {
    padding-left: 5px;
    margin: 10px 0;
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
}

.modal-content table td {
    font-size: 18px;
    font-family: Arial, "微軟正黑體", sans-serif;
    line-height: 28px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.modal-content table td:first-child {
    white-space: nowrap;
    width: 30%;
}

.close {
    position: absolute;
    right: 15px;
    top: 0;
    font-size: 36px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.end-time {
    padding-top: 20px;
    text-align: end;
}

.end-time p {
    display: inline-block;
    text-align: start;
}

@media (max-width: 850px) {
    .footer a {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .modal-content {
        width: 80%;
        max-width: 450px;
    }
    .footer a {
        font-size: 16px;
        margin: 0 5px;
    }
}