@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&display=swap');

/* General Styles */

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  height: 100%;
  font-family: "Open Sans", Arial, Helvetica, Sans-serif;
}

.content {
  width: 100%;
  margin: 0 auto;
  padding: 25px;
}

header {
  position: fixed;
  height: 100vh;
  width: 300px;
  padding: 20px;
  background-color: #17ABC7;
  color: #fff;
}

header .title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

header nav.main {
}

header nav.main ul {
  list-style: none;
}

header nav.main ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 0;
}

header nav.main ul li:last-child {
  border-bottom: none;
}

header nav.main ul li a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
}

header nav.main ul li a:hover {
  color: rgba(255,255,255,0.75);
}

/* Mobile Navigation */

nav.mobile {
  display: none;
}

#menuToggle {
  position: relative;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a {
  text-decoration: none;
  color: #3a3a3a;
  transition: color 0.3s ease;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  -webkit-touch-callout: none;
}

#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #fff;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);,
  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
  opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
}

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

nav.mobile ul {
  position: absolute;
  top: 48px;
  width: 100vw;
  height: calc(100vh - 71px);
  padding: 50px;
  background: #ededed;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translateX(-190%);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

nav.mobile li {
  padding: 10px 0;
  font-size: 1.5em;
}

#menuToggle input:checked ~ ul {
  transform: translateX(-94.5%);
}

nav.mobile > #menuToggle span {
  background: #fff;
}

/* Main Section */

#container {
  margin-left: 300px;
}

section.main h1 {
  margin-bottom: 15px;
}

section.main p {
  margin-bottom: 10px;
  line-height: 1.5;
}

section.main p:last-child {
  margin-bottom: 0;
}

section.main p a {
  text-decoration: none;
  color: inherit;
  font-style: italic;
}

section.main p a:hover {
  text-decoration: underline;
}

hr {
  margin: 10px 0;
  width: 5%;
  border: 0;
  border-top: 1px solid #ccc;
}

div.skills {
  position: relative;
  margin-bottom: 50px;
}

div.skills p {
}

div.skills img {
  width: 250px;
  margin-right: 20px;
  float: left;
}

div.skills h3 {
  margin-top: 60px;
}

div.skills h3:first-of-type {
  margin-top: 0;
}

/* Footer */

footer {
  margin-top: -30px;
  padding: 10px 0;
  margin-left: 300px;
}

/* Mobile Responsiveness */

@media screen and (max-width: 1000px) {
  header {
    height: 70px;
    width: 100%;
    position: relative;
    z-index: 99;
  }
  header .title {
    font-size: 1em;
    margin-bottom: 0;
    padding-top: 5px;
    float: left;
  }
  #container, footer {
    margin-left: 0;
  }
  nav.main {
    display: none;
  }
  nav.mobile {
    display: inline-block;
    float: right;
  }
}

@media screen and (max-width: 500px) {
  #menuToggle input:checked ~ ul {
    transform: translateX(-87.4%);
  }
}

@media screen and (max-width: 350px) {
  #menuToggle input:checked ~ ul {
    transform: translateX(-82%);
  }
}
