body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #FEDE5F, #F8F4FF);
    font-family: var(--font-primary);
}

html {
    overflow-x: hidden;
}

:root {
    --font-primary: 'Montserrat', 'Lora', 'Open Sans', sans-serif;
    --font-heading1: 'Lora', 'Open Sans', 'Montserrat', serif;
    --font-heading2: 'Open Sans', 'Lora', 'Montserrat', sans-serif;
}

h2, h3, h4, button {
    font-family: var(--font-heading1);
}

p {
    font-family: var(--font-heading2);
}

.row {
  margin-left: 0;
  margin-right: 0;
}

/* Loader */
.loader {
  border: 0.4rem solid #f3f3f3;
  border-top: 0.4rem solid #FFD700;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.hidden {
  display: none;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Basic styling */
h1 {
    font-family: 'Montserrat';
    color: #FFD7F3;
    font-size: 2rem;
    margin: auto;
}

h5 {
    color: white;
}

/* Header */
.navbar {
    background-color: #9576DD;
    display: flex;
    align-items: center;
}

#accountInfoNavbar {
    font-size: 0.65rem;
}

.hamb-icon {
    color: #FFD7F3;
    font-size: 2rem;
}

button[data-bs-toggle="offcanvas"] {
    border: none;
}

.offcanvas {
    background-color: #9576DD;
}

#desktopHeader,
#mobileHeader {
    color: #FFD7F3;
}

/* Cards */
.card {
    background-color: #FFD7F3;
    border-radius: 1px;
    border: 1px solid #9576DD;
    border-radius: 25px;
    overflow-x: hidden;
}
.card-carousel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* adjust as needed */
    margin-bottom: 1rem;
}

.carousel-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

.left-btn { left: 0.5rem; }
.right-btn { right: 0.5rem; }

/* Buttons */
.btn-primary-custom {
    background-color: #FFD700;
    color: black;
    font-weight: bold;
    border: #9576DD solid 1px;
    border-radius: 25px;
    padding: 0.4rem 1rem;
}

.arrow-icon {
    font-size: 1.5rem;
    color: #9576DD;
}

#makeBidBtn {
    margin: 2rem auto;
}

/* Pages */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

/* Filter button */
#filterDropdown {
    min-width: 10rem;
    padding: 0.5rem 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.175);
    top: 100%;
    left: 0;
    z-index: 1000;
}

#filterDropdown .dropdown-item {
    padding: 0.25rem 1.5rem;
    cursor: pointer;
}

#filterDropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

#filterDropdown li:hover {
    cursor: pointer;
}

/* Forms */
#updateProfileForm,
#createListingForm,
#bidForm {
    background-color: #FFD7F3;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

#updateProfileForm {
    display: flex;
    justify-content: center;
}

#updateProfileForm button {
    width: auto;
}

#bio,
#description {
    resize: none;
}

/* Register page */
fieldset {
    background-color: #FFD7F3;
    max-width: 20em;
    width: 100%;
    border: 2px solid #9576DD;
}

.signin-link {
    color: #007bff;
    text-decoration: none;
}

.signin-link:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (min-width: 768px) {
    #mobileHeader {
        display: none !important;
    }

    #desktopHeader {
        display: flex !important;
    }

    main {
        margin: 0 4rem;
    }

    #updateProfileForm,
    #createListingForm {
        padding: 6rem;
    }
}