:root {
  --primaryGreen: #24892c;
  --lighterGreen: #2dc439;
  --darkerGreen: #1c7223;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

html,
body {
  overflow-x: hidden;
}

#hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background-color: transparent;
  background-image: url('/TreeShop/Hero.webp'), url('/TreeShop/Hero.jpg');
  background-attachment: fixed;
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  filter: brightness(55%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 3;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero-content h1 {
  font-size: 6em;
  margin: 0;
  padding: 0rem 5rem;
  transform: translateY(2rem);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
  }
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 2rem;
  gap: 4rem;
  max-width: 1200px;
  margin: 15rem auto;
  box-sizing: border-box;
  width: 100%;
}

.listing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.listing-card h3 {
  font-weight: bold;
  font-size: 1.5em;
}

.listing-card .price {
  font-weight: bold;
  font-size: 1.5em;
  color: green;
}

.listing-card a {
  font-size: 1.5em;
  text-decoration: underline;
}

.listing-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
