/*! 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
   ========================================================================== */

   *, html, body{
     padding:0px;
     margin:0px;
     text-decoration: none;
     font-weight: 400;
     font-size: 16px;
   }

   html{
     color: #d0d0d0;
   }

   .container{
     max-width: 940px;
   }

   header{
     background: url(../img/header-bg.png);
     background-repeat: no-repeat;
     background-position:top;
     background-color: #d0d0d0;
     height:auto;
     line-height: 30px;
   }

   header h4{
     float:left;
     font-family: 'Quattrocento', serif;
     font-size: 1em;
     display:block;
     margin-top:40px;
     width:100%;
     text-align: center;
     color:#ffffff;
     font-weight: bold;
     text-shadow: 2px 2px 8px #000000;
   }

   nav{
     float:left;
     width:100%;
     text-align: center;
   }

   nav ul li{
     display:inline-block;
   }

   ul li a{
     padding: 9px;
   }

   p, a{
     font-family: 'Quattrocento Sans', sans-serif;
   }



   /**********************header-content************************/

   .header-content{
     background: url(../img/header-bg.png);
     background-repeat: no-repeat;
     background-position:50% -40%;
     background-color: #d0d0d0;
     padding-bottom: 60px;
   }

   .header-content-examples{
     background: url(../img/header-bg.png);
     background-repeat: no-repeat;
     background-position:50% 0%;
     background-color: #d0d0d0;
     margin-bottom: 60px;
     min-height:1000px;
   }

   .hero,
   .hero-examples{
     width:100%;
     min-height:150px;
     margin-bottom:40px;
     position: relative;
     top:0px;
     background-image: url(../img/tree2.jpg);
     background-repeat: no-repeat;
     background-size: cover;
     border:2px solid #c3c3c3;
     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3), 0 6px 20px 0 rgba(0, 0, 0, 0.27);
   }

   .hero-filter,
   .hero-filter-examples{
     background-color: rgba(255,255,255,0.8);
     min-height:150px;
     width:100%;
     padding:15% 5%;
   }

   .hero-examples{
     background-image:none;
   }

   .hero-filter-examples{
     background-color: rgba(255,255,212,0.3);
     padding:5% 0;
   }

   #hero-text *{
     display:block;
     margin:0 auto;
     text-align: center;
     line-height: 1.3em;
   }

   #hero-text-examples *{
     color:#000000;
     margin:0 auto;
     text-align: center;
     line-height: 1.3em;
   }

   #hero-text p{
     text-shadow: 2px 2px 8px #ffffff;
     padding-bottom: 20px;
     font-size: 1.5em;
     font-stretch: extra-expanded;
   }

   #hero-text-examples p{
     text-shadow: 2px 2px 8px #ffffff;
     padding-bottom: 20px;
     font-size: 1.5em;
   }


   .button{
     width:45%;
     height:2em;
     max-width: 150px;
     border:2px solid #000000;
     background: #000000;
   }

   .button:hover{
     background:#ffffff;
   }

   .button a{
     color:#ffffff;
   }

   .button a:hover{
     color:#000000;
   }

   .about-item{
     display:block;
     margin:0 auto;
     max-width: 400px;
   }

   ul.about-intro{
     height: 40px;
     text-align: left;
   }

   ul.about-intro h3{
     font-family: 'Quattrocento', serif;
     font-size: 1.2em;
   }

   ul.about-intro{
     padding-left: 0;
   }

   ul.about-intro li{
     padding-right:10px;
     display: inline-block;
   }

   #bulletpoints{
     display: block;
     list-style: circle;

     padding-left: 20px;
   }

   /******Portfolio***********************************************/

   #portfolio{
     background: url(../img/portfolio-bg.png);
     background-repeat: no-repeat;
     background-position:top;
     padding:60px 0;
     background-color: #d0d0d0;
     /*border-bottom: 1px solid #333343;*/
   }


   .portfolio-wrapper{
     display:block;
     max-width: 228px;
     border:2px solid #c3c3c3;
     margin:20px auto;
     box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.3);
     overflow:hidden;
     position: relative !important;
     background: #d0d0d0;
     cursor:pointer;
   }

   .hero-filter-examples .portfolio-wrapper{
     margin:20px 30px;
   }

   .portfolio-wrapper img{
     position: relative;
     top:0;
     -webkit-transition: all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:         all 600ms cubic-bezier(0.645, 0.045, 0.355, 1);
   }


   .label {
   	position: absolute;
   	width: 100%;
   	height:60px;
   	bottom:-60px;
     -webkit-transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
     transition:         all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
   }


   .label-bg {
   	background: #ffffef;
   	width: 100%;
   	height:100%;
   	position: absolute;
   	top:0;
   	left:0;
   }

   .label-text {
   	color:#444343;
     position: relative;
     z-index:500;
   }

   .text-title{
     text-decoration: none;
     font-family: 'Quattrocento', serif;
     font-weight: bold;
     padding-top: 10px;
   }

   .text-category{
     display:block;
     color:#a0a0a0;
     font-size: .75em;
   }

   .portfolio-wrapper:hover .label {
     bottom:0;
   }
   .portfolio-wrapper:hover img {
     top:-40px;
   }

   /**************Contact*******************************/

   .contact{
     padding:40px 0;
     background-color: #d0d0d0;
   }

   .contact h4{
     font-family: 'Quattrocento', serif;
     font-weight: bold;
   }

   .contact-item{
     margin-bottom: 40px;
   }

   .contact-item a{
     text-decoration: none;
     color:#444343;
     font-weight: 700;
   }

   .contact-item a:hover{
     text-decoration: none;
     color:#ffffff;
   }


   #contact-me-plz span{
     color:#ffffff;
     font-weight: 700;
   }


   #yourname,
   #email,
   #website{
     width:85%;
     line-height: 40px;
     background-color: #f0f0f0;
     border:1px solid #787878;
     box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
     margin:0 0 15px 0;
     padding-left: 10px;
   }

   #comments{
     width:85%;
     height: 150px;
     background-color: #f0f0f0;
     border:1px solid #787878;
     box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
     margin:0 0 25px 0;
     padding-left: 10px;
   }

   #submit {
     text-align: center;
     color:#ffffff;
     background:#000000;
     width:45%;
     height:2em;
     max-width: 150px;
     box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
   }

   #submit:hover{
     background:none;
     border:2px solid #000000;
     color:#000000;
   }


   /***************Footer*********************************/

   footer{
     height:auto;
     line-height: 30px;
     background-color: #d0d0d0;
   }


   footer p{
     float:left;
     display:block;
     margin-top:40px;
     width:100%;
     text-align: center;
   }


   /**************Thank You form*****************************/

   .wrapper{
     text-align: center;
     padding-top: 100px;
   }

   .wrapper div{
     display: inline-block;
     max-height: 300px;
     max-width: 300px;
   }


/* ==========================================================================
   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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}


@media only screen and (min-width: 768px) {
     /* TABLET STYLES */

  .container{
    display:flex;
  }

  /******Header & Footer************************/

  header h4,
  nav,
  footer p{
    width:50%;
    margin:0 auto;
    line-height: 80px;
  }

  header h4,
  footer p{
  text-align: left;
  }


  nav{
    float:right;
  }

  nav ul{
    float:right;
  }


/*********About & Portfolio*****************************/

#portfolio{
  background-color: #d0d0d0;
  padding:40px 0 60px 0;
  border:none;
}

#portfolio .container{
  max-width: 1200px;
  padding-left: 0;
}

.about-item,
.portfolio-wrapper{
    width:25%;
  }

.about-item{
  margin:0 20px;
}

/********Contact***************************************/

.contact-item{
  width:50%;
}
}



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