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

html, body {
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}
main {
  display: flex;
  height: 100%;
  width: 100%;
  height: 2000px; /* static height - change later < 2000px breaks the footer for some reason*/
  background-color: white;
  line-height: 24px;
}
p {
  min-width: 0;
}
#footer {
  flex-shrink: 0;
  font-size: 12px;
  text-align: center;
  background-color: rgb(124, 182, 162);
}
#copyright {
  padding: 2rem;
  background-color: #345672;
  color: white;
}
#header {
  display: flex;
  flex-shrink: 0;
  flex-grow: 0;
  z-index: 1000;
  align-items: center;
  text-align: center;
  height: 60px;
  width: 100%;
  gap: 10px;
  background-color: #34725a;
  color: white;
}
.nav-left {
  flex: 1;
  display: flex;
  height: 100%;
  align-items: center;
  margin-right: auto;
  padding-left: 1rem;
  gap: 1rem;
}
.logo {
  color: white;
  text-decoration: none;
  font-size: 34px;
}
#modmata-icon {
  height: 40px;
  width: 40px;
  background-color: white;
}
.nav-search {
  flex: 1;
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;

}
.search-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  border-radius: 4px;
}
.search-container:focus-within {
  outline: none;
  border: 3px solid rgb(80, 170, 55);
}
.filter-button {
  flex-shrink: 0;
  height: 40px;
  width: 40px;
  background-color: rgb(224, 224, 224);
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 4px 0px 0px 4px;
}
.filter-button img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
.nav-search input {
  height: 40px;
  min-width: 200px;
  width: 100%;
  padding: 0 1rem;
  outline: none;
  border: none;
}
.search-button {
  flex-shrink: 0;
  height: 40px;
  width: 40px;
  background-color: rgb(224, 224, 224);
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 0px 4px 4px 0px;
}
.search-button img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  height: 100%;
  padding-right: 1rem;
  font-size: 14px;
}
.nav-right a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  height: 100%;
  border: 1px solid transparent;
  padding: 0 0.5rem;
}
.nav-right a:hover {
  text-decoration: underline;
  border: 1px solid white;
}
.nav-cart {
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.nav-cart-link {
  gap: 4px;
}
#center-text {
  width: fit-content;
  margin: 0 auto;
  text-align: left;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
#center-text p {
  text-align: left;
}
#page-heading {
  display: flex;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 4rem;
}
#features {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}
#market {
  width: 100%;
  height: 100%;
  padding: 1rem;
  background-color: white;
}
.grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.item {
  position: relative;
  display: flex;
  height: auto;
  width: 100%;
  max-width: 150px;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  border-radius: 2px;
  cursor: pointer;
  border: solid 2px transparent;
}
.item a {
  display: block;
}
.item img {
  height: auto;
  width: 100%;
  object-fit: cover;
}
.item-text {
  display: flex;
  padding: 12px 0;
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  gap: 4px;
}
.item-price {
  font-size: 20px;
  font-weight: bold;
}
.item-name {
  font-size: 16px;
}
.item-location {
  font-size: 14px;
  color: gray;
}
.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.item:hover {
  border: solid 2px white;
}
.socials {
  display: flex;
  min-height: 40px;
  padding: 2rem;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.socials img {
  max-width: 30px;
  cursor: pointer;
  background-color: transparent;
  opacity: 0.95;
}
#email-icon {
  background-color: white;
}