/*! HTML5 Boilerplate v5.3.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: #333;
    font-size: 15px;
    line-height: 1.8;

    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
    -webkit-text-stroke: 1px transparent;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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
   ========================================================================== */

body {
    font-family: 'Lato', sans-serif;
    background: url("../img/background_lilacnoise.jpg");
    background-repeat: repeat;
    padding: 0 2em;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin: 0 auto;
}

p {
}

h3 {
    color: #0095bb;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    padding:0;
}
/* =========
   Logo
   ========= */

#logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-family: 'Averia Serif Libre', cursive;
  font-weight: bold;
  text-align: center;
}

#logo .logo-img {
  width:auto;
  margin-bottom:0.5em;
}

#logo .logo-img img {
    width:145px;
/*    height:90px;*/
}

#logo .logo-text {
    width:145px;
    display: flex;
    flex-direction: column;
} 

#logo .logo-bigtext {
    font-size: 1.45em;
    text-transform: uppercase;
    display: block;
    line-height: 0.75;
}

#logo .logo-smalltext {
    font-size: 1em;
}

#logo, #logo:link, #logo:visited, #logo:hover, #logo:active {
    color:#513b71;
}


/* ===========
   NAVIGATION
   =========== */
header {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 2em;
}

header nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 1.5em 0;
}

header nav a {
    width: 100%;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0.4em 0;
    color: rgba(51,51,51,.7);
    text-align: center;
    letter-spacing: 0.1em;
}

header nav a.selected {
    color: rgba(51,51,51, 1);
}

#menu-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:space-around;
    margin-bottom:1.5em;
}

#menu-dropdown {
    margin:0;
    color: rgba(51,51,51, 1);
}

nav a {  }

/* ===========
   PORTFOLIO
   =========== */

#gallery {
  margin:0;
  padding:0;
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
}

#gallery li {
  width:48%;
  display: flex;
  flex-direction: column;
}

#gallery li a {
  width:100%;
  text-decoration: none;
  color: rgba(51,51,51, .8);
}

#gallery li img {
  width:100%;
}

#gallery h4 {
    margin:0.5em;
    padding: 0;
    text-align: center;
    font-weight: normal;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 1.2;
}

/* ================
   PORTFOLIO PIECE
   ================ */

#portfolio-piece img.portfolio-piece-photo {
  display: block;
  padding-bottom:2em;
  width:100%;
}

#portfolio-piece .wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: column;
}

#portfolio-piece section {
}

#return-to-profile {
    width:100%;
}

#return-to-profile a {
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: bold;
    color: rgba(51,51,51, 1);
    margin: 1em 0;
    text-align: center;
    
}

/* ================
   ABOUT
   ================ */

   #about-page {

   }

   #about-page .photos img {
    width:100%;
   }

   #about-page .wrapper {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: column;
   }


#about-page #about-page .profile-photo {

}

#about-page .contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 2em;
}

#about-page .contact-info a {
  display: block;
  background-repeat: no-repeat;
  background-size: 29px 29px;
  padding: 0 0 0 35px;
  margin: 0.5em 0;
  color:rgba(51,51,51,1);
  font-weight: bold;
  font-size: 1.2em;
  letter-spacing: 0.05em;
}

#about-page .contact-info li.mail a {
  background-image: url('../img/mail.png');
  text-decoration: none;
}

#about-page .contact-info li.twitter a {
  background-image: url('../img/twitter.png');
  text-decoration: none;
}

/* ===========
   FOOTER
   =========== */

footer {
    margin-top: 2em;
    padding: 2em 0;
}

footer nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items:center;
}

footer .social-icon {
  width: 44px;
  height: 44px;
  margin: 0 0.15em; /* top/bottom left/right */
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * 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;
}

/*
 * 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;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {

}

@media only screen and (min-width: 768px) {

    header {
        margin: 2em 0;
        margin-bottom: 4em;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: flex-end;
        width: 100%;
    }

    header nav, #menu-items  {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        margin:0;
    }

    header nav a {
        margin:0 1em;
    }

    #menu-dropdown {
        display: none;
    }

    #gallery {
        justify-content: space-between;
    }

    #gallery li {
        width:24%;
    }

    #gallery h4 {
        margin:0.75em;
        padding: 0;
        text-align: center;
        font-weight: normal;
        font-size: 1.2em;
        text-transform: uppercase;
        letter-spacing: 0.005em;
        line-height: 1.2;
    }

    #portfolio-piece .wrapper {
        flex-direction: row-reverse;
    }

    #portfolio-piece .info {
         width: 300px;
        margin-left: 1.5em;
    }

    #about-page .wrapper {
        flex-direction: row;
    }

    #about-page .photos {
        display: block;
        margin-right: 3em;
    }

    #about-page .photos img {
        width: 300px;
    }


    #portfolio-piece .photos {
      width:70%;
    }

    #portfolio-piece .info {
      width:28%;
    }

}

@media only screen and (min-width: 1140px) {
    body {
        max-width: 1140px;
        padding:0;
    }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    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;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
