.dre-question-cards-container .dre-question-card {
    background-color: var(--steps-purple-light, #f2e6f2);
    border: 1px solid var(--steps-purple-dark, #800080);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.dre-question-card__title {
    color: var(--steps-purple-dark, #800080);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-align: center;
    flex-grow: 1;
}

.dre-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.true-false-question-list {
    list-style: none;
    padding: 0;
}

.true-false-question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.question-text {
    margin: 0;
    flex-grow: 1;
    flex-basis: 0;
    padding-right: 15px;
}

.true-false-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.true-false-btn {
    padding: 8px 12px;
    border: 1px solid var(--steps-inactive-border-color, #d1b3d1);
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.true-false-btn.selected {
    background-color: var(--steps-purple-dark, #800080);
    color: var(--steps-text-color-light, #ffffff);
}

.check-answers-btn, .reset-quiz-btn {
    display: block;
    width: 160px;
    margin: 20px auto 0;
    padding: 10px 15px;
    color: var(--steps-text-color-light, #ffffff);
    background-color: var(--steps-purple-dark, #800080);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.check-answers-btn:hover, .reset-quiz-btn:hover {
    background-color: var(--steps-purple-hover, #6a006a);
}

.reset-quiz-btn {
    display: none;
}

.true-false-feedback {
    flex-basis: 100%;
    margin-left: auto;
    margin-top: 0;
    padding: 0 10px;
    background-color: #e9ecef;
    border-left: 4px solid var(--steps-purple-dark, #800080);
    border-radius: 4px;
    font-size: 0.9em;
    color: #333;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.true-false-feedback.correct {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.true-false-feedback.incorrect {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.true-false-btn.correct {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    animation: pulseCorrect 0.4s ease-out forwards;
}

.true-false-btn.incorrect {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
    animation: pulseIncorrect 0.4s ease-out forwards;
}

.true-false-feedback.show {
    max-height: 100px; /* Adjust as needed */
    opacity: 1;
    padding: 10px;
    margin-top: 10px;
}

@keyframes pulseCorrect {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { transform: scale(1.002); box-shadow: 0 0 5px rgba(40, 167, 69, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes pulseIncorrect {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { transform: scale(1.002); box-shadow: 0 0 5px rgba(220, 53, 69, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(220, 53, 69, 0); }
}


.confetti-piece {
    position: absolute;
    width: 8px;
    height: 16px;
    background-color: #28a745;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    animation: fadeAndFly 1.5s ease-out forwards;
}

@keyframes fadeAndFly {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(0.2);
        opacity: 0;
    }
}
