@import url(https://fonts.googleapis.com/css?family=Karla);
@media (min-width: 64rem) {
  html {
    font-size: 120%;
  }
}
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background: #f2f2f2;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-family: "Karla";
}
body:after {
  content: " ";
  display: block;
  clear: both;
}

/* global */
::-moz-selection {
  color: white;
  background: #012461;
}

::selection {
  color: white;
  background: #012461;
}

/* main */
a {
  color: #00519F;
  text-decoration: none;
  transition-duration: .4s;
}
a:hover {
  color: white;
  background-color: #012461;
}

.active {
  text-decoration: underline;
}

li {
  list-style-type: none;
}

h1 {
  font-size: 3em;
  font-weight: bolder;
  margin: 0px;
}

/* nav */
nav {
  width: 100%;
  border-bottom: 2px solid #012461;
  text-align: right;
  background-color: #f2f2f2;
  padding: 0 1em 0 0;
}
nav li {
  display: inline;
}
nav a {
  font-size: 1.5em;
  font-weight: bolder;
  line-height: 60px;
  margin-right: 1em;
  padding: 0 1em;
}

/* footer */
footer {
  background-color: #f2f2f2;
  border-top: 1px solid #012461;
  clear: both;
  padding: .5em;
}

footer p {
  font-size: 19.2px;
  font-size: 1.2rem;
  margin: 2em auto 0;
  text-align: center;
}

.icons {
  text-align: center;
}

.icons li {
  display: inline;
  margin: .5em;
}

.icons li a {
  font-size: 38.4px;
  font-size: 2.4rem;
  border-bottom: none;
  color: #696969;
}
.icons li a:hover {
  /* to reset ::selection  */
  background-color: #f2f2f2;
}

.fa-codepen:hover {
  color: black;
}

.fa-envelope-o:hover {
  color: #64A9DD;
}

.fa-medium:hover {
  color: black;
}

.fa-linkedin-square:hover {
  color: #1F84BA;
}

.fa-twitter:hover {
  color: #64A9DD;
}

.fa-github:hover {
  color: black;
}

/* bio */
/* projects */
.greeting {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.greeting:after {
  content: " ";
  display: block;
  clear: both;
}
.greeting img {
  float: left;
  max-height: 600px;
  max-width: 500px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 33.33333%;
  float: left;
  padding-left: 0.83333%;
  padding-right: 0.83333%;
}
.greeting article {
  margin-left: 50px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 50%;
  float: left;
  padding-left: 0.83333%;
  padding-right: 0.83333%;
}
.greeting article .bigger {
  font-size: 145%;
}
.greeting article .medium-size {
  font-size: 125%;
}
.greeting article p {
  font-size: 1.5em;
}

section {
  border-bottom: 5px solid #012461;
}
section .blurb {
  margin: 3em 0 0 3em;
}

/* greeting shaker */
.shake:hover {
  -webkit-animation: shake .5s ease-in-out;
  -moz-animation: shake .5s ease-in-out;
  animation: shake .5s ease-in-out;
}

@-webkit-keyframes shake {
  0% {
    -webkit-transform: translateX(0);
  }
  20% {
    -webkit-transform: translateX(-10px);
  }
  40% {
    -webkit-transform: translateX(10px);
  }
  60% {
    -webkit-transform: translateX(-10px);
  }
  80% {
    -webkit-transform: translateX(10px);
  }
  100% {
    -webkit-transform: translateX(0);
  }
}
@-moz-keyframes shake {
  0% {
    -moz-transform: translateX(0);
  }
  20% {
    -moz-transform: translateX(-10px);
  }
  40% {
    -moz-transform: translateX(10px);
  }
  60% {
    -moz-transform: translateX(-10px);
  }
  80% {
    -moz-transform: translateX(10px);
  }
  100% {
    -moz-transform: translateX(0);
  }
}
input[type="checkbox"] {
  display: none;
}

nav label {
  display: none;
  font-size: 2em;
}

.home-logo {
  float: left;
}

@media (max-width: 808px) {
  .blurb {
    width: 100%;
  }

  .specs {
    width: 100%;
    clear: both;
    padding: 0 6px;
  }
}
@media (max-width: 30em) {
  body {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  body:after {
    content: " ";
    display: block;
    clear: both;
  }

  nav {
    padding: 0;
  }
  nav .home-logo {
    font-size: 1.5em;
    float: none;
    display: block;
    text-align: center;
    margin: 0;
  }
  nav .nav-links {
    text-align: center;
    display: none;
    margin: 0;
  }
  nav .nav-links a {
    font-size: 16px;
    font-weight: bolder;
    line-height: 60px;
    margin-right: 0;
    padding: 0 12px;
  }
  nav label {
    display: block;
    text-align: center;
  }
  nav :checked ~ .nav-links {
    display: block;
    text-align: center;
  }

  .greeting {
    padding: 0 30px;
  }
  .greeting .blurb {
    margin: 0;
    width: 100%;
    float: none;
    padding: 0;
  }
  .greeting .blurb h1 {
    font-size: 30px;
    text-align: center;
    margin-top: 15px;
  }
  .greeting img {
    display: none;
  }

  footer {
    padding: 0;
  }
  footer ul {
    padding: 0;
  }
  footer .icons li a {
    font-size: 1.4rem !important;
  }
  footer p {
    margin: 25px 20px;
    font-size: 14px;
  }

  .projects img {
    width: 100%;
  }
  .projects h3 {
    text-indent: 0;
    text-align: center;
  }
  .projects .description {
    width: 100%;
    padding: 0 20px;
    margin-top: 0;
  }
  .projects .stat p {
    display: block;
    width: 100%;
    text-indent: 0;
    text-align: center;
  }
  .projects .stat ul {
    text-indent: 0;
  }
  .projects .stat ul li {
    font-size: 96%;
  }

  .resume-page {
    margin-left: 0;
  }
  .resume-page h4 ul {
    margin-right: 7em;
    margin-left: 5em;
  }

  .bio .container {
    width: 100%;
  }
  .bio .container .bio-header h1 {
    font-size: 30px;
    text-align: center;
  }
  .bio .container ul {
    margin-left: -20px;
    margin-right: 5px;
  }

  .proj-header {
    text-align: center;
  }
  .proj-header h1 {
    font-size: 2em;
  }
}
