
#hero-container {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: -1;
}

#hero-image {
  background-image: url("../assets/data-dashboard-min.jpg");
  height: 30rem;
  background-position: 25% 75%;
  background-size: cover;
  position: relative;
}

#hero-text {
  position: absolute;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: normal;
  top: 0%;
  text-align: left;
  height: 27rem;
  width: calc(100% - 2.5rem);
  min-width: 240px;
  color: white;
  margin: 0;
  padding: 1.5rem 1.25rem;
  -webkit-text-stroke-width: 0.0625rem;
  -webkit-text-stroke-color: white;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

#products {
  margin-bottom: 2rem;
}

.section-header {
  font-size: 1.8rem;
  margin: 0.5rem 0 1.5rem;
}

#product-grid {
  display: grid;
  grid-column-gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  grid-auto-rows: 1fr;
  justify-items: center;
  text-align: center;
}

.product {
  display: grid;
  grid-auto-rows: min-content auto;
  outline: 2px solid gainsboro;
  color: black;
  min-width: 12rem;
  max-width: 20rem;
  width: 90%;
  margin: 0.75rem;
}

.product:hover {
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
  outline: none;
}

.product-logo {
  background-color: whitesmoke;
}

.product:hover .product-logo {
  background-color: gainsboro;
}

.product-title {
  font-size: 1.5rem;
  margin: 1rem auto;
}

.product:hover .product-title {
  -webkit-text-stroke-width: 0.05rem;
  -webkit-text-stroke-color: black;
}

.product-detail {
  font-style: italic;
  font-size: 1rem;
  margin: 0 0.5rem 1rem;
}

.section-text {
  margin-left: 1rem;
  margin-right: 1rem;
  font-size: 1rem;
}

#about {
  width: calc(100vw - 3rem);
  margin-left: -2rem;
  padding: 1rem 0 1rem 2rem;
  background: whitesmoke;
}

#contact {
  margin-top: 1.25rem;
}

@media screen and (max-width: 379px) {
  #hero-image {
    height: 20rem;
  }
  #hero-text {
    font-size: 1.86rem;
    height: 17rem;
    width: calc(100% - 4rem);
    padding: 1.5rem 2rem;
  }

  .section-header {
    font-size: 1.5rem;
    margin-right: 2rem;
  }

  .product-title {
    font-size: 1.3rem;
  }
  .section-text {
    margin-left: 1rem;
  }
}

@media screen and (min-width: 768px) {
  #hero-text {
    width: calc(100% - 4rem);
    padding: 2rem 2rem;
    font-size: 1.8rem;
    height: 26rem;
  }

  .product {
    max-width: 25rem;
  }

  .section-header {
    font-size: 2rem;
  }

  .product-title {
    font-size: 1.7rem;
  }

  .product-detail {
    font-size: 1.1rem;
  }

  .section-text {
    font-size: 1.1rem;
    margin-left: 1.5rem;
    width: 95%;
  }
}

@media screen and (min-width: 1200px) {
  #hero-image {
    height: 35rem;
  }
  #hero-text {
    width: calc(100% - 4rem);
    padding: 2rem 2rem;
    font-size: 1.9rem;
    height: 31rem;
  }

  .product {
    max-width: 30rem;
  }

  .section-header {
    font-size: 2.2rem;
  }

  .product-title {
    font-size: 1.8rem;
  }

  .product-detail {
    font-size: 1.3rem;
  }

  .section-text {
    font-size: 1.3rem;
    width: 75%;
  }
}

@media screen and (min-width: 1600px) {
  #hero-image {
    height: 40rem;
  }

  #hero-text {
    width: calc(100% - 4rem);
    padding: 2rem 2rem;
    font-size: 2em;
    height: 36rem;
  }

  #products {
    width: 85rem;
  }

  .product {
    max-width: 35rem;
  }

  .section-header {
    font-size: 2.4rem;
  }

  .product-title {
    font-size: 2rem;
  }

  .product-detail {
    font-size: 1.5rem;
  }

  .section-text {
    font-size: 1.5rem;
  }
}