* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, "Times New Roman", Times, serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f2f2f2;
  color: rgb(0, 117, 121);
  min-height: 100vh;
}
/* Slider */
.slider {
  width: 90%;
  max-width: 550px;
  position: relative;
  text-align: center;
  margin: auto;
}

h1 {
  margin-bottom: 30px;
}
.slides {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 70vh;
  max-height: 550px;
}
.slide {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}
.slide.active {
  display: block;
  animation: fade 0.5s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
 /* Buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.48);
  color: white;
  border: none;
  font-size: 25px;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.2s ease;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
.prev:hover,
.next:hover {
  background-color: black;
}

/* Dot navigation */
.dots {
  margin-top: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  background-color: #bbb;
  display: inline-block;
  margin: 5px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.dot:hover {
  background: rgb(113, 182, 185);
}
.dot.active {
  background: rgb(0, 117, 121);
}
/* Responsive */
@media (max-width: 600px) {
  .prev,
  .next {
    font-size: 18px;
    padding: 8px 12px;
  }
  .slides {
    height: 400px;
  }
}
