.cards-container {
    max-height: 100%; /* Matches the height of other content */
    overflow-y: auto; /* Enables vertical scrolling */
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 15px;
}

.card-title {
    margin: 0;
    text-align: left;
    font-family: Arial, sans-serif;
}

.info-card {
    margin-bottom: 20px;
}

.graph-container {
    display: flex;
    width: 100%;
    border: 1px solid #ccc;
    aspect-ratio: 1;
    margin: auto;
}

.small-graph-container {
    padding: 10px;
    border: 1px solid #ddd;
    height: 400px;
    border-radius: 5px;
}

.occurrence-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Adjust min card width */
    grid-gap: 16px; /* Space between cards */
    margin-bottom: 5px;
}

/* For larger screens, set a specific height to match the Sunburst and charts */
@media (min-width: 800px) {
    .cards-container {
        height: 100vh; /* Adjust the height to match the viewport, accounting for margins */
    }
}

/* For smaller screens, cards are at the bottom and not scrollable */
@media (max-width: 800px) {
    .cards-container {
        max-height: none;
        overflow-y: visible;
        height: auto;
    }
}

