#infografik-carousel.container {
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  font-family: sans-serif;
}
.carousel {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.slide {
  position: absolute;
  width: 450px;
  height: 550px;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 90%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slide span {
  display: block;
  margin-top: 8px;
  font-weight: bold;
  font-size: 25px;
  color: #f5f5f5;
}

.active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
}

.prev {
  transform: translateX(-220px) scale(0.8);
  opacity: 0.6;
  z-index: 2;
}

.next {
  transform: translateX(220px) scale(0.8);
  opacity: 0.6;
  z-index: 2;
}

.hidden {
  opacity: 0;
  transform: scale(0.5);
  z-index: 1;
}

.buttons {
  margin-top: 90px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

button {
  padding: 8px 18px;
  border: 1px solid #333;
  background: #333;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

button:hover {
  background: #f5f5f5;
  color: #333;
}
