/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/subdivision.png");
  background-position: center center;

  /* Scale image to completely fill the page layout */
  background-size: cover;

  /* Prevent the image from tiling on larger screens */
  background-repeat: no-repeat;

  /* Keep background fixed in place during page scroll */
  background-attachment: fixed;
}

ul ol {
  padding-left: 40px;
  list-style-position: inside;
  /* Pulls bullets into the content area */
  ;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  color: #6b7c98;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header styles */
.site-header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  /*     position: fixed; */
  /*   background: rgba(171, 151, 140, .8);*/
  background: rgb(3, 57, 108);
  color: rgb(149, 149, 149);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  /* Pushes elements apart */
  align-items: center;
}

.logo {
  /* //font-size: 1.5rem; */
  font-size: 2vw;
  font-weight: bold;
}

.logo-text {
  /* font-size: 1.5rem; */
  font-size: 2vw;
  font-weight: bold;
}

.logo img {
  /* Scales down responsively with the container */
  height: auto;
  /* Keeps the original aspect ratio */
  min-width: 10rem;
  /* Stops shrinking once it hits 300px */
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin: 0 1rem;
  /* commented out */
}

.main-nav a {
  color: #080808;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  background: #fff;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background: #000;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
}

.mobile-nav ul {
  padding: 1rem;
}

.mobile-nav li {
  margin: 0.5rem 0;
}

/* Footer styles */
.site-footer {
  background: rgba(0, 0, 0, 1);
  color: #fff;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Card styles */
.card {
  background: #ede3d9;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  width: 80%;
  min-width: min-content;
  min-height: min-content;
  /* align: center; */
  margin-left: auto;
  margin-right: auto;

}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.covenant {
  margin: 50px;
}

.covenant H1 {
  text-align: center;
  text-decoration: underline;
  margin-bottom: 1.5em;
}

.covenant H3 {
  text-decoration: underline;
  margin-bottom: 1.5em;
}

.covenant p {
  text-indent: 50px;
  /* margin-top: 5; */
  margin-bottom: 1.5em;
}

.covenant UL LI {
  text-indent: -50px;
  /*  margin-top: 5; */
  margin-left: 50px;
  margin-bottom: 1.5em;
}

.covenant-grid {
  display: grid;
  margin-left: 50px;
  grid-template-columns: 50px 1fr;
  gap: 50px;
  margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

.main-content {
  position: relative;
  background-image: none !important;
  /* Removes inherited images */
  background: initial;
  /* Resets background to browser defaults */
  background: rgba(255, 255, 255, .5);
  margin: 20;
  /* changed from 10 auto */
  width: 90%;
  /* changed from 90% */
  align-items: center;
  max-width: 1200px;
  min-width: min-content;
  min-height: min-content;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 1rem;
}

.main-parent {
  /* //  position: relative; */
  background-image: none !important;
  /* Removes inherited images */
  background: initial;
  /* Resets background to browser defaults */
  /*/  background: rgba(255, 255, 255, 0.5);*/
  margin: 10 auto;
  /* changed from 10 auto */
  width: 100%;
  /* changed from 90% */
  /* align: center; */
  align-items: center;
  /* // max-width: 60rem; */

}


/* .mlayout {
    margin: 0 auto;
    position: relative;
    width: 100%;
    background-image: url("../images/subdivision.png") ;
    background-attachment: fixed;

} */

.spacer {
  width: 100%;
  height: 25px;
}

/* Basic styles for modal window */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.parent-container {
  display: flex;
  /* Forces child elements side-by-side */
  gap: 0px;
  /* Adds clean spacing between the boxes */
}

.directory {
  white-space: nowrap;
  border: #000;
  border-collapse: collapse;
}

.directory tbody:nth-child(even) {
  background-color: #f2f2f2;
}

.directory table tr td {
  white-space: nowrap;
  border: #000;
  border-collapse: collapse;
  padding-right: 4rem;
  padding-right: 4rem;
  text-align: left;
}

td.directory {
  padding-left: 12px;
  text-align: left;

}



.directory-header table tr td {
  white-space: nowrap;
  border: none;
  border-collapse: collapse;
  padding-left: 12px;
  text-align: left;
}

td.directory-header {
  padding-right: 4rem;
  text-align: left;
  font-weight: bold;
}

.card textarea {
  width: 400px;
  height: 200px;
}

.faq_answer {
  font-style: italic;
}

.card UL LI {
  text-indent: 25px;
  margin-left: 50px;
  margin-bottom: 1.5em;
}

.form-container {}

.form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  /* Adds space between rows */
}

.form-row label {
  width: 5rem;
  /* Forces all labels to have the same width */
  text-align: left;
  /* Aligns label text to the right side */
  margin-right: 4rem;
  /* Adds space between label and textbox */
  white-space: nowrap;
}

.form-row input {
  flex: 1;
  /* Makes the textbox fill the remaining space */
  max-width: 25rem;
  /* Limits textbox width */
}

.form-row textarea {
  flex: 1;
  /* Makes the textbox fill the remaining space */
  /*max-width: 25rem; /* Limits textbox width */
}

.form-row div {
  flex: 1;
  /* Makes the textbox fill the remaining space */
  max-width: 300px;
  /* Limits textbox width */
}

.form-row button[type="submit"] {
  max-width: 200px;
  display: inline-block;
  width: auto;
}

textarea.read-only {
  background-color: #ede3d9;

}


.fsuccess {

  color: green;
  font-weight: bold;

}

.ferror {
  color: red;
  font-weight: bold;
}

.dir-warning {
  /* max-width: 20rem; */
  border: #000;
  display: grid;
  place-items: center;

}

.news-ticker-container {
  display: flex;
  background-color: #333;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-title {
  background-color: #d9534f;
  padding: 10px 20px;
  font-weight: bold;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-items {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 15s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 10px 40px;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

#popupModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background: #fff;
  border: 2px solid #333;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}