h1 {
    color: #01205F;
    padding-bottom: 0;
    padding-top: 0;
    margin-top: 0;
    margin-bottom:0;
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
}
.slogan {
    color: rgb(17, 20, 30);
    font-style: italic;
    font-size: 15px;
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 30px;
  }
  hr {
    border: 0;          /* 移除預設邊框 */
    height: 1px;        /* 分隔線高度 */
    background-color: #ccc; /* 分隔線顏色 */
    width: max-content;         /* 分隔線寬度，依需求調整 */
    margin: 20px bottom; 
  }
  body {
    font-family: Arial, sans-serif;
    padding: 20px;
    display: flex;
    flex-direction: column; /* 垂直排列 */
    min-height: 100vh; /* 確保頁面最小高度為 100% */
    color: rgb(21, 21, 21);
}

body h2{
    color: #01205F;
    margin-top: 0;
    font-family: "Ubuntu", sans-serif;
}

 /* Footer 樣式 */
footer {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #ddd;
   /* background-color: #f9f9f9; */
}

.footer-links p {
    font-size: 10px;
    margin: 0;
}

.footer-copyright p {
    font-size: 10px;
    color: #6daffe;
    padding-bottom: 10px;
}

footer a {
    font-size: 10px;
    text-decoration: none;
    color: #007bff;
}

footer a:hover {
    text-decoration: underline;
}

/* 增強連結的顯示樣式 */
.footer-contact p {
   font-size: 12px;
   color: #6daffe;
   padding-right: 5px;
    }

 .contact-link {
   color: #007BFF; /* 藍色 */
   text-decoration: underline; /* 底線 */
   font-weight: bold; /* 加粗 */
}

    .contact-link:hover {
        color: #0056b3; /* 懸停時顏色變深 */
    }




input, button {
    margin: 10px 0;
}
.floating-window {
    position: absolute;
    background-color: white;
    border: 1px solid #faf7f2;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(250, 247, 242, 0.1);
    z-index: 1000;
}

.important-words-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #faf7f2;
    border: 2px solid #6daffe; 
    border-radius: 4px; /* 圓角 */
 
}

.important-words-section h2 {
    color: #01205F;
    margin-top: 0;
    font-family: "Ubuntu", sans-serif;
}

main {
    flex: 1; /* 讓主體內容區域填滿剩餘空間 */
}

/* 按鈕容器 */
.button-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

button {
    cursor: pointer;
    background-color: #6daffe; /* 按鈕背景色 */
    border-radius: 5px; /* 圓角 */
    padding: 5px 10px; /* 內距 */
    color: #f9fcff; /* 改變文字顏色 */
    border-color: #6daffe;
    border: none;
    margin-left: 10px;
}

button:hover {
    background-color: #437fc7; /* 懸停背景色 */
}

.floating-window {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 200px;
    font-size: 14px;
}

.important-word-item {
    margin: 10px 0;
    padding: 5px;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.word-buttons {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
}

.word-buttons button {
    margin-left: 5px;
    font-size: 12px;
    padding: 3px 5px;
    cursor: pointer;
}

/* Input box styling */
#sentenceInput {
    display: block;
    width: calc(100%); /* Ensure 100px space is left on the right */
    max-width: calc(100%); /* Prevent exceeding screen width */
    min-height: 40px; /* Set a minimum height for the input box */
    resize: none; /* Disable manual resizing */
    overflow: hidden; /* Hide scrollbars */
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.edit-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edit-form textarea {
    width: 100%;
    height: 80px;
    resize: none;
}

.important-words-section {
    position: relative; /* 父元素需設為定位元素 */
}
#sortOrderSelect {
    position: absolute;
    top: 20px; /* 距離容器底部 10px */
    right: 20px; /* 距離容器右側 20px */

    font-size: 13px; /* 調整文字大小 */
    color: #437fc7; /* 改變文字顏色 */
    background-color: #ffffff; /* 更改背景色 */
    border: 1.5px solid #6daffe; /* 修改邊框樣式 */
    border-radius: 5px; /* 圓角邊框 */
    padding: 5px 10px; /* 內邊距 */
    cursor: pointer; /* 滑鼠指標變為手型 */
}

/* 修改按鈕 */
.edit {
    background-color: #6daffe; /* 按鈕背景色 */
    border-radius: 5px; /* 圓角 */
    padding: 5px 10px; /* 內距 */
    color: #f9fcff; /* 改變文字顏色 */
    border-color: #6daffe;
    border: none;
    cursor: pointer;
    margin-left: 10px; /* 與文字間距 */

}

.edit:hover {
    background-color: #437fc7; /* 懸停背景色 */
}

/* 刪除按鈕 */
.delete {
    background-color: #ff6d6d; /* 按鈕背景色 */
    border-radius: 5px; /* 圓角 */
    padding: 5px 10px; /* 內距 */
    color: #f9fcff; /* 按鈕文字顏色 */
    border: none;
    cursor: pointer;
    margin-left: 5px; /* 與其他按鈕間距 */
    margin-top: 0%;
    margin-bottom: 0%;
}

.delete:hover {
    background-color: #d14545; /* 懸停背景色 */
}

/* Edit input box style */
.sentence-input-edit {
    display: block;
    width: calc(100% - 100px); /* Same as original input box */
    max-width: calc(100% - 100px);
    min-height: 40px;
    resize: none;
    padding: 10px;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

/* Style for sentence item with buttons */
.sentence-item {
    position: relative;
    margin-bottom: 10px;
}

.sentence-item .edit,
.sentence-item .delete {
    position: relative;
    top: 0;
    right: 0;
}

/* Style for Save and Cancel buttons */
.save, .cancel {
    background-color: #6daffe; /* Button color */
    border-radius: 5px;
    padding: 5px 10px;
    color: #f9fcff;
    border: none;
    cursor: pointer;
    margin-left: 5px;
}

.save:hover, .cancel:hover {
    background-color: #437fc7;
}

.cancel {
    background-color: #ff6d6d; /* Cancel button color */
}

.cancel:hover {
    background-color: #d14545;
}

#sentenceList li {
    margin: 0;
    padding: 5px 0;
    line-height: 1.5;
    font-size: 16px;
}

/*對手機彈窗設置最大寬度，避免畫面擁擠*/
@media (max-width: 600px) {
    .floating-window {
        width: 90%;
    }
}

.floating-window {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}


/* 加載動畫的樣式 */
#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7); /* 背景色稍微透明 */
    color: white; /* 文字顏色 */
    padding: 15px;
    border-radius: 10px;
    text-align: center; /* 讓文字居中 */
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto; /* 讓動畫置中 */
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#loading-indicator p {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*contact form*/
form {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
form button:hover {
    background-color: #3498db;
}


