/* SCSS RGB */
/* Bootstrap Override */
.col-md-auto {
  min-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  margin: 10px 0;
}

h1 a, a h1 {
  color: rgb(186, 61, 2);
  text-decoration: none;
}

h1#recent-posts,
#search-content h2 {
  border-bottom: 1px solid rgb(179, 28, 15);
  color: rgb(162, 27, 32);
}

.bg-light {
  background-color: rgb(237, 218, 161) !important;
}

a {
  text-decoration: none;
  color: rgb(0, 98, 117);
}

a:hover {
  color: rgb(8, 148, 151);
}

/* Base */
:root {
  --borderRadius: 4px;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: rgb(248, 242, 221);
  color: rgb(0, 18, 26);
}

footer {
  background-color: rgb(237, 218, 161);
  color: rgb(0, 18, 26);
  align-items: center;
  display: flex;
  margin: 15px 0 0 0;
  min-height: 71px;
  padding: 10px;
}

footer #footer-info {
  margin-left: auto;
}

footer {
  padding-right: 10px;
}

footer a {
  color: rgb(0, 98, 117);
}

footer a:hover {
  color: rgb(8, 148, 151);
}

/* Navbar */
.navbar {
  display: block; /* Fix for certain browsers. */
  /* Override to use light color mode, with dark navbar background */
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  --bs-navbar-toggler-border-color: $link-color;
  --bs-navbar-toggler-focus-width: 0rem;
}

#navbarSupportedContent {
  background: rgb(240, 156, 0);
  padding-left: 10px;
  padding-bottom: 5px;
  border-radius: 10px;
  z-index: 1;
}

.navbar-toggler:focus {
  box-shadow: rgb(0, 98, 117) 0 0 0 var(--bs-navbar-toggler-focus-width);
}

.logo {
  max-width: 100%;
  max-height: 153px;
}

.logo-container {
  max-width: 81%;
  margin-right: 4px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-submenu:hover > a,
.dropdown-submenu:focus > a {
  color: rgb(237, 218, 161);
  text-decoration: none;
  background-color: rgb(8, 148, 151);
  background-image: -moz-linear-gradient(top, rgb(0, 18, 26), rgb(0, 98, 117));
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgb(0, 18, 26)), to(rgb(0, 98, 117)));
  background-image: -webkit-linear-gradient(top, rgb(0, 18, 26), rgb(0, 98, 117));
  background-image: -o-linear-gradient(top, rgb(0, 18, 26), rgb(0, 98, 117));
  background-image: linear-gradient(to bottom, rgb(0, 18, 26), rgb(0, 98, 117));
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff0088cc", endColorstr="#ff0077b3", GradientType=0);
}

.nav-link {
  color: rgb(0, 98, 117);
}

a.nav-link:hover {
  color: rgb(0, 98, 117);
}

.sponsor-button {
  font-family: "Barlow-Regular", "Gill Sans", sans-serif;
  font-size: medium;
  border-radius: 8px;
  color: rgb(0, 18, 26);
  background-color: rgb(186, 61, 2);
  display: block;
  width: 200px;
  text-align: center;
  margin-right: 10px;
  padding-bottom: 5px;
  height: 34px;
  margin-top: 3px;
}

.octicon-heart {
  margin-top: 7px;
  height: 20px;
  display: inline-block;
  overflow: visible !important;
  vertical-align: text-bottom;
  fill: rgb(0, 18, 26);
  transform-origin: center;
  margin-right: 3px;
}

.octicon-heart:hover {
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.13, 2);
  transform: scale(1.5);
}

.patreon-button {
  background-color: rgb(186, 61, 2);
  padding-top: 5px;
  border-radius: 8px;
  height: 33px;
  margin-top: 3px;
  width: 200px;
  text-align: center;
  font-family: "Barlow-Regular", "Gill Sans", sans-serif;
  color: rgb(186, 61, 2);
}

.patreon-logo {
  transform-origin: center;
}

.patreon-logo:hover {
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.13, 2);
  transform: scale(1.3);
}

/* Search */
.search-main {
  padding-top: 9px;
}
.search-main input {
  border-radius: 4px;
}
.search-main .stork-output-visible {
  background: rgb(0, 18, 26);
  margin-top: 43px;
  margin-left: 1px;
  margin-right: 1px;
  border-radius: 10px;
}
.search-main .stork-result.selected {
  background: rgb(186, 61, 2);
}
.search-main .stork-title {
  color: rgb(186, 61, 2);
}
.search-main .stork-excerpt {
  color: rgb(0, 18, 26);
}
.search-main .stork-highlight {
  background-color: rgb(186, 61, 2);
  color: rgb(186, 61, 2);
}
.search-main .stork-close-button {
  position: static;
}
.search-main .stork-attribution a:link, .search-main .stork-attribution a:visited {
  color: rgb(0, 98, 117);
}

/* Tags */
h2.tag-name {
  color: rgb(202, 102, 2);
  border-bottom: 1px solid rgb(179, 28, 15);
  margin-left: 25px;
  padding-top: 10px;
}

.list-of-tags {
  list-style: none;
  margin: 10px;
  overflow: hidden;
  padding-left: 20px;
  font-family: "Barlow-Light", "Gill Sans", sans-serif;
}

.list-of-tags li {
  float: left;
  line-height: 28px;
  margin: 0;
}

.list-of-tags a {
  background: rgb(186, 61, 2);
  border-radius: var(--borderRadius);
  color: rgb(0, 18, 26);
  margin: 2px;
  padding: 3px 6px;
  text-decoration: none;
}

.list-of-tags a:hover {
  color: rgb(0, 98, 117);
}

.list-of-tags .selected a {
  background: rgb(237, 218, 161);
}

.tags-in-article li {
  float: none;
  line-height: 28px;
}

ul.list-articles-under-tag-name {
  list-style: none outside none;
  margin: 0 0 10px 25px;
}

.tags-content.filtered .tag-group.filter-match {
  display: block;
}

.tags-content.filtered .tag-group:not(.filter-match) {
  display: none;
}

.article-title-under-tag-name {
  font-size: 1.3rem;
  font-family: "JetBrainsMono-Light", "Andale Mono", monospace;
}

.article-under-tag-name time {
  font-family: "Barlow-Light", "Gill Sans", sans-serif;
  color: rgb(0, 98, 117);
  font-size: 0.8rem;
  margin-left: 10px;
}

/* Content */
.content {
  background-color: rgb(248, 242, 221);
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Article */
.page-header {
  color: rgb(0, 18, 26);
  border-bottom: 2px solid rgb(0, 18, 26);
  margin: 10px 0 30px 0;
  width: 100%;
}

.page-header h1 {
  border: none;
  line-height: 1em;
}

.post-info {
  color: rgb(0, 98, 117);
  font-size: 0.8rem;
}

.post-info a {
  color: rgb(0, 18, 26);
}

.article-content {
  text-align: left;
  font-size: 1.05rem;
  max-width: 100%;
}

.article-content p {
  margin: 0 0 20px 0;
}

.article-content a {
  color: rgb(0, 98, 117);
}

.article-content ul:not(.related-posts-list):not(.neighbors) {
  font-size: inherit;
  list-style-type: disc;
}

.article-content ul.related-posts-list {
  list-style-type: square;
}

/* Code */
pre {
  padding: 9px;
}

pre code {
  color: inherit;
  white-space: pre-wrap;
  background-color: transparent;
  border: 0;
  padding: 0;
}

code {
  color: rgb(186, 61, 2);
  padding: 2px 4px;
  white-space: nowrap;
  background-color: rgb(248, 242, 221);
  border: 1px solid rgb(186, 61, 2);
}

.code-highlighttable pre {
  margin-bottom: 0;
}

.code-highlight {
  max-width: 100%;
}

/* Recent Posts and Search Results */
ol#posts-list {
  padding-left: 1rem;
  padding-top: 1rem;
}

ol#posts-list .recent-post-summary {
  font-size: 1rem;
  padding-top: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(186, 61, 2);
}

ol#posts-list .recent-post-summary p {
  margin-bottom: 0;
}

.search-article-summary {
  padding-top: 6px;
}

ol#posts-list header h4, .search-article-title h4 {
  border-bottom: 1px dotted rgb(186, 61, 2);
}

.read-more {
  font-size: 0.8rem;
  float: right;
  margin-right: 15px;
}

.recent-post-list {
  background-color: rgb(248, 242, 221);
  padding: 15px;
  border-radius: 8px;
  margin-top: 30px;
}

.recent-posts-article {
  border-bottom: 1px dotted rgb(186, 61, 2);
  overflow: auto;
  padding: 0.3rem 0.2rem;
}

.featured_article_content {
  font-size: 1.2em;
}

.recent-posts-article .post_info {
  text-align: left;
}

.recent-posts-article h5 {
  font-size: 1.2rem;
}

.recent-posts-article a {
  color: rgb(0, 18, 26);
}

.recent-posts p {
  font-size: 1rem;
  margin-top: 10px;
  margin-right: 10px;
  display: inline-block;
}

.recent-posts-content, .search-content {
  border-bottom: 2px solid rgb(186, 61, 2);
}

.recent-posts-content a {
  color: rgb(0, 18, 26);
}

/* Neighbors */
ul.neighbors {
  padding-left: 0;
}

ul.neighbors .previous-article,
ul.neighbors .next-article {
  list-style: none;
  margin-left: 0;
}

/* Table style including GitHub code rendering */
table {
  width: 100%;
  margin-bottom: 10px;
}

table.code-highlighttable tr td:first-child {
  width: 4rem;
}

table.code-highlighttable tr td:first-child pre {
  text-align: end;
}

/* Archives */
.archive-year {
  padding-top: 8px;
  padding-bottom: 15px;
}

.archive-year a {
  border-bottom: 3px solid rgb(0, 98, 117);
}

.archive-article-list {
  border-bottom: 1px dotted rgb(0, 18, 26);
  padding-top: 20px;
}

.archive-article-list .list-group-item {
  border-bottom: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding-bottom: 3px;
}

.archive-article-list .list-group-item .archive-article-title {
  font-size: 1.3rem;
}

.archive-article-list .list-group-item time {
  font-weight: normal;
  color: rgb(0, 98, 117);
  font-size: 0.9rem;
}

.archive-article-list .list-group-item .archive-post-summary {
  color: rgb(0, 98, 117);
}

/* Social links in footer */
#social-link {
  height: 30px;
}

#feed-link {
  padding-left: 5px;
}

/* Gallery */
@media (max-width: 767px) {
  .gallery .thumbs img {
    width: 32%;
    overflow: hidden;
    height: auto;
  }
}
.gallery .image-caption {
  font-weight: normal;
  background-color: rgb(186, 61, 2);
  margin-top: 3px;
  padding: 0.2em;
}
.gallery .thumbs picture {
  cursor: pointer;
}
.gallery .featured-image picture:not(.picked), .gallery .caption .image-caption:not(.picked) {
  display: none;
}
.gallery .featured-image picture.picked:nth-of-type(n+2) {
  display: none; /* safety */
}
.gallery .img-thumbnail {
  border-color: rgb(186, 61, 2);
  background-color: rgb(186, 61, 2);
}
.gallery .featured-image img {
  border: 1px solid rgb(186, 61, 2);
  padding: 3px;
  background-color: rgb(186, 61, 2);
}

/* Inline image */
.inline-image .image-caption {
  font-weight: normal;
  background-color: rgb(186, 61, 2);
  margin-top: 3px;
  padding: 0.2em;
}
.inline-image .inline-featured-image img {
  border: 1px solid rgb(186, 61, 2);
  padding: 3px;
  background-color: rgb(186, 61, 2);
}