
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

.menu-button {
    position: absolute; /* 固定位置 */
    top: 12px; /* 距離視窗頂部的距離 */
    left: 10px; /* 距離視窗左側的距離 */
    background: none;
    border: none;
    color: #333;
    font-size: 27px;
    cursor: pointer;
    z-index: 1000; /* 確保按鈕顯示在最上層 */
}
@media (max-width: 390px) {
    .menu-button {
        position: absolute;
        left: 0.3px;  /* 在6.1吋手機上，讓按鈕離左邊稍微多一點 */
        top: 10px;
        background: none;
        border: none;
        color: #333;
        font-size: 30px;
        cursor: pointer;
        z-index: 1000; /* 確保按鈕顯示在最上層 */
    }
}

header {
    position: fixed; /* 固定位置 */
    top: 0; /* 固定在視窗頂部 */
    left: 0; /* 固定在視窗左側 */
    width: 100%; /* 填滿視窗寬度 */
    height: 60px;
    background-color: rgb(202, 204, 205);
    padding: 3px 0;
    text-align: center;
    z-index: 999; /* 確保 header 在最上層，但低於 menu button */
}

header h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完全水平+垂直置中 */
    margin: 0;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 65px;
    z-index: 1000;
}

.notes-label {
  color: white;                 /* 讓 Notes 文字變白 */
  font-size: 17px;
  padding: 10px 15px;
  cursor: pointer;              /* 滑鼠變手型 */
  display: block;
  transition: background-color 0.3s;
}

.notes-label:hover {
  background-color: #575757;    /* hover 效果跟連結一致 */
}

#notes {
  color: white;
}
.notes-list {
  display: none;
  flex-direction: column;
  margin-left: 20px;
}

.sidebar .notes-list a {
  color: #ddd;
  text-decoration: none;
  padding: 5px 30px;
  display: block;
  font-size: 15px;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 17px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #575757;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 36px;
}

#main-content {
    transition: margin-left 0.5s ease; /* 平滑過渡 */
    padding: 20px;
}

section {
    padding: 20px;
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    margin-bottom: 20px;
}

.profile-info img {
    border-radius: 50%;
    margin-right: 20px;
}


h2 {
    color: #333;
}

p {
    font-size: 1.1em;
    color: #555;
}

.contact-info {
    margin-top: 30px;
}

.blog{
    text-align: center;
    margin-top: 70px;
}

.Karp21{
    text-align: center;
}

hr {
  border: none;
  border-top: 3px dashed #5a5a5a;
  margin: 24px 0;
}


footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

.table-container {
    display: flex;
    justify-content: center;
}

table {
    border-collapse: collapse;
    width: 90%;
    max-width: 900px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.op {
    display: inline-block;
    margin: 2px 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #ffe4b5;
    color: #000;
    font-weight: bold;
    font-family: monospace;
}
th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: center;
}

thead {
    background-color: #4CAF50;
    color: white;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #d1e7dd;
}
