﻿:root {
    --carousel-background: linear-gradient(270deg, #000b3c 0%, #20338a 100%);
    --carousel-head-span: #6280eb;
    --carousel-full-width-line: #6280EB;
    --carousel-button: #DBDCE1;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin-left: 8.125rem;
    margin-right: 8.125rem;
    margin-top: 2rem;
}

.carousel {
    display: flex;
    /* overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;*/
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 300px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 3rem;
    height: 3rem;
    border-radius: 60px;
    border: none;
    background-color: var(--carousel-button);
    transition: 0.3s;
}

    .carousel-button.prev {
        left: 5px;
    }

    .carousel-button.prev:hover{
        color: var(--main-page-text-color);
        background-color: var(--btn-bg-color);
    }

    .carousel-button.next {
        right: 5px;
    }

    .carousel-button.next:hover{
        color: var(--main-page-text-color);
        background-color: var(--btn-bg-color);
    }


/*/////////////////////////////////////////////////////////////////////*/

.best-deal-card {
    border-radius: 12px;
    background: var(--carousel-background);
    border: none;
    width: 16.25rem;
    color: var(--main-page-text-color);
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.head-span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--carousel-head-span);
}

.card-body-text {
    font-size: 1rem;
    font-weight: 500;
}

.profit-value {
    color: #0ce7af;
}

.full-width-line {
    height: 1px;
    background-color: var(--carousel-full-width-line);
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


#deal-date {
    font-weight: 500;
    font-size: 0.75rem;
}