
/**
 * @file
 * CSS for Jeff Geerling's website.
 */

/* General Styles ----------------------------------------------------------- */
body {
  font-size: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 1em 0;
  padding: 0;
}

header, section, footer, article { /* Helpful for IE. */
  display: block;
}

p {
  margin: .8em 0;
  padding: 0;
  line-height: 1.58em;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.4em;
  font-weight: normal;
}

h1 {
  font-size: 2em;
  font-weight: bold;
}

h2 {
  font-size: 1.5em;
  color: #444;
  margin-bottom: .25em;
}

h2 a {
  text-decoration: none;
}

a {
  color: #000;
}

a:visited {
  color: #444;
}

a:hover, a:focus {
  color: #888;
}

li {
  margin: 0 0 .4em;
  line-height: 1.58em;
}

blockquote {
  margin: 1em 0 1em 1.5em;
  padding: .5em .5em .5em 1em;
  border-left: .25em solid #ccc;
}

textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95em;
  line-height: 1.4em;
}

input:not([type=submit]) {
  font-size: 1em;
  background-color: #fff;
}

textarea {
  background-color: #fff;
}

hr {
  display: block;
  background-color: #aaa;
  border: 0;
  height: 1px;
}

img {
  max-width: 100%;
}

/* Code */
pre,
code {
  font-family: "Lucida Console", "Consolas", "Courier New", monospace;
  background-color: #eee;
  padding: 5px 5px;
  font-size: .85em;
  line-height: 1.4em;
}

pre {
  display: block;
  white-space: pre;
  margin: 1em 0px 1em;
}

pre,
code {
  background-color: #eee;
  padding: 5px 5px;
  font-size: .85em;
  line-height: 1.4em;
}

div.codeblock {
  padding: 5px;
  border: 1px solid #ccc;
  background-color: #eee;
}

pre,
.codeblock {
  overflow-x: scroll;
}

pre .codeblock {
  border: none;
  padding: 0;
}

.codeblock code {
  padding: 0;
  font-size: .85em;
}

pre > code {
  padding: 0;
  font-size: 1em;
}

/* Tables */
table {
  border: 0;
  border-spacing: 0;
  font-size: 0.857em;
  margin: 10px 0;
  width: 100%;
}

table table {
  font-size: 1em;
}

table tr th {
  background: #757575;
  background: rgba(0, 0, 0, 0.51);
  border-bottom-style: none;
}

table tr th,
table tr th a,
table tr th a:hover {
  color: #FFF;
  font-weight: bold;
}

table tbody tr th {
  vertical-align: top;
}

tr td,
tr th {
  padding: 4px 9px;
  border: 1px solid #fff;
  text-align: left; /* LTR */
  line-height: 1.58em;
}

th code {
  color: #444;
}

tr.odd {
  background: #e4e4e4;
  background: rgba(0, 0, 0, 0.105);
}

tr,
tr.even {
  background: #efefef;
  background: rgba(0, 0, 0, 0.063);
}

table ul.links {
  margin: 0;
  padding: 0;
  font-size: 1em;
}

table ul.links li {
  padding: 0 1em 0 0;
}

/* Layout Styles ------------------------------------------------------------ */
.layout-container {
  font-size: 1em;
  margin: 0 auto 1em;
  padding: 1.5em;
  overflow-y: auto;
  width: 920px;
}

header {
  margin-bottom: 1em;
}

.page-title {
  margin: 0;
}

.site-name {
  border-bottom: 1px solid #ccc;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 3.5em;
  line-height: .7em;
  margin-top: .15em;
}

.site-name a {
  color: #000;
  text-decoration: none;
}

.yt-embed {
  max-width: 650px;
  margin: 0 auto;
}

/* Footer. */
.region-footer {
  clear: both;
  color: #444;
  font-size: .85em;
  margin: 1.5em 0 0;
  padding-top: 1.5em;
  text-align: center;
}

.region-footer a {
  color: #222;
}

.region-footer .form-item {
  display: inline-block;
  float: none;
  margin: 0 auto;
}

.region-footer p:first-child {
  margin-top: 0;
}

.region-footer p:last-child {
  margin-bottom: 0;
}

/* Search form. */
#views-exposed-form-search-page,
#views-exposed-form-search-page .form-actions {
  display: inline-block;
}

#views-exposed-form-search-page label {
  display: none;
}

/* Navigation --------------------------------------------------------------- */
nav.block-menu {
  margin: 2em 0 1em;
}

nav.block-menu ul {
  list-style-type: none;
  margin: 0 0 .75em;
  padding: 0 0 .8em;
  text-align: left;
  width: 100%;
}

nav.block-menu li,
nav.page-navigation li {
  display: inline;
}

nav.block-menu li a,
nav.page-navigation li a {
  border-radius: 2em;
  color: #444;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 90%;
  margin: 0 .1em;
  padding: .5em 1em;
  text-align: center;
  text-decoration: none;
}

nav.block-menu li a:hover,
nav.page-navigation li a:hover {
  background-color: #ddd;
  color: #444;
}

nav.block-menu li a.is-active {
  background-color: #444;
  color: #fff;
}

/* System Styles ------------------------------------------------------------ */

/* Local tasks */
ul.primary {
  padding: 0 0 0 1em;
  margin: 5px;
}

.tabs ul.tabs {
  border-bottom: 1px solid #000;
}

.tabs ul li {
  margin: 0;
  padding: 0;
}

.tabs ul li a {
  display: inline-block;
  padding: .25em 1em;
  margin: 0 .25em -1px 0;
  border-style: solid solid none;
  border-width: 1px;
  height: auto;
}

.tabs a.is-active,
.tabs ul li a:hover {
  color: #fff;
  border-color: #000;
  background-color: #222;
}

.feed-icon img,
.file-icon {
  padding: 0;
  border: none;
}

/* Drupal Pager Styles */
.pager {
  font-family: Helvetica, Arial, sans-serif;
  clear: both;
  margin: 1em 0;
  color: #555;
  white-space: nowrap;
}

.pager ul {
  padding: 0;
}

.pager li {
  padding: .15em;
  margin: 0;
}

.pager li a {
  color: #000;
  padding: .6em 1em .5em;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
}

.pager .is-active li a {
  background-color: #eee;
  border: 1px solid #eee;
}

.pager a:hover {
  background-color: #eee;
  border-color: #777;
}

/* Wysiwyg/editor styles */
.rtecenter {
  text-align: center;
}

/* General Node Styles ------------------------------------------------------ */
/* Header */
.node header h2 a {
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
}

/* Submitted info */
.node__submitted,
.comment__submitted {
  color: #777;
  margin: 1em 0;
  font-size: .9em;
}

/* Footer */
.node footer {
  margin: 0 0 1em;
}

.comment footer {
  margin-bottom: .5em;
}

/* Links */
ul.links,
ul.links.inline {
  display: inline-block;
}

ul.links li {
  padding-left: 0;
}

.node .node-readmore a {
  font-weight: bold;
}

.node .new {
  color: #a21111;
}

/* Responsive Styles -------------------------------------------------------- */
@media screen and (max-width: 800px) {
  img {
    max-width: 95%;
    height: auto;
  }

  table.mobile-stack td {
    display: table-row;
  }

  .layout-container {
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .site-name {
    line-height: 1em;
    font-size: 2.5em;
    margin-top: 0;
    text-align: center;
  }

  .page-title {
    width: 95%;
    margin: 0 auto;
  }

  nav.block-menu ul {
    text-align: center;
  }

  #block-jeffgeerling-system-main > .block-content {
    float: none;
    margin: 0 auto;
    width: 95%;
  }

  .pager .pager__item {
    display: none;
  }

  .pager .pager__item--previous,
  .pager .pager__item--next {
    display: inline;
  }
}
