.histogram {
    width: 100%;
    box-sizing: border-box;
    background: var(--main-bg-color);
    border: 1px solid var(--grey-3);
    border-radius: 0.5em;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    padding: 1em 1.5em 1.5em 1.5em;
    text-align: left;
}

.histogram_main-page-preview {
    font-size: 14px;
}

.histogram__title {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
    line-height: 1.2em;
    padding-bottom: 0.375em;

    color: var(--main-font-color);
    opacity: 0.8;
}

.histogram__header {
    color: var(--active-text-color);
    font-size: 1.25em;
    line-height: 1.3em;
}

.histogram__body {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    height: 3.125em;
    margin-top: 2.4375em;
    animation: appear 0.6s ease-out;
}

@keyframes appear {
    0% {
        transform: scaleY(0);
        transform-origin: bottom center;
    }
    50% {
        transform: scaleY(0);
        transform-origin: bottom center;
    }
    100% {
        transform: scaleY(1);
        transform-origin: bottom center;
    }
}

.histogram__item {
    min-width: 1px;
    background: var(--ligth-blue);
    flex-grow: 1;
    margin-right: 1px;
}

.histogram__item:last-child {
    margin-right: 0;
}

.histogram__link {
    padding-top: 0.1875em;
    font-size: 1em;
    line-height: 1.2em;
    text-decoration: none;

    color: var(--ligth-blue);
}

@media screen and (max-width: 768px) {
    .histogram_main-page-preview {
        font-size: 8px;
        width: 90%;
    }
}
