*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.carousel-txt {
  position: relative;
  top: 8%;
  background: rgba(20, 20, 20, 0.5);
  z-index: 10;
  padding: 10px;
  margin: 0 auto;
}

.carousel-txt-clear {
  position: relative;
  top: 8%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 10;
  padding: 10px;
  margin: 0 auto;
}

.carousel {
  width: 100vw;
  height: 100vh;
  position: relative;
  padding: 0;
}

.carousel ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel li {
  padding: 0;
  margin: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-color: rgb(20, 20, 20);
}

.silde-clear {
  background-color: white;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.slide[data-active] {
  opacity: 1;
}

.carousel-button {
  position: absolute;
  background: none;
  border: solid 1px rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 5px;
  padding: 20px;
  background-color: rgba(30, 30, 30, 0.1);
  transition: 0.2s;
  z-index: 10;
}

.carousel-button:hover,
.carousel-button:focus {
  border: solid 1px rgba(255, 255, 255, 1);
  background-color: rgba(30, 30, 30, 0.4);
}

.carousel-button:focus {
  outline: 1px solid black;
}

.carousel-button.prev {
  left: 1rem;
  background-image: url("../imgs/prev-rest-btn-white.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-button.next {
  right: 1rem;
  background-image: url("../imgs/next-rest-btn-white.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.carousel-button.prev:hover {
  background-image: url("../imgs/prev-active-btn-pink.png");

}

.carousel-button.next:hover {
  background-image: url("../imgs/next-active-btn-pink.png");

}

@media (max-width: 1000px) {

  .carousel-button {
    top: 90%;
  }

}
