/* Minimalist Black & White Space Theme for Legacy in the Skies */

/* Space Background - Pure Black */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: -1;
}

/* Animated Stars - White Only */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Floating Particles - White */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 25s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
    }
    to {
        transform: translateY(-100px) translateX(50px);
    }
}

/* Shooting Stars - White */
.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
    animation: shoot 2s linear infinite;
    opacity: 0;
}

@keyframes shoot {
    0% {
        opacity: 0;
        transform: translateX(300px) translateY(-300px) rotate(45deg);
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-1200px) translateY(600px) rotate(45deg);
    }
}

/* Game Screens - Black with White Border */
#startScreen, #gameOverScreen, #levelCompleteScreen, #victoryScreen {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Container - Minimalist Black & White */
.container {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    z-index: 1 !important;
}

.container header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.container header h1 {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
}

.container header .subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Versus page specific */
.game-modes {
    position: relative !important;
    z-index: 1 !important;
}

/* Sections - Black & White */
.versus-options, .wager-options, .join-options, .session-info,
.waiting-screen, .deposit-container, .wager-payment-container,
.join-payment-container {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Hero image container */
.hero-image-container {
    position: relative !important;
    z-index: 1 !important;
}

.hero-image {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.image-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent) !important;
}

.fact-text {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2) !important;
}

/* Player Info Header - Black & White */
.player-info-header {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    max-width: 200px !important;
    word-wrap: break-word !important;
}

#playerBalance {
    color: white !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3) !important;
    font-size: 14px !important;
    display: block !important;
    margin-top: 5px !important;
}

/* Mode Buttons - Minimalist Black & White */
.mode-button {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.mode-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Buttons - Black & White */
.button, button {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s ease !important;
}

.button:hover, button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* HUD Elements - Black & White */
#hudContainer, #missionInfo {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Title Styling - White */
h1, h2, h3 {
    color: white !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 0.1rem;
}

/* Health Bar - Black & White */
.healthBarContainer {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

#healthBar {
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8)) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3) !important;
}

/* Combo Container - Black & White */
#comboContainer {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Powerup Inventory - Black & White */
.powerup-inventory {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}

.powerup-inventory button {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.powerup-inventory button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

/* Canvas - Don't interfere with game rendering */
#gameCanvas {
    /* Background controlled by game engine - no overrides */
}

/* Ensure game elements render properly */
canvas {
    display: block;
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* Don't apply transforms to game elements */
#gameCanvas * {
    transform: none !important;
}

/* Store/Shop Modals - Black & White */
.modal, .store-container, #storeModal, #shopModal {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

/* Item Cards - Black & White */
.item-card, .skin-card, .trail-card, .powerup-card {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.item-card:hover, .skin-card:hover, .trail-card:hover, .powerup-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Alerts/Notifications - Black & White */
.alert, .notification {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6) !important;
}

/* Leaderboard - Black & White */
#leaderboard, .leaderboard-container {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
}

/* Input Fields - Black & White */
input, textarea, select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 10px 15px !important;
}

input:focus, textarea:focus, select:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

/* Links - White */
a {
    color: white !important;
    transition: all 0.3s ease !important;
}

a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3) !important;
}
