/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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: #e2e3ed;
  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 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    }
    
   ul, 
   ol {
    list-style: none;
    text-transform: uppercase;
    font-weight: 600;
   }
    
   a {
    color: #e2e3ed;
    text-decoration: none;
   }

   h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25em;
    font-weight: 500;
   }
    
   h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.87em;
    font-weight: 500;
   }
    
   h3, 
   h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 500;
   }
    
   p {
     line-height: 1.5em;
   }
    
   img {
    width: 100%;
   }
    
   figure {
    margin: 0
   }
    
   address {
    font-style: normal;
   }

/* --------------- Base Header - Footer Styles --------------- */
header,
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  background-color: #202322;
}

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


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

header figure {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  padding: 15px 0;
}

header nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-flow: row wrap;
  width: 60%;
}

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

.header-divider {
  height: 1px;
  width: 100vw;
  margin: calc(-1 * ((100vw - 100%) / 2));
  background-color: #3a3a3a; 
}

.hero-area {
  background-image: url(../img/hero.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1b2821;
  height: 500px;
}

.features {
  background-image: url('../img/outdoors.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #333
}

footer {
  flex-direction: column;
  text-align: center;
}

footer p {
  margin: 0;
}

footer .content-wrapper {
  width: 55%;
}

footer .footer-content {
  margin-bottom: 50px;
}

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

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

footer i {
  font-size: 1.5em;
}

footer .copyright {
  margin: 20px 0;
}

/* ==========================================================================
    Mobile Styles - Homepage
   ========================================================================== */
/* Home page - Hero Section */
.hero-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-flow: row wrap;
}

/* Home page - Aside Section */
aside {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  background-color: #527158;
}

aside .content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}
 
input[type=text] {
  box-sizing: border-box;
  width: 100%;
  color: #9d9ea4;
  font-style: italic;
  padding: 0.8em;
}
 
input[type=button] {
  width: 100%;
  padding: 15px 0;
  margin-top: 20px;
  background-color: #2a423a;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 1.125em;
  color: #e2e3ed;
  border: none;
  text-align: center;
  text-transform: uppercase;
}

/* Home page - Features Section */
.features {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

.features .content-wrapper {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

.features h2 {
  margin-bottom: 60px;
}

.features article {
  width: 60%;
  margin: 30px 0;
}

.features .features-items {
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

.features p {
  margin: 0;
  text-align: center;
}

.features i {
	font-size: 3.75em;
  margin-bottom: 40px;
}

/* Home page - Reviews Section */
.reviews {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  background-color: #2a423a;
}

.reviews h2 {
  width: 80%;
}

/* ==========================================================================
    Mobile Styles - About Page
   ========================================================================== */

/* About page - Mission Section */
.mission {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  background-color: #527158;
}

.map figure {
  width: 100%;
  height: 0;
  padding-bottom: 120%;
  overflow: hidden;
  position: relative;
}

.map iframe {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  background-color: #2a423a;
}

/* ==========================================================================
    Mobile Styles - FAQ Page
   ========================================================================== */
   
/* FAQ page - FAQ secion */
.faq {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  background-color: #527158;
}

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

.faq h1 {
  line-height: 1.2em;
}


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

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  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;
}

/* ==========================================================================
   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*/
  
  /* --------------- Base Header - Footer Styles --------------- */
/* ==========================================================================
    Tablet Styles - Homepage
   ========================================================================== */
  .content-wrapper {
    max-width: 640px;
    margin: 50px 0 80px 0;
  }

  h1 {
    font-size: 2.7em;
  }

  .hero-area h1 {
    width: 80%;
  }

  h2 {
    font-size: 2.25em;
  }

  h3 {
    font-size: 1.5em;
    margin: 0px 0px 20px 0px;
  }

  h4 {
    font-size: 1.2em;
  }

  /* Home Page - Header */
  header {
    width: 100%;
  }

  header .content-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
  }

  header figure {
    width: 35%;
  }

  header nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-basis: 20%;
  }

  header nav ul {
    margin: 0;
    justify-content: space-between;
  }

  .header-divider {
    display: none;
  }
  /* Home Page - Hero area */

  /* Home Page - Aside */
  aside .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  aside .form-description,
  aside .form-submission {
    width: 45%;
  }

  /* Home Page - Features */

  .features h2 {
    margin-bottom: 20px;
  }

  .features article {
    align-items: center;
    flex-flow: column wrap;
    flex-basis: 50%;
  }

  .features .features-items {
    justify-content: start;
    flex-direction: column;   /* Place the icons above the caption */
  }

  .features .features-item-description {
    width: 75%;
  }

  /* Home Page - Reviews */
  .reviews article {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .reviews h2 {
    width: 85%;
  }

  .reviews figure {
    width: 48%;
    margin: 0;
  }

  .reviews article .reviews-content {
    width: 48%;
  }

  .reviews h4 {
    width: 75%;
    margin: 0;
}

  /* Home Page - Footer */
  footer .content-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%
    margin: 100px 0;
    text-align: center;
  }

 .social-icons p {
   justify-content: space-between;
 }

  footer .social {
    width: 40%;
  }

  footer .footer-content {
    width: 40%;
    margin-bottom: 0;
  }

/* ==========================================================================
    Tablet Styles - About Page
   ========================================================================== */
   .mission-content {
     display: flex;
     justify-content: space-between;
     align-items: center;
   }

   .mission-content p {
     width: 47%;
   }

   .map figure {
    width: 100%;
    height: 0;
    padding-bottom: 45%;
    overflow: hidden;
    position: relative;
  }
  
  .map iframe {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
  }

   .contact-content {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
   }

/* ==========================================================================
    Tablet Styles - FAQ Page
   ========================================================================== */

   .faq .content-wrapper {
    justify-content: space-between;
    align-items: flex-start;
}

    .faq-content {
    flex-basis: 47%;
}

    .faq h2 {
    width: 100%;
  }
}


@media only screen and (min-width: 1200px) {
/* ==========================================================================
    Desktop Styles - Homepage
   ========================================================================== */
  .content-wrapper {
    max-width: 960px;
    margin: 50px 0;
  }

  h1 {
    font-size: 3.2em;
  }

  h2 {
    font-size: 2.25em;
  }
 
  h3 {
    font-size: 1.87em;
  }

  h4 {
    font-size: 1.45em;
  }

  header figure {
    width: 30%;
  }

  .hero-area {
    height: 600px;
  }

  .hero-area h1 {
    width: 70%;
  }

  aside .content-wrapper .form-description,
  aside .content-wrapper .form-submission {
    width: 33%;
  }

  .features .content-wrapper {
    justify-content: flex-start;
  }

  .features .features-items {
   flex-basis: 33.33%;
   text-align: center;
  }

  .features .features-item-description {
  width: 55%;
  }

article .reviews-content {
    width: 100%;
  }

  footer .footer-content {
    width: 40%;
    margin-bottom: 30px;
}

/* ==========================================================================
    Desktop Styles - About Page
   ========================================================================== */
  h2 {
    margin-bottom: 80px;
  }

  .contact-section h4 {
    margin: 20px 0;
  }
  
  .mission h2 {
    width: 75%;
  }

  .map figure {
    width: 100%;
    height: 0;
    padding-bottom:40%;
    overflow: hidden;
    position: relative;
  }
  
  .map iframe {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
  }

   /* ==========================================================================
    Desktop Styles - FAQ Page
   ========================================================================== */
  .faq h1 {
    width: 100%;
  }

  .faq-content {
    flex-basis: 45%;
  }
}



/* ==========================================================================
   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 */
    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:
     * https://web.archive.org/web/20180815150934/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;
  }
}

