/* Game-specific styles */
#gameCanvas {
    display: block;
    margin: 0 auto;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    border: 3px solid #34495e;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Health bar animation */
@keyframes healthPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.health-low {
    animation: healthPulse 0.5s ease-in-out infinite;
}

/* Score animation */
@keyframes scoreIncrease {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #4ecdc4; }
    100% { transform: scale(1); }
}

.score-animation {
    animation: scoreIncrease 0.3s ease-in-out;
}

/* Game UI enhancements */
#gameUI {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin-bottom: 10px;
}

#levelInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #4ecdc4;
    font-weight: bold;
}

#levelNumber {
    font-size: 1.2em;
    color: #f39c12;
}

#levelName {
    font-size: 0.9em;
    color: #ecf0f1;
}

#healthBar span {
    color: #e74c3c;
    font-weight: bold;
}

#score {
    color: #f39c12;
}

#enemiesLeft {
    color: #9b59b6;
}

/* Loading screen */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pause overlay */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.pause-text {
    color: white;
    font-size: 2rem;
    text-align: center;
}

/* Win screen */
#winScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    min-width: 400px;
}

#winScreen h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#winScreen p {
    color: #ecf0f1;
    font-size: 1.2rem;
    margin: 10px 0;
}

#winScreen button {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#winScreen button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #44a08d, #4ecdc4);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #gameCanvas {
        max-width: 100%;
        height: auto;
    }
    
    #gameUI {
        font-size: 1rem;
        padding: 10px;
    }
    
    #healthFill {
        width: 150px;
        height: 15px;
    }
    
    #winScreen {
        min-width: 300px;
        padding: 30px 20px;
    }
    
    #winScreen h2 {
        font-size: 2rem;
    }
} 