body {
    background-image: url('bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.lottery-container {
    display: flex;
    align-items: center;
    gap: 50px; /* 轉輪與結果框之間的間距 */
}

.wheel-wrapper {
    position: relative;
    width: 90vh;
    height: 90vh;
}

#wheel {
    width: 100%;
    height: 100%;
    z-index: 999;
    opacity: 0.9;
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1); /* 旋轉動畫 */
}

#arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0.7;
    /* 可根據您的 arrow.png 調整箭頭大小 */
    width: 90vh;
    height: 90vh;
}

.results-box {
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.5), rgba(90, 0, 0, 0.5)); /* 半透明深紅漸層 */
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); /* 金色微光 */
    padding: 10px;
    width: 200px;
    border: 3px double #ffd700; /* 金色雙線邊框,更具傳統節慶感 */
    position: relative;
    z-index: 1;
}

    .results-box h2 {
        text-align: center;
        color: #ffd700; /* 亮金色 */
        text-shadow: 1px 1px 2px black;
        margin-top: 0;
        margin-bottom: 10px;
        border-bottom: 2px solid #ffd700;
        padding-bottom: 8px;
        font-weight: 700;
    }

    .results-box li {
        background-color: rgba(255, 215, 0, 0.1); /* 半透明金色背景 */
        color: #fff; /* 白色文字更清晰 */
        border: 1px solid #ffd700;
        border-radius: 8px;
        padding: 8px 10px;
        margin-bottom: 6px;
        margin-left: 0; /* 移除左側額外邊距 */
        margin-right: 0; /* 確保右側也沒有額外邊距 */
        font-size: 1.1em;
        font-weight: 700; /* 加粗字體 */
        text-align: left; /* 文字靠左對齊 */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* 添加文字陰影增加立體感 */
        transition: all 0.3s;
    }

        /* 讓顯示結果時更有動感 */
        .results-box li:not(:contains('?')) {
            background-color: #ffd700;
            color: #8b0000;
            font-weight: bold;
            text-shadow: none; /* 金色背景時移除陰影 */
        }

    .results-box ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    /* 最後一筆結果無下邊距 */
    .results-box li:last-child {
        margin-bottom: 0;
    }

.buttons-container {
    display: flex;
    gap: 8px; /* 從 10px 縮小到 8px */
    justify-content: center;
    margin-bottom: 10px;
}

.action-button {
    padding: 8px 20px; /* 從 12px 30px 縮小到 8px 20px */
    font-size: 1em; /* 從 1.2em 縮小到 1em */
    font-weight: bold;
    border: none;
    border-radius: 6px; /* 從 8px 縮小到 6px */
    cursor: pointer;
    color: white;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    .action-button:hover {
        transform: translateY(-2px);
    }

    .action-button:disabled {
        background-color: rgba(128, 128, 128, 0.5) !important; /* 半透明灰色 */
        cursor: not-allowed;
        transform: none;
    }

        .action-button:disabled:hover {
            transform: none;
        }

#startButton {
    background-color: rgba(40, 167, 69, 0.5); /* 半透明 Green */
}

    #startButton:hover {
        background-color: rgba(33, 136, 56, 0.5);
    }

#clearButton {
    background-color: rgba(220, 53, 69, 0.5); /* 半透明 Red */
}

    #clearButton:hover {
        background-color: rgba(200, 35, 51, 0.5);
    }
