/* 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");
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: #f6f8f8;
}

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

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