/**
 * Default: hide modal
 */
.modal {
    display: none;
}


img {
    max-width: 100%;
}

div, p {
    overflow-wrap: break-word;
}


/**
 * Iframe
 */
iframe {
    border: none;
}


/**
 * Moderator posts
 */

.moderator {
    margin: -22px -20px -21px -20px;
    padding: 22px 20px 21px 20px;
    border-radius: 4px;
}


/**
 * Avatar size
 */

.avatar-small {
    width: 20px;
}

.avatar-medium {
    width: 60px;
}

.avatar-large {
    width: 120px;
}


/**
 * Social networks
 */

.footer {
    padding-top: 0px;
    z-index: 100;
    position: relative;
}

.footer .container {
    position: relative;
    overflow: hidden;
}


/**
 * Popover
 */

.popover {
    max-width: 100%;
}

.popover .thumbnail {
    width: 90px;
    height: 90px;
}


/**
 * Columns
 */

.columns {
    -moz-column-count: 5;
    -webkit-column-count: 5;
    column-count : 5;
}


/**
 * Go back to top
 */

#up {
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 42px;
    line-height: 42px;
    z-index: 1000;
    opacity: 0.1;
}


/**
 * Quote
 */

.blockquote {
    padding: 10px 20px;
    border-left: 5px solid #eee;
}


/**
 * Sidebar
 */

#sidebar .navbar-brand,
#sidebar .navbar-brand img {
    max-width: 75%;
}

@media (min-width: 992px) {
    #sidebar {
        text-align: center;
        position: fixed;
        top: 0;
        left: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 17rem;
        height: 100vh;
        z-index: 1000;
        overflow: auto;
    }

    #sidebar .navbar-brand {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        margin: 0 auto;
        padding: 3rem 1rem;
        max-width: 100%;
    }

    #sidebar .navbar-brand img {
        max-width: 100%;
    }

    #sidebar .navbar-collapse {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-flex: 0;
        -ms-flex-positive: 0;
        flex-grow: 0;
        width: 100%;
        margin-bottom: auto;
    }
    #sidebar .navbar-collapse .navbar-nav {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 100%;
    }

    #sidebar .navbar-collapse .navbar-nav .nav-item,
    #sidebar .navbar-collapse .navbar-nav .nav-item .nav-link {
        display: block;
    }

    #sidebar .nav-secondary .nav-link {
        font-size: 80%;
    }

    #content {
        margin-top: 1rem;
        padding-left: 19rem;
        padding-right: 2rem;
    }

    #sidebar .nav-divider {
        padding-bottom: 1.5rem;
        margin-top: 1.5rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    #sidebar .form-inline {
        padding: 2rem 0;
    }
}

#sidebar .nav-divider {
    border-top: 1px solid #333;
}


/**
 * Forum header
 */

header {
    height: 14.5rem;
    background-size: cover;
    background-position: center;
}

header h1, header .headline {
    background: rgba(0, 0, 0, 0.6);
    position: relative;
}

header .headline a {
    color: transparent;
    background-image: url(/img/brand.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: rotate(-15deg) translateX(30px) translateY(25px);
    position: absolute;
    bottom: 0;
    right: 0;
}
