/* styles taking effect at index.php */

/* the wrapper around each forum category */
div#page-body > div.forabg{
    padding: 0;
    margin-bottom: 0px;
    border-radius: 0;
    background: none;
    font-size: 0.6rem;
}

/* the bar that holds the forum category titles as well as the topics/posts/last post headers */
div#page-body > div.forabg > div.inner > ul.topiclist > li.header > dl.row-item {
    background-image: url('./img/cellpic3.gif');
    background-size: initial;
    background-position: initial;
    background-repeat: repeat;
    height: 28px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

/* the first column containing the category title */
div#page-body > div.forabg > div.inner > ul.topiclist > li.header > dl.row-item > dt > div.list-inner {
    padding: 0 0.5rem;
}

/* headers like topics/posts/last post */
div#page-body > div.forabg > div.inner > ul.topiclist > li.header > dl.row-item dt,
div#page-body > div.forabg > div.inner > ul.topiclist > li.header > dl.row-item dd {
    text-transform: none;
    font-size: 1.2em;
}

/* the rows containing the individual forums */
div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row {
    background-color: #212121;
    color: #eeeeee;
    border-color: black;
    border-top: none;
}

div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item {
    display: flex;
    align-items: stretch;
    background-size: 24px;
    margin: 0;
}

/* the column for the forum title */
div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dt {
    display: flex;
    align-items: stretch;
}

div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dt > div.list-inner {
    padding: 0 0.5rem;
    margin-left: 44px;
    border-left: 1px solid black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 50px;
}

div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dt > div.list-inner > span.forum-image {
    display: none;
}

/* the columns that show topic and post count as well as last post */
div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dd {
    align-items: center;
    justify-content: center;
    margin: 0;
    border-color: black;
    padding: 0.3rem 0;
}

@media screen and (min-width: 800px) {
    div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dd {
        display: flex;
    }
}


/* styles just for the lastpost column */
div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dd.lastpost {
    justify-content: flex-start;
}

/* links inside lastpost column */
div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dd.lastpost > span > a {
    color: grey;
}

/* go to most recent post icon inside lastpost column */
div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dd.lastpost i {
    width: 1.5rem;
    background-image: url('./img/icon_newest_reply.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* hide the default font-awesome icon */
div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dd.lastpost i:before {
    content: "";
}


div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item > dt > div.list-inner > a {
    color: #eeeeee;
    display: table-cell;
    vertical-align: middle;
}

div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item.forum_read,
div.cp-main > form > div.panel > div.inner > ul.topiclist > li.row > dl.row-item.forum_read {
    background-image: none;
}

div#page-body > div.forabg > div.inner > ul.topiclist.forums > li.row > dl.row-item.forum_unread,
div.cp-main > form > div.panel > div.inner > ul.topiclist > li.row > dl.row-item.forum_unread{
    background-image: url('./img/folder_new_big.gif');
}