/* styles.css */

/* Base Styles */
body {
    background: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.game-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #000;
    padding: 20px;
    border: 1px solid #00ff00;
    border-radius: 10px;
}

.bbs-container {
    background-color: #1e1e1e;
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.section {
    font-size: 1rem;
    margin-bottom: 10px;
}

.bold { 
    font-weight: bold; 
}

.underline { 
    text-decoration: underline; 
}

.yellow { 
    color: #ffff00; 
}

.red { 
    color: #ff0000; 
}

.cyan { 
    color: #00ffff; 
}

button {
    background: #0f0;
    color: #000;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px; /* Enhanced aesthetics */
    transition: background 0.3s ease;
    font-size: 1rem;
}

button:hover {
    background: #00b300;
}

.checkbox-container {
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}

.checkbox-container label {
    display: block;
    font-size: 1rem;
}

.checkbox-label {
    margin-bottom: 5px; /* Spacing between checkboxes */
}

.hint {
    margin-top: 10px;
}

select {
    background: #1e1e1e;
    color: #0f0;
    border: 1px solid #00ff00;
    padding: 8px;
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 5px; /* Enhanced aesthetics */
    width: 100%;
    max-width: 300px;
}

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.action-button {
    /* Inherits styles from the button selector */
    /* Additional styles can be added here if needed */
}

.question-set-select {
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
}

.monster-image-container {
    text-align: center;
    margin: 20px 0;
}

.monster-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.monster-info {
    margin-left: 0;
    text-align: center;
}

.battle-text {
    margin-top: 20px;
}

/* Feedback Styles */
.feedback-container {
    margin-bottom: 20px;
}

.correct {
    color: green;
    font-weight: bold;
}

.incorrect {
    color: red;
    font-weight: bold;
}

.missed {
    color: orange;
    font-weight: bold;
}

/* Level-Up Styles */
.level-up-container {
    background-color: #1e1e1e; /* Match .bbs-container background */
    border: 2px solid #00ff00; /* Use green border to match theme */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.level-up-title {
    color: #00ff00; /* Green color to match theme */
    font-size: 2rem;
    margin-bottom: 10px;
}

.new-gear {
    margin-top: 15px;
    text-align: left;
}

.new-gear .bold {
    color: #00ff00; /* Green for consistency */
}

.hit-points {
    margin-top: 10px;
    color: #ffff00; /* Yellow to highlight */
}

/* Victory and Game Over Styles */
.bbs-container.victory,
.bbs-container.game-over {
    text-align: center;
}

.bbs-container.victory .title,
.bbs-container.game-over .title {
    font-size: 2rem;
}

/* Responsive Styles */
@media (max-width: 600px) {
    body {
        margin: 10px;
    }

    .game-container {
        padding: 15px;
    }

    .title {
        font-size: 1.25rem;
    }

    .section {
        font-size: 0.9rem;
    }

    button {
        padding: 12px 24px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 200px;
        margin: 8px 0;
    }

    .checkbox-container label {
        font-size: 0.9rem;
    }

    select {
        font-size: 0.9rem;
        padding: 6px;
    }

    .monster-image {
        max-width: 150px;
    }

    .level-up-title {
        font-size: 1.75rem;
    }

    .battle-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .monster-image {
        max-width: 120px;
    }

    .title {
        font-size: 1.1rem;
    }

    .level-up-title {
        font-size: 1.5rem;
    }

    button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
