body {
    margin: 0;
    overflow: hidden;
    font-family: 'Press Start 2P', cursive;
    background-color: #1a1a1a;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#gameContainer {
    position: relative;
    width: 800px;
    height: 600px;
    border: 2px solid #555;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    background-color: #000;
    overflow: hidden;
}

canvas {
    background-color: #000;
    display: block;
}

.hidden {
    display: none !important;
}

/* Menu Styles */
.menu-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Game Over Screen specific styling */
#gameOverMenu {
    background-image: url("assets/game_over_screen.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.8); /* Fallback */
}

/* Hide the text elements in game over menu since they're in the background image */
#gameOverMenu .menu-title,
#gameOverMenu #gameOverStats {
    display: none;
}

/* Position the buttons at the bottom for game over screen */
#gameOverMenu .menu-button {
    margin-top: 20px;
}

.menu-title {
    font-size: 4em;
    color: #ff6600;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff6600;
}

.menu-subtitle {
    font-size: 1.2em;
    color: #aaa;
    margin-bottom: 40px;
}

.character-showcase {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.character-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #ff6600;
    border-radius: 10px;
    padding: 20px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.character-image {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.character-image.assassin {
    background-image: url("assets/assassin_pixel_art.png");
}

.character-image.mage {
    background-image: url("assets/mage_pixel_art.png");
}

.character-card h3 {
    color: #fff;
    margin: 10px 0 5px;
    font-size: 1.5em;
}

.character-card p {
    color: #ccc;
    font-size: 0.9em;
}

.menu-button {
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.menu-button:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}

.controls-info {
    margin-top: 30px;
    font-size: 0.8em;
    color: #bbb;
    line-height: 1.5;
}

/* Game UI Styles */
#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to canvas */
}

.player-ui {
    position: absolute;
    top: 10px;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
    font-size: 0.8em;
}

.player-ui.left {
    left: 10px;
}

.player-ui.right {
    right: 10px;
}

.player-ui h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #ff6600;
    font-size: 1.1em;
}

.health-bar, .energy-bar, .ability-cooldown {
    width: 100%;
    height: 10px;
    background-color: #555;
    border-radius: 3px;
    margin-top: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background-color: #0f0;
    transition: width 0.1s linear;
}

.energy-fill {
    height: 100%;
    background-color: #00f;
    transition: width 0.1s linear;
}

.cooldown-fill {
    height: 100%;
    background-color: #888;
    transition: width 0.1s linear;
}

#instabilityTimer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ff6600;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

#instabilityTimer text {
    font-family: 'Press Start 2P', cursive;
}

#instabilityEffects {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
    font-size: 0.8em;
}

#instabilityEffects h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #ff6600;
    font-size: 1em;
}

#effectsList {
    color: #eee;
    min-height: 20px;
}

/* Font import (if needed, otherwise remove) */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


