/* TODO come up with rem / em font-size strategy */
/* use css-grid and deprecate bootstrap layout */

/* site-wide styles */
body {
  padding-bottom: 70px;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}

/* fonts styling */
p {
  letter-spacing: -.003em;
  line-height: 1.58;
  padding-top: 10px;
  font-family : Georgia,Cambria,"Times New Roman",Times,serif;
}
dd p { font-size: 14px; }
dd li { font-size: 14px; }
.post p { font-size: 14px; }
.post li { font-size: 14px; }
.post img {
  display: block;
  margin: 10px auto;
}

@media (min-width: 768px) {
  dd p { font-size: 18px; }
  dd li { font-size: 18px; }
  .post p { font-size: 18px; }
}

@media (min-width: 992px) {
  dd p { font-size: 21px; }
  dd li { font-size: 21px; }
  .post p { font-size: 21px; }
}

.center { text-align: center; }

.right { text-align: right; }

/* page-header is the blog's title */
/* TODO refactor page-header partial to use .page-header class on h1 and h2 */
.page-header {
  margin-top: 0px;
  font-style: italic;
}
@media (min-width: 768px) {
  .page-header h1, .page-header h2 {
    font-size: 60px;
  }
}
.page-header h1 > a:link, .page-header h2 > a:link {
  text-decoration: none;
  color: #111;
}
.page-header h1 > a:visited, .page-header h2 > a:visited {
  text-decoration: none;
  color: #111;
}
.page-header h1 > a:hover, .page-header h2 > a:hover {
  color: #666;
}

/* post styling */
.post {
}

/* post-title should be used on anchors */
.post-title {
  font-size: 30px;
}
.post-title:link, .post-title:visited {
  text-decoration: none;
  color: #111;
}
.post-title:hover {
  color: #666;
}

/* post section headers */
.post h2 {
  font-size: 1.8em;
  font-weight: bold;
}
.post h3 {
  font-size: 1.6em;
  font-weight: bold;
}
.post h4 {
  font-size: 1.4em;
  font-weight: bold;
}

.well { padding: 10px; }
.well h3 {
  margin: 0;
}

code { font-size: 14px; }

li.needs_top_padding { padding-top: 15px; }

.site-footer {
  margin: 0 auto 0 auto;
  padding: 5px 0;
  background-color: #F5F5F5;
  border: solid #ccc 2px;
  border-radius: 20px;
}

.navbar-inverse .navbar-brand { color: #eee; }
.navbar-inverse .navbar-nav>li>a { color: #ddd; }
i.fa, i.fab { font-size: 1.5em; }
.nav-item-icon {
  font-size: 1.5em;
  padding: 0 5px;
}

img.feedly-icon {
  width: 25;
  height: 25;
  margin: -6px 0 0 -4px;
}
img {
  text-align: right;
  max-width: 100%;
  max-height: 400px;
}
.thumbnail img { max-height: 400px; }
.thumbnail img.applogo { max-height: 150px; }
img.disabled { opacity: 0.3; }
.storebtn { max-width: 140px; }
.flexRow {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
.googleAnchor {
  flex-grow: 1;
  text-align: center;
}
.appleAnchor {
  flex-grow: 1;
  text-align: center;
}

/* sidebar styling */
.sidebar { overflow-x: hidden; }
.sidebar li {
  font-size: 14px;
  border-top: solid 1px lightgrey;
}
.sidebar a { color: rgb(129, 19, 19); }

span.caption {
  font-style: italic;
  font-size: 1.5em;
}

/* pagination styling */
.pager { display: flex; }
.pager div a, form button {
  font-size: 1.2em;
  font-weight: bold;
  background-color: #eee;
  border-radius: 10px;
  border: 2px solid rgb(115, 65, 60);
  color: rgb(129, 19, 19);
  padding: 0.6em;
  text-decoration: none;
  transition-duration: 0.4s;
}
.pager div a:hover, form button:hover {
  background-color: rgb(129, 19, 19);
  color: white;
}
.pager div.active a {
  background-color: rgb(249, 188, 84);
}

/* social media post sharing links */
.share-btn {
  display: inline-block;
  padding: 5px;
  border-radius: 5px;
  font-size: 1.1em;
  font-family: Arial, sans-serif;
  box-shadow: 0px 2px 1px silver;
}
.share-btn.twitter {
  background: transparent linear-gradient(#54C5FE, #5C95B6);
}
.share-btn.linkedin {
  background: transparent linear-gradient(#54C5FE, #287bbc);
}
.share-btn a { color: white; }
.share-btn a:hover { text-decoration: none; }
.share-btn:not(:first-child) { margin-left: 10px; }

/* code blocks */
figure.highlight > pre {
  padding: 5px;
}

figure.highlight pre {
  margin: 0;
  border: none;
}

form {
  display: grid;
}
form.newsletter {
  margin: 10px auto;
  padding: 15px;
  max-width: 600px;
  background-color: rgba(255,253,163,0.3);
  border: 1px solid #ccc900;
  border-radius: 5px;
}
div.grid {
  display: grid;
}
form.newsletter input[name="email"] {
  grid-column: 1 / 3;
  border-radius: 5px;
  color: #333;
}
form.newsletter input[type="submit"] {
  grid-column: 3;
}
