body, html {
    margin: 0;
    padding: 0;
    font-family: 'Press Start 2P', cursive;
    background-color: #000;
    color: #fff;
    text-align: center;
}

.container {
    padding: 20px;
}

h1 {
    color: #ff0000;
}

.battlefield, .fight-controls, #scoreboard {
    display: flex;
    justify-content: space-around;
}

.character, .fight-controls, #scoreboard, #settings-panel, #high-score-panel {
    background-color: #202020;
    padding: 20px;
    border: 3px solid #ff0000;
    width: 80%;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

button {
    background-color: #008000;
    border: 3px solid #ff0000;
    color: rgb(255, 255, 255);
    padding: 10px 25px;
    font-size: 13px;
    font-family: 'Press Start 2P', cursive;
    margin: 10px 5px;
    cursor: pointer;
    width: 45%; /* Adjusted width to fit two buttons */
}

input[type="text"], input[type="number"] {
    width: 90%;
    padding: 5px;
    margin: 5px 0;
    background: #404040;
    border: 1px solid #ff0000;
    color: white;
    font-family: 'Press Start 2P', cursive;
    box-sizing: border-box;
}

#hero-stats, #monster-stats, #hero-level, #monster-level, #hero-hp, #monster-hp, #hero-ac, #monster-ac, #fight-console, #scoreboard, #hero-progression div {
    background-color: #404040;
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ff0000;
}

#hero-progression {
    margin-top: 15px;
}

#fight-console {
    height: 150px;
    overflow: auto;
    background: #151515;
    margin-top: 20px;
}

#scoreboard {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em; /* Smaller font size for scoreboard */
}

/* Settings Panel Styles */
#settings-panel h3 {
    color: #ffcc00;
    margin-bottom: 15px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.setting-item {
    background-color: #404040;
    padding: 10px;
    border: 1px solid #ff0000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.setting-item label {
    font-size: 0.7em;
    margin-bottom: 5px;
    color: #ffcc00;
}

.setting-item input {
    width: 100%;
}

/* Game over message */
.game-over {
    color: #ff0000;
    font-size: 1.5em;
    font-weight: bold;
    animation: blink 1s infinite;
    margin: 20px 0;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* High Score Table Styles */
#high-score-panel h3 {
    color: #ffcc00;
    margin-bottom: 15px;
}

#high-score-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 0.8em;
}

#high-score-table th,
#high-score-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ff0000;
}

#high-score-table th {
    background-color: #400000;
    color: #ffcc00;
}

#high-score-table tbody tr {
    background-color: #202020;
}

#high-score-table tbody tr:nth-child(odd) {
    background-color: #303030;
}

#high-score-table tbody tr:first-child {
    background-color: #004000;
}

#clear-scores {
    width: auto;
    font-size: 0.7em;
    margin-top: 10px;
}

/* Bonus Button Styles */
.bonus-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.bonus-button {
    background-color: #400000;
    border: 2px solid #ff0000;
    color: #ffcc00;
    width: 30%;
    padding: 5px;
    font-size: 0.7em;
    cursor: default;
}

.bonus-button:disabled {
    opacity: 1;
}
