body {
  background-color: #f1f1f1;
}

.main-img-tagline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

#home-earbuds {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.main-img-tagline h1 {
  position: absolute;
  padding-top: 1rem;
  padding-left: 1rem;
  margin: 0;
  color: white;
  font-size: 2.5rem;
}

.main-img-tagline p {
  position: absolute;
  padding-top: 5rem;
  padding-left: 1rem;
  margin: 0;
  color: white;
}

.main-img-tagline nav {
  position: absolute;
  padding-left: 1rem;
  bottom: 2rem;
}

.main-img-tagline nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.main-img-tagline nav li {
  margin-top: 1rem;
}

.nav-main-img {
  display: flex;
  flex-wrap: wrap;
}

.main-img-tagline nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  background: rgba(2, 4, 78, 0.9);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.main-img-tagline nav a:hover {
  background-color: white;
  color: rgba(2, 4, 78, 0.9);
  transition: 0.7s;
}

.three-bestsellers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1rem;
  padding-left: 0;
  padding-bottom: 1rem;
  padding-right: 0;
}

.three-bestsellers div {
  position: relative;
  width: 100%;
  height: 40vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.bestsellers-home {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease-in;
  z-index: 1;
}

.three-bestsellers h2,
.three-bestsellers p {
  position: absolute;
  color: white;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.three-bestsellers h2 {
  top: 5%;
}
.three-bestsellers p {
  top: 25%;
}

.bestsellers-home:hover {
  transform: scale(1.05);
}

@media only screen and (max-width: 700px) {
  .three-bestsellers {
    grid-template-columns: 1fr;
    grid-template-rows: 60vw 60vw 60vw;
  }
  .three-bestsellers div {
    height: 60vw;
  }
}

@media only screen and (max-width: 500px) {
  .main-img-tagline nav {
    font-size: 0.7rem;
  }
}
