@charset "UTF-8";

$foreground: #494545;
$background: #fafaf8;
$blockbackground: #efefef;

body {
    color: $foreground;
    background: $background;
    font-size: 0.95rem;
    line-height: 1.6;
}

h1 {
    font-size: 2.0rem;
    border-bottom: solid 3px;
    padding-bottom: 1rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    border-bottom: solid 2px;
    padding: 0.7rem 0;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 0.75rem;
}

.main > ul, .main > ol, .main > img {
    margin: 1rem 0;
}

ul, ol {
    padding-inline-start: 1.5rem;
}

.navbar-brand img {
    padding: 0;
}

.navbar .nav-item .nav-link {
    font-size: 1.1rem;
    padding: 0 1rem;
    padding-bottom: 0.2rem;
    margin: 0;
    margin-top: 0.7rem;
}

nav .navbar-nav {
    padding: 0
}

table, pre, blockquote {
    background: $blockbackground;
    border-radius: 0.5rem;
    padding: 1rem;
    display: block;
    margin: 1rem auto;
}

th {
    border-bottom: solid 1px;
    padding: 0.3rem 0;
    padding-right: 2rem;
}

td {
    padding-right: 2rem;
}

a::before, a::after, code::before, code::after, kbd::before, kbd::after {
    content: ' ';
    font-size: 0;
    word-spacing: 0.2rem;
}

pre code {
    padding: 0;
}

footer {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2.5rem 0;
    color: #e9ecef;
    background: #343a40;
}

img {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.title-row {
    align-items: center;
}

.authordiv {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    line-height: 1.2rem;
}

.authordiv img.author-icon {
    // display: inline-block;
    width: 50px;
    border-radius: 50%;
    padding: 0;
    margin-right: 1rem;
}

.authordiv .date {
    color: lighten($foreground, 40%);
}

.authordiv .lastmoddate {
    color: lighten($foreground, 30%);
}

.authordiv .githubsource {
    color: lighten($foreground, 30%);
}

ins {
    display: inline-block;
    padding: 0.8rem;
    text-decoration: none;
    border: solid #AAA 1px;
}

.sidebar.list-group {
    padding-left: 15px;
}

.sidebar h4 {
}

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

.sidebar address {
    margin-bottom: 0;
}

.pagination {
    width: 100%;
}

.pagination > li:first-child {
    margin-left: auto;
}

.pagination > li:last-child {
    margin-right: auto;
}

ul.tag_box {
    padding-left: 0;
}

ul.tag_box > li {
    display: inline;
    margin: 0.2rem;
}

ul.tag_box > li:first-child {
    margin-left: 0;
}

.table a {
    word-break: break-word;
}

blockquote {
    position: relative;
    padding: 22px 1rem 1rem 60px;
    box-sizing: border-box;
    font-style: italic;
}

blockquote:before{
    display: inline-block;
    position: absolute;
    top: 17px;
    left: 15px;
    content: "\f10d";
    font-family: FontAwesome;
    color: darken($blockbackground, 20%);
    font-size: 30px;
    font-weight: 900;
}

blockquote cite {
    display: block;
    text-align: right;
    color: #888888;
    font-size: 0.9em;
}
