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

html, body {
  height: 100%;
  overflow: hidden; /* Disable scroll */
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f2f2f2;
  font-family: Arial, Helvetica, sans-serif;
}

.slider {
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 100%;
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 400%; /* Adjust according to the number of slides */
  height: 100%;
  will-change: transform; /* Improve performance on Safari */
}

.slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

a {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

a img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Navigation Buttons */
button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}

button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Dot indicators */
.indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #717171;
}

/* Prevent vertical scrolling on touch devices */
.slider, .slides {
  touch-action: pan-y;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .slider {
      height: auto; /* Adjust height for mobile */
  }

  .slide img {
      max-width: 100%;
      max-height: 100%;
  }
}
