/* index.css */

html {
  scroll-behavior: smooth;
}

/* Target all elements that can be scrolled to via an ID */
[id] {
  scroll-margin-top: 100px; /* Adjust this value based on your header's height */
}

body {
    font-family: 'Inter', sans-serif;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-scale {
    transition: transform 0.2s ease;
}

.btn-scale:active {
    transform: scale(0.95);
}

.ebay-widget-container {
    position: relative;
    min-height: 300px;
}

.ebay-widget-container::before {
    content: 'Loading eBay listings...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #a0aec0;
    font-size: 1.2rem;
    display: none;
}

.ebay-widget-container.loading::before {
    display: block;
}

.ebay-widget-fallback {
    display: none;
    text-align: center;
}

.ebay-widget-container.loading .ebay-widget-fallback {
    display: block;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(to right, #1a202c, #2d3748);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar a {
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #63b3ed;
}

.footer {
    border-top: 1px solid #4a5568;
}

.header-title {
    transition: color 0.3s ease;
}

.header-title:hover {
    color: #63b3ed;
}

input:invalid:focus, textarea:invalid:focus {
    border-color: #f56565;
}

.error {
    color: #f56565;
    font-size: 0.875rem;
}
   
/* Are you in? This section styles the user profile. */
.user-profile {
  border: 1px solid #ccc;
}