/*========style.css========*/
/*--重設空隙--*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif; 
}

/*--(主標題)--*/
header {
    background-color: bisque;
    text-align: left;
    color: rgb(21, 192, 183);
    height: 50px;
    width: 100% ;
    line-height: 50px;
}

header h1 a,
header h1 a:visited,
header h1 a:hover,
header h1 a:active 
{
    color: rgb(21, 192, 183);
    text-decoration: none;
}

a {text-decoration: none;}
a:hover {text-decoration: none;}

/*--link1~4--*/
header ul {
    position:absolute;
    right:5vw;
    top: 0;
    line-height: 50px;
}

/*--link1~4之間距--*/
header li {
    display: inline;
    margin-right: 4vw;
}

/*以上內容為標題 有改動全部都要重新貼過去*/

/*容器-倒數計時*/
#container1{
    background-color: rgb(231, 187, 134);
    color:rgb(187, 26, 26);
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/*--公佈欄--*/
.announcement-board {
    height: 200px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.board-title {
    vertical-align: top;
    text-align: center;
    font-size: 20px;
    font-weight: normal;
}

/*容器-圖片*/
.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
}

.image-container img {
    width: 48%;
    height: auto;
    max-width: 100%;
    border-radius: 5px; /* 可選，圖片圓角 */
}

/*頁尾1*/
#ft01 {  
    background-color: #1eace9;
    padding: 5px 0;
    text-align: center;
    margin-bottom: 0;
    color: white;
}

/*頁尾2*/
#ft02 {
    background-color: #E91E63;
    padding: 3px 0;
    text-align: center;
    color: black;
}

/* ========== 手機漢堡選單響應式 ========== */

/* 桌面水平選單保持原樣 */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* 手機版 */
@media (max-width: 768px) {

    .menu-icon {
        display: block;
        position: absolute;
        right: 5vw;
        top: 0;
        line-height: 50px;
    }

    /* 選單初始隱藏，垂直排列 */
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: bisque;
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .nav-links li {
        padding: 10px;
        text-align: center;
    }

    /* checkbox 勾選時顯示選單 */
    #menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    /* 隱藏 checkbox */
    #menu-toggle {
        display: none;
    }
}
