/* Basic Styles */

html {
  font-size: 100%;
  line-height: 1.5rem;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0 auto;
  padding: 0;
  min-height: 100%;
  background-image: url("../img/bgtexture.png");
  background-color: #fff;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

header {
  margin-bottom: 0.5rem;
}

/* Nav Bar */

.nav-bar {
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  line-height: 1rem;
  overflow: hidden;
  padding: 0.5rem 0;
}

.logo,
.nav-item {
  white-space: nowrap;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* .nav-item {
  flex: 1 0 33.3%;
  text-align: center;
}

This fucks something up and I don't know why so i'm gonna Contain It.*/

.social-nav-item {
  flex: 1 1 10%;
}

.logo a,
.nav-menu a {
  display: block;
  text-decoration: none;
  padding: 0.7rem;
  color: #000;
}

.logo {
  max-width: 350px;
  padding: 1rem 1rem 0.5rem 1rem;
}

.home-image {
  padding: 0 1rem 0 1rem;
  margin-bottom: 2rem;
}

.nav-menu a {
  font-weight: 400;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: all ease 0.1s;
}

.nav-menu a:hover {
  border-bottom: 1px solid #000;
}

.footer-logo {
  margin: auto;
  max-height: 70px;
  max-width: 70px;
  padding-top: 3rem;
  margin-bottom: 2rem;
}

.footer-copyright {
  font-size: 0.7rem;
  padding-top: 2rem;
}

/* About Page CSS */

.about-page {
  font-family: "Roboto", sans-serif;
  padding: 0 1rem 4rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  margin: 0 auto;
  text-align: left;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.about-h1 {
  font-size: 1.5rem;
  font-weight: 300;
}

.about-text h1 {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1rem;
}

.about-image img {
  height: 100%;
  object-fit: cover;
  max-block-size: 500px;
  margin-bottom: 20px;
}

.about-social {
  display: flex;
  justify-content: start;
}

.about-social a {
  color: black;
  padding: 0 1rem 1rem 0;
}

/* Shop Page CSS */

.faq-page {
  font-family: "Roboto", sans-serif;
  padding: 0 1rem 4rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  margin: 0 auto;
  text-align: left;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.4rem;
}

.faq-text h1 {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1rem;
}

.faq-img img {
  height: 100%;
  object-fit: cover;
  max-block-size: 450px;
  margin-bottom: 20px;
}

.faq-text a {
  text-transform: uppercase;
  display: block;
  letter-spacing: 0.3;
  color: rgb(252, 96, 96);
}

/* Portfolio Page CSS */

.portfolio-gallery {
  padding: 0 1rem 4rem 1rem;
}

.portfolio-title {
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  line-height: 1rem;
  font-size: 2rem;
  font-weight: 300;
  padding: 0.5rem 0 0.5rem 0;
}

.illustration-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  grid-gap: 0.5rem;
}

.ill-item {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.ill-img {
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease-in-out;
}

.ill-img:hover {
  transform: scale(1.1);
}

/* Footer Nav Social Links */

.footer-social {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.footer-social a {
  color: black;
  padding: 0 1rem;
}

.footer-copyright {
  text-align: center;
  padding-bottom: 6rem;
}

/* 404 */

.error-page {
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 0.5rem 0;
}

.error-h1 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.6rem;
  text-align: center;
}

.error-img {
  max-width: 300px;
  margin: auto;
  padding: 0.5rem 0 1.5rem 0;
}

.error-h2 {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1rem;
}

.error-h3 {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1rem;
}

/* Media Queries for large screens */

/* Tablet */

@media (min-width: 600px) {
  .nav-bar {
    line-height: 1.5rem;
  }
  .nav-menu {
    padding: 0 1rem;
  }

  .hero-nav {
    padding-bottom: 1rem;
  }

  .home-image {
    margin: auto;
  }

  /*about */

  .about-page {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .about-h1 {
    font-size: 1.7rem;
    line-height: 1.5rem;
  }

  .about-image {
    grid-column-start: 1;
  }

  .about-text h1 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.2rem;
  }

  /*shop*/

  .faq-page {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .faq-img {
    grid-column-start: 1;
  }

  .faq-text h1 {
    font-size: 1.5rem;
    line-height: 1.5rem;
  }

  .faq-text p {
    font-size: 1rem;
    line-height: 1.2rem;
  }

  /* portfolio */

  .portfolio-gallery {
    padding: 0 3rem 8rem 3rem;
  }

  .footer-nav {
    padding-top: 1rem;
    justify-content: center;
  }

  .footer-logo {
    padding: 1rem;
  }

  .logo a {
    font-size: 2.5rem;
    letter-spacing: 0.2rem;
  }
  .nav-item {
    font-size: 1.3rem;
  }

  /* 404 */

  .error-page {
    display: grid;
    grid-template-rows: repeat 4 (1fr);
    justify-content: center;
    text-align: center;
  }
  .error-h1 {
    font-size: 2.3rem;
    font-weight: 300;
    line-height: 1.6rem;
    text-align: center;
  }

  .error-img {
    max-width: 400px;
  }

  .error-h2 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1rem;
  }

  .error-h3 {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1rem;
  }
}

/* Computer Screens  */

@media (min-width: 920px) {
  body {
    max-width: 1400px;
  }

  .hero-body {
    max-width: unset;
  }

  .nav-bar {
    line-height: 1rem;
  }

  .logo {
    max-width: 450px;
  }

  .nav-menu {
    width: auto;
    align-items: flex-end;
  }
  .nav-menu a {
    font-size: 1.5rem;
  }

  .hero-nav {
    width: 100%;
    flex-direction: column;
  }

  .home-image {
    margin-left: auto;
    margin-right: auto;
    max-height: 750px;
    max-width: 750px;
  }

  /* about */

  .about-page {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 5rem;
    max-width: 1200px;
    margin: auto;
  }

  .about-h1 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.6rem;
  }

  .about-image img {
    max-block-size: 800px;
  }

  .about-me,
  .about-text {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.3rem;
  }

  .about-achiev p {
    font-size: 0.9rem;
  }

  .about-achiev h1 {
    font-size: 1.5rem;
  }

  /* faq */

  .faq-page {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 5rem;
    max-width: 1200px;
    margin: auto;
  }

  .faq-img img {
    max-block-size: 800px;
  }

  .faq-text,
  .faq-text p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.3rem;
  }

  /* portfolio */

  .portfolio-gallery {
    padding: 0 8rem 8rem 8rem;
  }

  .illustration-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: auto;
  }

  .ill-item {
    height: 100%;
    width: 100%;
  }

  .footer-nav {
    justify-content: space-evenly;
  }

  .footer-logo {
    padding-top: 4rem;
    max-height: 100px;
    max-width: 100px;
  }
}
