/* Pills */
.pill-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.pill-section::before {
    content: "";
    display: block;
    position: relative;
    width: 90%;
    height: 2px;
    background-color: var(--primary-color);
}

.pill-name {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.pill-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    background-color: var(--primary-color);
    color: black;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.pill:hover {
    background-color: var(--primary-color-darker);
    transform: scale(1.05);
}

.pill.active {
    background-color: var(--accent-color);
}


/* Charts */
.chart-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--secondary-color);
}

.chart-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--text-color);
}


/* Tooltips */
.tooltip-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.tooltip-icon {
    cursor: pointer;
    transition: color 0.3s;
}

.tooltip-icon:hover {
    color: var(--accent-color);
}

.tooltip-info {
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    width: 200px;
    max-width: 250px;
    padding: 8px 12px;
    color: var(--main-bg-color);
    background-color: var(--primary-color);
    font-family: var(--main-font);
    font-size: 0.85rem;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transform: translateX(-50%);
    transition: all 0.3s;
    z-index: 10;
}

.tooltip-info::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    border-width: 10px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
    transform: translateX(-50%);
    transition: all 0.2s;
    z-index: 10;
}

.tooltip-container:hover .tooltip-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}

.tooltip-container:hover .tooltip-info::after {
    opacity: 1;
    transform: translateX(-50%) translateY(15px);
}


/* Counters */
.counter-addon {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.counter,
.counter-suffix {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    font-weight: bold;
    letter-spacing: 0.15rem;
}


/* Trending */
.charts-trending {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Plot, scatters, bars */
.scatter-plot {
    margin-top: 50px;
    max-height: 400px;
    /* max-width: 300px; */
}


@media screen and (max-width: 800px) {
    .chart-title {
        font-size: 1.2rem;
        gap: 5px;
    }

    .div-cards-entries {
        gap: 5px;
    }

    .pill-section {
        margin-top: 50px;
    }
    .pill-name {
        font-size: 1.5rem;
        margin: 10px 0;
    }
    .pill {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    .graphs {
        padding: 5px;
    }
    .graphs > .chart-title {
        padding: 15px;
    }
}