:root {
  --primary-colour: #15183d;
  --secondary-colour: #3d3b13;
  --accent-colour: #cebcab;
  --background-colour: whitesmoke;
  --body-font: "Raleway", sans-serif;
}

body {
  background-color: var(--background-colour);
  max-width: 100%;
  font-family: "Raleway", sans-serif;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  justify-self: center;
  align-items: center;
  width: 90%;
  margin: 30px 0 70px 0;
}

header > div > h1 {
  font-size: 7rem;
  color: var(--secondary-colour);
  font-family: "Zen Loop", cursive;
  margin: 0;
}

header > div > p {
  font-size: 1.7rem;
  color: var(--secondary-colour);
  margin: 0;
}

/* Navigation Styling*/

#nav-links {
  display: flex;
}

#nav-links li {
  list-style: none;
  font-weight: 500;
  font-size: 1.5em;
  text-decoration: none;
  margin: 0;
  padding: 1em;
}
#nav-links a {
  text-decoration: none;
  color: var(--secondary-colour);
}

#nav-links a:hover {
  border-bottom: 1.5px solid var(--secondary-colour);
}

/* Portfolio Grid Styling */

#portfolio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 95%;
  height: auto;
  margin: 0 auto;
}

#portfolio-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
}

.portfolio-image > img {
  display: block;
  width: 95%;
  margin: 0 auto;
  padding: 0.5em 0;
  transition: all 1s ease-out;
}

.portfolio-image > img:hover {
  transform: scale(90%);
}

.portfolio-words > p {
  display: block;
  width: 95%;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 1.2em;
  text-align: justify;
}

.portfolio-words > h3 {
  width: 95%;
  margin: 0 auto;
  font-size: 1.5em;
  text-align: left;
  font-weight: 500;
}

/* Footer Styling */
footer {
  max-width: 95%;
  margin: 0 auto;
}

#footer-contact {
  margin: 0;
  padding: 0;
}

footer li {
  display: inline-block;
  list-style: none;
  padding: 20px 20px 20px 0;
  font-weight: 600;
  font-size: calc(1rem + 0.2vw);
  text-decoration: none;
}

footer a {
  text-decoration: none;
  color: var(--secondary-colour);
  transition: all 1s ease-out;
}

footer a:hover {
  color: var(--accent-colour);
}

hr {
  margin-top: 100px;
  border: 1px solid var(--accent-colour);
}

/* About Page Styling*/

#container-about {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: self-end;
  max-width: 95%;
  column-gap: 4em;
  margin: 0 auto;
}
section#container-about > div > h3 {
  font-size: 1.2em;
  line-height: 1.5em;
  font-weight: 600;
}

section#container-about > div > p {
  font-size: 1.2em;
  line-height: 2em;
}

section#container-about > div > img {
  max-width: 100%;
  height: auto;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

section#container-about > div#container-about-text {
  width: 100%;
}

/* Single Product Page Styling */

section#single-product-section {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  max-width: 95%;
  margin: 0 auto;
}

#single-product-section a img {
  display: block;
  width: 90%;
  height: auto;
}

.product-details {
  width: 95%;
}

button {
  background-color: var(--primary-colour);
  color: var(--accent-colour);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--accent-colour);
  font-size: 1.2em;
  font-family: var(--body-font);
  font-weight: 500;
}

/* Shop Gallery Styling */

#shop-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 95%;
  height: auto;
  margin: 0 auto;
}
#shop-gallery > div > a > img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}
#shop-gallery > div > p {
  text-align: center;
  margin-top: 0;
  color: var(--primary-colour);
  font-size: 1.2em;
  font-weight: 600;
}

/* Ideas Gallery Styling */

#single-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  padding-bottom: 1.5rem;
  max-width: 90%;
  justify-items: center;
  gap: 1rem;
}

.ideas-image > img {
  max-width: 100%;
}

.ideas-intro-text > p > a {
  color: var(--secondary-colour);
  text-decoration: none;
}

/* Smaller screen responsiveness */

@media (max-width: 600px) {
  #portfolio,
  #shop-gallery {
    grid-template-columns: 1fr 1fr;
  }

  #nav-links {
    display: block;
  }
  #nav-links li {
    font: 0.4em;
    padding: 0.1em;
  }

  header > div > h1 {
    font-size: 3.5rem;
  }

  header > div > p {
    font-size: 0.8rem;
  }
}
@media (max-width: 420px) {
  #portfolio,
  #shop-gallery,
  #single-post {
    grid-template-columns: 1fr;
  }

  #nav-links {
    display: block;
  }
  #nav-links li {
    font: 0.5em;
    padding: 0.2em;
  }
  #footer-contact {
    text-align: center;
  }

  section#single-product-section {
    flex-direction: column;
    align-items: center;
  }

  header {
    margin: 20px 0 30px 0;
  }

  header > div > h1 {
    font-size: 4rem;
  }

  header > div > p {
    font-size: 1rem;
  }

  #container-about {
    display: flex;
    flex-direction: column;
  }
}
