/* ============================= */
/* SPONSORS SECTION STYLES       */
/* ============================= */

/* Container for the sponsors section */
.sponsors-container {
    max-width: 1800px;
    margin: 100px auto;
    padding: 2px;
    border-radius: 8px;
    text-align: center;
}

/* Heading for the sponsors section */
.sponsors-heading {
    font-weight: bold;
    color: red;
    margin-bottom: 2px;
    font-size: 2rem;
    /* optional: uncomment to adjust */
}

/* ============================= */
/* HIGHWAY SLIDER STYLES          */
/* ============================= */

/* Wrapper for the slider */
.highway-slider {
    padding: 10px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100px;
}

/* Barrier container for overflow effect */
.highway-barrier {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 98%;
    height: 140px;
    padding-top: 14px;
    margin: 0 auto;
}

/* Lane containing all sponsor items */
ul.highway-lane {
    display: flex;
    width: calc(180px * 24);
    /* adjust based on number of items */
    margin: 0;
    height: 100px;
    list-style: none;
    padding: 0;
}

/* Individual sponsor items */
li.highway-car {
    flex: 0 0 180px;
    /* fixed width for each item */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #343434;
    animation: translateinfinite 20s linear infinite;
}

li.highway-car img {
    border-radius: 5px;
    width: 100%;
    height: auto;
}

/* Infinite scrolling animation */
@keyframes translateinfinite {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-400%);
    }
}

/* ============================= */
/* CAROUSEL STYLES               */
/* ============================= */

.carousel {
    max-width: 300px;
    margin: 0 auto;
}

.carousel-inner {
    display: flex;
    background-color: rgba(255, 255, 255, 0.7);
    height: 97px;
    margin-bottom: 50px;
    padding: 10px;
    border-radius: 12px;
    align-items: center;
}

.carousel-item {
    flex: 0 0 auto;
}

.carousel-inner img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}

/* ============================= */
/* RESPONSIVE MEDIA QUERIES       */
/* ============================= */

@media (max-width: 768px) {
    .sponsors-container {
        margin: 50px auto;
        padding: 1px;
    }

    .sponsors-heading {
        font-size: 1.5rem;
    }

    .highway-slider {
        height: 80px;
    }

    ul.highway-lane {
        width: calc(120px * 24);
    }

    li.highway-car {
        flex: 0 0 120px;
    }

    .carousel {
        max-width: 200px;
    }

    .carousel-inner {
        height: 70px;
    }
}

.auction-btn {
    background-color: rgba(139, 0, 0, 0.7);
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.auction-btn:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
}

.list-group-item {
    transition: background 0.3s;
}

.list-group-item a {
    color: #333;
    font-weight: 500;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Auction Cards */
.card {
    border: 1px solid #8B2500;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-20px);
    box-shadow: 5px 50px 30px rgba(139, 37, 0, 1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    /* filter: blur(2.5px); */
}

/* Blurred background image */
.blurred-img {
    width: 100%;
    height: 100%;
    filter: blur(1.5px);
    object-fit: cover;
}

/* Centered image that is not blurry */
.centered-img {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    z-index: 1;
    opacity: 0.7;
}

.card-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.card-text {
    font-size: 0.95rem;
    color: #000;
    min-height: 30px;
}

.btn-spacing {
    margin-right: 8px;
    /* Adjust spacing as needed */
}

#btnEditDelete {
    gap: 5px;
}

/* Auction Preview Section */
.auction-preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.auction-preview-card {
    width: 32%;
    margin-bottom: 20px;
}

.datetime {
    font-size: 1.1rem;
    font-weight: bold;
    color: #8B2500;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 150px;
    }
}

.container {
    width: 85%;
    min-height: 20vh;
    margin: 0 auto;
    padding-top: 40px;
}

.containerTwo {
    width: 85%;
    /* min-height: 10vh; */
    min-height: calc(100vh - 294px);
    margin: 0 auto;
    padding-top: 40px;
}

.auction-item {
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.auction-info {
    flex: 2;
    margin-right: 20px;
}

.auction-info h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #333;
}

.auction-info p {
    font-size: 18px;
    margin: 5px 0;
    color: #555;
}

.auction-info .current-bid {
    font-weight: bold;
    font-size: 22px;
    color: #8B2500;
}

.auction-image {
    flex: 1;
    text-align: center;
}

.auction-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bid-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 20px;
}

.bid-amount {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.bid-amount input {
    width: 150px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.bid-amount button {
    padding: 12px 25px;
    background-color: #8B2500;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

.bid-amount button:hover {
    background-color: #8B2500;
}

.auto-bid-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.auto-bid-section input {
    margin-bottom: 10px;
}

.auto-bid-section label {
    font-weight: bold;
}

.auto-bid-section input[type="number"] {
    width: 200px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.live-bids {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.live-bids h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.live-bids ul {
    list-style-type: none;
    padding: 0;
}

.live-bids li {
    margin: 10px 0;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-bids .username {
    font-weight: bold;
    color: #333;
}

.live-bids .bid-amount {
    color: #007bff;
}

/** Auction Details **/
#animalIdButton {
    background-color: #D4A017;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}


#animalIdButton:hover {
    background-color: #D4A017;
}

#computerNumberButton {
    background-color: #D4A017;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

/* Hover effect for "computerNumberButton" */
#computerNumberButton:hover {
    background-color: #D4A017;
}

/** Brandmerk Styling **/
img.picline {
    display: inline-block;
    width: 25px;
    mix-blend-mode: multiply;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 1rem;
}

.grid-container .border {
    width: 34px;
    height: 34px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.grid-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-input {
    display: none;
}

#brandmark1,
#brandmark2,
#brandmark3 {
    border: 1px solid rgb(80, 77, 77);
}

#brandmark1 {
    border: 1px solid red;

}

.upload-block {
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #f8f9fa;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 100%;
    min-height: 230px;
}

.upload-block.dragover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.upload-preview {
    margin-top: 10px;
    max-width: 100%;
    max-height: 200px;
    /* display: none; */
    object-fit: contain;
    margin: 0 auto;
}

#auctionImage {
    display: none;
}

#btnAddAuction {
    display: block;
    margin: 0 auto;
}

/* Auction Details Page */
#aucDetail {
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.7);
    color: red;
    border-radius: 12px;
    padding: 2rem;
    flex-wrap: wrap;
}

h2 {
    margin: 0 auto;
}

.as,
.ae {
    position: absolute;
    line-height: 15px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 230px;
    left: 15px;
}

.as {
    top: 15px;
}

.ae {
    top: 55px;
}