:root {
    --cat-bg: #121212; 
    --mag-color: #bdbdbd;
    --x-color: #bdbdbd; 
    --cat-bkColor: rgba(19,19,20, 0.68); 
    --cat-oultine: #6e6e6e; 
    --cat-font: 400; 
    --border-forCategories: 2px solid #6e6e6e; 
    --border-forCategoriesSmall: 1px solid #6e6e6e;
    --bord-searchBar: 2px solid #6e6e6e; 
    
}

.dark-mode {
    --cat-bg: #fefefe; 
    --mag-color: #1d1d1d;
    --x-color: #848484; 
    --cat-bkColor: rgba(255,255,255, 0.85); 
    --cat-oultine: none; 
    --cat-font: 600; 
    --border-forCategories: 2px solid #6e6e6e; 
    --border-forCategoriesSmall: 1px solid #6e6e6e;  
    --bg-gray: #fefefe; 
    --bord-searchBar: 1px solid rgba(0, 0, 0, 0.2);
}

.deals_secondContainer {
    position: absolute; 
    top: 5.75rem; 
    z-index: 600; 
    display: grid;
    grid-template-columns: 1fr; 
    background: transparent; 
    margin-left: 370px; 
}


.carouselWrapper {
    width: 100%;
    overflow: hidden;           
    position: relative;         
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

#infoButtonHeaderButton {
    margin-left: 1rem; 
}

#searchInput {
    font-family: "Inter"; 
}

.carousel {
    display: flex;             
    flex-wrap: nowrap;          
    height: 3rem;            
    overflow-x: auto;           
    -webkit-overflow-scrolling: touch;  
    scroll-behavior: smooth;    
    cursor: grab; 
    display: flex; 
    align-items:center;
}

.carousel button {
    font-family: 'inter'; 
    flex-shrink: 0;             
    margin-right: 0.85rem;        
    white-space: nowrap;
    border: none; 
    outline: none; 
    background: var(--cat-bkColor); 
    color: var(--dark-text); 
    border-radius: 20px; 
    font-weight: 500;
    font-size: 0.9rem;
    border: var(--bord-searchBar); 
    padding-top: 0.325rem;
    padding-bottom: 0.15rem;
    letter-spacing: 0rem;
    cursor: grab; 
    user-select: none;         
    transition: font-size 0.3s ease, text-decoration-color 0.3s ease, color 0.3s ease; /* Transition font-size along with color and underline */
}

/* Apply the active state */
.carousel button.active {
    color: var(--dark-text); 
    text-decoration: underline; /* Underline the text */
    text-decoration-color: var(--dark-text); /* Set the underline color */
    font-size: 1rem; /* Larger font size when active */
    font-weight: 600; 
    padding: 0.45rem 0.65rem 0.45rem 0.65rem; 
}

.carousel::-webkit-scrollbar {
    display: none;             
}

.carousel button:last-child {
    margin-right: 35px; 
}

.carousel {
    overflow-x: hidden; /* Prevent horizontal overflow */
    display: flex;
}

input:-webkit-autofill {
    background-color: var(--locationButt-white) !important;
    color: #000000 !important;
    font-family: 'Inter'; 
    font-weight: 500; 
    font-size: 1rem; 
}

input:-webkit-autofill::first-line {
    background-color: var(--locationButt-white) !important;
    font-family: 'Inter';
    font-weight: 500;  
    font-size: 1rem; 
}


input:-internal-autofill-selected {
    background-color: var(--locationButt-white)!important;
    color: #000000 !important;
    font-family: 'Inter'; 
    font-weight: 500; 
    font-size: 1rem; 
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000000;
    transition: background-color 5000s ease-in-out 0s;
    font-family: 'Inter'; 
    font-weight: 500; 
    font-size: 0.975rem; 

}

.scrollLeft2 {
    position: absolute;
    top: 15%;
    left: -2px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 400;
    background: transparent;
    cursor: pointer;
    opacity: 0.8; 
    padding: 0.15rem; 
    transition: opacity 0.33s ease-in-out; 
}

.scrollLeft2:hover {
    opacity: 1; 
}

.scrollRight2 {
    position: absolute;
    top: 15%;
    right: -2px;
    background: none;
    border: none;
    color: var(--text-whiteBlack);
    cursor: pointer;
    background-color: var(--body-bg);
    z-index: 400;
    background: transparent;
    cursor: pointer;
    opacity: 0.8; 
    padding:0.15rem; 
    transition: opacity 0.33s ease-in-out; 
}

.scrollRight2:hover {
    opacity: 1; 
}

.p1r5r1r5r {
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    justify-content: center; 
    border-radius: 1.5rem; 
}

.searchContainer {
    font-family: 'Poppins'; 
    background-color: var(--bg-graybutts); 
    height: 2.1rem; 
    border-radius: 20px;  
    display: flex; 
    align-items: center; 
    width: 100%; 
    border: var(--bord-searchBar);  
    height: 2.3rem; 
}

.searchContainer input {
    color: var(--dark-text); 
    font-family: 'Inter'; 
    font-weight: 400; 
}

.sBarBg {
    font-family: 'Inter';
    border: none;
    outline: none;
    width: 100%;
    padding: 0.245rem 0.20rem 0.35rem 0.20rem;;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500; 
    background-color: var(--bg-graybutts);
}

.sBarBg::placeholder {
    font-family: 'Inter'; 
    color: var(--dark-text);
    font-size: 0.9rem; 
    font-weight: 400; 
}

.flex-end {
    justify-content: flex-end;
}

#clearSearchBtn {
    background: transparent;
    border: none;
    /* font-size: 1rem; */
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    color: var(--dark-text);
    line-height: 1;
    margin-left: 0.45rem;
    margin-right: 0.8rem;
}

.search_magnify {
    background:transparent; 
    border:none;
    padding: 0.5rem 0.4rem 0.45rem 0.55rem; 
    border-radius:100%
}


@media screen and (max-width: 576px) {
    .searchContainer {
        width: 100%; 
        margin: 0 auto; 
    }

    .p1r5r1r5r2 {
        width: calc(100% - 50px); 
    }

    .p1r5r1r5r2 {
        position: absolute;
        top: 3.75rem;
        z-index: 1900;
        left: 0.5rem;
        width: calc(100% - 1.1rem); 
        max-width: 400px; 
    }
}

@media screen and (min-width: 578px) and (max-width: 768px) {
    .searchContainer {
        width: 500px; 
    }

    .p1r5r1r5r2 {
        position: absolute;
        top: 3.75rem;
        z-index: 1900;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 1.1rem);
        max-width: 375px; 
        background-color: var(--nav-bg2); 
    }
}

@media screen and (max-width: 768px) {
    .deals_secondContainer {
       margin-left: 0; 
       left: 0rem; 
       top: 5.7rem; 
       padding-left: 0.5rem;
       margin-right: 2rem;
    }

    .carouselWrapper {
        margin-top: -0.2rem; 
    }
    
    #darkModeSvg svg {
        width: 22px; 
        height: 22px; 
    }

    .searchContainer {
        background-color: var(--bg-graybutts); 
        border: var(--bord-searchBar); 
       
    }

    .search_magnify {
        margin-right: 0rem;
        background: transparent; 
        border:none;
        border-radius:100%
    }

    .carousel button {
        padding-top: 0.35rem; 
        padding-bottom: 0.35rem;
        padding-left: 0.65rem; 
        padding-right: 0.65rem; 
        font-size: 0.875rem;
        border: var(--bord-searchBar); 
        margin-right: 0.35rem; 
    }
    

    .sBarBg {
        font-size: 0.9rem;
        background: transparent; 
    }

    .carousel button.active {
        font-size: 0.95rem;
        padding-top: 0.325rem; 
        padding-bottom: 0.325rem; 
    }

    .carousel {
        height: 3.25rem;
        margin-top: 0.65rem;
    }

    .moonSvg {
        height: 18px; 
        width: 18px; 
    }

       
    .scrollLeft2 {
        visibility: hidden; 
    }

    .scrollRight2 {
        visibility: hidden; 
    }

    #infoButtonHeaderButton {
        margin-left: 1rem; 
    }

   
    .ol-touch .ol-control button {
        font-size: 1.5rem !important;
    }
}

@media screen and (min-width: 769px) {
    .searchContainer {
        width: 20rem; 
    }

    .deals_secondContainer {
        padding-top: 0.25rem; 
        padding-bottom: 0.45rem; 
       
    }

    .carousel button {
        line-height: 1; 
        padding-top: 0.5rem; 
        padding-bottom: 0.5rem;
        padding-left: 0.65rem; 
        padding-right: 0.65rem;
        margin-top: 0.55rem; 
        margin-bottom: 0.55rem; 
    }

    .deals_secondContainer {
        margin-right: 2rem; 
    }

    .carousel button {
        font-size: 0.9rem;
    }

    .carousel {
     margin-top: 0.15rem;
    }
}

@media screen and (min-width: 1125px) {
    .searchContainer {
        max-width: 50rem; 
        width: 35rem; 
    }
}








