body {
    font-size: 1.1rem;
}

pre {
    display: block;
    padding: 10px;
    margin: 0 0 10.5px;
    font-size: 14px;
    line-height: 1.42857143;
    word-break: break-all;
    word-wrap: break-word;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 0;
    overflow: auto;
}

code {
    padding: .2em .4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27,31,35,.05);
    border-radius: 6px;
}

pre code {
    padding: 0;
    font-size: inherit;
    background-color: #f5f5f5;
    border-radius: 0;
}

img {
    max-width: 100%;
    height: auto;
}

blockquote {
    padding: 10.5px 21px;
    margin: 0 0 21px;
    border-left: 5px solid #e6e6e6;
}

#main-header {
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin: 10px;
}

#section-tags {
    text-align: center;
}

#section-tags a.label {
    margin-top: 5px;
}

#main {
    margin-top: 30px;
    word-break: break-word;
}

#home-posts {
    margin-bottom: 25px;
}

#post-holder {
    margin: 1rem 0;
}

#post-holder > nav {
    border: 1px solid #eeeeee;
    --box-shadow-color: #EEEEF8;
    box-shadow: 0.2rem 0.3rem var(--box-shadow-color);
    margin: 0 0 1.5rem 0;
}

#post-holder > nav > ul {
    list-style-type: none;
    padding: 0.5rem 0.3rem;
}

#post-holder nav li {
    padding: 2.5px;
}

#sidebar .sidebar-container {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

#sidebar .sidebar-container:first-child {
    margin-top: 0;
}

.ad-inner {
    display: inline-block;
}

.post-tags-list .ui.image.label {
    margin: .25rem .5rem .25rem 0;
}

#bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: block;
    background-color: #f8f9fa!important;
}

#bottom-nav table {
    width: 100%;
}

#bottom-nav table td {
    padding: 10px;
}

.top-menu-item {
    display: none!important;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before{
    display:block;content:"";
}

.embed-responsive .embed-responsive-item {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive-16by9::before{
    padding-top:56.25%;
}

/* carousel: https://stackoverflow.com/questions/21515042/scrolling-a-flexbox-with-overflowing-content */

.carousel-outer {
    flex: 1;
    display: flex;
    overflow: auto;
    padding: 0.1rem 0.1rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.carousel-outer::-webkit-scrollbar {
    display: none;
}

.carousel {
    display: flex;
    min-height: min-content;
}

.carousel > div.carousel-item {
    margin-left: 10px;
    padding-left: 1rem;
}

.carousel > div.carousel-item > .card {
    width: 200px;
}

.carousel > div.carousel-item > .card > .image {
    line-height: 0;
}

.carousel > div.carousel-item > .card > .image img {
    height: 100px;
    width: 200px;
}

.carousel > div.carousel-item > .card > .content .header {
    font-size: inherit;
}

.carousel > div.carousel-item > .card > .content .meta {
    font-size: 0.7rem;
    margin-top: 0.3rem;
}

.carousel > div.carousel-item > .card > .content .extra .ui.label:first-child {
    margin-left: 0.14em;
}

.carousel > div.carousel-item:first-child {
    margin-left: 0;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block!important;
    }
    .top-menu-item {
        display: none!important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none!important;
    }
    .top-menu-item {
        display: flex!important;
    }
}

@media only screen and (max-width: 767px) {
    #sidebar {
        margin-bottom: 75px!important;
    }
}

.post-item-image {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}