/* CLASSES TO BE RE-USED THROUGHOUT */
* {
  box-sizing: border-box;
}

.container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

.highlight {
  font-weight: bold;
  color: #ff8800;
  transition: all 0.5s ease-in-out;
}

.large {
  font-size: 40px;
}

.content-inner {
  padding: 0 10px;
}

.button-solid {
  border: none;
  background-color: #ff8800;
  font-weight: bold;
  color: #fff;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.button-solid:hover {
  background: #ff8800d7;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* REMOVING SOME DEFAULT STYLING FROM HTML ELEMENTS */

h1 {
  margin: 0;
}

li {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

/* BODY */
body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  margin: 0;
  padding: 0;
}

/* HEADER */
#header {
  width: 100%;
  background-color: #ff8800dc;
  position: fixed;
  top: 0;
  z-index: 2;
}

#header .logo {
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  padding: 0;
}

#header a {
  color: #000;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.5s ease-in;
  margin: 0;
  padding: 1rem;
}

#header a:hover {
  color: #ffffff;
}

#header .main-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  align-items: center;
}

#header .nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#header .nav-links a {
  font-size: 13px;
  margin: 0;
}

#header .nav-links a:hover {
  background: #333333dc;
}

/* WELCOME AREA */
#welcome {
  background: url("img/welcome.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  height: 100vh;
  position: relative;
  z-index: 1;
}

#welcome::after {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  z-index: -1;
}

#welcome .welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90vh;
}

/* CATEGORIES */
#categories {
  background: #ffe3c3;
  padding: 24px 0;
}

#categories img {
  width: 100%;
  height: 200px;
}

#categories .highlight:hover {
  text-decoration: underline;
}

#categories .grid-4 {
  grid-gap: 16px;
  text-align: center;
}

#categories .grid-item {
  background-color: #fff;
  transition: all 0.5s ease-out;
}

#categories .grid-item:hover {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.4);
}

/* ABOUT AREA */
#about {
  padding: 24px 0;
}

#about img {
  width: 100%;
}

#about .grid-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 16px;
}

#about .about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CONTACT SECTION */
#contact {
  background: url("img/contact-background.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  height: 100vh;
  position: relative;
  z-index: 1;
}

#contact::after {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  z-index: -1;
}

#contact .container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100vh;
}

#contact input {
  border: none;
  border-radius: none;
  width: 240px;
  padding: 0.5rem 0.8rem;
  transition: all 0.4s ease-in-out;
}

#contact input:focus {
  background: #000000b6;
  color: #ff8800;
  outline-color: #ff8800;
}

/* CATERGORIES SECTION 2 */
#categories-2 {
  text-align: center;
  padding: 2rem 0;
}

#categories-2 .category {
  /* text-align: center; */
  padding: 2rem 0;
}

#categories-2 img {
  width: 100%;
}

#categories-2 .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
}

#categories-2 .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
}

/* FOOTER */
#footer {
  background-color: #222;
  color: #fff;
}

#footer .grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
}

/* MEDIA QUERIES */
/* FOR SCREEN SIZES 1000PX AND BELOW */
@media screen and (max-width: 1000px) {
  #categories .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FOR SCREEN SIZES 570PX AND BELOW */
@media screen and (max-width: 570px) {
  .container {
    width: calc(100% - 32px);
  }

  .large {
    font-size: 32px;
  }

  #header li:first-child {
    display: none;
  }

  #header a {
    padding: 16px 8px;
  }

  #header .logo {
    font-size: 16px;
  }

  #header .main-nav {
    width: calc(100% - 32px);
  }

  #categories .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  #about .grid-2 {
    grid-template-columns: 1fr;
  }

  #contact p {
    display: none;
  }

  #contact .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  #contact input {
    width: 100%;
  }

  #contact .button-solid {
    margin-top: 8px;
    width: 100%;
  }

  #footer .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* FOR SCREEN SIZES 460PX AND BELOW */
@media screen and (max-width: 460px) {
  #categories img {
    height: 240px;
  }

  #categories .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* FOR SCREEN SIZES 400PX AND BELOW */
@media screen and (max-height: 400px) {
  #categories .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
