/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
  }
  
  /*
   * Remove text-shadow in selection highlight:
   * https://twitter.com/miketaylr/status/12228805301
   *
   * Vendor-prefixed and regular ::selection selectors cannot be combined:
   * https://stackoverflow.com/a/16982510/7133471
   *
   * Customize the background color to match your design.
   */
  
  ::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
  }
  
  ::selection {
    background: #b3d4fc;
    text-shadow: none;
  }
  
  /*
   * A better looking default horizontal rule
   */
  
  hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
  }
  
  /*
   * Remove the gap between audio, canvas, iframes,
   * images, videos and the bottom of their containers:
   * https://github.com/h5bp/html5-boilerplate/issues/440
   */
  
  audio,
  canvas,
  iframe,
  img,
  svg,
  video {
    vertical-align: middle;
  }
  
  /*
   * Remove default fieldset styles.
   */
  
  fieldset {
    border: 0;
    margin: 0;
    padding: 0;
  }
  
  /*
   * Allow only vertical resizing of textareas.
   */
  
  textarea {
    resize: vertical;
  }
  
  /* ==========================================================================
     Browser Upgrade Prompt
     ========================================================================== */
  
  .browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
  }
  
  /* ==========================================================================
     Author's custom styles
     ========================================================================== */
  
    /* General Styles */

    html {
        font-size: 16px;
    }

    body {
        background-color: #f2d9e6;
        font-size: 1em;
        font-family: 'Open Sans', sans-serif;
        color: hsl(0, 0%, 16%);
        text-align: left;
    }

    ul,
    ol {
        list-style-type: none;
    }

    a {
        color: hsl(0, 0%, 51%);
        text-decoration: none;
    }

    h2 {
        font-family: 'Lora', serif;
    }

    h3 {
        font-family: 'Source Sans Pro', sans-serif;
        font-weight: 400;
        font-size: 2.25em;
        margin: 1.25rem 0;
    }

    p {
        font-size: 0.875em;
        line-height: 1.285;
    }

    img {
        width: 100%;
    }

    .content-wrapper {
        width: 90%;
        margin: 0;
    }

    /* Base Header - Footer Styles */

    header, footer {
        background-color: 	hsl(329, 49%, 90%);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-flow: row wrap;
    }

    header {
        padding: 1.25rem 0;
        background:url('../img/creating.png');
        background-size: cover;
        background-position: center;
        min-height: 28.125rem;
    }

    header .content-wrapper {
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-flow: row wrap;
    }

    header h1 {
        font-family: 'Lora', serif;
        font-size: 1.875em;
        color: hsl(85, 24%, 46%);
    }

    .header-divider {
        background: hsl(0, 0%, 23%);
        height: 0.063rem;
        width: 100%;
        margin: 0.625rem 0;
    }

    header nav {
        font-size: 1.125em;
        font-weight: 400;
        text-transform: uppercase;
        padding: 0.938rem 0.625rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-flow: row wrap;
    }

    header nav ul {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: space-around;
    }

    header nav ul li {
        font-size: 1.125em;
        font-weight: 400;
        text-transform: uppercase;
        padding: 0 0.313rem;
    }

    header nav ul li a {
        color: hsl(0, 0%, 23%);
        text-decoration: none;
    }

    header h2 {
        width: 90%;
        font-family: 'Lora', serif;
        font-size: 2.825em;
        font-weight: 700;
        line-height: 1.115;
        color: hsl(0, 0%, 61%);
        text-align: center;
        padding: 8.438rem 0 0 0;
    }

    header h2 span {
        color: hsl(0, 0%, 17%);
    }

    header h2 span a {
        color: hsl(0, 0%, 17%);
        font-weight: 700;
    }

    footer {
        text-align: center;
    }

    footer p {
        margin: 0;
    }

    footer .content-wrapper {
        width: 95%;
        margin: 3.125rem 0;
    }

    footer .social-icons {
        display: flex;
        justify-content: space-around;
        margin: 1.563rem 0;
    }

    footer .social-icons p {
        font-size: 1.3125em;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    footer .social-icons p i {
        font-size: 1.125em;
        display: flex;
        justify-content: space-between;
        flex-flow: row wrap;
    }

    footer #envelope {
        width: 1.563rem;
        height: 1.25rem;
    }

    /* -------------------- Mobile Styles - Homepage -------------------- */

    /* Header */

    header nav {
        font-size: 0.875em;
    }

    /* Projects - Work */

    #projects {
        text-align: center;
        display: flex;
        justify-content: center;
        flex-flow: row wrap;
    }

    #projects h3 {
        margin: 0 0 0.938rem 0;
        font-size: 1.5em;
        font-weight: 700;
    }

    #projects a {
        color: 	hsl(0, 0%, 23%);
        text-transform: uppercase;
        font-weight: 700;
    }

    #projects article {
        width: 75%;
        margin: 0.625rem 0;
    }

    #projects figure {
        width: 75%;
        padding: 0;
    }

    #projects .work {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-flow: row wrap;
    }

    #projects p {
        text-align: center;
        margin: 0;
    }

    #projects p span {
        color: 	hsl(0, 0%, 0%);
        font-size: 1.143em;
        font-weight: 700;
    }

    /* Footer */

    footer {
        background:url('../img/footer-background.png');
        background-color: 	hsl(340, 9%, 94%);
        background-size: cover;
        background-position: center;
        text-align: center;
        flex-direction: column;
    }

    #contact-img {
        width: 13.75rem;
        height: 10rem;
        border: 0.75rem solid hsl(0, 0%, 100%);
    }

    footer .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
    }

    footer #email-header, footer ul {
        font-family: 'Lora', serif;
        font-size: 1.5em;
        font-weight: 700;
        line-height: 1.25;
        margin: 0 0 2.5rem;
    }

    footer #envelope {
        padding: 0 0.625rem;
    }

    footer #email-header {
        font-family: 'Lora', serif;
        font-size: 1.5em;
        font-weight: 700;
        margin: 1.25rem 0;
    }

    footer a {
        font-family: 'Source Sans Pro', sans-serif;
        font-weight: bold;
        font-size: 1.25em;
        text-decoration: none;
        color: 	hsl(21, 42%, 70%);
    }

    footer ul {
        list-style: none;
    }

    footer ul img {
        padding: 0 3rem 0 0;
    }
  
   /* ==========================================================================
      Helper classes
      ========================================================================== */
   
   /*
    * Hide visually and from screen readers
    */
   
    .hidden {
        display: none !important;
      }
      
      /*
       * Hide only visually, but have it available for screen readers:
       * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
       *
       * 1. For long content, line feeds are not interpreted as spaces and small width
       *    causes content to wrap 1 word per line:
       *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
       */
      
      .visuallyhidden {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
        white-space: nowrap;
        /* 1 */
      }
      
      /*
       * Extends the .visuallyhidden class to allow the element
       * to be focusable when navigated to via the keyboard:
       * https://www.drupal.org/node/897638
       */
      
      .visuallyhidden.focusable:active,
      .visuallyhidden.focusable:focus {
        clip: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        position: static;
        width: auto;
        white-space: inherit;
      }
      
      /*
       * Hide visually and from screen readers, but maintain layout
       */
      
      .invisible {
        visibility: hidden;
      }
      
      /*
       * Clearfix: contain floats
       *
       * For modern browsers
       * 1. The space content is one way to avoid an Opera bug when the
       *    `contenteditable` attribute is included anywhere else in the document.
       *    Otherwise it causes space to appear at the top and bottom of elements
       *    that receive the `clearfix` class.
       * 2. The use of `table` rather than `block` is only necessary if using
       *    `:before` to contain the top-margins of child elements.
       */
      
      .clearfix:before,
      .clearfix:after {
        content: " ";
        /* 1 */
        display: table;
        /* 2 */
      }
      
      .clearfix:after {
        clear: both;
      }
      
    /* ==========================================================================
         EXAMPLE Media Queries for Responsive Design.
         These examples override the primary ('mobile first') styles.
         Modify as content requires.
         ========================================================================== */
    
    @media only screen and (min-width:768px) {
        /* Tablet styles here */

        /* General styles */

        .content-wrapper {
            max-width: 640px;
            margin: 0;
        }

        h2 {
            font-size: 2.25em;
            line-height: 1.333;
        }

        h3 {
            font-size: 1.5em;
            line-height: 1.25;
        }

        /* Header */

        header {
            min-height: 450px;
            width: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        header .content-wrapper {
            width: 100%;
            justify-content: space-between;
        }

        header h1 {
            font-size: 2.25em;
            color: #7a9159;
            padding: 20px 0 30px 0;
        }

        header nav {
            display: flex;
            justify-content: space-between;
        }

        header nav ul li a {
            color: #3a3a3a;
            font-size: 1.25em;
        }

        .header-divider {
            display: none;
        }

        header h2 {
            font-family: 'Lora', serif;
            font-size: 3em;
            font-weight: 700;
            line-height: 1.115;
            color: #9b9b9b;
            padding: 160px 40px 20px;
            margin: 0;
        }

        /* Projects */

        #projects h3 {
            margin: 0 0 1.25rem;
            width: 85%;
        }

        #projects article {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            align-content: center;
            flex-flow: column wrap;
            flex-basis: 50%;
        }

        #projects figure {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-flow: column wrap;
            flex-basis: 50%;
            margin: 20px 0;
        }

        #projects .project-image {
            /*width: 300px;
            height: 270px;*/
            box-sizing: border-box;
        }

        #projects img {
            width: 300px;
            height: 270px;
        }

        #projects .project-description {
            width: 85%;
            font-size: 1.125em;
        }

        /* Footer */

        #contact-img {
            width: 350px;
            height: 260px;
        }

        footer .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-direction: row;
        }

        footer #email-header {
            font-size: 2em;
        }

        footer .social-icons {
            padding: 0 0 0 0.938rem;
        }
    }

    @media only screen and (min-width:1200px) {
        /* Desktop styles here */

        header {
            padding: 0.938rem 0;
        }

        .content-wrapper {
            max-width: 60rem;
        }

        h2 {
            font-size: 2.25em;
        }

        h3 {
            font-size: 1.875em;
        }

        /* Header */

        header h1 {
            font-size: 3.4375em;
        }

        header {
            min-height: 31.25rem;
            padding: 0 0 9.375rem;
        }

        header h2 {
            font-size: 3.75em;
            width: 90%;
            padding: 15rem 2.5rem 1.25rem 6.25rem;
            text-align: left;
        }

        header .content-wrapper {
            max-width: 75rem;
            width: 90%;
        }

        header nav {
            width: 45%;
        }

        header nav ul li a {
            font-weight: 500;
            font-size: 1.125em;
        }

        /* Projects */

        #projects .work {
            margin: 0.938rem 0;
        }

        #projects h3 {
            width: 90%;
        }

        #projects article {
            flex-basis: 33%;
        }
        
        #projects .project-description {
            font-size: 1em;
        }

        #projects figure {
            flex-basis: 33%;
        }

        /* Footer */

        footer .contact-info {
            font-size: 1.3125em;
        }

        #contact-img {
            width: 26.25rem;
            height: 16.25rem;
        }

        footer .footer-content {
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        footer .contact-info {
            padding: 0 0 0 9.375rem;
            line-height: 1.555;
        }

        footer #email-header {
            line-height: 1.555;
        }

    }

    
          
  /* ==========================================================================
     Print styles.
     Inlined to avoid the additional HTTP request:
     https://www.phpied.com/delay-loading-your-print-css/
     ========================================================================== */
  
  @media print {
    *,
    *:before,
    *:after {
      background: transparent !important;
      color: #000 !important;
      /* Black prints faster */
      -webkit-box-shadow: none !important;
      box-shadow: none !important;
      text-shadow: none !important;
    }
    a,
    a:visited {
      text-decoration: underline;
    }
    a[href]:after {
      content: " (" attr(href) ")";
    }
    abbr[title]:after {
      content: " (" attr(title) ")";
    }
    /*
       * Don't show links that are fragment identifiers,
       * or use the `javascript:` pseudo protocol
       */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
      content: "";
    }
    pre {
      white-space: pre-wrap !important;
    }
    pre,
    blockquote {
      border: 1px solid #999;
      page-break-inside: avoid;
    }
    /*
       * Printing Tables:
       * http://css-discuss.incutio.com/wiki/Printing_Tables
       */
    thead {
      display: table-header-group;
    }
    tr,
    img {
      page-break-inside: avoid;
    }
    p,
    h2,
    h3 {
      orphans: 3;
      widows: 3;
    }
    h2,
    h3 {
      page-break-after: avoid;
    }
  }