.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

/* Modal 顯示時 */
.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-large{
    width: 1280px !important;
    /* height: 400px; */
}

/* Modal 內容框 */
.modal-content {
    background: white;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    overflow-y: auto; /* 超過高度時顯示滾動條 */
}

/* Modal 開啟動畫 */
.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 關閉按鈕 */
.close-btn {
    position: absolute;
    margin-bottom: 20px;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/* 開啟 Modal 按鈕 */
.open-modal-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.open-modal-btn:hover {
    background: #0056b3;
}

@media screen and (max-width: 800px) {
    .modal-content {
        top: 60px;
        height: 64%;
        width: 80% !important;
    }
    
}