/* Trivia Container */
.trivia-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent dark gray background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure the overlay is on top */
}

/* Trivia Container */
#trivia-container {
    position: fixed; /* Fixed position */
    top: 20px; /* 20px from the top of the screen */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    max-width: 700px; /* Fixed width on desktop */
    width: 95%; /* 95% width on mobile */
    color: white;
}


/* Trivia Header */
#trivia-header {
    margin-bottom: 20px; /* Add space between header and questions */
}

/* Trivia Text */
#trivia-text {
    font-size: 0.9em;
    font-weight: bold;
}

/* Add 10px of space after trivia-prelude */
#trivia-prelude {
    margin-bottom: 15px;
}


/* Trivia Question Container */
.trivia-question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Trivia Question */
#trivia-gapQuestion {
    font-size: 1.2em; /* Make the trivia question larger */
    margin-bottom: 20px; /* Add space between question and answers */
}

/* Trivia Category */
#trivia-category {
    margin-bottom: 20px;
    font-size: 1em;
}

/* Trivia Answers List */
#trivia-answers {
    list-style-type: none;
    padding: 0;
	width: 80%;
}

#trivia-answers li {
    margin-bottom: 20px;
    background-color: #6f6e6e;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for background color change */
}

#trivia-answers .answer-text {
    display: block; /* Make sure the text takes up the whole space of the li */
}

/* Correct Answer */
#trivia-answers li.correct-answer {
    background-color: #00cc00; /* Light Green */
}

/* Incorrect Answer */
#trivia-answers li.incorrect-answer {
    background-color: #ff3333; /* Light Red */
}

/* Selected Answer */
#trivia-answers li.selected-answer {
    background-color: #ffff66; /* Light Yellow */
}

/* Explanation Container */
#explanation-container {
    display: none; /* Initially hidden */
    margin-top: 20px;
    color: white;
    font-size: 16px; /* Adjust the font size to your desired value */
    word-wrap: break-word; /* Allow text to wrap within the container */
}

.trivia-gapExplanation {
    font-size: 18px; /* Adjust the font size to your desired value */
	margin: 20px;
}

/* Correct Result Title */
.result-title-correct {
    font-size: 24px;
    font-weight: bold;
    color: #00cc00; /* Green */
    text-align: center; /* Center text */
}

/* Incorrect Result Title */
.result-title-incorrect {
    font-size: 24px;
    font-weight: bold;
    color: #ff3333; /* Red */
    text-align: center; /* Center text */
}

/* New CSS class for the counter */
#trivia-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #00cc00; /* Green */
}

/* Adjust the z-index for the reward image container */
#reward-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002; /* Higher value to place it above the flash card container */
    display: none; /* Initially hide the container */
}

/* Style the image to cover the entire container */
#reward-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and cover the entire container */
}

#reward-message-text {
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent dark gray background */
    padding: 10px;
    border-radius: 10px;
    font-size: 1.5em;
    color: white;
    text-align: center; /* Center text horizontally */
    position: absolute;
    top: 20px; /* Adjust the distance from the top as needed */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    z-index: 1002; /* Ensure it's above the reward image */
}





#flashcard-id {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #666; /* Gray color */
    font-size: 14px; /* Adjust the font size as needed */
    padding: 5px; /* Add padding for spacing */
}

