.carousel {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease;
    visibility: hidden;
}

.carousel-images img {
    display: flex;
    width: 50%;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
}

.carousel:hover button.prev,
.carousel:hover button.next {
    opacity: 1; /* Visible when hovering over the carousel */
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

#divdot {
    position:absolute;
    height: 15px;
    justify-content: center;
    display: flex;
    width: 100%;
    bottom: 10px;

  }
.dot{
    position: relative;
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 30%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.dot:hover, .active{
    background-color: #717171;
}