/* 太空猎手游戏样式 */

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.game-header h1 {
    margin: 0;
    color: #333;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score {
    font-size: 1.5em;
    font-weight: bold;
    color: #666;
}

.game-area {
    background-color: #000;
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    background-color: #000;
    border: 2px solid #333;
    border-radius: 4px;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.game-over h2 {
    margin-top: 0;
    font-size: 2.5em;
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.game-controls {
    margin-top: 20px;
    text-align: center;
}

.game-controls p {
    color: #666;
    margin-bottom: 15px;
}

button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #45a049;
}

button:active {
    background-color: #3e8e41;
    transform: translateY(1px);
}

#restartBtn {
    background-color: #ff9800;
}

#restartBtn:hover {
    background-color: #e68900;
}

#playAgainBtn {
    background-color: #2196F3;
    padding: 15px 30px;
    font-size: 18px;
}

#playAgainBtn:hover {
    background-color: #0b7dda;
}