/* Color Palette */
:root {
  --magic-blue: #7c5cff;
  --yellow: #ffeb42;
  --green: #4fffb6;
  --red: #ff0000;
  --blue: #b3ddf2;
  --grey: #f5f5f7;
  --primary: #333333;
}

/* Style Overrides */
.card {
  border-radius: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

html,
body {
  margin: 10px;
  background-color: var(--grey);
}

/* Only apply these styles to links that don't have Tailwind classes and aren't buttons */
a:not([class*="btn"]):not([class*="bg-indigo"]):not([class*="bg-gradient-to-r"]):not([class*="text-white"]) {
  color: var(--primary);
  text-decoration: none;
}

a:not([class*="btn"]):not([class*="bg-indigo"]):not([class*="bg-gradient-to-r"]):not([class*="text-white"]):hover {
  color: var(--red);
  text-decoration: none;
}

.button {
  background: black;
  color: white;
  border: none;
}

.button:hover {
  background: var(--red);
  color: white;
  border: none;
}

.blue-bg {
  background: var(--blue);
}

/* credit: https://codepen.io/alvarotrigo/pen/PoKMyNO */
.animate-character {
  /* text-transform: uppercase; */
  background-image: linear-gradient(
    -225deg,
    var(--magic-blue) 0%,
    #44107a 29%,
    var(--red) 67%,
    var(--yellow) 100%
  );
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s linear infinite;
  display: inline-block;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

/* Shimmering About Link */
.glimmer-link {
  position: relative;
  color: #dc2626 !important;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
}

.glimmer-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Start Selling Now Button - Force white text on hover */
a[href*="new_item"] {
  color: white !important;
}

a[href*="new_item"]:hover {
  color: white !important;
}
