/* GROW AND SHRINK CORRECT ANSWER*/
@keyframes grow-shrink {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/*shake wrong answer*/
@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
}

.correct-selected {
    animation: grow-shrink 1s linear;
}

/*correct and wrong answer text event style*/
.correct {
    color: green;
    font-weight: bold;
}

.wrong {
    color: red;
    font-style: italic;
    animation: shake 0.82s cubic-bezier(.36, .07, .19, .97) both;
}

.btn {
    padding: 15px 30px;
}

/*only on mobile devices, stick the buttons to the bottom of the page*/

@media (max-width: 576px) {
    #button-container {
        position: fixed;
        bottom: 0;
        width: 100%;
        padding: 10px;
        background-color: #e0e0e0; /* Or whatever color matches your design */
    }
}
/*tO PREVENT BUTTON FROM BLOCKING THE VIEW ON MOBILE*/
@media (max-width: 767px) {
    #quizCard {
        padding-bottom: 160px;  /* Adjust as needed */
    }
}

/*Style the buttons for next and previous*/
#button-container {
    display: flex;
}

#prevBtn {
    background-color: #f8f9fa; /* pale gray */
    color: #6c757d; /* darker gray */
}

#nextBtn {
    flex-grow: 2; /* twice as wide as other elements in the container */
}

/*accessibility*/
.form-check-label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: large;
}

.card-text {
    font-size: x-large;
    font-weight: 700;
}

.test-title {
    margin-top: 25px;
}