body {
    margin: 0;
    font-family: "Lato", "PingFang TC", "Helvetica Neue", Helvetica, "微軟正黑體", "新細明體", Arial, sans-serif;
}

input {
    padding: 0.1em;
    border: 1px solid #555;
    border-radius: 4px;
}

button {
    padding: 0.1em 0.5em;
    border: 1px solid rgba(124, 124, 124, 0.7);
    border-radius: 4px;
    cursor: pointer;
}

.material-icons {
    padding: 0.1em;
}

.top-bar {
    display: flex;
    align-items: center;
    background-color: rgba(191, 208, 220, 0.13); /* 淺灰背景色 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 50px; /* 設置一個固定的高度 */
    margin-bottom: 25px;
}

.social-link {
    display: inline-block;
    position: relative;
    margin: 0 15px;
    text-decoration: none; /* 移除底線 */
}

.social-link img {
    width: 30px; /* LOGO大小 */
    height: auto;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1); /* 懸停時放大LOGO */
}

.social-link span {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    color: #469dff; /* 文字顏色 */
    white-space: nowrap; /* 避免文字換行 */
}

.social-link:hover span {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.contact-message {
    font-size: 20px;
    background-color: rgba(130, 204, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px; /* 兩側的padding */
    height: 100%; /* 高度設為100%以填滿.top-bar的高度 */
}

.extra-links {
    margin-right: 20px;
    margin-left: auto; /* 將額外連結推向右側 */
    display: flex;
    align-items: center;
}

.extra-links a {
    text-decoration: none;
    color: #007bff; /* 設定連結顏色 */
    margin-left: 15px; /* 設定連結間距 */
    transition: color 0.3s ease-in-out;
}

.extra-links a:hover {
    color: #0056b3; /* 鼠標懸停時的顏色 */
}

.social-link, .extra-links {
    display: flex;
    align-items: center;
    height: 100%; /* 確保填滿.top-bar的高度 */
}
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-direction: column;
}

.lottery, .history {
    flex: 1;
    margin: 10px;
}
.history table {
    width: auto; /* 使表格寬度自適應容器 */
    min-width: 300px; /* 可以根據需要調整，確保表格在容器過小時仍具有最小可讀寬度 */
    border-collapse: collapse;
}

.history th, .history td {
    text-align: left;
    padding: 8px;
    border: 1px solid rgba(124, 124, 124, 0.5);
}

.history th {
    background-color: rgba(185, 185, 185, 0.16);
}

.lotto-number {
    display: inline-block;
    width: 35px; /* 或根據需要調整大小 */
    height: 35px; /* 使其成為圓形，寬高相等 */
    background-color: yellow;
    background-image: radial-gradient(circle at 35%, #ffff00, #ffdf00 65%, #cca700); /* 添加漸變效果來模擬光照和深度 */
    color: black;
    text-align: center;
    line-height: 35px; /* 調整這個值使文字垂直居中 */
    border-radius: 50%; /* 這將使元素呈現圓形 */
    margin: 5px;
    font-weight: bold;
    box-shadow: 0 0 10px #888888; /* 添加陰影來增強立體感 */
    border: 1px solid #ffdf00; /* 輕微的邊框可以增加細節 */
}

.mystery-number {
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    width: 40px; /* 或根據需要調整大小 */
    height: 40px; /* 使其成為圓形，寬高相等 */
    background-color: #4CAF50; /* 綠色背景 */
    background-image: radial-gradient(circle at 35%, #4CAF50, #388E3C 65%, #348f3a); /* 添加漸變效果來模擬光照和深度 */
    color: white; /* 文字顏色 */
    text-align: center;
    line-height: 40px; /* 調整這個值使文字垂直居中 */
    border-radius: 50%; /* 這將使元素呈現圓形 */
    box-shadow: 0 0 8px #666666; /* 添加陰影來增強立體感 */
    user-select: none; /* 防止選取問號文字 */
}

.special-number {
    display: none;
    font-weight: bold;
    margin-left: 10px;
}

.special-lotto-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #4CAF50; /* 綠色背景 */
    background-image: radial-gradient(circle at 30%, #4CAF50, #388E3C 70%, #1B5E20); /* 添加漸變效果來模擬光照和深度 */
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 8px #666666; /* 添加陰影來增強立體感 */
    user-select: none;
    margin: 5px;
    font-weight: bold;
}
