#searchBox {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  width: 90%;
  max-width: 700px;
  padding: 18px 24px;
  margin: 20px auto;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  font-size: 16px;
  color: #f3f4f6;
  outline: none;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchBox::placeholder {
  color: #9ca3af;
}

#searchBox:focus {
  color: #f3f4f6;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.market-boxy-box {
  display: flex;
  align-self: center;
  align-items: center;
  justify-self: center;
  justify-content: center;
  flex-direction: column;
}

/* Results Container */
#results {
  position: -webkit-sticky;
  position: sticky;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-self: center;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  top: 10%;
}

/* Item Cards */
.market-result {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: -webkit-sticky;
  position: sticky;
  top: 10%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  width: 100%;
  max-width: 380px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  padding: 16px;
}

.market-result:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  background-color: rgba(0, 0, 0, 0.1);
}

.market-result img {
  height: auto;
  object-fit: contain;
  float: left;
}

.market-result .market-info {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 16px;
  width: inherit;
}

.market-result .market-info b {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
  color: #f3f4f6;
  font-weight: 700;
}

.market-result-div-info {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  color: #f3f4f6;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-result img.market-coin {
  width: 14px;
  height: 14px;
  float: none;
  margin-left: 5px;
}

/* Category Section */
.market-category-section {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.market-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  display: flex;
  flex-wrap: wrap;
}

.market-category-item {
  flex-wrap: wrap;
  flex-grow: 1;
  flex-basis: 450px;
  justify-content: space-around;
  display: flex;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  color: #f3f4f6;
  font-weight: 600;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: capitalize;
  cursor: pointer;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  justify-content: space-between;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.market-category-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  background-color: rgba(0, 0, 0, 0.1);
  color: #f3f4f6 !important;
  transform: translateY(-4px) scale(1.02);
}

.market-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 10px;
  text-align: left;
  line-height: 1.5;
}

.market-category-item img {
  max-width: 80%;
  max-height: 80%;
  height: 72px;
  width: 72px;
  object-fit: contain;
  margin-left: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.market-category-item:hover img {
  transform: scale(1.1);
}

.market-category-item img.market-bz {
  image-rendering: auto;
}

.market-title {
  font-size: 3.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin-top: 10rem;
  text-align: center;
  color: #f3f4f6;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.market-subtitle {
  font-size: 20px;
  font-family: "MyFont";
  margin-bottom: 10%;
  text-align: center;
  color: var(--primary-text-color);
}

.market-search-icon {
  display: block;
}

.market-categories {
  font-size: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 10%;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #f3f4f6;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.market-categories:hover {
  transform: scale(1.05);
  text-transform: capitalize;
  color: #007bff;
}

.market-category-name {
  margin-right: auto;
  margin-left: auto;
}

.market-category-name p {
  font-size: 1.25rem;
  word-spacing: 2px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  color: #f3f4f6;
}

@media only screen and (min-width: 700px) {
  .market-category-name {
    font-size: 40px;
  }

  .market-categories {
    font-size: 40px;
  }

  .market-searchBox {
    width: 90%;
    height: 40px;
  }
}

/* Divider Line */
/* BRO YK THAT BORDER-BOTTOM EXISTS FOR A REASON */
.market-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 0px 0px 30px 0px;
  box-shadow: none;
}

.market-background {
  background-image: url("../Backgrounds/trees.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.market-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: -1;
}

.market-result {
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.market-result img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  align-items: center;
}

.market-info b {
  display: block;
}

.market-info span {
  font-size: 0.9em;
}

.market-info .market-description {
  font-size: 0.8em;
  margin-top: 5px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#results p {
  padding: 10px;
  text-align: center;
}

.market-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.market-info-head img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
