body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.booklet {
    display: none;
    flex: 0 0 calc(33.3333% - 20px); /* Show 3 booklets per view, with space */
    margin: 10px;
    box-sizing: border-box;
}

.booklet img {
    width: 100%;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dots-container {
    text-align: center;
    padding: 20px;
    background: #ddd;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Responsive styling */
@media (max-width: 768px) {
    .booklet {
        flex: 0 0 calc(50% - 20px); /* Show 2 booklets per view on tablets */
    }
}

@media (max-width: 480px) {
    .booklet {
        flex: 0 0 calc(100% - 20px); /* Show 1 booklet per view on mobile phones */
    }

    .prev, .next {
        font-size: 14px;
        padding: 12px;
    }
}

button {
    background-color:  black;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}
