.carousel {
    width: 100%;
    margin: 10px auto;
    position: relative;
    text-align: center;
    background-color: rgb(185, 134, 57);
}

.slides {
    position: relative;
    padding-bottom: 50%;
    border-top: 10px solid rgb(185, 134, 57);
    border-bottom: 10px solid rgb(185, 134, 57);
    
}

.slide {
    width: 100%;
    height: auto;
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s;
}

.slide img {
    display: block;
    width: 100%;
    height: auto;
}

.active {
    opacity: 1;
}

.slide:nth-of-type(1) {
    background-color: coral;
}

.slide:nth-of-type(2) {
    background-color: green;
}

.slide:nth-of-type(3) {
    background-color: blue;
}

.buttons {
    /* display: flex;
    justify-content: space-around;
    align-items: center; */
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    font-size: 3rem;
    transform: translateY(-50%);
    cursor: pointer;
}

.buttons a {
    position: absolute;
    text-decoration: none;
    color:  rgb(185, 134, 57);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 20%;
    user-select: none;
}

.prev {
    left: 0;
}

.prev:hover {
    background: linear-gradient(to left, rgba(185, 134, 57, 0) 30%, rgba(185, 134, 57, 0.5));
}

.next {
    right: 0;
}
.next:hover  {
    background: linear-gradient(to right, rgba(185, 134, 57, 0) 30%, rgba(185, 134, 57, 0.5))
}


