@font-face {
    font-family: 'PrintChar21';
    src: url('fonts/pr/PrintChar21.ttf') format('truetype');
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1a2332;
    font-size: 12px;
    color: #8B7355;
    font-family: 'PrintChar21', monospace;
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background-color: #1a2332;
    padding: 20px;
    padding-top: 40px;
}

.stats-container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.health-bar, .stamina-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.label {
    color: #8B7355;
    font-size: 14px;
    min-width: 60px;
}

.bar {
    width: 150px;
    height: 20px;
    background-color: #333;
    border: 1px solid #555;
    position: relative;
}

.bar-fill {
    height: 100%;
    transition: width 0.1s ease;
}

.health-fill {
    background-color: #4CAF50;
}

.stamina-fill {
    background-color: #2196F3;
}

.stamina-fill.stunned {
    background-color: #F44336;
}

.value {
    color: #8B7355;
    font-size: 14px;
    min-width: 30px;
    text-align: right;
}

.stun-message {
    color: #F44336;
    font-size: 16px;
    font-weight: bold;
}

.hud-bar {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin-bottom: 6px;
}

.hud-score, .hud-hi, .hud-lives, .hud-level {
    color: #8B7355;
    font-size: 14px;
}

#gameCanvas {
    display: block;
    border: 2px solid #555;
    background-color: #000;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.stats-container {
    margin-top: 16px;
    width: 800px;
}

.controls-container {
    margin-top: 12px;
    text-align: center;
}

.controls {
    color: #8B7355;
    font-size: 12px;
}

.controls p {
    margin: 5px 0;
}