/*
* Globals
*/

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #555;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: noremal;
  color: #333;
}


/*
* Override Bootstrap's default container.
*/

@media (min-width: 1200px) {
  .container {
    width: 970px;
  }
}


/*
* Masthead for nav
*/

.blog-masthead {
  background-color: #428bca;
  -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
  box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
}

/* Nav links */
.blog-nav-item {
  position: relative;
  display: inline-block;
  padding: 10px;
  font-weight: 500;
  color: #cdddeb;
}
.blog-nav-item:hover,
.blog-nav-item:focus {
  color: #fff;
  text-decoration: none;
}

/* Active state gets a caret at the bottom */
.blog-nav .active {
  color: #fff;
}
.blog-nav .active:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -5px;
  vertical-align: middle;
  content: " ";
  border-right: 5px solid transparent;
  border-bottom: 5px solid;
  border-left: 5px solid transparent;
}


/*
* Blog name and description
*/

.blog-header {
  padding-top: 20px;
  padding-bottom: 20px;
}
.blog-title {
  margin-top: 30px;
  margin-bottom: 0;
  font-size: 60px;
  font-weight: noremal;
}
.blog-description {
  font-size: 20px;
  color: #999;
}


/*
* Main column and sidebar layout
*/

.blog-main {
  font-size: 18px;
  line-height: 1.5;
  margin: 0px;
}
.blog-sidebar {
  font-size: 18px;
  line-height: 1.5;
  margin: 0px;
}

/* Sidebar modules for boxing content */
.sidebar-module {
  padding: 15px;
  margin: 0 -15px 15px;
}
.sidebar-module-inset {
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
  margin-bottom: 0;
}

/* Pagination */
.pager {
  margin-bottom: 60px;
  text-align: left;
}
.pager > li > a {
  width: 140px;
  padding: 10px 20px;
  text-align: center;
  border-radius: 30px;
}

/*
* Blog posts
*/
.blog-post {
  display: block;
  margin-bottom: 30px;
  position: relative;
  text-align:left;
  /*border: 1px solid #888;*/
  border-bottom: 5px solid #eee;
}

.blog-post-content > h2, .blog-post-content > h3 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}
.blog-post-content > ul {
    padding-left: 1.3rem;
}
.blog-post-content > ul > li {
    padding-left: 0;
    list-style-type: disc;
}

.blog-post h4 + p {
  text-indent: 1em;
}
.blog-post h3 + p {
  text-indent: 1em;
}
.blog-post h2 + p {
  text-indent: 1em;
}
.blog-post h1 + p {
  text-indent: 1em;
}


.blog-post p {
  word-spacing: 0em;
  letter-spacing: 0em;
  line-height: 1.7em;
  margin-top: 1em;
}

.blog-post img,.blog-post iframe,.blog-post embed {
  max-width: 100%;
  border-radius: 5px;
}

.blog-post img.img-thumbnail {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: 50% 50%;

}

.blog-post code {
  width: 100%;
  white-space: pre;
  font-size: 1em;
  border-radius: 8px;
  border: 2px solid #ddd;
  padding: 3px;
  max-height: 500px;
  overflow:auto;
  overflow-y: scroll;
}

.blog-post pre {
  background: #eee;
  border-radius: 10px;
  margin: 0;
  border: 2px solid #ddd;
  margin: 0 10px 10px 0;
  padding: 3px;

}
.blog-post-banner {
  width: 100%;
}
.blog-post-title {
  margin-bottom: 5px;
  font-size: 30px;
  font-weight: bold;
}
.blog-post-meta {
  margin-bottom: 20px;
  color: #999;
  vertical-align: middle;
  line-height: 24px;
  height:32px;
  border-bottom: 2px solid #eee;
}
.blog-post-content {
  display: block;
  margin: 0px;
  width: 100%;
}
.blog-post-qrcode {
  float: right;
  padding: 0;
}

.githublink {

}

/*
* Footer
*/

.blog-footer {
  padding: 40px 0;
  color: #999;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 1px solid #e5e5e5;
}
.blog-footer p:last-child {
  margin-bottom: 0;
}

.sidebar-module div{
  font-size: 1em;
  width: 100%;
  margin: 0px;
  padding: 5px;
  display: block;
  border-bottom: 2px solid #eee;
}
.sidebar-module div h4{
  background: none;
}
.sidebar-module div#blogAbout {
  font-size: 0.85em;
}

.sidebar-module div#blogArchive {
  max-height: 500px;
  overflow-y: auto;
  font-size: 0.75em;
}
.sidebar-module div#blogArchive li{
  border-left: 5px solid #28a;
  /*border-bottom: 1px solid #28a;*/
  width: 100%;
  display: inline-block;
  margin: 2px;
  padding-left: 5px;
  line-height: 1em;
}
.sidebar-module div#blogArchive a{
  color: #248;
}

.sidebar-module div#blogArchive ol, .sidebar-module div#blogArchive ol ol {
  padding-left: 10px;
}

.sidebar-module div#blogArchive h2 {
  font-size: 1.1em;
  font-weight: bold;
}
.sidebar-module div#blogArchive h3 {
  font-size: 1em;
  font-weight: bold;
}

.sidebar-module div#blogSelected {
  max-height: 500px;
  overflow-y: auto;
  font-size: 0.75em;
}
.sidebar-module div#blogSelected li{
  /*border-bottom: 1px solid #28a;*/
  vertical-align: middle;
  text-indent: 0;
  display: inline-block;
  margin: 2px;
  margin-bottom: 1rem;
  padding-left: 5px;
  line-height: 2rem;

}


.sidebar-module div#blogSelected a {
  display: block;
  line-height: 1.3rem;
  color: #248;
  color: #fff;
}

.sidebar-module div#blogSelected ol, .sidebar-module div#blogSelected ol ol {
  padding-left: 10px;
}

.sidebar-module div#blogSelected h2 {
  font-size: 1.1em;
  font-weight: bold;
}
.sidebar-module div#blogSelected h3 {
  font-size: 1em;
  font-weight: bold;
}

a.btn-link {
  display: block;
  text-align: center;
  margin: 10px auto 10px auto;
}
iframe.blog-post-embed {
  display: block;
  margin: 10px auto 10px auto;
}
div.blog-post-embed {
  display: block;
  text-align: center;
}

.blogArchiveFull h1 {

}
.blogArchiveFull li a {
  display: block;
  background : #ddd;
  border: 1px solid #bbb;
  border-radius: 10px;
}


.social-links {
  display: block;
  font-size: 12px;
  font-weight: bold;
  line-height: 12px;
  vertical-align: middle;
  float: right;
}
.social-links .social-links-element {
  display: inline-block;
  font-size: 24px;
  margin: 2px;
}
.social-links .fa-facebook { color: #3b5998 }
.social-links .fa-twitter-square { color: #55acee }
.social-links .fa-reddit { color: #55acee }
.social-links .fa-envelope-square { color: #666 }
.social-links .fa-reddit  { color: #FF5700 }
