
/* Global styles
-------------------------*/
/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
}
h1, h2 {
  font-family: 'Amatic SC', cursive;
  font-weight: 400;
}
h1 {
  font-size: 80px;
}
h2 {
  font-size: 40px;
  margin-top: 0;
}
h3 {
  margin: 0;
}
a {
  color: #666;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.content-wrap {
  max-width: 950px;
  margin: 0 auto;
  padding: 60px 20px;
  overflow: hidden;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
    font-style: italic;
}
figure {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
.clear {
    clear: both;
}
.hidden {
    position: absolute;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
}

/* Header and Footer
-------------------------*/
header, footer {
  background: #EEE;
  color: #666;
}
/* header */
header {
  padding-top: 50px;
  position: relative;
}
header h1 {
  color: #666;
  margin: 0;
}
header h2 {
  color: #CCC;
  margin: 0;
}
.profile-img {
  border-radius: 50%;
  border: 5px solid #FFF;
}

/* footer */
footer {
  text-align: center;
}
.link-info a {
  padding: 10px;
  display: inline-block;
}

/* Navigation
-------------------------*/
nav {
  text-align: center;
  background: #FFF;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
nav a {
  display: inline-block;
  padding: 15px 20px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Work Experience
-------------------------*/
.work {
  background: #EEE;
}
h3 ~ p {
  margin: 0;
}

/* Recent Jobs
-------------------------*/
.jobs h2 {
  text-align: left;
}
.jobs .content-wrap {
  text-align: center;
}
.content-wrap .img-item {
    display: inline-block;
    margin-right: 0.5%;
    margin-left: 0.5%;
}
.content-wrap .img-item a {
    position: relative;
    display: block;
}
figcaption {
    border-bottom: 1px solid #D6D0C1;
    padding-bottom: 10px;
    margin: 10px 0;
    display: block;
    color: #666;
}

figcaption {
    line-height: 25px;
    font-size: 14px;
    width: 200px
}

.job-description {
  margin-bottom: 25px;
}
.job-description p:first-of-type {
  margin-top: 0;
}
.img-border {
  border: 1px solid #EEE;
}
.portfolio-link {
  text-align: right;
  font-size: 14px;
  text-decoration: none;
}
.portfolio-link a {
  color: #CCC;
  text-decoration: none;
}
.portfolio-link a:hover {
  color: #666;
  text-decoration: none;
}

/* Contact
-------------------------*/
.contact {
  background: linear-gradient(rgba(141, 153, 174, 0.8), rgba(141, 153, 174, 0.5)),
              url(../images/london2.jpg) no-repeat fixed;
  background-size: cover;
}
p + h3 {
  margin-top: 30px;
}
.contact a {
  color: #EEE;
}
.contact h3 {
  font-weight: normal;
}

/* Mobile Menu
-------------------------*/

#mobileMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
}

#mobileMenu ul li {
    display: block;
    background-color: #FFF;
    color: #666;
    padding: 12px 0;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #CCC;
}

#mobileMenu a {
  color: #666;
  text-decoration: none;
}
.toggleMobile {
    display: none;
}

/* Media Queries
-------------------------*/
@media (min-width: 916px) {
  .col-narrow {
    width: 30%;
    float: left;
  }
  .col-wide {
    width: 70%;
    float: left;
    padding-left: 20px;
  }
}
@media (max-width: 915px){
  header {
    text-align: center;
  }
  .profile-img {
    width: 200px;
  }
  .content-wrap .img-item {
      width: 45%;
      min-width: 200px;
      vertical-align: top;
      margin-bottom: 20px;
  }
  .content-wrap .img-item img {
    width: 100%;
  }
  figcaption {
      width: 100%;;
  }
}
@media (max-width:500px) {
    .content-wrap .img-item {
        width: 200px;
        float: none;
        margin: 0 auto 20px auto
    }
    #mobileMenu {
        display: block;
        z-index: 99;
    }
    .toggleMobile {
        position: fixed;
        top: 10px;
        left: 10px;
        display: block;
        width: 40px;
        height: 36px;
        cursor: pointer;
        z-index: 999;
    }
    .toggleMobile span.menu1,
    .toggleMobile span.menu2,
    .toggleMobile span.menu3 {
        display: block;
        position: absolute;
        width: 40px;
        height: 8px;
        left: 0;
        background: #CCC;
        -webkit-transition: all 0.35s cubic-bezier(0.75, 0.25, 0.10, 0.95);
        transition: all 0.35s cubic-bezier(0.75, 0.25, 0.10, 0.95);
    }
    .toggleMobile span.menu1 {
        top: 0;
    }
    .toggleMobile span.menu2 {
        top: 14px;
    }
    .toggleMobile span.menu3 {
        top: 28px;
    }
    .toggleMobile.active span.menu1 {
        top: 14px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-transition: all 0.35s cubic-bezier(0.75, 0.25, 0.10, 0.95);
        transition: all 0.5s cubic-bezier(0.75, 0.25, 0.10, 0.95);
    }
    .toggleMobile.active span.menu2 {
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        transform: rotate(-45deg);
        -webkit-transition: all 0.35s cubic-bezier(0.75, 0.25, 0.10, 0.95);
        transition: all 0.5s cubic-bezier(0.75, 0.25, 0.10, 0.95);
    }
    .toggleMobile.active span.menu3 {
        opacity: 0;
        -webkit-transition: opacity 0.35s cubic-bezier(0.75, 0.25, 0.10, 0.95);
        transition: opacity 0.35s cubic-bezier(0.75, 0.25, 0.10, 0.95);
    }
    header nav {
        display: none;
    }
    header ul {
        padding: 0;
        margin: 0;
    }
}
@keyframes stylie-transform-keyframes {
    0% {
        transform: translateX(30px) translateY(46px) rotate(0deg) translate(-50%, -50%);
        animation-timing-function: cubic-bezier(.25, .25, .75, .75);
    }
    100% {
        transform: translateX(260px) translateY(-150px) rotate(0deg) translate(-50%, -50%);
    }
}

@keyframes stylie-transform2-keyframes {
    0% {
        transform: translateX(40px) translateY(40px) rotate(0deg) translate(-50%, -50%);
        animation-timing-function: cubic-bezier(.25, .25, .75, .75);
    }
    100% {
        transform: translateX(50px) translateY(40px) rotate(0deg) translate(-50%, -50%);
    }
}
