@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);

body {
  font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
  font-weight: 300;
  padding: 10px;
}

h1, h2, h3, h4, h5, h6 {
  color: #000;
}

h1 {
  font-size: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
}

h1, h2, h3 {
  line-height: 1.1;
}

h1, h2, h3, h4, h5, h6 {
  position: relative;

  .anchor-symbol {
    visibility: hidden;
    margin-left: 10px;
    color: #999;
  }

  &:hover {
    .anchor-symbol {
      visibility: visible;
    }
  }
}

a {
  color: #39c;
  text-decoration: none;
  font-weight: 400;
}

a:visited {
  color: #7D33CC;
}

strong a {
  font-weight: bold;
}

.logo-container {
  text-align: right;
  float: left;
  padding-right: 20px;
  width: 350px;

  .logo-svg {
    margin-top: 3px;
    height: 420px;
  }
}

.logo-container-sidebar {
  padding-left: 15px;

  .logo-svg {
    max-height: 150px;
  }
}

.homepage-callout {
  float: left;
  width: 520px;
  padding-top: 0;
}

code.install {
  border: 1px solid #ccc;
  background-color: #eee;
  padding: 5px;
  border-radius: 5px;
}

.wrapper {
  width: 910px;
  margin: 0 auto;
}

figure {
  padding: 0;
  margin: 0;

  figcaption {
    font-style: italic;
    margin-left: 20px;
    font-size: 90%;
  }
}

header {
  width: 225px;
  float: left;
  position: fixed;
  overflow-y: auto;
  height: 100%;
  padding-bottom: 50px;

  @media screen and (max-height: 800px) {
    position: static;
  }

  ul {
    padding-left: 20px;
  }
}

.tweet-button-container {
  display: inline-block;

  iframe {
    margin-bottom: 2px;
  }
}

section {
  width: 660px;
  float: right;
  padding-bottom: 50px;

  > h1:first-child, > h2:first-child, > h3:first-child {
    padding-top: 0;
    margin-top: 0;
  }

  img {
    max-width: 100%;
  }
}

.bottom-button-container {
  padding-top: 50px;
}

.index-button-container {
  width: 222px;
  display: inline-block;
  text-align: center;

  .cta {
    font-weight: 700;
  }

  a {
    display: inline-block;
    width: 150px;
    padding: 10px;
    margin-top: 5px;
    background-color: #ccc;
    border-radius: 4px;
    color: black;
    font-weight: 700;
    color: white;
  }
}

.colored-button(@color) {
  background-color: @color;
  border: 2px solid darken(@color, 15%);

  &:hover {
    background-color: darken(@color, 5%);
  }
}

.index-button-container.teal a {
  .colored-button(#009A93);
}

.index-button-container.orange a {
  .colored-button(#E96633);
}

.index-button-container.red a {
  .colored-button(#D95C5C);
}

.index-button-container.purple a {
  .colored-button(#3E3773);
}

.hljs {
  background: transparent;
  font-size: 14px;

  .xml {
    opacity: 1;
  }
}

.show-hide-nav {
  display: none;
}

pre {
  overflow-x: auto;
}

.footer-info {
  display: none;
}

@media screen and (max-width: 1060px) {
  .github-banner {
    display: none;
  }
}

@media screen and (max-width: 940px) {
  .wrapper {
    width: auto;
  }

  .logo-container, .logo-container-sidebar {
    width: auto;
    float: none;
    text-align: center;
    padding-right: 0;
  }

  .logo-container .logo-svg {
    max-width: 100%;
  }

  .logo-container-sidebar {
    text-align: left;
  }

  .homepage-callout {
    width: auto;
    padding-top: 0;
  }

  header {
    float: none;
    display: block;
    position: relative;
    width: auto;
    padding-bottom: 20px;

    .nav-list {
      display: none;
    }

    .show-hide-nav {
      display: block;
      padding-left: 15px;

      a {
        display: block;
      }

      a.hide-nav {
        display: none;
      }
    }
  }

  section {
    width: auto;
    float: none;
    padding-bottom: 0;
  }

  .index-button-container {
    width: auto;
    display: block;
    padding-bottom: 20px;
  }

  .github-banner {
    display: none;
  }

  .sidebar-info {
    display: none;
  }

  .footer-info {
    display: block;
  }
}

#react-router-example-section {
  margin-top: 25px;
  margin-bottom: 50px;
  padding-left: 10px;
  border-left: 10px solid #ccc;

  #app h1 {
    padding-top: 0;
    margin-top: 0;
  }
}
