/*! HTML5 Boilerplate v7.2.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: #222;
  font-size: 1em;
  line-height: 1.5;
}

/*
 * 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
   ========================================================================== */
   /* body {
    background-image: linear-gradient(#79dd8f 1px,transparent 1px);
    background-size: auto 1.5em;
    font-size: 100%;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5; /*16 *1.5 =24px
   }*/ 

body {
  font-size: 100%;
  font-family: 'Lato', sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

/********* header ********/
.banner-image {
  background:
  linear-gradient(rgba(255, 255, 255, 0.187), rgba(15, 15, 15, 0.068)), 
  url(../img/bg-sm-img.jpg) no-repeat center center;
  background-size: cover;
  padding-bottom: 2em;
}

.upper-header {
  display: flex;
  align-items: center;
  padding: 1em 2rem;
}

header div:nth-child(1) img {
  width: 40px;
}

.upper-header .ham-button { 
  margin-left: auto;
}

.upper-header .close-button  { 
  margin-left: auto;
}

.close-button {
  display: none;
}

.upper-header.is-active .ham-button {
  display: none;
} 

.upper-header.is-active .close-button {
  display: block;
} 

nav {
  display: flex;
  position: absolute;
  background-color: #233947;
  top: -110%; 
  right: 0;
  left: 0;
}

nav ul {
  width: 100%;
}

nav li {
  border-top: 1px solid darkgrey;
  text-align: center;
}

nav a {
  text-decoration: none;
  text-transform: uppercase;
  list-style-type: none;
  color:#fff;   
  line-height: 3;
} 

nav li:hover {
  background: #d2b26b;
  color: #233947;
}

nav li:nth-child(9) {
  background: #508206;
}

nav li:nth-child(10) {
  background: #508206;
  /* border-right: 1px solid #999; */
}

.toggle-nav.is-active {
  top: 70px;
  left: 0;
  right: 0;
}

.toggle-nav.is-active,
.toggle-nav {
  transition: top 2s ease-in-out; 
}

.banner-txt {
  text-align: center;
}

.banner-txt p:nth-child(1) {
  color: #8f959a;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.banner-txt h1, .banner-txt a {
  text-transform: uppercase;
  color: #ffffff;
}

.banner-txt h1 {
  font-size: 3.375rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 2.25rem;
}

.banner-txt a {
  font-weight: bold;
  text-decoration: none;
  border: 1.5px solid #fff;
  border-radius: 5px;
  padding: 1rem 2rem;
}

.banner-txt .get-reward {
  font-size: 0.5rem;
  color: #ffffff;
  margin-top: 3rem;
  padding-bottom: 5rem;
}

.banner-txt .get-reward span {
  text-decoration: underline;
}

/********* section get ********/

main section:nth-child(1) {
  padding: 5%;
}

.get-col h2 {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin: 1.5rem 0;
}

h2:after {
  content:' ';
  display:block;
  border:1px solid #b98717;
  width:100px;
  margin: 0 auto;
}

.get-col p {
  font-weight: 300;
  text-align: center;
}

.get-col {
  margin: 3rem 0;
}

.get-col img {
  margin: 0 auto;
  display: block;
}

svg {
  max-width: 100px;
  display: block;
  margin: 0 auto;
}

svg path {
  fill: #b98717;
}


/********* section author ********/
.bg-grey {
  background-color: #435662;
}

.bg-grey div {
  font-family: 'Playfair Display', serif;
  font-style: italic; 
  color: #a4adb2;
  text-align: center;
  padding: 4.5rem 5% 6rem; 
}

.author-container p:nth-child(2) {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.author-container p:nth-child(3) {
  margin-top: 1rem;
}

/********* browse ********/

.title-browse {
  line-height: 1.5;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin: 6rem auto 3rem;
}

.title-browse:after {
  content:' ';
  display:block;
  border:1px solid #b98717;
  width:100px;
  text-align:center;
  margin: 0 auto;
}

.browse-flex-container {
  display: flex;
  flex-wrap: wrap;
}

.browse-col {
  width: 100%;
}

.col-1 {
  background: url(../img/landscapes-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-2 {
  background: url(../img/things-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-3 {
  background: url(../img/fashion-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-4 {
  background: url(../img/people-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-5 {
  background: url(../img/design-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-6 {
  background: url(../img/tech-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-7 {
  background: url(../img/cooking-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-8 {
  background: url(../img/city-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-9 {
  background: url(../img/pets-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.col-10 {
  background: url(../img/nature-sm-photo.jpg) no-repeat center center;
  background-size: cover;
}

.browse-txt {
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  padding: 4rem 0 5rem;
}

.browse-txt p:nth-child(1) {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: bold;
  line-height: 1;
  color: #efefef;
  margin-bottom: 0.75rem;
}

.browse-txt p:nth-child(2) {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 2.25rem;
  line-height: 1;
}

/********* number ********/

.number-container {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 3rem;
}

.number-col {
  width: 50%;
}

.number-txt p:nth-child(1) {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
  margin: 4.5rem 0 0.5rem;
}

.number-txt p:nth-child(2) {
  font-weight: 300;
}

/********* footer ********/

footer {
  background-color: #f7f7f7;
}

.footer-container {
  display: flex;
  flex-flow: column;
  color: #8b8b8b;
  padding: 2rem 0;
}

.footer-col {
  font-size: 0.8rem;
  line-height: 2;
  text-align: center;
}

.footer-col span {
  color: #000;
  font-weight: bold;
}


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

  /* html {
    font-size: 112.5%;
  } */

  .upper-header, 
  .banner-txt, 
  .get-flex-container, 
  .author-container,
  .number-container,
  .footer-container {
    max-width: 868px;
    margin: 0 auto;
  }

  .banner-image {
    background:
    linear-gradient(rgba(255, 255, 255, 0.187), rgba(15, 15, 15, 0.068)), /*0.495*/
    url(../img/bg-med-img.jpg) no-repeat center center;
    background-size: cover;
    padding-bottom: 4em;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
  }
  
  nav li {
    width: 50%;
  }
  
  
  .login, .signup {
    display: inline;
  }

  .banner-txt h1 {
    font-size: 3.375rem;
  }

  .banner-txt p:nth-child(1) {
    font-size: 1.5rem;
  }
  .banner-txt a {
    font-size: 1.25rem;
  }

  .banner-txt .get-reward {
    font-size: 1rem;
  }

  /********* section author ********/
  .author-container p:nth-child(2) {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-top: 1rem;
  }
  .author-container p:nth-child(3) {
    font-size: 1.25rem;
  }

  /********* section get ********/

  .get-flex-container {
    display: flex;
    justify-content: space-between;
  }

  .get-col {
    width: 30%;
  }

  svg {
    width: 80px;
  }

  /********* browse ********/

  .title-browse {
    font-size: 1.25rem;
  }

  .browse-flex-container .browse-col {
    width: 50%;
  } 

  .browse-txt p:nth-child(2) {
    font-size: 2.25rem;
  }

  /********* number ********/
  .number-txt p:nth-child(1) {
    font-size: 2rem;
  }

  .number-col {
    width: 30%;
  }
  /********* footer ********/

  .footer-container {
    margin-top: 3rem;
  }

  .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

} /****** query  768px ******/


@media only screen and (min-width: 1300px) {
  .upper-header, 
  .banner-txt, 
  .get-flex-container, 
  .author-container,
  .number-container,
  .footer-container {
    max-width: 1180px;
    margin: 0 auto;
  }

  .banner-image {
    background:
    linear-gradient(rgba(255,255,255,0.187),  rgba(15, 15, 15, 0.068)), 
    url(../img/bg-lg-img.jpg) no-repeat center center;
    background-size: cover;
    padding-bottom: 6em;
  }

  .nav-container {
    width: 80%;
    margin: 0 auto;
    border-top: 2px solid darkgrey;
  }

  nav ul {  
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    justify-content: center;
  }
  
  nav li {
    width: 25%;
    border-top: none;
  }

  /* nav li:nth-child(1) {
    border-top: 1px solid darkgrey;

  } */

  /********* section author ********/

  /********* section get ********/
  .upper-header, .banner-txt,
  .get-inner-container {
    max-width: 1180px;
    margin: 0 auto;
    }

  /********* browse ********/

  .browse-flex-container .browse-col {
    width: 20%;
  } 

  /********* number ********/
  .number-container{
    display: flex;
    flex-wrap: nowrap;
    text-align: left;
    margin-bottom: 3rem;
  }
  .number-txt p:nth-child(1) {
    font-size: 2rem;
  }
  
  /********* footer ********/



} /****** query  1024px *****/

@media only screen and (max-width: 2000px) {
  .get-inner-container {
    max-width: 1800px;
    margin: 0 auto;
  }

}




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

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

