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

body {
  background-color: black;
  color: white;
}

.image-gardient {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.5;
}

.layer-blur {
  position: absolute;
  height: 0;
  width: 30rem;
  top: 20%;
  right: 0;
  box-shadow: 0 0 700px 15px white;
  rotate: -30deg;
  z-index: -1;
}

/*navbar*/
.navbar {
  height: 50px;
  display: flex;
  align-items: center;
  margin-top: 15px;
}

h1 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  letter-spacing: 3rem;
  font-size: 3rem;
  font-weight: 300;
  margin-left: 120px;
}

.search-bar {
  height: 35px;
  width: 600px;
  font-size: 15px;
  border-radius: 15px;
  border-style: hidden;
  padding: 2px;
  color: black;
  display: inline-block;
  margin-left: 100px;
  margin-top: 10px;
  text-align: center;
}

.search-icon {
  height: 35px;
  width: 35px;
  font-size: 15px;
  border-radius: 50%;
  border-style: hidden;
  padding: 2px;
  color: black;
  margin-top: 10px;
  display: flex;
  /* centers icon inside */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* shows hand on hover */
  margin-left: -30px;
  z-index: 999;
}

.search-icon:hover {
  font-size: 20px;
  background-color: aqua;
}

.home-icon {
  font-size: 30px;
  color: white;
  padding: 10px;
  display: inline-block;
  margin-left: 100px;
  z-index: 999;
  margin-top: 10px;
}

.home-icon:hover {
  color: aqua;
  font-size: 31px;
}

.cart-icon {
  font-size: 30px;
  color: white;
  padding: 10px;
  display: inline-block;
  margin-left: 100px;
  z-index: 999;
  margin-top: 10px;
}

.cart-icon:hover {
  color: aqua;
  font-size: 31px;
}

.truck-icon {
  font-size: 30px;
  color: white;
  padding: 10px;
  display: inline-block;
  margin-left: 100px;
  z-index: 999;
  margin-top: 10px;
}

.truck-icon:hover {
  color: aqua;
  font-size: 31px;
}

.item-1 {
  height: 300px;
  width: 300px;
  background-image: url("div-1.jpg");
  background-size: cover;
  /* makes image fill the div */
  background-position: center;
}

.item-1:hover,
.item-2:hover,
.item-3:hover,
.item-4:hover,
.item-5:hover {
  height: 310px;
  width: 350px;
  transition: ease-in-out 0.3s;
}

.item-2 {
  height: 300px;
  width: 300px;
  background-image: url(div-2.webp);
  background-size: cover;
  background-position: center;
  margin-left: 10px;
}

.item-3 {
  height: 300px;
  width: 300px;
  background-image: url(div-3.jpg);
  background-size: cover;
  background-position: center;
  margin-left: 10px;
}

.item-4 {
  height: 300px;
  width: 300px;
  background-image: url(div-4.jpg);
  background-size: cover;
  background-position: center;
  margin-left: 10px;
}

.item-5 {
  height: 300px;
  width: 300px;
  background-image: url(div-5.webp);
  background-size: cover;
  background-position: center;
  margin-left: 10px;
  z-index: 999;
}

/* sliding effect on the page  */
.wrapper {
  width: 100%;
  overflow: hidden;
  margin-top: 100px;
}

.container {
  display: flex;
  animation: slide 15s linear infinite;
  /* longer time for smooth sliding */
}

.container div {
  height: 300px;
  width: 300px;
  margin-left: 10px;
  flex-shrink: 0;
}

/* Keyframes */
@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
    /* slide by half, since items are duplicated */
  }
}

.sell {
  margin-top: 50px;
  margin-left: 500px;
}

.img-1 {
  height: 300px;
  width: 300px;
  margin-top: 20px;
  margin-left: 100px;
  border-radius: 10px;
}

.product-carousel {
  height: 300px;
  width: 300px;
  margin-top: 20px;
  margin-left: 100px;
  border-radius: 10px;
  aspect-ratio: 1/1;
}

.wrapper-product {
  display: flex;
  flex-wrap: wrap;
}

.box-product {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 50%;
}

p {
  font-size: 20px;
  max-width: 600px;
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  letter-spacing: 2px;
  margin-left: 10px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

.btn-1 {
  display: flex;
  text-align: center;
  padding: 10px 20px;
  background: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  margin-left: 280px;
  margin-top: 20px;
}

.img-2 {
  height: 300px;
  width: 300px;
  margin-top: 20px;
  border-radius: 10px;
  margin-left: 50px;
}

p {
  font-size: 20px;
  max-width: 600px;
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  letter-spacing: 2px;
  margin-left: 10px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}
/* =========================
   RESPONSIVE MEDIA QUERIES
========================= */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
    letter-spacing: 2rem;
    margin-left: 50px;
  }

  .search-bar {
    width: 400px;
    margin-left: 20px;
  }

  .home-icon,
  .cart-icon,
  .truck-icon {
    margin-left: 20px;
  }

  .container div {
    height: 250px;
    width: 250px;
  }

  .wrapper-product {
    gap: 20px;
  }

  .box-product {
    width: 48%;
  }

  .img-1,
  .img-2 {
    height: 250px;
    width: 250px;
  }
}

/* Mobiles (max-width: 768px) */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    letter-spacing: 1rem;
    margin-left: 10px;
    text-align: center;
  }

  .search-bar {
    width: 250px;
    margin: 10px auto;
    display: block;
  }

  .search-icon {
    margin-left: -40px;
    margin-top: -35px;
  }

  .home-icon,
  .cart-icon,
  .truck-icon {
    font-size: 25px;
    margin-left: 10px;
    margin-top: 10px;
  }

  .container {
    animation: slide 20s linear infinite;
  }

  .container div {
    height: 200px;
    width: 200px;
    margin-left: 5px;
  }

  .wrapper-product {
    flex-direction: column;
    align-items: center;
  }

  .box-product {
    width: 90%;
  }

  .img-1,
  .img-2 {
    height: 200px;
    width: 200px;
  }

  .btn-1 {
    font-size: 14px;
    padding: 8px 16px;
    margin-left: 0;
  }

  p {
    font-size: 16px;
  }
}

/* Extra Small Devices (<480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
    letter-spacing: 0.8rem;
  }

  .search-bar {
    width: 180px;
  }

  .container div {
    height: 150px;
    width: 150px;
  }

  .img-1,
  .img-2 {
    height: 150px;
    width: 150px;
  }

  p {
    font-size: 14px;
  }

  .btn-1 {
    font-size: 12px;
    padding: 6px 12px;
  }
}
