*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: rgb(236, 232, 235);
}
 body{
    overflow: hidden;
} 
.carousel{
    width: 80%;
    min-width: 375px;
    height: 50%;
    overflow: hidden;
    margin: 0 auto;
}
.car-image{
    height: 350px;
    position: relative;
    place-items: center;
    transition: 900ms cubic-bezier(0.48, 0.15, 0.18, 1);
    scroll-behavior: smooth;
    width: 100%;
    /* overflow: hidden; */
}
.image{
    height: 100%;
    width: 100%;
    position: absolute;

}
.image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
   /* margin: 0 auto;*/
}
.prev-arrow button , .next-arrow button{
    border-radius: 50px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    z-index: 50;
    padding: 8px;
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    transition: 400ms;
    opacity: 0;
}
.prev-arrow button:hover , 
.next-arrow button:hover{
    background-color: rgb(134, 142, 143);
    color: white;
    opacity: 1;
}
 .prev{
    left: 20px;
}
.next{
    right: 20px;
}
.dots{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    transition: background-color 0.6s ease;
    margin: 10px;
}
.dot{
    opacity: 0.7;
    transition: 400ms;
    background-color: rgb(207, 203, 203);
    height: 10px;
    width: 10px;
    margin: 5px;
    border-radius: 50%;
    border: 1px solid black;
    cursor: pointer;
}
.dot.active{
    background-color: black;
}
.dot:focus{
    border: 1px solid black;
}


/*when screen size is 1440px*/
@media only screen and (min-width:1366px) {
.carousel{
    width: 73%;
    height: 90%;
    overflow: hidden;
    margin: 0 auto;
}
.car-image{
    height: 500px;
    position: relative;
    place-items: center;
    transition: 900ms cubic-bezier(0.48, 0.15, 0.18, 1);
    scroll-behavior: smooth;
    width: 1000px;
}
.image{
    height: 100%;
    width: 100%;
    position: absolute;
    margin: auto;
    left: 50px;
    right: 50px;
}
/*body{
    height: 100vh;
    display: block;
    place-items: center;
}*/
.image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.prev-arrow button , .next-arrow button{
    border-radius: 50px;
     border: none;
    font-size: 30px;
    cursor: pointer;
    width: 80px;
    height: 80px;
    z-index: 100;
    padding: 10px;
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    transition: 400ms;
    opacity: 0;
}
.prev-arrow button:hover , 
.next-arrow button:hover{
    background-color: rgb(134, 142, 143);
    color: white;
    opacity: 1;
}
 .prev{
    left: 330px;
}
.next{
    right: 330px;
}
.dots{
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.6s ease;
    margin: 16px;
}
.dot{
    opacity: 0.7;
    transition: 400ms;
    background-color: rgb(207, 203, 203);
    height: 16px;
    width: 16px;
    margin: 8px;
    border-radius: 50%;
    border: 1px solid black;
    cursor: pointer;
}
.dot.active{
    background-color: black;
}
.dot:focus{
    border: 1px solid black;
}
}

/*when screen size is 1440px*/
@media only screen and (min-width:1440px) {
    .carousel{
        width: 65%;
        height: 80%;
        overflow: hidden;
        margin: 0 auto;
    }
    .car-image{
        height: 700px;
        position: relative;
        place-items: center;
        transition: 900ms cubic-bezier(0.48, 0.15, 0.18, 1);
        scroll-behavior: smooth;
        width: 1000px;
    }
    .image{
        height: 100%;
        width: 100%;
        position: absolute;
        margin: auto;
        left: 50px;
        right: 50px;
    }
    /*body{
        height: 100vh;
        display: block;
        place-items: center;
    }*/
    .image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0 auto;
    }
    .prev-arrow button , .next-arrow button{
        border-radius: 50px;
         border: none;
        font-size: 30px;
        cursor: pointer;
        width: 80px;
        height: 80px;
        z-index: 100;
        padding: 10px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: 400ms;
        opacity: 0;
    }
    .prev-arrow button:hover , 
    .next-arrow button:hover{
        background-color: rgb(134, 142, 143);
        color: white;
        opacity: 1;
    }
     .prev{
        left: 280px;
    }
    .next{
        right: 280px;
    }
    .dots{
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.6s ease;
        margin: 16px;
    }
    .dot{
        opacity: 0.7;
        transition: 400ms;
        background-color: rgb(207, 203, 203);
        height: 16px;
        width: 16px;
        margin: 8px;
        border-radius: 50%;
        border: 1px solid black;
        cursor: pointer;
    }
    .dot.active{
        background-color: black;
    }
    .dot:focus{
        border: 1px solid black;
    }
    }