/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* style guide */

h2 {
    font-family: "Merriweather", serif;
    color: darkgoldenrod;
    font-weight: bold;
    font-size: 30px;
    text-shadow: 1.5px 1.5px 2.5px white;
}

h1 {
    font-size: 75px;
    font-weight: bold;
    font-family: "Lato", sans-serif;
    color: goldenrod;
    text-shadow: 3px 3px 4.5px darkgreen;
}

h3 {
    font-size: 14px;
    font-family: "Lato", sans-serif;
    color: green;
    text-shadow: 1.5px 1.5px 2.5px white;
}

p {
    font-size: 20px;
}

a, p, button {
    font-family: "Lato", sans-serif;
    color: black;
}

a {
    list-style: none;
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.nav-menu li, .nav-menu a {
    list-style: none;
    text-decoration: none;
    font-size: 20px;
    color: darkgoldenrod;
    text-shadow: 1.5px 1.5px 2.5px white;
    font-weight: bold;
}

.nav-menu li:hover, .nav-menu a:hover {
    color: darkgreen;
}

button {
    padding: 5px;
    border-radius: 10px;
    border: solid black 2.5px;
    cursor: pointer;
    background-color: yellowgreen;
    opacity: 0.8;
    transition: 0.2s;
    font-weight: bold;
    margin-top: 6px;
}

.search-container button:hover {
    background-color: green;
}

.search-container button:active {
    background-color: goldenrod;
}

header {
    background-color: #C1BAA1;
}

.background {
    background-color: rgba(218, 165, 32, 0.267);

}

/* positioning / styling elements */

/* nav / search bars */
.head-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 120px;
}

/* search bar */
.search-container {
    border: inset black 2px;
    border-radius: 10px;
    padding: 1.5px;
    background-color: #ECEBDE;
    width: 60%;
    height: 50px;
}

.search-container button {
    background-color: darkgoldenrod;
    float: right;
}

.search {
    border: none;
    font-family: 'lato', sans-serif;
    background-color: #ECEBDE;
    margin: 4px;
    width: 95%;
    text-align: center;
    font-size: 20px;
    padding: 7px;
}

/* check out */
.cart-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-items: center;
    border: solid black 2px;
    border-radius: 10px;
    padding: 15px 5px;
    background-color: #ECEBDE;
}

/* nav menu */

.header-nav {
    position: sticky;
    top: 0;
    z-index: 2;
}

.nav-menu {
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    background-color: #D7D3BF;
    flex-direction: row;
}

/* hero */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/flower-herb-hero.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.7; /* Adjust for transparency */
    z-index: 0;
  }
  
  .hero h1 {
    position: relative;
    font-size: 4rem;
    z-index: 1; /* Puts the text above the image */
  }

/* intro section w slideshow */
.intro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 20px;
}

.intro-container h2, .intro-container p {
    text-align: center;
    margin: 40px;
    padding: 20px;
}

/* slideshow */
.slideshow-container {
    /* max-width: 50%; */
    position: relative;
    margin: auto;
    width: 600px;
    height: 600px;
}

.slideshow-img {
    object-fit: cover;
}

.slides {
    display: none;
    width: 100%;
    overflow: hidden;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }

  /* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }

.CTA-container {
    display: flex;
    justify-content: center;
}

.CTA button {
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: yellowgreen;
  border: solid black 2.5px;
  border-radius: 15px;
  box-shadow: 0 9px darkgoldenrod;
  opacity: 0.8;
  transition: 0.2s;
  margin: 20px 8px;
  color: darkgreen;
  text-shadow: 2px 2px 4px white;
}

.CTA button:hover {
    background-color: green;
}

.CTA button:active {
  background-color: goldenrod;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.social-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.socials a {
    color: seagreen;
    text-shadow: 2px 2px 4px white;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #dbceaf;
}

.footer-container div {
    display: flex;
    gap: 5px;
    justify-content: space-evenly;
    align-items: center;
}

.larger-font {
    font-size: 20px;
}

  /* media queries */
@media (max-width: 768px) {

    .intro-container {
        flex-direction: column;
    }

    .search-container button {
        
    }

}

@media (max-width: 375px) {

    .head-container {
        height: 250px;
        flex-direction: column;
    }

    button {
        margin-top: 20px;
        margin-right: 20px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .intro-container {
        flex-direction: column;
        margin: 0;
    }

    .intro-container h2, .intro-container p {
        padding: 0;
    }

    .slideshow-container {
        width: 350px;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
    }

    .CTA button {
        margin-bottom: 80px;
    }

    .social-container {
        height: 130px;
    }

}