body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #000;
    color: #fff;
}

#board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 50px auto;
}

.category {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* .category-title {
    background-color: #1e1e1e;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #007bff;
} */
.category-title {
    background-color: #1e1e1e;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #007bff;
    text-align: center;
    height: 4em; /* Fixed height to ensure it takes up two lines */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2em; /* Ensure text is spaced nicely within two lines */
    overflow: hidden;
}

.question {
    background-color: #007bff;
    color: white;
    padding: 30px;
    margin: 5px 0;
    cursor: pointer;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    height: 100px;
    transition: background-color 0.3s, transform 0.3s;
}

.question:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.question.answered {
    background-color: #555;
    cursor: default;
}

#question-box {
    text-align: left;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1e1e1e;
    color: #fff;
    padding: 30px;
    border: 3px solid #007bff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#answer-button, #close-question {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#answer-button:hover, #close-question:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

/* Question Image Styling */
#question-image {
    height: 30%;
    max-height: 300px;
    width: auto; /* Maintain the aspect ratio */
    margin: 10px auto; /* Center the image horizontally */
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Answer Image Styling (same as question image for consistency) */
#answer-image {
    height: 30%;
    max-height: 300px;
    width: auto; /* Maintain the aspect ratio */
    margin: 10px auto; /* Center the image horizontally */
    border: 2px solid #007bff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#comment-section {
    margin: 20px auto;
    text-align: center;
    font-size: 1.2em;
    color: #ffffff;
    padding: 15px;
    border-top: 1px solid #007bff;
}