html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}
main {
  flex: 1;
}

body {
  font-family: "Merriweather", sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.navbar {
  font-size: 1.8rem;
}

.navbar-brand img {
  height: 125px;
  margin: 0 10px;
}

.navbar-nav {
  padding-right: 1vw;
}

.nav-item {
  font-size: 75%;
  padding: 0 12px;
}

.nav-item a:hover {
  color: #80b2bb;
}

.footer-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-item a {
  color: black;
}

.footer-item a:hover {
  color: #80b2bb;
}

@media (max-width: 800px) {
}

.index-header {
  text-align: center;
}

.index-text {
  font-weight: 500;
  color: lightslategrey;
  font-size: 24px;
}

.tiny-space {
  padding-bottom: 2%;
}

.mini-space {
  padding-bottom: 3%;
}

.small-space {
  padding-bottom: 5%;
}

@media (max-width: 800px) {
  .tiny-space {
    padding-bottom: 4%;
  }

  .mini-space {
    padding-bottom: 6%;
  }

  .small-space {
    padding-bottom: 10%;
  }
}

* {
  box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
  width: 100%;
  min-height: 300px;
  position: relative;
  margin: auto;
}

.slideshow-container img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
  animation-fill-mode: forwards; /* Keeps the final state after the animation */
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.sermon-btn {
  background-color: grey;
  color: white;
  border-color: grey;
}

.sermon-header {
  color: #3c9ca7;
}

.host {
  color: #3c9ca7;
}

.document_types {
  color: #3c9ca7;
}

.locations {
  color: #3c9ca7;
}

.sermon-second-bar {
  padding-right: 2%;
}

.center {
  text-align: center;
}

.subtype {
  font-size: 20px;
}

.description {
  font-size: 15px;
}

.subtype-icon {
  color: grey;
  padding-right: 1%;
}

.btn-primary {
  background-color: grey !important;
  border-color: grey !important;
}

.video-section {
  display: none;
}

.audio-section {
  display: none;
}

@media only screen and (min-width: 1200px) {
  .sermon-video {
    height: 658;
    width: 1170;
  }
}

.about-section,
.members-section {
  width: 100%;
  height: auto;
}

.about-section-content p {
  padding: 10px 0;
}

/* From Uiverse.io by Yaya12085 */
.facebook-button {
  background: transparent;
  position: relative;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #0163e0;
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: #0163e0;
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
}

.facebook-button svg {
  fill: #0163e0;
  height: 25px;
  width: 25px;
}

.facebook-button span {
  margin: 10px;
}

.facebook-button::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: "";
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

.facebook-button:hover {
  color: #fff;
  border: 1px solid #0163e0;
}

.facebook-button:hover svg {
  fill: currentColor;
}

.facebook-button:hover::before {
  box-shadow: inset 0 0 0 10em #0163e0;
}

.video-section,
.audio-section {
  display: none;
}

.sermon-btns button {
  margin: 0 5px;
  font-size: 1.2rem;
}

.account-link {
  font-weight: 500 !important;
}

.text-break {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.map-container {
  width: 100%;
  max-width: 75%;
  height: 400px; /* Desktop height */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

gmp-map {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive adjustments for mobile */
@media (max-width: 800px) {
  .map-container {
    height: 300px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
  }
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.2); /* Light fade instead of solid black */
}
