* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 900px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.lives {
    color: #e74c3c;
}

.score {
    color: #3498db;
}

.speed {
    color: #2ecc71;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 400px;
    border: 3px solid #333;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 70%, #90EE90 70%, #90EE90 100%);
    cursor: pointer;
}

.instructions {
    text-align: center;
    margin-top: 20px;
    color: #555;
}

.instructions p {
    margin: 10px 0;
    font-size: 1.1em;
}

.instructions strong {
    color: #667eea;
    font-size: 1.2em;
}

.game-over {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 15px;
    animation: pulse 1s infinite;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    #gameCanvas {
        height: 300px;
    }
}
