* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #252E2D;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Press Start 2P', monospace, sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 4px solid #83998D;
    border-radius: 8px;
    overflow: hidden;
    background-color: #252E2D;
}

#game-canvas {
    display: block;
    width: 800px;
    height: 600px;
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

#health-bar {
    width: 200px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #83998D;
}

#health-fill {
    height: 100%;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

#cooldown-bar {
    width: 200px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #83998D;
}

#cooldown-fill {
    height: 100%;
    background-color: #F7DDB8;
    transition: width 0.05s linear;
    width: 100%;
}

#score, #enemy-count, #difficulty-level {
    color: #F7DDB8;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background-color: rgba(37, 46, 45, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 46, 45, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.overlay.hidden {
    display: none;
}

.overlay h1 {
    color: #83998D;
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(131, 153, 141, 0.5);
}

.overlay p {
    color: #F7DDB8;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}

.overlay button {
    padding: 15px 40px;
    font-size: 18px;
    background-color: #CFA084;
    color: #252E2D;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace, sans-serif;
}

.overlay button:hover {
    background-color: #A07060;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(207, 160, 132, 0.6);
}

#final-score {
    font-size: 18px !important;
    color: #F7DDB8 !important;
}