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

body {
  background-color: #616161;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.slider {
  overflow-x: hidden;
  width: 600px;
  border-radius: 20px;
  scroll-behavior: smooth;
}

.slide {
  position: relative;
}

.content {
  display: flex;
  width: fit-content;
}

.content img {
  width: 600px;
  height: 350px;
  object-fit: cover;
}

button {
  width: 40px;
  height: 40px;
  border-radius: 50px;
  border: none;
  background-color: cornflowerblue;
  color: whitesmoke;
  font-size: 22px;
  position: absolute;
  top: 50%;
  cursor: pointer;
}

button:first-of-type {
  left: 0;
  transform: translate(-50%, -50%);
}

button:last-of-type {
  right: 0;
  transform: translate(50%, -50%);
}

button:hover {
  background-color: rgba(87, 132, 215);
}

.length-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 200%);
  display: flex;
  gap: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}

.dot.current {
  background: #222;
}
