/* Rocket Lander - Game Specific Styles */

/* Space background */
.game-container {
    background: linear-gradient(180deg,
        #0a0a2a 0%,
        #1a1a4a 40%,
        #2a2a5a 100%);
}

/* Game Title */
.game-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #44ffff;
    text-shadow:
        0 0 10px rgba(68, 255, 255, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 100;
    pointer-events: none;
}

/* Flags Display */
.flags-display {
    position: absolute;
    top: 150px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: #ffcc44;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 100;
}

.flags-display .flag-icon {
    font-size: 1.4rem;
}

.flags-display .flag-count {
    font-weight: bold;
    font-size: 1.4rem;
    margin-right: 2px;
}

/* Thrust Indicator */
.thrust-indicator {
    position: absolute;
    right: 20px;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 100;
}

.thrust-label {
    font-size: 0.8rem;
    color: #fff;
    font-weight: bold;
}

.thrust-bar {
    width: 40px;
    height: 150px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.thrust-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(to top, #ff4400, #ffcc00, #44ff44);
    transition: height 0.1s ease;
    border-radius: 0 0 18px 18px;
}

/* Level Info */
.level-info {
    font-size: 0.9rem;
    color: #44ffff;
    margin-top: 5px;
}

/* Score Panel styling */
.score-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(68, 255, 255, 0.3);
}

.score-value {
    color: #44ff44;
    text-shadow: 0 0 10px rgba(68, 255, 68, 0.5);
}

/* Instructions */
.instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 0.8rem;
    color: #ddd;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 100;
}

/* Level Complete Overlay */
.level-complete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 100, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 150;
}

.level-complete-overlay.visible {
    display: flex;
    animation: levelFlash 0.5s ease-out;
}

@keyframes levelFlash {
    0% { background: rgba(100, 200, 255, 0.5); }
    100% { background: rgba(0, 50, 100, 0.7); }
}

.level-complete-content {
    padding-top: 40%;
    text-align: center;
}

.level-complete-title {
    font-size: 3rem;
    color: #44ffff;
    text-shadow: 0 0 30px rgba(68, 255, 255, 0.5);
    margin-bottom: 20px;
}

.level-stats {
    font-size: 1.4rem;
    color: #aaffff;
}

/* Game Over Overlay */
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.game-over-overlay.visible {
    display: flex;
}

.game-over-title {
    font-size: 3.5rem;
    color: #ff4444;
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    margin-bottom: 30px;
}

.final-score, .final-level {
    font-size: 1.6rem;
    color: #ffaa44;
    margin: 10px 0;
}

/* Message popup */
.message-popup {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #44ffff;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 150;
    pointer-events: none;
    text-align: center;
}

.message-popup.visible {
    opacity: 1;
}

/* Landing zone glow animation */
@keyframes landingGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 0, 0.6); }
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 1.5rem;
    }

    .instructions {
        font-size: 0.6rem;
        padding: 8px 15px;
    }

    .level-complete-title {
        font-size: 2rem;
    }

    .game-over-title {
        font-size: 2.5rem;
    }

    .flags-display {
        font-size: 1rem;
    }

    .thrust-bar {
        height: 100px;
        width: 30px;
    }

    .message-popup {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .flags-display {
        top: 120px;
    }
}
