@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons'), local('MaterialIcons-Regular'), url('fonts/MaterialIcons-Regular.woff') format('woff');
}

.thread {
    margin: 2rem 0;
}

.catalog-item {
    width: 200px;
    /* margin: 0.5rem 0.5rem; */
    margin-bottom: 0.5rem;
    padding: 1rem;
    /* background: #c7bfdd; */
    background: var(--bg-content-color);
    color: var(--md-typeset-color);
    border-radius: 3px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.catalog-item:hover {
    box-shadow: inset 0 0 0 2px var(--md-accent-fg-color);
}

/* .catalog-item {
    box-shadow: inset 0 0 0 1px var(--md-typeset-a-color);
} */

.catalog-item__header {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-item__image {
    border-radius: 3px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0.5rem !important;
    display: block;
}

.catalog-item__image--empty {
    text-align: center;
    color: var(--label-color);
    font-weight: bold;
    padding: 2rem 0;
    /* font-size: 0.8rem; */
    background: #ddd;
    width: 8rem;
    height: 6rem;
}

.catalog-item__title {
    font-weight: bold;
    color: var(--heading-color);
}

.catalog-item__text {
    /* font-size: 0.8rem; */
    line-height: 1.2;
    max-height: 4rem;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    font-weight: 400 !important;
}

.catalog-item__text p,
.catalog-item__text blockquote {
    display: inline;
    margin: 0;
}

.catalog-item__info {
    float: right;
    display: flex;
}

.catalog-item__posts-count {
    padding-left: calc(18px + 0.2rem);
    position: relative;
    float: right;
    color: var(--label-color);
    line-height: 2;
}

.catalog-item__posts-count-icon {
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    text-align: right;
    fill: var(--label-color);
}

.catalog-item__icon {
    width: 18px;
    height: 18px;
    color: var(--label-color);
    margin-right: 0.5rem;
}

.hid {
    display: inline-block;
    border: 1px solid;
    font-weight: bold;
    border-radius: 3px;
    margin-right: 0.5rem;
    color: inherit;
    text-decoration: none;
    padding: 0 0.5rem;
    text-align: center;
}

.icon {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
}

.catalog {
    margin-top: 0.5rem;
    overflow-x: hidden;
}

.catalog__items {

}

#divchan-post-container,
#divchan-post-container-right {
    font: 10px 'Trebuchet MS', sans-serif;
    transition: bottom 0.3s ease-in-out; 
}

#divchan-post-container-right {
    display: none;
}


.fixed {
    position: fixed;
    bottom: 20px;
}

.md-sidebar__scrollwrap {
    overflow-y: hidden;
}

@media (max-width: 1220px) {
    #divchan-post-container {
        display: none;
    }
    #divchan-post-container-right {
        display: block;
    }
}

@media (max-width: 960px) {
    #divchan-post-container-right {
        display: none;
    }
}