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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.score, .level, .lives {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#gameCanvas {
    border: 3px solid #3498db;
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: crosshair;
    max-width: 100%;
    height: auto;
}

.game-controls {
    margin-top: 20px;
}

.game-controls button {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.game-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.game-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.instructions {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.instructions p {
    margin: 5px 0;
}

.game-link {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

.game-link a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-link a:hover {
    color: #2980b9;
    text-decoration: underline;
    transform: scale(1.05);
    display: inline-block;
}

@media (max-width: 900px) {
    #gameCanvas {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
    .game-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .score, .level {
        flex: 1;
        text-align: center;
        margin: 0 5px;
    }
    
    .game-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .game-controls button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 5px;
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        flex: 1;
        min-width: 100px;
        max-width: 150px;
    }
}