body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #2c334a;
}

.image-slider {
  position: relative;
  width: 80%;
  height: 80%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-slider img {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.image-slider img.active {
  opacity: 1;
}

.slides {
  display: flex;
  width: 400%;
  height: 100%;
  animation: slide 16s infinite;
}

.slides img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@keyframes slide {
  0% { transform: translateX(0); }
  25% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
  100% { transform: translateX(0); }
}