/*POP UP 提醒視窗*/
.overlay {
    position: fixed;
	display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
	cursor: pointer;
    display: none;
}

.overlay.active {
    display: block;
}

.overlay-content {
    width: 100%;
    height: 100vh;
    position: absolute;
    /*內容區域從中間點開始右下放置*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*內容區域置中*/
    background-color: rgba(21, 21, 21, 0.216);
    /*以下調整內容排列*/
    display: flex;
    flex-direction: column;
    text-align: center;
    color: rgb(0, 0, 0);
}

.overlay-content p {
    margin: 20px;
    padding-top: 30px;
}

/* .overlay-content img {
    max-width: 80%;
    max-height: 80%;
    align-self: center;
    padding-top: 50px;

} */

.close-btn {
    background-color: rgb(155, 21, 21);
    width: 40px;
    /*控制X外框大小*/
    height: 40px;
    /*控制X外框大小*/
    border-radius: 24px;
    /*控制X外框形狀*/
    position: absolute;
    /*控制X外框位置*/
    top: 20px;
    right: 20px;
    font-size: 28px;
    padding: 0 3px 5px 3px;
    /*控制X大小*/
    color: white;
    cursor: pointer;
}

/* =========================================

   網站公告

   PC：公告在 Header 上方

   手機：固定在畫面最下方

   ========================================= */

.site-notice-overlay {

    width: 100%;

    background: #b23b35;

    box-sizing: border-box;

    display: block;

}

/* 公告內容 */

.site-notice-box {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 12px 30px;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    color: #ffffff;

}

/* 網站公告標籤 */

.site-notice-label {

    flex-shrink: 0;

    font-size: 18px;

    font-weight: bold;

    background: #ffffff;

    color: #b23b35;

    padding: 5px 12px;

    border-radius: 4px;

}

/* 公告內容 */

.site-notice-content {

    font-size: 16px;

    line-height: 1.7;

    color: #ffffff;

}

/* 詳細資訊 */

.site-notice-content a {

    color: #ffffff;

    font-weight: bold;

    text-decoration: underline;

    margin-left: 10px;

}

.site-notice-content a:hover {

    color: #ffe5e3;

}

@media screen and (max-width: 768px) {

    /* 手機公告固定在畫面最下方 */

    .site-notice-overlay {

        position: fixed;

        left: 0;

        bottom: 0;

        width: 100%;

        z-index: 99999;

        background: #b23b35;

        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);

    }

    .site-notice-box {

        width: 100%;

        padding: 10px 15px;

        display: block;

        text-align: center;

    }

    .site-notice-label {

        display: inline-block;

        font-size: 15px;

        padding: 3px 8px;

        margin-bottom: 5px;

    }

    .site-notice-content {

        font-size: 14px;

        line-height: 1.6;

    }

    .site-notice-content a {

        display: inline-block;

        margin-left: 5px;

    }

}