/* 全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 標題與遊戲資訊區 */
header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.game-info {
    display: flex;
    justify-content: space-around;
    font-size: 1.2rem;
    font-weight: bold;
}

.timer, .score {
    background-color: #f1f8ff;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #d0e3ff;
}

#time, #score {
    color: #3498db;
    font-size: 1.4rem;
}

/* 遊戲畫面 */
.game-screen {
    display: none;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-screen.active {
    display: block;
}

/* 開始畫面 */
#game-start h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

#game-start p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#game-start ul {
    text-align: left;
    width: 80%;
    margin: 0 auto 30px;
    list-style-position: inside;
}

#game-start li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* 遊戲畫面 */
.question-container {
    margin-bottom: 30px;
}

#question {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.option-btn {
    background-color: #f1f8ff;
    border: 2px solid #d0e3ff;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    background-color: #d0e3ff;
}

.option-btn.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.option-btn.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* 結束畫面 */
#game-over h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2rem;
}

#game-over p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

#final-score {
    color: #3498db;
    font-size: 2rem;
    font-weight: bold;
}

/* 按鈕樣式 */
.btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    #question {
        font-size: 2rem;
    }
    
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .option-btn {
        font-size: 1.3rem;
    }
}
