/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    overflow: hidden;
    background-color: #000;
}

/* Canvas */
#game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-content {
    text-align: center;
    color: #ff3333;
}

.loading-content h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #ff3333;
}

.progress-bar {
    width: 300px;
    height: 20px;
    background-color: #222;
    border: 2px solid #ff3333;
    margin-bottom: 1rem;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background-color: #ff3333;
    transition: width 0.3s;
}

/* Menu Screen */
#menu-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-content {
    text-align: center;
    color: #ff3333;
}

.menu-content h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #ff3333;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.menu-buttons button {
    padding: 0.8rem 2rem;
    background-color: #222;
    border: 2px solid #ff3333;
    color: #ff3333;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-buttons button:hover {
    background-color: #ff3333;
    color: #000;
}

#player-name {
    padding: 0.5rem;
    width: 250px;
    background-color: #222;
    border: 2px solid #ff3333;
    color: #ff3333;
    font-size: 1rem;
    text-align: center;
}

/* Game UI */
#game-ui {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#health-bar {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 200px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
}

#health-fill {
    height: 100%;
    width: 100%;
    background-color: #ff3333;
    transition: width 0.3s;
}

#ammo-counter {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    text-shadow: 1px 1px 0 #000;
}

#weapon-indicator {
    position: absolute;
    bottom: 70px;
    right: 30px;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 #000;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 0 5px #ff3333;
}

#kill-feed {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 1rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kill-message {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.hidden {
    display: none !important;
}
