:root {
  --main-color: #0c3251;
  --main-color-hover: #195d95;
  --secondary-color: #243f83;
}

html,
body,
header,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
ul,
img,
div,
a {
  margin: 0;
  padding: 0;
  display: block;
}
a,
a:active,
a:visited {
  color: white;
  text-decoration: none;
}

body {
  background-image: url("./img/iceberg-background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Utility classes */

.button {
  border-style: none;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-top: 0.5rem;
}
.title,
.information {
  margin: 1rem;
}
.title {
  font-size: 2rem;
}
.information {
  font-size: 1rem;
  line-height: 1.5;
}
.information li {
  margin-block: 1rem;
}

.responsive-image {
  max-width: 90%;
  height: auto;
}

/*HEADER*/
.header {
  padding-block: 0.8rem;
  padding-inline: 2rem;
  position: relative;
  /*background-image: url("./img/header-footer-bg.jpg");*/
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.header__logo {
  max-width: 150px;
}

.header__hamburger-menu:hover {
  cursor: pointer;
}

.bar {
  width: 35px;
  height: 5px;
  background-color: var(--main-color);
  margin: 6px 0;
}

.header__dropdown {
  z-index: -1;
  background-color: var(--main-color);
  padding: 10px;
  position: absolute;
  top: 70px;
  right: -7px;
  color: white;
  width: 100%;
  animation: slide-in 400ms cubic-bezier(0.26, 0.72, 0.71, 1.05) forwards;
}
.header__dropdown a {
  padding: 10px;
}
.header__dropdown a:hover {
  background-color: var(--secondary-color);
  border-radius: 10px;
}
.item-expandable,
.item-expandable-2 {
  padding: 10px;
}

.dropdown__menu--item {
  margin: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(170, 170, 170, 0.644);
}
.expanded-item__container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}

/* Tablets */
@media (min-width: 600px) {
  .title {
    font-size: 3rem;
    margin: 2rem;
  }
  .information {
    font-size: 1.5rem;
    margin: 2rem;
  }
  .header__logo {
    max-width: 250px;
  }
  .header__dropdown {
    width: 50%;
    border-bottom-left-radius: 1rem;
    border-top-left-radius: 1rem;
    top: 70px;
  }
  .dropdown__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dropdown__menu a {
    width: 60%;
    text-align: center;
  }
  .item-expandable,
  .item-expandable-2 {
    padding: 10px;
    width: 60%;
    text-align: center;
  }
}

/* Desktops */
@media (min-width: 1025px) {
}

/* BODY */
.content__container {
  min-height: 100vh;
}

.hero {
  min-height: 100vh;
  z-index: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
}
.index__title {
  color: var(--main-color);
  font-size: 2rem;
  text-align: center;
  margin-top: 1rem;
}
.hero__content--container {
  display: flex;
  flex-direction: column;
  place-self: center;
}
.hero__content {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.626);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 5px 5px 5px rgba(15, 15, 15, 0.488);
  margin: 1rem;
  padding-bottom: 0.5rem;
}
.hero__intro {
  place-self: center;
  text-align: center;
  margin-block: 1rem;
  font-size: 1.2rem;
}
.hero__carousel {
  height: 400px;
  width: 800px;
  background-color: white;
  margin: 2rem;
}
.youth__button,
.calendar {
  background-color: rgb(255, 251, 243) !important;
  box-shadow: 5px 5px 5px rgba(120, 120, 120, 0.65);
  height: 205px;
  width: 205px;
}
.youth__button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-radius: 10px;
  background-color: white;
  color: black;
  margin-inline: 1rem;
}
.youth__button--links {
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.youth__button--link {
  color: var(--main-color) !important;
  font-size: 1.5rem;
}

.youth__button--link:hover {
  text-decoration: underline;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.youth__button--nav {
  height: 35px;
  width: 100%;
  background-color: var(--main-color);
  border-radius: 0 0 10px 10px;
  text-align: center;
  place-self: flex-end;
  display: flex;
  justify-content: center;
  align-items: center;
}
.youth__button--nav:hover,
.calendar__button:hover {
  background-color: var(--main-color-hover);
}
.hero__image {
  max-height: 200px;
}

.calendar {
  margin-block: 1rem;
  background-color: white;
  color: black;
  border-radius: 10px;
  place-content: center;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calendar__month {
  padding-top: 1rem;
  font-size: 1.3rem;
}
.calendar__date {
  place-self: center;
  font-size: 2.5rem;
}
.calendar__meeting {
  padding: 10px;
  border-radius: 10px;
}
.calendar__button {
  background-color: var(--main-color);
  width: 100%;
  height: 35px;
  border-radius: 0 0 10px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.calendar__services {
  color: var(--secondary-color);
}

@media (min-width: 600px) {
  .hero {
    flex-direction: column;
  }
  .index__title {
    margin-block: 65px;
    padding: 60px;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.626);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 5px 5px 5px rgba(15, 15, 15, 0.488);
    margin: 1rem;
    padding-bottom: 0.5rem;
  }
  .hero__intro {
    font-size: 2rem;
  }
  .hero__buttons {
    flex-direction: row;
  }

  .hero__image {
    max-height: 200px;
  }
  .youth__button,
  .calendar {
    margin-inline: 3rem;
  }
}
@media (min-width: 1025px) {
  .hero {
    flex-direction: column;
  }
  .index__title {
    font-size: 2.7rem;
  }
  .hero__content--container {
    display: flex;
    flex-direction: row;
  }
  .hero__image {
    max-height: 1000px;
  }
  .hero__buttons {
    display: grid;
    grid-template-rows: 1fr 1fr;
    place-items: center;
  }
  .hero__carousel {
    grid-column: 1/3;
    place-self: center;
  }

  .youth__button,
  .calendar {
    margin-inline: 1rem;
  }
}

/* FOOTER */
.footer {
  margin-top: auto;
  /*background-image: url("./img/header-footer-bg.jpg");*/
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer__logo-container {
  display: flex;
  flex-direction: row;
}
.footer__logo {
  max-width: 150px;
  margin: 1rem;
}

.footer__built-by {
  color: white;
}

/* ABOUT */

.youth__group-photo {
  margin-inline: auto;
}

/*Ministers */
.pastors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 2rem;

  place-items: center;
  text-align: center;

  border-radius: 10px;
}

.pastor__card {
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem;
}
.pastor__card * {
  margin-block: 0.5rem;
}

.information-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  place-items: center;
}
.contact-information,
.service-times {
  border: 1px solid rgba(183, 183, 183, 0.665);
  background-color: white;
  box-shadow: 5px 5px 5px rgba(51, 51, 51, 0.653);
  border-radius: 10px;
  width: 200px;
  height: 250px;
  margin: 2rem;
  padding: 1rem;
}
.service-times h2,
.contact-information h2,
.contact-information p,
.service-times p {
  margin-inline: auto;
  margin-block: 0.5rem;
}

.service-times h2,
.contact-information h2,
.links a {
  color: var(--secondary-color);
}
.phone-number {
  color: blue;
}

/* CONTACT FORM */

.contact-form {
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  width: 300px;
}
.contact-form button {
  place-self: center;
  margin-top: 1rem;
}
.contact-form input,
.contact-form textarea {
  margin-bottom: 1rem;
  margin-top: 0.2rem;
  padding: 0.5rem;
  border: 1px solid grey;
  border-radius: 10px;
}

/* PHOTOS */
.photos__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-rows: repeat(1fr);
  gap: 1rem;
}

.photos__container img {
  width: 300px;
}

/* YOUTH */
.youth__links {
  display: flex;
  margin: 2rem;
}

.youth__links > a {
  color: blue;
  margin-right: 1rem;
}
.youth__links > a:hover {
  text-decoration: underline;
}
/* CAROUSEL */

.slideshow-container {
  max-width: 2000px;
  margin: 2rem;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev-1,
.next-1 {
  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;
  background-color: var(--main-color);
}

.next-1 {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev-1:hover,
.next-1:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.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;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.error-page {
  display: flex;
  align-items: center;
  flex-direction: column;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-in {
  0% {
    transform: translateX(500px);
  }
  50% {
  }
  100% {
    transform: translate(0px);
  }
}

.pastor__card--image {
  width: 150px; /* Set a consistent width */
  height: 150px; /* Set a consistent height */
  object-fit: cover; /* Maintain aspect ratio and cover the area */
  /*border-radius: 50%; /* Optional: make the images circular */
}


.title {
  text-align: center;
  margin: 0 auto; /* Optional: To ensure it's centered properly */
}


/* Ensure the flex container behaves correctly on smaller screens */


/* Set individual sections to stack on mobile devices */
@media (max-width: 768px) {
  .content__container {
      flex-direction: column; /* Stack sections vertically */
  }

  .content__container > div {
      flex: 1 1 100%; /* Make each section take full width */
      max-width: 100%; /* Remove any max-width constraints */
  }
}





/* Footer adjustments for mobile */
@media (max-width: 768px) {
  .footer {
    flex-direction: column; /* Keep the main footer content stacked */
    text-align: center;
    padding: 1rem;
  }


  .footer__logo-container {
    display: flex; /* Enable flexbox */
    flex-direction: row; /* Align logos in a single row */
    justify-content: center; /* Center the logos horizontally */
    align-items: center; /* Center align logos vertically */
    gap: 20px; /* Optional: Add spacing between logos */
  }
  

  .footer__logo {
    max-width: 100px; /* Adjust logo size for better fit */
    margin: 0.5rem;
  }

  .footer__built-by {
    font-size: 0.8rem;
  }
}

.information {
  text-align: justify;
}
