/** General Styles **/

body {
    /** TODO variables **/
    color: rgb(53, 60, 65);
    background-color: rgb(237, 237, 237);
    font-family: "Noto Sans", "helvetica", "arial", "sans-serif";
}

h1 {
    font-size: 28px;
}

h2 a {
    font-size: 18px;
}

a {
    color: rgb(9, 49, 86);
}

a:hover {
    color: rgb(93, 162, 191);
}

/* Breadcrumbs */

.breadcrumb {
    padding: 12px 0;
}

.breadcrumb a {
    color: rgb(97, 97, 97);
}

/* Pagination */
.pagination {
    background: rgb(220, 222, 227);
    padding: 10px;
    margin: 0;
    font-size: 10px;
    font-weight: 700;
}

.pagination-mini {
    display: inline-block;
    padding: 0;
    background: none;
    margin-left: 10px;
}

.row .pagination-mini .page-item a {
    border: none;
    padding: 2px;
}

.row:hover .pagination-mini .page-item a {
    background: rgb(237, 237, 237);
}

.pagination-mini .page-item {
    margin-right: 0;
}

main.container {
    padding: 0;
}

/* Categories */

.categories .accordion-item {
    padding: 1em 0;
}

.categories .accordion-header:hover .accordion-button.collapsed {
    background-color: rgb(93, 162, 191);
}

/* Change the accordion control to white */
.categories .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.categories .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.categories .accordion-item button {
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgb(255, 255, 255);
    background-color: rgb(52, 55, 64);
}

.categories {
    font-size: 13px;
}

.categories .forums {
    background-color: rgb(255, 255, 255);
    padding-top: 10px;
}

.categories h4 {
    font-size: 18px;
}

.categories h4, .categories .child-forums {
    margin-bottom: 5px;
}

/* Forums */

.forums .forum:first-child {
    padding-top: 10px;
}

.forum {
    background: rgb(250, 250, 250);
}

.forum.odd {
    background: rgb(255, 255, 255);
}

.child-forum-container {
}

.child-forum-container h2 {
    font-size: 20px;
    padding: 0.5em;
    margin: 0;
    color: rgb(255, 255, 255);
    background: rgb(52, 55, 64);
}

.child-forum-container h4 {
    font-size: 18px;
}

ol.child-forums {
    padding-left: 2em;
}

/* Topics */
.topics {
    margin-bottom: 0;
}

.topic {
    padding: 1em 0.5em;
    background: rgb(250, 250, 250);
}

.topic.odd {
    background: rgb(255, 255, 255);
}

.last-post {
    font-size: 13px;
}

/* Posts */

article.post, .search-result-item {
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    background: rgb(255, 255, 255);
    padding: 5px;
    margin: 20px 0;
}

.post-container .content-wrapper img {
    max-width: 100%;
}

.post .author {
    font-size: 13px;
    text-align: center;
}

.post .author img {
    width: 90px;
    height: 90px;
}

.post .author .username {
    font-size: 18px;
    font-weight: 500;
}

.page-item a {
    color: rgb(52, 55, 64);
}

.page-item.current a {
    color: rgb(250, 250, 250);
    background-color: rgb(52, 55, 64);
}


.post-meta {
    padding: 10px 0 0;
    margin-right: 15px;
    color: rgb(141, 154, 166);
    line-height: normal;
}

.post-container, .search-result-item {
    font-family: "Noto Sans", "helvetica", "arial", "sans-serif";
    border-spacing: 0;
    overflow-wrap: break-word;
    color: rgb(53, 60, 65);
    font-size: 14px;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    line-height: 1.6;
    margin-top: 0;
}

.post-container p {
    font-family: "Noto Sans", "helvetica", "arial", "sans-serif";
}

blockquote {
    margin: 0;
    padding: 0 15px;
    border-width: 1px 1px 1px 2px;
    border-color: rgb(237, 237, 237) rgb(232, 232, 232) rgb(219, 219, 219) rgb(102, 102, 102);
    border-style: solid;
    position: relative;
    background: rgb(251, 251, 251);
    margin-block-end: 1em;
}

blockquote .ipsQuote_citation {
    background: #f3f3f3;
    margin: 0 -15px;
    padding: 5px 15px;
    color: rgb(34, 34, 34);
    font-weight: bold;
    font-size: 13px;
    display: block;
}

/* Embedded Styles */

body.embed {
    width: 500px;
    background: rgb(255, 255, 255);
}

body.embed .replier {
    padding: 10px;
    background-color: rgb(248, 248, 248);
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

body.embed .replier .author {
    font-weight: 700;
}

body.embed .reply-overview {
    margin-left: 10px;
}

body.embed .original-post .excerpt,
body.embed .excerpt.reply {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.embed .original-post {
    margin: 15px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: #353c41;
}

body.embed .original-post h4 {
    font-size: 17px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgb(0, 0, 0);
}

img.avatar.small {
    width: 48px;
    height: 48px;
}

img.avatar.tiny {
    width: 34px;
    height: 34px;
}

img.avatar.tinier {
    width: 24px;
    height: 24px;
}

/* Post Count */
.post-count {
    text-align: center;
}

/* Search */

@media (min-width: 767.98px) {
    #nav-search {
        flex-grow: 1;
    }

    #nav-search input {
        width: 50%;
        margin-left: auto;
        -webkit-transition: width 1s ease-in-out;
        -moz-transition:width 1s ease-in-out;
        -o-transition: width 1s ease-in-out;
        transition: width 1s ease-in-out;
    }

    #nav-search input.form-control:focus {
        width: 90%;
    }
}


.search-primary .input-group {
    padding: 0;
}

.search-options .select2-container {
    margin-top: 1rem;
    padding: 0;
}

.search-result-item .row {
    padding: 0;
    margin: 1em;
}

.search-result-item h3 {
    font-size: 21px;
    margin-bottom: 0;
}

.search-result-item .header {
    margin-bottom: 5px;
}

.search-result-item .result-details {
    padding-left: 0;
}

.search-result-item .result-details b {
    background-color: rgb(255, 216, 242);
}

.results-count {
    margin-top: 2em;
    padding: 5px;
    color: rgb(255, 255, 255);
    background-color: rgb(52, 55, 64);
}

.results-count h3 {
    margin-bottom: 0;
    font-size: 18px;
}

/* Spoiler */
.ipsSpoiler .accordion-button:before {
    content: "Hide Contents";
    font-weight: bold;
}

.ipsSpoiler .accordion-button.collapsed:before {
    content: "Reveal hidden contents";
    font-weight: bold;
}

#page-footer {
    padding-top: 20px;
    font-size: 13px;
}

body.about article {
    margin-top: 20px;
    padding: 2rem;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}


@media (max-width: 767.98px) {
    .categories .child-forums li {
        display: block;
    }

    .forums .forum {
        margin-bottom: 1rem;
    }

    .forums .forum .child-forums {
        margin-bottom: 0;
    }

    .forum-description {
        margin: 0;
    }

    .post-count {
        text-align: left;
        margin-bottom: 0;
    }

    .post-count dt {
        display: inline;
    }

    .post-count dd {
        display: inline;
    }

    .last-post-verbose {
        display: none;
    }

    .author-verbose {
        display: none;
    }

    .post .author.author-concise {
        text-align: left;
    }

    .author-concise div {
        display: inline-block;
    }

    .breadcrumb-item {
        display: none;
    }

    .breadcrumb-item:before {
        display: none;
    }

    .breadcrumb-item:nth-last-child(2) {
        display: block;
    }
}

@media (min-width: 768px) {
    .last-post .author .avatar {
        display: none;
    }

    .author-concise {
        display: none;
    }
}