* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.slider {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* Increase the button size and center arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;  /* Increase width */
    height: 50px; /* Increase height */
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;               /* Flexbox to center arrow */
    justify-content: center;     /* Horizontally center */
    align-items: center;         /* Vertically center */
    font-size: 24px;             /* Increase arrow size */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Change button hover effect */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Adjust button size for smaller screens */
@media (max-width: 768px) {
    .prev, .next {
        padding: 8px;
        width: 40px;  /* Slightly smaller */
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .prev, .next {
        padding: 5px;
        width: 35px;  /* Even smaller for mobile */
        height: 35px;
        font-size: 18px;
    }
}
