.slider{
    position: relative;
    background: white !important;
    width: fit-content !important;
    padding: 1rem 1.8rem;
    margin: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0px 0px 4px 2px gainsboro;
    height: auto !important;
    border-radius: 0px !important;
}
.slider h1{
    font-size: 2.5rem;
    padding-left: 1rem;
    font-weight: bold;
}
.slider .slider-container{
    display: flex;
    width: fit-content;
    background-color: white;
}
.slider-container .slider-wrapper{
    width: 1000px;
    height: 250px;
    position: relative;
    overflow: hidden;
}
.slider-container .slider-wrapper .inner-wrapper{
    width: 275%;
    height: 95%;
    position: relative;
    left: 0%;
    transition: 0.5s ease-in-out infinite;
}
.slider-container .slider-wrapper .inner-wrapper .minicon{
    width: calc(100%/9);
    height: 95%;
    float: left;
    margin: 0.5%;
    box-shadow: 0px 0px 4px 2px gainsboro;
}
.slider-container .slider-wrapper .inner-wrapper .minicon .inner-text{
    position: absolute; 
    bottom: 0; 
    background-color: white; 
    width: 100%;
    padding: 0.4rem;
}
.slider-container .slider-wrapper .inner-wrapper .minicon .inner-text .caption1{
    font-size: 15px; 
    opacity: 90%;
    text-align: center;
}
.slider-container .slider-wrapper .inner-wrapper .minicon .inner-text .caption2{
    font-size: 14px; 
    margin: 0.2rem 0rem;
    text-align: center;
}
.slider-container .slider-wrapper .inner-wrapper .minicon .inner-text .inner-btns button{
    width: 100%; 
    border: 1px solid green; 
    border-radius: 3px; 
    background-color: white; 
    font-size: 15px; 
    padding: 0.3rem;
}
.slider-container .slider-wrapper .inner-wrapper .minicon .inner-text .inner-btns button:hover{
    background-color: green;
    
}
.slider-container .slider-wrapper .inner-wrapper .minicon .dealerinfo{
    width: 100%; height: 100%; padding: 2rem;
}
.slider-container .slider-wrapper .inner-wrapper .minicon .dealerinfo button{
    background-color: darkcyan; 
    color: white; 
    width: 90%; 
    position: absolute; 
    bottom: 1rem; 
    left: 1.5rem;
}

.button-prev , .button-next{
    width: 3%;
    height: 10%;
    border-radius: 3px;
    padding: 0.4rem;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 5%;
    cursor: pointer;
    color: gray;
    
    background-color: white;
    border: none;
    box-shadow: 0px 5px 15px 2px gainsboro;
}
.button-prev{
    right: 8%;
}
.button-next{
    right: 3%;
}
.button-prev:hover , .button-next:hover{
    border: none;
    transition: 0.1s ease-in-out;
    transform: scale(1.2);
}


@media screen and (max-width: 500px) {
    .slider{
        width: fit-content;
        padding: 1rem 1.8rem;
        margin: 1.5rem;
        margin-top: 2rem;
    }
    .slider h1{
        font-size: 1.5rem;
        padding-left: 0.5rem;
    }
    .slider-container .slider-wrapper{
        width: 420px;
        height: 200px;
    }
    .slider-container .slider-wrapper .inner-wrapper{
        width: 415%;
        height: 95%;
    }
    .slider-container .slider-wrapper .inner-wrapper .minicon{
        width: calc(100%/9);
        height: 95%;
        margin: 0.5%;
    }
    
    .slider-container .slider-wrapper .inner-wrapper .minicon .inner-text{
        padding: 0.4rem;
    }
    .slider-container .slider-wrapper .inner-wrapper .minicon .inner-text .caption1{
        font-size: 1.3rem;
        font-weight: 550; 
        opacity: 80%;
    }
    .slider-container .slider-wrapper .inner-wrapper .minicon .inner-text .caption2{
        font-size: 1.2rem; 
        font-weight: bold; 
        margin: 0.2rem 0rem;
    }
    .slider-container .slider-wrapper .inner-wrapper .minicon .inner-text .inner-btns button{
        font-size: 1.3rem; 
        padding: 0.2rem;
    }
    .slider-container .slider-wrapper .inner-wrapper .minicon .dealerinfo{
        width: 100%; height: 100%; padding: 0.5rem;
    }
    .slider-container .slider-wrapper .inner-wrapper .minicon .dealerinfo h5{
        font-size: 1.2rem;
        font-weight: 550;
    }
    .slider-container .slider-wrapper .inner-wrapper .minicon .dealerinfo button{
        width: 90%; 
        position: absolute; 
        bottom: 0.5rem; 
        left: 0.6rem;
        font-size: 1.2rem;
    }

    .button-prev , .button-next{
        width: 5%;
        height: 10%;
        font-size: 1.6rem;
    }
    .button-prev{
        right: 12%;
    }
    .button-next{
        right: 5%;
    }
    .button-prev:hover , .button-next:hover{
        transform: scale(1.1);
    }
}