/* reset common styles first */

* {
  box-sizing: border-box;
}

html, body, fieldset, form, div {
  margin: 0;
  padding: 0;
}

address, blockquote, dl, h1, h2, h3, h4, h5, h6, ol, p, pre, ul {
  line-height: 130%;
  margin: 1.5rem 0;
  padding: 0;
}

html, body, fieldset, form, input, select, textarea {
  font: 100%/120% 'Open Sans', Roboto, Ubuntu, Helvetica, Arial, sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6, strong, b {
  font-weight: 600;
}

a:hover, a:active {
  outline: none;
}

li {
  list-style: none;
}

/* FontAwesome bits */

@font-face {
  font-family: 'FontAwesome';
  src:  url('fonts/fontawesome-webfont.woff?v=4.6.3') format('woff');
  font-weight: 400;
  font-style: normal;
}

.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
}

.fa-fw {
  margin-left: -0.3rem;
  text-align: center;
  width: 2.1rem;
}

.fa-calendar:before {
  content: "\f073";
}

.fa-circle:before {
  content: "\f111";
}

.fa-circle-o:before {
  content: "\f10c";
}

.fa-envelope-o:before {
  content: "\f003";
}

.fa-github:before {
  content: "\f09b";
}

.fa-linkedin:before {
  content: "\f0e1";
}

.fa-map-marker:before {
  content: "\f041";
}

.fa-phone:before {
  content: "\f095";
}

.fa-wordpress:before {
  content: "\f19a";
}

.fa-star:before {
  content: "\f005";
}

/* actual styles for the page */

body {
  background: black;
  color: white;
  padding: 4rem;
}

a {
  color: rgba(8, 67, 247, 0.69);
}

a:focus, a:hover {
  color: rgb(170, 105, 255);
}

h1 {
  font-size: 3.57rem;
  margin: 0;
}

h2 {
  color: #3f0e95;
  margin: 0;
}

h3 {
  border-bottom: 3px solid #3f0e95;
  color: #3f0e95;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  margin-top: 2.5rem;
  padding-bottom: 0.2rem;
}

h4 {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0;
}

h5 {
  color: #3f0e95;
  font-size: 1.1rem;
  margin: 0.1rem 0 0;
}

.container {
  background-color: white;
  background-image: url("images/paper.jpg");
  color: black;
  margin: 0 auto;
  max-width: 70rem;
  padding: 0.4rem 0;
}

.stripe {
  background-image: url("images/stripe.png");
  background-repeat: repeat-x;
  background-size: 91px 6px;
  height: 6px;
}

header {
  display: flex;
  flex-wrap: wrap;
  padding: 3.5rem 4rem 0;
}

main {
  background: url("images/ruby-logo.png") 53% 15rem no-repeat, url("images/rails-logo.png") 53% 54rem no-repeat;
  display: grid;
  grid-gap: 3rem;
  grid-template-columns: 4fr 3fr;
  padding: 0 4rem 3.5rem;
}

.intro, .avatar {
  flex: 1 1 auto;
}

.intro {
  width: 65%;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  margin: 1.3rem 0;
}

.avatar {
  text-align: center;
  width: 35%;
}

.avatar img {
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px #ccc;
  margin: 0 0.5rem;
  max-width: 100%;
  width: 14rem;
}

.contact ul {
  margin: 0;
  min-width: 240px;
  width: 50%;
}

.contact li {
  margin: 0.6rem 0;
}

.life-philosophy p {
  font-family: 'Kalam', 'Times New Roman', 'Times', serif, cursive;
  font-size: 1.8rem;
  font-style: italic;
  color: #3f0e95;
  line-height: 110%;
  margin-top: 1.1rem;
  font-weight: 300;
}

.bio p {
  line-height: 160%;
  margin: 1rem 0;
}

.skills ul {
  margin-top: 0;
}

.skills li {
  border-bottom: 1px dotted #3f0e95;
  display: flex;
  font-size: 105%;
  font-weight: 600;
  padding: 0.8rem 0;
}

.skills li:last-child {
  border-bottom: none;
}

.skills .skill {
  margin: 0;
  width: 30%;
}

.skills .skill i {
  color: #888;
  font-weight: 500;
  font-size: 90%;
}

.skills .rating {
  text-align: right;
  width: 70%;
}

.skills .fa {
  color: #3f0e95;
}

.tags span {
  border: 1px solid #3f0e95;
  border-radius: 6px;
  display: inline-block;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.5rem;
  margin-right: 0.3rem;
}

.tags .fa {
  color: #3f0e95;
  margin-left: 2px;
}

.education-experience {
  margin: -0.8rem 0 0;
}

.education-experience li {
  border-bottom: 1px dotted #3f0e95;
  padding: 1.8rem 0;
}

.education-experience > li:first-child {
  padding-top: 1.3rem;
}

.education-experience li:last-child {
  border-bottom: none;
}

.period-place {
  display: flex;
  flex-wrap: wrap;
}

.period, .place {
  margin: 0.6rem 0 0;
}

.period {
  width: 55%;
}

.place {
  width: 45%;
}

.education-experience .fa {
  margin-left: 0.1rem;
  margin-right: 0.3rem;
}

.period span, .place span {
  font-size: 90%;
}

.education .period {
  width: 100%;
}

.experience-details {
  margin: 1rem 0 0 1rem;
  padding: 0 0 0 0.45rem;
}

.experience-details li {
  border-bottom: none;
  color: #555;
  font-size: 90%;
  line-height: 130%;
  list-style-type: disc;
  padding: 0 0 0.3rem;
}

.experience-details .technology {
  background: rgba(122, 91, 175, 0.12);
  color: #949494;
  padding: 0 5px;
  white-space: nowrap;
}

.experience-details .period {
  color: #ccc;
}

/* Responsiveness */

@media (max-width: 1250px) {
  body {
    padding: 2rem;
  }

  header {
    padding: 2.5rem 3rem 0;
  }

  main {
    padding: 0 3rem 2.5rem;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .avatar {
    margin-top: 0.3rem;
  }

  main {
    display: flex;
    flex-wrap: wrap;
  }

  .experience, aside {
    width: 100%;
  }
}

@media (max-width: 700px) {
  body {
    padding: 1.5rem;
  }

  header {
    padding: 2rem 1.5rem 0;
  }

  main {
    padding: 0 1.5rem 1rem;
  }

  h1, h2 {
    text-align: center;
  }

  .intro, .avatar {
    width: 100%;
  }

  .period, .place {
    width: 100%;
  }
}

@media (max-width: 500px) {
  body {
    padding: 0.3rem;
  }

  header {
    padding: 1.5rem 1.1rem 0;
  }

  main {
    padding: 0 1.1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.2rem;
  }
}
