/* General styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #f0d6af;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #5d4037;
    overflow: hidden; /* Prevent scrollbars */
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fbebd3;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 5px solid #8b5a2b;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    box-sizing: border-box;
}

.game-header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

h1 {
    font-family: 'Courier New', Courier, monospace;
    color: #8b5a2b;
    text-shadow: 2px 2px 0 #5d4037;
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.score {
    font-size: 1.2em;
    font-weight: bold;
    color: #5d4037;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stat {
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: bold;
    color: #5d4037;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    border: 1px solid #8b5a2b;
    margin: 2px;
}

#score {
    color: #006400; /* Dark green for score */
}

#health {
    color: #8B0000; /* Dark red for health */
}

/* Canvas styling */
#gameCanvas {
    background-color: #e2c08e; /* Desert color */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #8b5a2b;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/2; /* Maintain 3:2 aspect ratio (1200x800) */
    max-height: 70vh;
    box-sizing: border-box;
}

/* Controls info */
.controls-info {
    margin-top: 15px;
    background-color: #efe1c6;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 2px dashed #8b5a2b;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
}

.controls-info p {
    margin: 0;
    font-weight: bold;
}
