/* Quiz Layout Fix - Prevent vertical stretching */

/* Ensure proper container sizing */
.quiz-container {
    width: 100% !important;
    height: auto !important;
    min-height: 300px !important;
    max-height: 85vh !important;
    aspect-ratio: unset !important;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
}

/* Mobile fix */
@media (max-width: 768px) {
    .quiz-container {
        min-height: 250px !important;
        padding: var(--spacing-md);
        margin: var(--spacing-sm) var(--spacing-md);
    }
}

/* Small screen fix */
@media (max-width: 375px) {
    .quiz-container {
        min-height: 200px !important;
        padding: var(--spacing-sm);
    }
}

/* Ensure loading state is centered */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Prevent any unusual aspect ratio */
.journal-card {
    aspect-ratio: unset !important;
    height: auto !important;
}
