body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Iansui', serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    background-image: url("./image/底2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Iansui', serif;
    padding-bottom: 50px;
    overflow: hidden;
}

@font-face {
    font-family: 'Iansui';
    src: url('../static/Iansui-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 20px;
    transition: transform 0.3s ease;
}

.language-switch {
    margin-left: auto;
    padding-right: 50px;
}

.language-switch button {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 5px;
    cursor: pointer;
    font-family: 'Iansui', serif;
    font-size: 1.6rem;
}

.language-switch button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}

.navbar a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 1.6rem;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.navbar .menu-toggle {
    display: none;
    cursor: pointer;
    padding-right: 350px;
}

.navbar .menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

.form-container {
    background-color: white;
    padding: 40px;
    /* 增加內邊距 */
    border-radius: 8px;
    width: 95%;
    /* 增加寬度 */
    max-width: 600px;
    /* 增加最大寬度 */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    /* 增加陰影尺寸 */
    z-index: 999;
}

.form-container h2 {
    font-size: 36px;
    /* 增加標題字體大小 */
    margin-bottom: 30px;
    /* 增加底部外邊距 */
    text-align: center;
}

.h-captcha {
    margin-left: 30px;
}

.form-container input {
    width: 85%;
    /* 設置為100%寬度 */
    padding: 15px;
    /* 增加內邊距 */
    margin-bottom: 25px;
    /* 增加底部外邊距 */
    font-size: 18px;
    /* 增加字體大小 */
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: 30px;
}

.form-container button {
    width: 90%;
    /* 設置為100%;*/
    padding: 15px;
    /* 增加內邊距 */
    font-size: 18px;
    /* 增加字體大小 */
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    padding-left: 50px;
    margin-left: 30px;
}

.form-container button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    font-size: 14px;
    display: none;
    margin-top: 5px;
}

.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 0;
        padding-left: 20px;
        width: 100%;
        background-color: transparent;
        height: 60px;
    }
    .navbar a {
        display: none;
    }
    .navbar .menu-toggle {
        display: block;
    }
    .navbar.responsive {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        transform: translateX(0);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 60px;
    }
    .navbar.responsive a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 14px 20px;
        border-bottom: 1px solid #444;
    }
}

@media (max-width: 480px) {
    .form-container h2 {
        font-size: 18px;
    }
    .form-container input,
    .form-container button {
        font-size: 14px;
    }
    .footer {
        padding: 10px;
    }
}

.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100000;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
}

.error-message {
    color: red;
    font-size: 14px;
    display: none;
    margin-top: 10px;
}

#check {
    color: red;
}

.h-captcha {
    height: 100px;
}

.progress-timeline {
    margin-top: 20px;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 60%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
}

.timeline {
    list-style: none;
    padding: 0;
    position: relative;
    left: 100px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
}

.timeline li {
    position: relative;
    padding-right: 30px;
    text-align: left;
}

.timeline li:before {
    content: '';
    position: absolute;
    right: 270px;
    top: 75%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3498db;
}

.timeline li .date,
.timeline li .time {
    font-size: 14px;
    color: #999;
    margin-bottom: 2px;
    text-align: left;
    display: block;
}

.timeline li .progress {
    font-size: 23px;
    font-weight: bold;
    color: #333;
    padding-left: 60px;
    max-width: calc(50% - 70px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .timeline {
        left: -30px;
    }
    .timeline:before {
        left: 75%;
    }
    .modal-content {
        width: 90%;
        max-width: 600px;
        padding: 15px;
    }
    .timeline li {
        width: 100%;
        text-align: left;
        padding-left: 130px;
    }
    .timeline li .date,
    .timeline li .time {
        font-size: 12px;
        text-align: left;
        margin-bottom: 2px;
    }
    .timeline li:before {
        left: 59.5%;
        transform: translateX(-50%);
        width: 10px;
        height: 10px;
        top: 40px;
    }
    .timeline li .progress {
        font-size: 14px;
        padding-left: 40px;
        max-width: calc(100% - 120px);
    }
    .form-container h2 {
        font-size: 36px;
        margin-bottom: 30px;
        text-align: center;
    }
    .h-captcha {
        margin-left: 30px;
    }
    .form-container input {
        width: 75%;
        padding: 15px;
        margin-bottom: 25px;
        font-size: 18px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-left: 30px;
    }
    .form-container button {
        width: 80%;
        padding: 15px;
        font-size: 18px;
        border: none;
        background-color: #007bff;
        color: white;
        cursor: pointer;
        border-radius: 4px;
        padding-left: 50px;
        margin-left: 30px;
    }
    #but-close {
        color: black;
    }
}

@media screen and (max-width: 767px) {
    .timeline {
        left: -30px;
    }
    .timeline:before {
        left: 70%;
    }
    .modal-content {
        width: 90%;
        max-width: 600px;
        padding: 15px;
    }
    .timeline li {
        width: 100%;
        text-align: left;
        padding-left: 30px;
    }
    .timeline li .date,
    .timeline li .time {
        font-size: 12px;
        text-align: left;
        margin-bottom: 2px;
    }
    .timeline li:before {
        left: 60%;
        transform: translateX(-50%);
        width: 10px;
        height: 10px;
        top: 40px;
    }
    .timeline li .progress {
        font-size: 14px;
        padding-left: 40px;
        max-width: calc(100% - 120px);
    }
    .form-container h2 {
        font-size: 36px;
        margin-bottom: 30px;
        text-align: center;
    }
    .h-captcha {
        margin-left: 30px;
    }
    .form-container input {
        width: 75%;
        padding: 15px;
        margin-bottom: 25px;
        font-size: 18px;
        border: 1px solid #ccc;
        border-radius: 4px;
        margin-left: 30px;
    }
    .form-container button {
        width: 80%;
        padding: 15px;
        font-size: 18px;
        border: none;
        background-color: #007bff;
        color: white;
        cursor: pointer;
        border-radius: 4px;
        padding-left: 50px;
        margin-left: 30px;
    }
    #but-close {
        color: black;
    }
}

#but-close {
    background: #575bde;
    background: -webkit-linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    background: -moz-linear-gradient(140deg, #00d7af 25%, #020205 100%);
    background: -ms-linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    background: -o-linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    background: linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5rem;
    font-weight: 700;
    -webkit-border-radius: 3rem;
    -moz-border-radius: 3rem;
    border-radius: 3rem;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    display: inline-block;
    height: 3rem;
    line-height: 3rem;
    padding: 0 1.25rem;
    text-align: center;
    font-family: 'Iansui', serif;
}

.reservation-container {
    margin-top: 20px;
    text-align: center;
}

.reservation-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#reservation-time {
    width: 80%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#reserve-btn {
    background: #575bde;
    background: -webkit-linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    background: -moz-linear-gradient(140deg, #00d7af 25%, #020205 100%);
    background: -ms-linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    background: -o-linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    background: linear-gradient(140deg, #00d7af 25%, #575bde 100%);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5rem;
    font-weight: 700;
    -webkit-border-radius: 3rem;
    -moz-border-radius: 3rem;
    border-radius: 3rem;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    display: inline-block;
    height: 3rem;
    line-height: 3rem;
    padding: 0 1.25rem;
    text-align: center;
    font-family: 'Iansui', serif;
}

#reserve-btn:hover {
    background-color: #218838;
}

#confirm-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

#confirm-modal .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin: 20% auto;
    width: 300px;
    text-align: center;
}

#confirm-reserve-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

#confirm-reserve-btn:hover {
    background-color: #0056b3;
}