/* put fonts first */
@font-face {
  font-family: "LibreFranklin-SemiBold";
  src:
    url(../fonts/LibreFranklin-SemiBold.woff2) format("woff2"),
    url(../fonts/LibreFranklin-SemiBold.ttf) format("truetype");
}

@font-face {
  font-family: "Newsreader-VariableFont_opsz,wght";
  src:
    url(../fonts/Newsreader-VariableFont_opsz,wght.woff2) format("woff2"),
    url(../fonts/Newsreader-VariableFont_opsz,wght.ttf) format("truetype");
}

@font-face {
  font-family: "OpenSans";
  src:
    url(../fonts/OpenSans.woff2) format("woff2"),
    url(../fonts/OpenSans.ttf) format("truetype");
}


* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: #f6f8f8;
}

/* set headings */
h6, h5, h4, h3, h2, h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

/* extracted Bootstrap 5 heading settings */
h1{
  calc(1.375rem + 1.5vw);
}

h2{
  font-size: calc(1.325rem + 0.9vw);
}

h3{
  font-size: calc(1.3rem + 0.6vw);;
}

h4{
  font-size: calc(1.275rem + 0.3vw);
}

h5{
  font-size: calc(1.125rem + 0.15vw);
}

h6{
  font-size: calc(1rem + 0.05vw);
}

/* extra standalone font family classes */
.news {
  font-family: Newsreader-VariableFont_opsz, wght, serif;
}

.lbf{
    font-family: LibreFranklin-SemiBold, sans-serif;
}


.header {
  height: auto;
  text-align: center;
  font-family: Newsreader-VariableFont_opsz, wght, serif;
  font-size: 4rem;
  color: #1a1f21;
  background-color: #f6f8f8;
  top: 0;
  position: sticky; /* sticky with top: 0 keeps header from scrolling */
  padding-bottom: 0.5rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  font-family: Newsreader-VariableFont_opsz, wght, serif;
  background-color: transparent;
  font-size: 1.2rem;
  color: #777;
  border: none;
  text-decoration: none;
  display: inline;
  padding: 0.75em;
  cursor: pointer;
}

/* mouse over button */
.button:hover {
  color: #333;
  font-weight: bold;
}

/* go-t-=top icon/button */
#btop {
  position: fixed;
  bottom: 0.5rem; /* Adjust as needed */
  right: 0.5rem; /* Adjust as needed */
  z-index: 9999; /* Ensure it appears above other elements */
}

.bg-ashblue {
  background-color: #9db2d4;
}

/* extra css extracted from bootstrap.css and bootstrap-utilities.css
   needed for Jeff's sermons' page  */

.container {
  padding: 1.2rem;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.text-center {
  text-align: center !important;
}

.display-6 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.2;
  font-family: OpenSans, sans-serif;
}

.p-1 {
  padding: 0.25rem !important;
}

.mx-4 {
  margin-right: 1.5rem !important;
  margin-left: 1.5rem !important;
}

.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.pt-1 {
  padding-top: 0.25rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pb-1 {
  padding-bottom: 0.25rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

/* end extrated css */

/* card and dropdown css drawn from examples on
   https://www.w3schools.com/ */

.card {
  background: #9db2d4;
  margin: 1rem;
  max-width: 100vw;
  height: auto;
}

.card-header {
  background: #9db2d4;
}

.card-body {
  padding: 1rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-family: Newsreader-VariableFont_opsz, wght, serif;
  text-align: center !important;
}

.card-text {
  margin: 0 0 1rem;
  font-family: OpenSans, sans-serif;
  text-align: justify;
}


.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #0d6efd;
  color: white;
  padding: 0.75rem 1.5rem;
  font-family: LibreFranklin-SemiBold, sans-serif;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
}

.dropbtn:hover, .droptn:focus {
  background-color: #0b5ed7;
}

.drp-item {
  font-family: Newsreader-VariableFont_opsz, wght, serif;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {background-color: #ddd;}

.show {display: block;}


/* end w3schools card and dropdown examples */

.main-container {
  display: flex;
  flex-wrap: wrap;
}

.main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #1d2a3f;
  padding: 20px;
}

.main-bldg {
  display: flex;
  align-items: center;
  width: 48%;
  height: auto;
  align-self: stretch;
}

.bldg {
  max-width: 100%;
}

.main > .main-text {
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-self: stretch;
  font-family: "LibreFranklin-SemiBold", sans-serif;
  font-size: medium;
  color: #e8edf4;
}
.main > .main-text > .motto {
  padding-bottom: 1em;
  text-align: center;
  font-family: "LibreFranklin-SemiBold", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: #e8edf4;
}

.main > .main-text > .Welcome {
  padding-bottom: 1em;
  text-align: center;
  font-family: "LibreFranklin-SemiBold", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #e8edf4;
}

.main > .main-text > .info {
  padding-bottom: 1em;
  text-align: justify;
  font-family: "LibreFranklin-SemiBold", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #e8edf4;
}

.main > .main-text > .full-address {
  padding-bottom: 1em;
  text-align: center;
  font-family: "LibreFranklin-SemiBold", sans-serif;
  font-weight: 100;
  font-size: 1.2rem;
  color: #9db2d4;
}

.main > .main-text > .main-map {
  margin: 0 auto;
}

footer {
  height: 50px;
  background-color: #f6f8f8;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* --- Modal start --- */
/* Code credit */
/*
Source - https://stackoverflow.com/a/66301243
Posted by Manjunath Prabhakar
Retrieved 2026-10-12, License - CC BY-SA 4.0
*/

/* The Modal (window background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 80px;
  /* Location of top of box from top of window */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  overflow: auto;
}

/* Modal Content */
.modal-content {
  max-height: 40%; /* largest height of modal popup */
  overflow: auto; /* Enable scroll if needed */
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: 2px solid #888;
  border-radius: 20px;
  width: 40%; /* width of modal popup */
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  color: grey;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 4px 4px;
  background-color: #b7c9e2;
  color: #111;
  text-align: center;
}

.modal-body {
  padding: 0.5em;
  line-height: 175%;
  text-align: center;
}

.modal-footer {
  padding: 0;
  /* background-color: #eee;
            color: black; */
}

/* --- Modal finish --- */

/* --- Meetings 3x2 container */

.meetings-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: transparent;
}

/* media queries last to make pages resposive */
@media (max-width: 78em) {
  .main-bldg {
    padding-bottom: auto 0;
  }
}

@media (max-width: 56em) {
  .main-bldg {
    width: 100%;
    padding-bottom: 1em;
  }
  .main > .main-text {
    width: 100%;
  }
  .modal-content {
    width: 60%;
  }
}

@media (max-width: 48em) {
  .modal-content {
    width: 70%;
  }
}

@media (max-width: 33em) {
  .modal-content {
    width: 92%;
  }
}
