body {
    font-family: Arial, sans-serif;
    background-color: #e5e1dd;
    color: #5a5c5e;
    background-image: url('./files/background.jpg'); /* 替換為你的圖片路徑 */
    background-size: cover; /* 讓圖片覆蓋整個背景 */
    background-position: center; /* 圖片置中 */
    background-repeat: no-repeat; /* 不重複背景圖 */
}

#container {
width: 80%;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* 圖片區域 */
#image-container {
    text-align: center;
    margin: 20px 0;
}

#image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 步驟視窗 */
.floating-box {
position: absolute;
width: 80%;
max-width: 600px;
padding: 20px;
background-color: rgb(252, 252, 238);
border: 2px solid #ccc;
border-radius: 20px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
z-index: 1000;
display: none;
transition: all 0.3s ease;
}


.floating-box h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.floating-box p {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
}

.highlight-box {
position: absolute;
border: 4px dashed red;
border-radius: 10px;
z-index: 999;
display: none;
box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
transition: all 0.3s ease;
}
/*分頁*/
.pagination {
    display: flex;
    justify-content: space-between;
}
/*按鈕樣式*/
/* 調整按鈕為較小的葉子形狀 */
.btn {
    width: 100px;
    height: 65px;
    background-color: #4CAF50; /* 綠色按鈕 */
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;  /* 讓按鈕可以水平排列 */
    justify-content: center;
    align-items: center;
    margin: 5px;  /* 讓按鈕之間有間距 */
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: 0.3s;
    clip-path: polygon(50% 0%, 90% 10%, 100% 30%, 95% 50%, 100% 70%, 90% 90%, 50% 100%, 10% 90%, 0% 70%, 5% 50%, 0% 30%, 10% 10%);
    border: none;
}

.btn:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* 調整「返回」按鈕顏色 */
.btn-secondary {
    background-color: goldenrod;
    border: none;
    color: white;
}

.btn-secondary:hover {
    background-color: darkorange;
}

/* 讓按鈕水平置中排列 */
.button-container {
    display: flex;
    justify-content: center; /* 水平置中 */
    align-items: center;
    gap: 15px; /* 讓按鈕之間有間距 */
    margin-top: 15px;
    text-align: center;
}



/* 返回首頁按鈕（左上角） */
#backToHome {
position: fixed;
top: 10px;
left: 10px;
width: 80px;
height: 40px;
font-size: 14px;
font-weight: bold;
background-color: #FFD700; /* 亮黃色 */
color: black;
border: none;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: 0.3s;
clip-path: polygon(50% 0%, 90% 10%, 100% 30%, 95% 50%, 100% 70%, 90% 90%, 50% 100%, 10% 90%, 0% 70%, 5% 50%, 0% 30%, 10% 10%);
}

#backToHome:hover {
background-color: #FFA500; /* 橙色 */
transform: scale(1.1);
}

/* 右上角瀏覽人次計數 */
#viewCounter {
position: fixed;
top: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 8px 15px;
border-radius: 10px;
font-size: 14px;
font-weight: bold;
box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.2);
}


/* 隱藏說明內容（展開前） */
.hidden-text {
    display: none;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

/* 展開後的說明區塊 */
.hidden-text.show {
    opacity: 1;
    max-height: 500px; /* 適當調整，讓內容有動畫效果 */
    transform: scaleY(1);
}
.inline-description {
    margin-top: 8px;
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-size: 14px;
}

/* 說明連結樣式 */
a {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

a:hover {
    color: darkblue;
}