@charset "utf-8";

#missionstatement {
  margin: 3rem;
}

#missionstatement h1 {
  margin: 0 3rem;
  padding: 0;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #330066;
  line-height: 140%;
}

.carousel {
  height: 74vh;
  width: 74%;
  margin: 4rem auto 0;
  position: relative;
}

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

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 350ms opacity ease-in-out;
  transition-delay: 350ms;
  border: solid 2px #330066;
  border-radius: 8px;
}

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

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

.carousel-button {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  transition: 500ms;
  transition-delay: 100ms;
}

.carousel-button:hover,
.carousel-button:focus {
  color: white;
  background-color: rgba(0, 0, 0, 0.45);
}

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

.carousel-button.prev {
  left: 0.5rem;
}

.carousel-button.next {
  right: 0.5rem;
}

.carousel-description {
  margin: 0.5rem auto 4rem;
  padding: 0;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

@media (max-width: 1200px) {
  .carousel {
    height: 67vh;
  }
  .carousel-button {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  #missionstatement h1 {
    margin: 0 2rem;
    font-size: 1.5rem;
  }
  .carousel {
    height: 50vh;
    width: 90%;
  }
  .carousel-button {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  #missionstatement h1 {
    margin: 0 1.25rem;
    font-size: 1.3rem;
    line-height: 120%;
  }
  .carousel {
    height: 33vh;
  }
  .carousel-button {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  #missionstatement h1 {
    margin: 0 0.75rem;
    font-size: 1.2rem;
  }
  .carousel {
    height: 25vh;
    width: 96%;
  }
  .carousel-button {
    font-size: 1.5rem;
  }
  .slide {
    border-radius: 0;
  }
  .slide > img {
    border-radius: 0;
  }
  .carousel-description {
    font-size: 0.75rem;
  }
}
