* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* The Basics */

body {
  background: #fff;
  margin-bottom: 18px;
  text-rendering: optimizeLegibility;
}

body, input {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: #222;
}

.serif {
  font-family: "PT Serif", Georgia, Times, "Times New Roman", serif;
}

.text-muted {
  color: #999;
}

.text-center {
  text-align: center;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.1;
}

h1, h2, h3 {
  margin-top: 48px;
  margin-bottom: 10.5px
}

h4, h5, h6 {
  margin-top: 10.5px;
  margin-bottom: 10.5px
}

h1 {
  font-size: 39px;
  margin-top: 64px;
  margin-bottom: 40px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 26px;
}

h4 {
  font-size: 19px
}

p {
  margin-bottom: 16px;
}

code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 80%;
}

p code, li code {
  background-color: #f0f0f0;
  padding: 2px 4px;
  color: #c7254e;
}

blockquote {
  color: #6f6f6f;
  padding: 10.5px 21px;
  margin: 0 0 21px;
  border-left: 1px solid #ddd;
}

blockquote p {
  font-style: italic;
}

a {
  text-decoration: none;
  color: #008cba;
}

a:hover {
  text-decoration: underline;
  color: #00526e;
}

hr {
  margin-top: 21px;
  margin-bottom: 21px;
  height: 0;
  border: 0;
  border-top: 1px solid #ddd
}

nav ol {
  margin: 0;
  padding: 0;
}

nav {
  background-color: #383838;
  border-bottom: #222;
  margin-bottom: 20px;
}

nav ol a, nav ol span {
  display: block;
  padding: 10px 16px;
  line-height: 20px;
  height: 40px;
  color: #ccc;
}

nav ol a:hover, nav ol a.active, nav ol span.active {
  background-color: #272727;
  color: #ccc;
  text-decoration: none;
}

ol, ul {
  margin-bottom: 1em;
  margin-left: 1.75em;
}

li+li {
  margin-top: 0.75em;
}

li p {
  margin-bottom: 1.5em;
}

strong, b {
  font-weight: 600;
}

/* Grid */


/* Menu */

#header-nav {
  -webkit-transition: height 0.3s;
  -moz-transition: height 0.3s;
  -ms-transition: height 0.3s;
  transition: height 0.3s;
  height: 40px;
  overflow: hidden;
}

#header-nav.open {
  height: 240px;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
}

.menu-toggle .bar {
  background-color: #777;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 100px;
  position: absolute;
  top: 20px;
  right: 9px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
}

.menu-toggle .bar:first-child {
  -webkit-transform: translateY(-6px);
  -moz-transform: translateY(-6px);
  -ms-transform: translateY(-6px);
  transform: translateY(-6px);
}

.menu-toggle.x .bar {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.menu-toggle.x .bar:first-child {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.menu {
  display: none;
}

.menu.open {
  display: block;
}

main, aside {
  padding: 0 15px;
  margin: 0 auto 15px 0;
  margin-bottom: 15px;
  max-width: 768px;
}

.col-50 {
  margin: auto;
  max-width: 512px;
  width: 100%;
}

.hidden-xs {
  display: none;
}

@media only screen and (min-width:768px) {

  main, aside {
    margin-left: auto;
    margin-right: auto;
  }

  .hidden-xs {
    display: block;
  }
}

@media only screen and (min-width:960px) {
  .menu, nav ol {
    display: inline-block;
  }

  .menu-toggle {
    display: none;
  }

  .content {
    max-width: 1200px;
    margin: auto;
  }

  nav {
    padding-left: 6%
  }

  main {
    margin-left: 6%;
    width: 54%;
    float: left;
  }

  main.center-column {
    width: 100%;
    margin: auto;
    float: none;
  }

  aside {
    font-size: 95%;
    margin-left: 12%;
    width: 24%;
    float: left;
    max-width: 384px;
  }

  footer {
    clear: both;
  }

  .box {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
  }

  .wide-box {
    margin: 0 -15%;
  }

  .col-50 {
    width: 48%;
  }
}

/* Utilities */

.btn, .btn:hover {
  color: #fff;
  text-decoration: none;
}

.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto
}

.img-responsive {
  height: auto;
  max-width: 100%;
}

ul.no-decorator, ol.no-decorator {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.article-title {
  padding-bottom: 20px;
  margin: 42px 0 21px;
  border-bottom: 1px solid #ddd
}

.metadata {
  font-size: 80%;
  color: #666;
  margin-top: -0.6em;
}

input, input.btn, .g-recaptcha {
  margin-bottom: 16px;
}

input[type=text], input[type=email] {
  width: 100%;
  padding: 8px;
}

input[type=submit] {
  width: auto;
}

.btn {
  padding: 14px 28px;
  border-radius: 6px;
  white-space: normal;
  font-weight: bold;
  font-size: 100%;
  display: inline-block;
  text-align: center;
  display: inline-block;
  margin-bottom: 0;
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
}

.bab {
  font-size: 24px;
  font-weight: bold;
  width: 100%;
}

.btn-default.btn {
  text-shadow: rgba(255, 255, 255, 0.3) 0 1px;
  box-shadow: #999 0 4px;
}

.btn-default.btn:hover {
  background-color: #dadada;
  border-color: #bbb;
  box-shadow: #777 0 4px;
}

.btn-warning.btn {
  background-color: #ff753b;
  text-shadow: rgba(255, 255, 255 ,0.3) 0 -1px;
  border-color: #c2592d;
  box-shadow: #a34b26 0 4px;
}

.btn-warning.btn:hover {
  border-color: #a34b26;
  background-color: #c2592d;
  box-shadow: #843d1f 0 4px;
}

.testimonial-box {
  margin: 32px 0;
  padding: 12px;
}

.testimonial-box-no-margin {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.subscription-form {
    border: 2px dashed #999999;
    padding: 0 12px;
    margin-bottom: 30px;
    margin-top: 30px
}

.subscription-form .btn {
  padding: 8px 22px;
  width: auto;
  font-weight: bold;
}

.subscription-form .testimonial-content {
  font-size: 18px;
}

.subscription-form h3 {
  margin: 15px 0;
}

.ck_form {
  font-family: inherit !important;
  color: inherit !important;
}

.ck_form_content h3 {
  font-weight: 600 !important;
}

.ck_form_content p {
  font-size: 16px !important;
}

.testimonial-headshot {
  float: left;
}

.testimonial-content {
  margin: 0;
  padding: 0 0 0 80px;
  font-family: PT Serif,Georgia,Times,Times New Roman,serif;
  font-size: 22px;
  color: #000;
  border: none;
  font-style: italic;
}

.testimonial-content p {
  font-size: 17px;
}

.testimonial-no-headshot .testimonial-content {
  padding-left: 0;
}

.testimonial-author {
  padding: 0 0 0 104px;
  font-size: 16px;
  color: #777;
}

.testimonial-no-headshot .testimonial-author {
  padding-left: 24px;
}

/* Code and syntax highlighting */

figure.code {
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-bottom: 16px;
}

figure.code figcaption {
  padding: 10px 15px;
  color: #333;
  background-color: #f5f5f5;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom: 1px solid #ddd;
}

figure.code figcaption span {
  line-height: 1.1;
  font-weight: bold;
}

figure.code figcaption+.highlight {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.highlight {
  overflow-y: hidden;
  overflow-x: auto;
  border-radius: 5px;
  padding: .8em;
}

/* Code Highlighting Style for Pygments or Rouge */
/* Solarized Light Color Scheme by Ethan Schoonover */
/* http://ethanschoonover.com/solarized */
.highlight { color: #657b83; background: #fafafa; }
.highlight .emphasized, .highlight .gs, .highlight .kc, .highlight .kd, .highlight .kp, .highlight .kr { color: #586e75; font-weight: bold; }
.highlight .linenos { color: #93a1a1; }
.highlight .bp { color: #93a1a1; }
.highlight .c { color: #93a1a1; font-style: italic; }
.highlight .c1 { color: #93a1a1; font-style: italic; }
.highlight .cm { color: #93a1a1; font-style: italic; }
.highlight .cp { color: #dc322f; font-weight: bold; }
.highlight .cs { color: #93a1a1; font-weight: bold; font-style: italic; }
.highlight .err { color: #657b83; background-color: #dc322f; }
.highlight .gd .x { color: #657b83; background-color: #d33682; }
.highlight .gd { color: #657b83; background-color: #d33682; }
.highlight .ge { font-style: italic; }
.highlight .gh { color: #93a1a1; }
.highlight .gi .x { color: #657b83; background-color: #eee8d5; }
.highlight .gi { color: #859900; background-color: #eee8d5; }
.highlight .go { color: #657b83; }
.highlight .gp { color: #586e75; }
.highlight .gr { color: #657b83; background-color: #dc322f; }
.highlight .gt { color: #dc322f; background-color: #eee8d5; }
.highlight .gu { color: #586e75; }
.highlight .il { color: #d33682; }
.highlight .k { color: #268bd2; font-weight: bold; }
.highlight .kt { color: #268bd2; font-weight: bold; }
.highlight .m { color: #d33682; }
.highlight .mf { color: #d33682; }
.highlight .mh { color: #d33682; }
.highlight .mi { color: #d33682; }
.highlight .mo { color: #d33682; }
.highlight .n { color: #586e75; }
.highlight .na { color: #93a1a1; }
.highlight .nb { color: #2aa198; }
.highlight .nc { color: #268bd2; font-weight: bold; }
.highlight .ne { color: #268bd2; font-weight: bold; }
.highlight .nf { color: #268bd2; font-weight: bold; }
.highlight .ni { color: #839496; }
.highlight .nl { color: #859900; }
.highlight .nn { color: #cb4b16; }
.highlight .no { color: #b58900; }
.highlight .nt { color: #268bd2; font-weight: bold; }
.highlight .nv { color: #b58900; }
.highlight .p { color: #586e75; }
.highlight .o { color: #6c71c4; }
.highlight .ow { font-weight: bold; }
.highlight .s { color: #2aa198; }
.highlight .s1 { color: #2aa198; }
.highlight .s2 { color: #2aa198; }
.highlight .sb { color: #2aa198; }
.highlight .sc { color: #2aa198; }
.highlight .sd { color: #2aa198; }
.highlight .se { color: #2aa198; }
.highlight .sh { color: #2aa198; }
.highlight .si { color: #2aa198; }
.highlight .sr { color: #859900; }
.highlight .ss { color: #d33682; }
.highlight .sx { color: #dc322f; }
.highlight .vc { color: #b58900; }
.highlight .vg { color: #b58900; }
.highlight .vi { color: #b58900; }
.highlight .w { color: #eee8d5; }

.practicing-rails h1 {
  margin: 64px 0;
}

.center-column p {
  margin-bottom: 24px;
}
