html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: #FCFCFC;
}

header {
    padding-top: 8px;
}

.content {
    position: relative;
    padding-bottom: 60px;
    flex: 1 0 auto;
}

footer {
    width: 100%;
    padding: 15px 10px;
    background-color: #f5f5f5;
    flex-shrink: 0;
}

.content .row {
    margin: 0;
}

#results {
    padding: 0 10px;
    margin-top: -30px;
}

#results nav {
    width: 100%;
    min-width: 300px;
}

.counter-columns {
    width: 100%;
}

#results .badges {
    margin: 15px 0;
    flex: 0 0 100%;
}

#results .filter button {
    margin-bottom: 5px;
}

#results .badges .filter:last-child {
    margin-bottom: 0;
}

#options_form {
    margin-bottom: 0;
}

#nav-heroes.show {
    display: flex;
    flex-wrap: wrap;
}

#hero-select-wrapper {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 0 auto;
    padding: 10px 10px 0 10px;
}

/* Highlight filter buttons */
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
    background-color: #1e4b7b !important;
}

#counter-comment {
    padding-left: 10px;
}

.inline {
    display: inline-block;
}

.counters summary {
    color: green;
}

.countered-by summary {
    color: red;
}

#results details img {
    max-height: 32px;
    max-width: 32px;
    vertical-align: bottom;
    margin: 0 5px;
}

.img-sample {
    max-height: 170px;
    max-width: 100%;
    object-fit: contain;
}

.ads-topbar {
    width: 320px;
    height: 100px;
}

.selectize-input .item {
    background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)) !important;
    background-color: #0D6EFDFF !important;
}

.content-expander {
    font-size: 1.7rem;
    margin-bottom: .5rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

/* responsive styles */

@media (min-width: 500px) {
    .ads-topbar {
        width: 468px;
        height: 60px;
    }
}

@media (min-width: 800px) {
    .ads-topbar {
        width: 728px;
        height: 90px;
    }
}

@media (min-width: 1200px) {
    .ads-topbar {
        width: 970px;
        height: 90px;
    }
}

@media (max-width: 800px) {
    header {
        margin-bottom: 10px !important;
    }

    #results {
        padding: 0;
        margin-top: 10px;
    }

    #results nav {
        padding: 0 5px;
    }

    #results .col {
        flex-basis: 100%;
    }

    .tab-content {
        margin-top: 6px;
    }

    .collapsing-col {
        padding: 0 8px;
    }

    .content-expander {
        padding: 7px 9px;
        /*box-shadow: 0 1px 1px rgba(0,0,0,.05);*/
        box-shadow: 0 1px 1px rgba(0, 0, 0, .05), -1px -1px 14px rgba(0, 0, 0, .05);
        background-color: #fff;
        border: 1px solid #ddd;
    }

    .content-expander:after {
        content: "\2212";
        color: #777;
        font-weight: bold;
        float: right;
        margin-left: 5px;
    }

    .content-expander.collapsed:after {
        content: '\002B';
    }

    #results .badges {
        display: none;
    }

    .selectize-dropdown {
        position: relative;
        top: 0 !important;
        margin-bottom: 10px;
    }

    .selectize-dropdown-content {
        max-height: 120px;
    }
}
