/*! 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 {
  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.
 */

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

.toggle {
  display: none;
}
.large-nav {
  display: none;
}
.desktopLogo {
  display: none;
}
.nav-buttons {
  justify-content: flex-end;
}
body {
  font-family: "Lato", sans-serif;
  font-weight: 300;
}
nav {
  background-color: #435662;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
nav li {
  padding: 10px 20px;
  border-bottom: 1px solid white;
}
nav li:hover {
  background-color: #b98717;
}
nav a:hover {
  color: white;
}
nav li a {
  color: white;
  text-decoration: none;
  display: block;
}
.sliding-nav {
  display: flex;
}
.toggle-nav {
  background: transparent;
  color: #435662;
  padding: 20px;
  display: inline-block;
  text-transform: uppercase;
  height: 50%;
  font-size: 2.5rem;
}
.toggle-nav:focus {
  outline: 0;
}

.sliding-nav {
  position: fixed;

  z-index: 1;
  right: -164px;
  transition: right 1s ease-in-out;
}
.nav-links {
  text-transform: uppercase;
}
.sliding-nav.is-active {
  right: 0;
  transition: right 1s;
  position: absolute;
}
.navigation {
  display: flex;
}
/*  END NAV */
.getStarted {
  text-decoration: none;
  border: 4px solid white;
  padding: 20px 40px;
  color: white;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}
.getStarted:hover {
  background-color: white;
  opacity: 0.5;
  color: black;
}
.loginButton {
  text-decoration: none;
  text-transform: uppercase;
  padding-left: 0.625rem;
  color: #435662;
  font-weight: 700;
}
.active {
  margin-right: 200px;
  transition: left 1s ease-in-out;
}
.margin {
  padding-right: 5rem;
}

/* HEADER */
header {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 20%, rgba(93, 109, 119, 1)),
    url(../img/mobile-banner.jpg) no-repeat center top;

  background-size: cover;
  margin: 0;
  padding: 0;
  height: 630px;
  color: white;
}
h2 {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 3.012rem;
  text-transform: uppercase;
  text-align: center;
}
h2 > span {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  opacity: 0.75;
  font-size: 1.5rem;
  font-style: italic;
  text-transform: none;
  display: block;
}
header div:last-of-type {
  text-align: center;
}
header p span {
  text-transform: uppercase;
  text-decoration: underline;
}
header p {
  padding-top: 3rem;
  font-weight: 400;
}
.wrapper {
  padding: 0 10px;
}

/* END HEADER */
/* image gallery */
.keywordSearch {
  text-align: center;
}
.links {
  color: white;
  padding-top: 70px;
}
.links p {
  font-style: italic;
  margin-bottom: 0;
  font-family: "Playfair Display", serif;
  opacity: 0.75;
}
a {
  text-decoration: none;
}

.landscape {
  background: url(../img/landscape.jpg) no-repeat center;
  background-size: cover;
}
.clock {
  background: url(../img/clock.jpg) no-repeat center;
  background-size: cover;
}
.fashion {
  background: url(../img/fashion.jpg) no-repeat center;
  background-size: cover;
}
.people {
  background: url(../img/people.jpg) no-repeat center;
  background-size: cover;
}
.design {
  background: url(../img/design.jpg) no-repeat center;
  background-size: cover;
}
.tech {
  background: url(../img/tech.jpg) no-repeat center;
  background-size: cover;
}
.cooking {
  background: url(../img/cooking.jpg) no-repeat center;
  background-size: cover;
}
.city {
  background: url(../img/city.jpg) no-repeat center;
  background-size: cover;
}
.pets {
  background: url(../img/pets.jpg) no-repeat center;
  background-size: cover;
}
.nature {
  background: url(../img/nature.jpg) no-repeat center;
  background-size: cover;
}

.gallery {
  min-width: 100%;
  min-height: 200px;
  display: flex;
  overflow-x: auto;
}
.keywordSearch {
  min-width: 320px;
  min-height: 226px;
}
.keywordSearch:hover {
  opacity: 0.3;
}
.gallery::-webkit-scrollbar {
  display: none;
}

h4 {
  font-weight: 700;
  font-size: 2.25rem;
  text-transform: uppercase;
  margin: 0;
}
/* end img gallery */
.testimonial {
  background-color: #435662;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: white;
  padding: 4.5rem 0.5rem;
  font-size: 1.875rem;
}
.testimonial p {
  opacity: 0.5;
}
.testimonial p:last-of-type {
  font-size: 1.125rem;
}
.line {
  background-color: #b98717;
  width: 85px;
  height: 2px;
  margin: 0 auto;
}
.logo {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 1.5rem;
}
.testimonial img {
  border-radius: 50%;
  border: 5px solid #8e9aa1;
}
.flex {
  padding: 6rem 0;
  text-align: center;
}
.flex div {
  padding: 0 2rem;
}
h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
}
.browse {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Lato", sans-serif;
}
.numbers p:first-of-type {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}
.numbers {
  padding: 4.5rem 0.5rem;
}
/* footer */
footer {
  border-top: 2px solid #e2e2e2;
  background-color: #f7f7f7;
}
footer p {
  margin: 0;
  line-height: 6rem;
  color: #8b8b8b;
}
@media only screen and (min-width: 460px) {
  .numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .numbers div {
    width: 45%;
  }
  h2 {
    font-size: 4.165rem;
  }
  h2 span {
    font-size: 2.041rem;
  }
}

@media only screen and (min-width: 768px) {
  .wrapper {
    margin: 0 1em;
  }
  nav li {
    padding: 30px 100px;
  }
  .sliding-nav {
    right: -325px;
  }
  .large-nav {
    display: block;
  }
  .link {
    display: none;
  }
  .testimonial {
    background: linear-gradient(to top, rgba(067, 086, 098, 0.97) 100%, rgba(67, 86, 98, -5)) 10%,
      url(../img/computer.jpg) no-repeat center;
  }
  header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 20%, rgba(93, 109, 119, 0.79)),
      url(../img/tablet-banner.jpg) no-repeat center top;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 630px;
  }
  header p {
    font-size: 1.125rem;
  }
  h2 {
    font-size: 6.25rem;
  }
  h2 > span {
    font-size: 2.25rem;
    display: block;
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .flex {
    display: grid;
    grid-template-columns: 45% 45%;
    grid-gap: 2em;

    text-align: center;
  }
  .flex div {
    padding: 0;
  }
  .flex div:last-of-type {
    grid-column: 1 / span 2;
  }
  .flex div:last-of-type p {
    margin: 0 12.5rem;
  }

  footer div {
    display: flex;
    justify-content: space-between;
  }
}
@media only screen and (min-width: 980px) {
  .numbers div {
    width: 18%;
  }
}
@media only screen and (min-width: 1180px) {
  .sliding-nav {
    position: absolute;
    z-index: 1;
    top: -864px;
    left: 0;
    transition: top 1s ease-in-out;
    flex-direction: column;
    right: 0;
  }
  .toggle-nav {
    display: none;
    color: #435662;
  }
  nav li {
    padding: 10px 20px;
  }
  nav li:hover,
  nav li a:hover {
    color: #b98717;
    background-color: #435662;
  }
  .close:hover {
    color: #b98717;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.25rem;
    top: -100;
    width: 560px;
    margin: 0 auto;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    border-top: 1px solid white;
    padding-top: 1.5rem;
  }

  .desktopLogo {
    display: block;
    padding-top: 1.5rem;
  }
  nav {
    width: 100%;

    height: 864px;
  }
  nav li {
    border-bottom: none;
  }
  .sliding-nav.is-active {
    top: 0px;
    transition: top 1s;
  }
  .toggle {
    display: inline-block;
    text-decoration: none;
  }
  .open {
    color: #435662;
    padding-left: 1.5rem;
    font-size: 1.875rem;
  }
  .close {
    color: white;
    font-size: 4.5rem;
  }

  .wrapper {
    max-width: 1180px;
    margin: 0 auto;
  }
  header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 10%, rgba(93, 109, 119, 0.79)),
      url(../img/desktop-banner.jpg) no-repeat center top;
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 864px;
  }
  .flex div:last-of-type {
    grid-column: 3;
  }
  .flex div:last-of-type p {
    margin: 0;
    margin-top: 1em;
  }
  .flex {
    grid-template-columns: 30% 30% 30%;
    grid-gap: 3em;
  }

  footer div {
    display: flex;
    justify-content: space-between;
  }
}

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