/* Flexbox defaults */
.row {
  display: flex;
}
.column {
  flex-direction: column;
}

/* Navigation Section*/
/* TODO: add cursor point effect, hover effect, link */

header {
  position: fixed;
  top: 0;
  width: 100%;
}
nav {
  background-color: #fff;
  padding: 2rem;
}

.nav-container {
  align-items: center;
}
.nav-logo {
  font-weight: 900;
  font-size: 1.5rem;
}
.logo,
.link {
  text-align: center;
}
.nav-middle-links ul {
  padding: 0;
  margin-top: 0.5rem;
}

nav div a {
  text-decoration: none;
  color: #2e323f;
}
.link {
  list-style-type: none;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* Hero Section*/
.hero-container {
  min-width: 100%;
  min-height: 85vh;
  background-image: url(../images/golf.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}
.hero-content {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 145%;
  letter-spacing: -0.03em;
  color: #fff;
  align-items: center;
  text-align: center;
}

.hero-btn button {
  margin-top: 2rem;
  width: 130px;
  height: 45px;
  background: rgba(0, 0, 0, 0.4);
  color: #f9f9f9;
  border: 1px solid #f9f9f9;
  font-style: normal;
  font-size: 14px;
  line-height: 24px;
  transition: 0.1s ease-in-out;
}
.hero-btn button:hover {
  background: rgba(0, 0, 0, 0.6);
  text-decoration: underline;
  color: #f9f9f9;
}

/* Shop By Category Section */
.category {
  margin: 2rem 0 1rem 0;
  padding: 0rem 1rem;
}
.category-container {
  align-items: center;
}
.category-img {
  min-width: 100%;
}

.category-btn {
  background-color: black;
  color: white;
  font-size: .8rem;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  min-width: 110px;
  margin: 2rem 0;
  padding: 0.5rem;
}
.category-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  text-decoration: underline;

}

/* About Us Section */
.about-container {
  padding: 2rem;
}

.about-desc {
  margin-top: 1.2rem;
  line-height: 180%;
}

/* Contact Form */

.contact-container {
  padding: 2rem;
}

.contact-form input {
  min-height: 3rem;
  margin: 1.2rem 0;
  padding: 0.7rem;
}

.contact-form #message {
  min-height: 8rem;
  padding: 0.7rem;
}
.contact-form .submit-form {
  margin-top: 1.2rem;
}
.submit-form {
  background-color: #000000;
  color: #f9f9f9;
}
.submit-form:hover {
  background: rgba(0, 0, 0, 0.6);
  text-decoration: underline;
  color: #f9f9f9;
}
a,
button {
  cursor: pointer;
}

/* Footer Section */
.container {
  padding: 1rem 2rem;
  margin-top: 2rem;
  background-color: #2d2b2b;
  color: #fff;
}
.footer-container {
  justify-content: space-between;
}
.footer-container a {
  text-decoration: none;
  color: #fff;
  font-weight: 900;
}
.icons + .icons {
  margin-left: 0.6rem;
}
.footer-bottom-content {
  align-items: center;
  margin-top: 4rem;
}
.footer-bottom-content a {
  color: white;
}

/* Hamburger */

.nav-toggle {
  cursor: pointer;
  border: 0;
  width: 3em;
  height: 3em;
  padding: 0em;
  border-radius: 50%;
  background: #2d2b2b;
  color: #2e323f;
  transition: opacity 250ms ease;
  margin-top: 0.6rem;
  margin-left: 0.5rem;
  position: absolute;
  right: 30px;
  top: 12px;
}

.nav-toggle:focus,
.nav-toggle:hover {
  opacity: 0.75;
}

.hamburger {
  width: 50%;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  margin: 0 auto;
  height: 3px;
  background: white;
}

.hamburger::before,
.hamburger::after {
  content: "";
  width: 100%;
}

.hamburger::before {
  transform: translateY(-6px);
}

.hamburger::after {
  transform: translateY(3px);
}

.nav {
  /* visibility: hidden; */
  display: none;
  height: 0;
  position: absolute;
}

.nav--visible {
  /* visibility: visible; */
  display: flex;
  height: auto;
  position: relative;
}

/* Nav Link Styling */

.link,
.link:after,
.link:before {
  transition: all 0.5s;
}
/* stroke */
.link {
  position: relative;
}
.link:after,
.link:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 0%;
  content: ".";
  color: transparent;
  background: #2d2b2b;
  height: 1px;
}
.link:hover:after {
  width: 100%;
}

.link {
  transition: all 1s;
}
.link:hover {
  color: #2d2b2b;
  z-index: 1;
}
.link:hover:after {
  z-index: -10;
  animation: fill 1s forwards;
  opacity: 1;
}

/* Responsive */

@media (min-width: 900px) {
  /* Navbar */
  .nav-toggle {
    display: none;
  }

  .nav {
    visibility: visible;
    height: auto;
  }
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }
  .nav-middle-links {
    display: flex;
    flex-direction: row;
    position: relative;
  }
  .nav-middle-links ul {
    display: flex;
    flex-direction: row;
    margin: 0;
  }
  .nav-right-links {
    display: flex;
    flex-direction: row;
    position: relative;
  }
  .link + .link {
    margin-left: 1rem;
  }

  /* Category */

  .category {
    display: flex;
    flex-wrap: wrap;
  }
  .category-container {
    width: 50%;
    padding: 0rem 1rem;
    margin: 0 auto;
  }
}

@media (min-width: 653px) {
  /* Change colors of button to contrast on mobile view */
  .hero-btn button {
    background: rgba(0, 0, 0, 0.1);
  }
  .hero-btn button:hover {
    background: rgba(0, 0, 0, 0.4);
  }
}
@media (min-width: 2000px) {
  /* Change colors of button to contrast on mobile view */
.category, .contact-container, .about-container,.checkout-container {
  margin: 0 auto;
  max-width: 2000px;
  margin-top: 3rem;
}
.purchase-item-container{
  max-width: 1100px;
}
.hero-content{
  max-width: 1600px;
}

}
