*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background: hsl(49 37% 94%);
}
section {
  margin-bottom: 2.5rem;
}

section:last-of-type {
  margin-bottom: 1.25rem;
}

.img-slider {
  width: calc(203px * 2.5);
  height: calc(270px * 2.5);
  display: flex;
  flex-direction: column;
  margin: auto;
  position: relative;
}

.img-slider img {
  width: 100%;
  height: 100%;
}

.btn {
  position: absolute;
  background: none;
  border: 0;
  font-size: 2.5rem;
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  color: red;
  color: rgba(255, 255, 255);
  border-radius: 0.25rem;
  cursor: pointer;
  padding: 0 0.5rem;
  background-color: rgba(0, 0, 0, 0.7);
}

.btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(0, 0, 0, 0.5);
}

.prev {
  left: 0rem;
}

.next {
  right: 0rem;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 250ms opacity ease-in-out;
  transition-delay: 250ms;
}

.slide[data-active] {
  opacity: 1;
  transition-delay: 0ms;
  z-index: 2;
}

.text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  text-align: center;
  padding-inline: 1.25rem;
  line-height: 2.2rem;
}

.footer {
  margin-top: 0.75rem;
}

p {
  font-family: Oswald;
  font-size: 2rem;
  color: black;
}

@media screen and (max-width: 768px) {
  p {
    font-size: 2rem;
  }

  .btn {
    font-size: 2rem;
    padding: 0 0.25rem;
  }
}

@media screen and (max-width: 425px) {
  p {
    font-size: 1.5rem;
  }

  .img-slider {
    width: calc(203px * 1.8);
    height: calc(270px * 1.8);
  }
}
