/* 基本設定：讓畫面佔滿全螢幕並置中 */
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
    background: url('../background.jpg') no-repeat center center fixed;
    background-size: cover; /* 背景圖鋪滿 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #333;
}

/* 標題：加點陰影更有神祕感 */
h1 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* 主容器：半透明白色背景，讓內容清晰 */
#draw-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

/* 顯示區域與圖片 */
#display-area {
    margin-bottom: 20px;
}

#mood-image {
    border-radius: 15px;
    transition: transform 0.3s ease; /* 增加過場感 */
}

/* 抽籤按鈕：亮眼的顏色與點擊效果 */
#draw-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #cc5252;
    transition: all 0.1s;
}

#draw-btn:active {
    box-shadow: 0 2px 0 #cc5252;
    transform: translateY(3px);
}

#draw-btn:hover {
    background-color: #ff5252;
}

/* 返回按鈕：左上角固定 */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 頁尾警告文字 */
.footer {
    margin-top: 30px;
    color: #eee;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
}

/* 正在觀測的文字動畫 */
#loading-text {
    font-weight: bold;
    color: #555;
    margin: 15px 0;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.addition {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
}

.info-card {
    background: rgba(0, 0, 0, 0.7);
    color: #00ffcc; /* 科技感的青色 */
    padding: 15px;
    border-radius: 15px;
    border-left: 5px solid #ff6b6b;
    font-size: 0.9rem;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.info-card hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 10px 0;
}

/* 手機版自動隱藏或移到底部，避免擋住主畫面 */
@media (max-width: 768px) {
    .addition {
        position: static;
        transform: none;
        width: 90%;
        margin: 20px auto;
    }
}