body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.input-group input {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 auto;
}

#signin {
    width: 100%;
    padding: 10px;
    background-color: #333;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 5px;
}

#signin:hover {
    background-color: #000000;
}

#signup {
    width: 100%;
    padding: 10px;
    background-color: #666666;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 5px;
}

#signup:hover {
    background-color: #000000;
}

#forgetpassword {
    width: 100%;
    padding: 10px;
    background-color: #666666;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 5px;
}

#forgetpassword:hover {
    background-color: #000000;
}


/*以下為會員部分 頁首樣式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    width: 100%; /* 確保頁首寬度為100% */
    position: fixed; /* 使頁首固定在頁面頂部 */
    top: 0; /* 頁面頂端對齊 */
    left: 0;
    z-index: 9; /* 確保頁首位於最上層 */
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.1);
}

/* 確保使用者姓名與 ANON 一起排列在左側 */
#anon-text {
    font-size: 24px;
    font-weight: bold;
}

#user-name {
    margin-left: 10px;
    font-size: 16px;
}

/* 其他内容部分 */
.container {
    margin-top: 80px; /* 增加 margin 以防止頁首遮擋内容 */
}
/* 確保選單按鈕始終在最右邊 */
.menu-icon {
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;  /* 確保選單按鈕始終在最右側 */
}

/* 側邊選單樣式 */
.side-menu {
    position: fixed;
    height: 100%;
    width: 250px;
    top: 0;
    right: -250px;  /* 從右側隱藏 */
    background-color: #333;
    color: white;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* 登出按鈕與內容分開 */
    z-index: 10;
}

/* 讓選單內容可以滾動 */
.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;  /* 允許側邊選單滾動 */
}

.side-menu ul li {
    padding: 13px 20px;
    border-bottom: 1px solid #555;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* 登出按鈕固定在最底部 */
.side-menu .logout {
    padding: 10px 20px;
    border-top: 1px solid #555;
    background-color: #444;
}

.side-menu .logout a {
    color: white;
    text-decoration: none;
}

/* 背景遮罩層 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 5;
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}
/* 頁尾樣式 */
footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: white;
    position: fixed;
    width: 100%;
    bottom: 0;
    z-index: 9;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* 行動裝置適應 */
@media screen and (max-width: 600px) {
    header {
        flex-wrap: nowrap;  /* 禁止換行 */
    }

    .card {
        padding: 15px;
    }
}
.logocircle {
    width: 100px; /* 圓形的寬度 */
    height: 100px; /* 圓形的高度 */
    background-color: white; /* 圓形的顏色 */
    border-radius: 50%; /* 使元素變為圓形 */
    position: relative; /* 使用相對定位 */
    margin: 20px auto; /* 上方留出距離，並水平居中 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* 加入陰影以增加立體感 */
    z-index: 10; /* 確保圓形在其他元素之上 */
}

label {
    display: flex;                 /* 使用 flex 布局 */
    align-items: center;           /* 垂直居中 */
    cursor: pointer;               /* 鼠標變為手形 */
    margin-left: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

#autoLogin:checked + label {
    color: green;                  /* 當勾選時，文字變為綠色 */
}

/* 隱藏原始的 checkbox */
input[type="checkbox"] {
    appearance: none;             /* 隱藏預設的 checkbox */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;                  /* 自訂大小 */
    height: 20px;                 /* 自訂大小 */
    border: 2px solid #ccc;       /* 邊框顏色 */
    border-radius: 3px;           /* 邊框圓角 */
    display: inline-block;
    vertical-align: middle;       /* 垂直居中 */
    margin-right: 10px;           /* 和文字的間距 */
    cursor: pointer;
    position: relative;
    background-color: white;      /* 背景顏色 */
}

/* 當 checkbox 被選中時的樣式 */
input[type="checkbox"]:checked {
    background-color: #434343;      /* 勾選後的背景色 */
    border-color: #434343;          /* 勾選後的邊框色 */
}
.input-group-birthday {
    margin-bottom: 15px;
    text-align: left;
}

.label-row {
    display: flex;
    justify-content: space-between;
}

.label-row label {
    width: 32%; /* 确保每个label占32%的宽度 */
    text-align: left;
    color: #666;
}

.input-row {
    display: flex;
    justify-content: space-between;
}

.input-row input {
    width: 31%; /* 确保每个input占32%的宽度 */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 1px;
}
.error {
    color: red;
    font-size: 0.9em;
    display: none;
    margin-top: 15px;
}