@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%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 25px;
}

header {
  background: url(../img/gradient.svg);
  background-size: cover;
  background-position: center;
  color: #fff;
}

header > .content {
  display: flex;
  align-items: center;
}

header .title {
  flex-basis: 20%;
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 5%;
}

nav.main ul, nav.home ul {
  flex-basis: 80%;
  list-style: none;
  text-align: center;
}

nav.main ul li, nav.home ul li {
  margin-right: 20px;
  display: inline-block;
}

nav.main ul li:last-child, nav.home ul li:last-child {
  margin-bottom: 0;
}

nav.main ul li a, nav.home ul li a {
  text-decoration: none;
}

nav.main ul li a, nav.home ul li a {
  color: #fff;
  font-weight: 700;
}

nav.home ul li a {
  color: #fff !important;
}

nav.main ul li a:hover, nav.home ul li a:hover {
  text-decoration: underline;
  transition: 0.3s ease;
}

nav.main ul li a:after, nav.home ul li a:after {
  content: '';
  position: relative;
  height: 1px;
  background-color: rgba(#fff,0.4);
  padding: 10px 0;
  margin: 10px 0;
}

/* 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: 71px;
  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(-26.75%);
}

nav.mobile > #menuToggle span {
  background: #fff;
}

/* Main Section */

article.main h1 {
  color: #17ABC7;
  margin-bottom: 15px;
}

article.main h2, article.main h3 {
  color: #17ABC7;
}

article.main p {
  margin-bottom: 10px;
  line-height: 1.5;
}

article.main p:last-child {
  margin-bottom: 0;
}

article.main p a {
  text-decoration: none;
  color: inherit;
  font-style: italic;
}

article.main p a:hover {
  text-decoration: underline;
}

div.skills {
  position: relative;
}

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;
}

@media screen and (max-width: 820px) {
  header {
    display: block;
  }
  nav.main {
    display: none;
  }
  nav.mobile {
    display: inline-block;
    float: right;
  }
}

@media screen and (max-width: 500px) {
  #menuToggle input:checked ~ ul {
    transform: translateX(-35.25%);
  }
}

@media screen and (max-width: 350px) {
  #menuToggle input:checked ~ ul {
    transform: translateX(-48%);
  }
}
