body {
    margin: 0;
    display: flex;
    justify-content: center;
    height: 100vh;
    /* width: 100%; */
    align-items: center;
    background: wheat;
}

.slider-container {
    position: relative;
}

.image-slider {
    display: flex;
    flex-direction: row;
    width: 500px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,.3);
    overflow: hidden;
}

.image-slider img {
    width: 500px;
    flex-shrink: 0;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 16px;
    opacity: .8;
    cursor: pointer;
}

.btn.prev {
    left: 10px;
}

.btn.next {
    right: 10px;
}

.btn:hover {
    opacity: 1;
}