/* Existing CSS */
#quiz-slider-container {
    overflow: hidden;
}
#quiz-slider-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    margin: 0 auto;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-slide {
    display: block;  /* Change to block to manage visibility via opacity */
    width: 100%;
    padding: 10px 20%;
    margin: 0 auto;
    opacity: 0;  /* Start with the slide fully transparent */
    transform: translateX(200%);  /* Start off the screen */
    transition: all 0.5s ease;  /* Smooth transition for both opacity and transform */
}
@media screen and (max-width: 600px) {
    .quiz-slide {
        display: block;  /* Change to block to manage visibility via opacity */
        width: 100%;
        padding: 20% 5%;
        margin: 0 auto;
        opacity: 0;  /* Start with the slide fully transparent */
        transform: translateX(200%);  /* Start off the screen */
        transition: all 0.5s ease;  /* Smooth transition for both opacity and transform */
    }
    .quiz-list {
        padding-left: 0;
    }
    #error-message {
        display: block;
        text-align: center;
        background-color: rgb(255, 204, 204);
        padding: 16px 20px;
        width: 80%!important;
        margin: 0px auto;
    }
}
.active-slide {
    opacity: 1;  /* Fully visible */
    transform: translateX(0%);  /* Positioned normally */
}

/* Animation to slide in from the right */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(200%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}
.next-question-btn {
    margin-top: 20px;
}

/* Custom CSS for Birdfeeder Quiz List Table in the WordPress admin */
.column-edit,
.column-delete,
.birdfeeder-edit-link,
.birdfeeder-delete-link {
    width: 80px;
    text-align: center;
}

th#edit,
th#delete {
    width: 80px;
    text-align: center;
}

.birdfeeder-edit-link,
.birdfeeder-delete-link {
    display: inline-block;
    padding: 4px 8px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.birdfeeder-edit-link:hover,
.birdfeeder-delete-link:hover {
    background-color: #005580;
}

label {
    width: 140px;
    display: inline-block;
    white-space: nowrap;
}

input[type="radio"] {
    width: 70%;
    margin-right: 20px;
}

li {
    padding-bottom: 20px;
    padding-top: 10px;
    list-style: none;
}

input.button.button-primary {
    margin-top: 20px;
}

button.button.delete-question {
    background-color: red;
    color: white;
    margin-top: 20px;
}

.actions {
    text-align: right;
    width: 70%;
    margin-left: 140px;
}
#quiz-progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: #ccc;
    margin-bottom: 20px;
}
#quiz-progress-text {
    position: absolute;
    /*bottom: 10px;  Adjust the bottom position as needed */
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
}

#quiz-progress-bar {
    height: 100%;
    background-color: #0073aa;
    width: 0;
    transition: width 0.3s ease;
}
.start-quiz-btn {
    margin-top: 20px;
}
.submit-quiz-btn {
    display: none; /* Hide the button initially */
    margin: 20px auto; /* Center the button horizontally */
    width: fit-content; /* Adjust width to content */
}
#submit-message-container {
    display: none;
}

canvas {
    width: 100% !important;
    height: auto !important;
}

.chartjs-labels {
    transform: rotate(90deg);
    white-space: nowrap;
}

@media (max-width: 768px) {
    canvas {
        width: auto !important;
        height: 100% !important;
    }
}

/* Additional Mobile Styles */
@media (max-width: 768px) {
    .quiz-options li {
        margin-bottom: 10px;
        max-width: 100%; /* Ensure the list items do not overflow */
    }

    .quiz-options li label {
        display: block;
        padding-left: 30px; /* Ensure label text doesn't overlap radio button */
        position: relative;
        font-size: 14px; /* Smaller font size for mobile */
        white-space: normal; /* Allow text to wrap */
    }

    .quiz-options li input[type="radio"] {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}
.ai-analysis {
    line-height: 1.5;
    margin: 15px 0;
}

.ai-analysis h4 {
    margin-top: 20px;
    font-weight: bold;
}

.ai-analysis p {
    margin-bottom: 10px;
}

.ai-analysis ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ai-analysis li {
    margin-bottom: 5px;
}
