/* GLOBAL STYLES */
:root {
  --red: #941c2f;
  --black: #140000;
  --white: #f5e9e2;
  --green: #08b043;
}

body {
  font-family: "Raleway", "Geneva", sans-serif;
  background-color: var(--black);
  margin: 0;
  line-height: 1.7em;
}

h1 {
  color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  font-weight: 400;
  text-align: center;
  margin-top: 10vw;
}

h2 {
  color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  font-weight: 400;
  text-align: left;
  margin-top: 4vw;
}

h3 {
  color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  font-weight: 700;
  text-align: left;
  margin-top: 4vw;
  font-size: 1.3em;
}
.logo {
  width: 4vw;
}

.logo2 {
  display: none;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
}

.searchNav {
  color: var(--white);
  background-color: var(--red);
  padding: 0.3vw 3vw;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.searchNav:hover {
  color: var(--red);
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: 3px solid var(--red);
  padding: 0.1vw 2.8vw;
  cursor: pointer;
}

.searchNav a::after {
  height: 0;
  transition: none;
}

.searchNav a:hover::after {
  height: 0;
  transition: none;
}

.centerimage {
  display: flex; 
  justify-content: center;
}

.bar {
  width: 40px;
  height: 4px;
  background-color: var(--red);
  margin: 7px 0;
}

p {
  color: var(--white);
}

a {
  color: var(--white);
}

a:hover {
  font-weight: 700;
}

ul {
  list-style: none;
}

ol li {
  color: var(--white);
  line-height: 1.5em;
  padding: 1vw;
}

li {
  word-wrap: break-word;
}

button {
  background-color: var(--red);
  color: var(--white);
  font-size: 1.3vw;
  font-family: "Raleway", "Geneva", sans-serif;
  border: none;
  padding: 0.3vw 3vw;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  color: var(--red);
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: 3px solid var(--red);
  padding: 0.1vw 2.8vw;
  cursor: pointer;
}

.headerbutton {
  text-align: center;
}

.headerbutton a button {
  font-weight: bold;
}

.headerbutton button {
  background-color: var(--green);
}

.headerbutton button:hover {
  color: var(--green);
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: 3px solid var(--green);
  padding: 0.1vw 2.8vw;
  cursor: pointer;
}

label {
  color: var(--white);
}

input {
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: none;
  margin: 0 0.3vw;
  padding: 0.3vw;
  cursor: pointer;
  border-radius: 5px;
}

select {
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: none;
  margin: 0 0.3vw;
  padding: 0.3vw;
  cursor: pointer;
  border-radius: 5px;
}

#search-button {
  font-size: 1em;
}

#search-button2 {
  font-size: 1em;
}

/*Collapsible */

.collapsible {
  margin: 1vw;
  width: 100%;
}

.collapsible:hover {
  background-color: #761221;
  color: var(--white);
  font-size: 1.3vw;
  font-family: "Raleway", "Geneva", sans-serif;
  border: none;
  padding: 0.3vw 3vw;
  cursor: pointer;
  border-radius: 5px;
}
.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  color: var(--white);
}

.collapsible:after {
  content: "\2304"; /* down arrow */
  color: #f5e9e2;
  font-family: "Times New Roman", Times, serif;
  font-size: 30px;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2303"; /* up arrow */
  color: var(--white);
  font-size: 25px;
}

/* NAV */

nav {
  background-color: var(--white);
  margin: auto;
  position: fixed;
  top: 0;
  width: 100vw;
}

nav a {
  position: relative;
  color: var(--red);
  text-decoration: none;
  font-size: 1.3vw;
  font-weight: bold;
}

nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -0.2vw;
  left: 0;
  background-color: var(--red);
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
  transform: scaleX(0);
  z-index: 5;
}

nav a:hover::after {
  transform: scaleX(1);
}

nav a:hover {
  font-weight: bold;
}

nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  vertical-align: middle;
}

nav ul ul {
  flex-direction: column;
}

.dropdown-content {
  padding-top: 2.2vw;
  padding-bottom: 2.2vw;
  display: none;
  background-color: var(--white);
  line-height: 2vw;
  align-items: left;
  text-align: left;
}

.dropdown-content li {
  margin-bottom: 0.4vw;
}

.navflex1 {
  width: 15vw;
}

.navflex2 {
  width: 15vw;
}

.dropdown1 {
  position: relative;
}

.dropdown1:hover .dropdown-content1 {
  display: flex;
  flex-direction: row;
  position: absolute;
}

.dropdown1:focus .dropdown-content1 {
  display: flex;
  flex-direction: row;
  position: absolute;
}

.dropdown-content:focus .dropdowncontent1 {
  display: flex;
  flex-direction: row;
  position: absolute;
}

.active2 .dropdown-content1 {
  display: flex;
  flex-direction: row;
  position: absolute;
}

.dropdown2 {
  position: relative;
}

.dropdown2:hover .dropdown-content2 {
  display: flex;
  position: absolute;
  width: 15vw;
  margin-left: 0;
  padding-left: 0;
}

.dropdown3 {
  position: relative;
}

.dropdown3:hover .dropdown-content3 {
  display: flex;
  position: absolute;
  width: 15vw;
  margin-left: 0;
  padding-left: 3vw;
  align-items: flex-start;
}

/* HEADER */

/* LEAD */
.lead {
  display: flex;
  width: 50%;
  margin: auto;
  margin-top: 3vw;
}

.lead img {
  align-self: center;
  width: 50%;
}

.lead p {
  padding: 1vw;
}

.lead button {
  margin: 1vw;
}

/* RESOURCES */

.resources {
  width: 50%;
  margin: auto;
}

/* FOOTER */

footer {
  background-color: var(--white);
  height: 10vw;
  padding: 4vw;
  margin-top: 4vw;
  display: flex;
  max-width: 100vw;
  justify-content: space-around;
}

footer a {
  position: relative;
  color: var(--red);
  text-decoration: none;
  font-size: 1.3vw;
  font-weight: bold;
  vertical-align: middle;
}

footer a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--red);
  transform-origin: bottom left;
  transition: transform 0.25s ease-out;
  transform: scaleX(0);
}

footer a:hover::after {
  transform: scaleX(1);
}

footer a:hover {
  font-weight: bold;
}

.footer1 {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  vertical-align: middle;
  height: 9vw;
  overflow: hidden;
  margin: 0;
}

.footer1 a::after {
  transition: none;
  height: 0;
}

.footer1 a .logo {
  margin: 0;
  padding: 0;
}

.footer1 .headerbutton {
  margin: 0;
}

.footer2 {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  vertical-align: middle;
  height: 9vw;
}

.footer2 a,
.footer3 a {
  padding-top: 1vw;
}

.footer3 {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  vertical-align: middle;
  height: 9vw;
}

/* DOWNLOADS */

/*HALF */

.half {
  width: 50%;
  margin: auto;
}

.half ul {
  color: var(--white);
}

.half ul li {
  padding: 1vw;
}

/* QUESTIONS */
.questions {
  width: 50%;
  margin: auto;
  text-align: center;
}

.questions h2 {
  text-align: center;
}

.questions button {
  margin: 0 2vw;
}

/*TABLES */
table {
  color: var(--white);
  line-height: 1.5em;
  max-width: 80vw !important;
  margin: auto;
  border-collapse: collapse;
}

th {
  border-bottom: 1px solid var(--white);
  padding: 2vw;
}
td {
  padding: 2vw;
  border-bottom: 1px solid var(--white);
}

table img {
  max-width: 50vw;
}

/*documentation*/
.alarm {
  margin-top: 10vw;
}

/* LEAD2 */
.lead2 {
  display: flex;
  width: 80vw;
  margin: auto;
  margin-top: 3vw;
}
.lead2 img {
  align-self: center;
}

.lead2 p {
  padding: 1vw;
}

.lead2 h2 {
  padding: 1vw;
  margin-top: 0;
}

/*FAQ */

.faq {
  display: flex;
  width: 70vw;
  margin: auto;
  justify-content: space-between;
}

/*Search Results */

#search-results {
  display: none;
}

#search-results.active {
  display: block;
}

#search-results2 {
  display: none;
}

#search-results2.active {
  display: block;
}

iframe {
  border: none;
}

a#scrollToTopBtn {
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  background-color: var(--red);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1vw;
  width: 12vw;
  padding: 0.3vw 0;
  text-align: center;
}

a#scrollToTopBtn2 {
  position: fixed;
  display: none;
  bottom: 2vw;
  right: 2vw;
  background-color: var(--red);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1vw;
  width: 12vw;
  padding: 0.3vw 0;
  text-align: center;
}

a#scrollToTopBtn:hover {
  color: var(--red);
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: 3px solid var(--red);
  padding: 0.1vw;
  font-weight: 400;
  cursor: pointer;
  width: 11.5vw;
}

a#scrollToTopBtn2:hover {
  color: var(--red);
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: 3px solid var(--red);
  width: 12vw;
  padding: 0.1vw 0vw;
  cursor: pointer;
}

#clearSearch {
  position: fixed;
  bottom: 5vw;
  right: 2vw;
  color: var(--white);
  background-color: var(--red);
  padding: 0.3vw 3vw;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  font-size: 1vw;
  width: 12vw;
}

#clearSearch:hover {
  color: var(--red);
  background-color: var(--white);
  font-family: "Raleway", "Geneva", sans-serif;
  border: 3px solid var(--red);
  padding: 0.1vw 2.8vw;
  cursor: pointer;
}
/*STBL Editor
.stbleditor {
  width: 50vw;
}*/

/* MEDIA QUERIES */

/* MAX WIDTH 1200 */
@media screen and (max-width: 1200px) {
  h1 {
    margin-top: 13vw;
    margin-left: 4vw;
    margin-right: 4vw;
  }

  /*NAV */
  nav a {
    font-size: 1.6vw;
  }

  /* LEAD */
  .lead {
    display: flex;
    width: 70%;
    margin: auto;
    margin-top: 3vw;
  }

  .lead img {
    align-self: center;
    width: 50%;
  }

  .lead2 img {
    align-self: center;
    width: 50%;
  }

  .lead p {
    padding: 1vw;
  }

  .lead button {
    margin: 1vw;
  }

  .half button {
    margin: 1vw;
  }

  .questions button {
    margin: 1vw;
  }

  .headerbutton button {
    font-size: 2vw;
  }

  /*HALF */

  .half {
    width: 70%;
    margin: auto;
  }

  .half ul {
    color: var(--white);
  }

  .half ul li {
    padding: 1vw;
  }

  .resources {
    width: 70%;
  }

  .dropdown3:hover .dropdown-content3 {
    width: 20vw;
    left: -8vw;
  }

  .dropdown2:hover .dropdown-content2 {
    width: 20vw;
  }

  a#scrollToTopBtn {
    font-size: 1.5vw;
    width: 15vw;
  }

  a#scrollToTopBtn:hover {
    font-size: 1.5vw;
    width: 14.3vw;
  }

  a#scrollToTopBtn2 {
    font-size: 1.5vw;
    width: 15vw;
  }

  a#scrollToTopBtn2:hover {
    font-size: 1.5vw;
    width: 14.3vw;
  }
  #clearSearch {
    font-size: 1.5vw;
    width: 15vw;
    bottom: 6vw;
  }
}

/* MAX WIDTH 900 */
@media screen and (max-width: 900px) {
  .lead button {
    font-size: 2vw;
  }

  .half button {
    font-size: 2vw;
  }

  .questions button {
    font-size: 2vw;
  }

  .headerbutton button {
    font-size: 3vw;
  }

  .collapsible:hover {
    font-size: 2vw;
  }

  nav a,
  footer a {
    font-size: 2vw;
  }

  .faq {
    flex-direction: column;
    align-items: center;
  }

  #clearSearch {
    bottom: 8vw;
  }
}

/* MAX WIDTH 700 */
@media screen and (max-width: 700px) {
  nav ul {
    display: none; /* Hide the menu items container by default */
  }

  .logo {
    width: 10vw;
  }

  .hamburger-bar {
    display: flex;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block;
    margin: 5vw;
    margin-left: 10vw;
    cursor: pointer;
  }

  .logo2 {
    display: block;
    width: 8vw;
    margin: 4vw;
  }

  .logo {
    display: none;
  }

  .logoremove {
    display: none;
  }

  .menu-container.show {
    background-color: var(--white);
    z-index: 300;
  }
  .menu-container.show ul {
    display: block;
    flex-direction: column;
    justify-content: left;

    /* Add styles to control spacing between items if needed */
  }

  .menu-container.show a {
    font-size: 3vw;
  }

  .menu-container.show .navflex1 {
    margin-right: 5vw;
    width: auto;
  }

  .menu-container.show .navflex1 li {
    padding: 1vw;
  }
  .menu-container.show .navflex2 {
    width: auto;
  }

  .menu-container.show .navflex2 li {
    padding: 1vw;
  }

  /* Show the dropdowns in hamburger menu mode */
  .menu-container.show .dropdown-content {
    display: flex;
    flex-direction: row;
    position: static; /* Set the position to static to make them static and prevent movement */
    background-color: var(--white);
  }

  .menu-container.show .dropdown-content2 {
    display: block;
    flex-direction: column;
    margin-left: 8vw;
    width: auto;
    padding: 0;
    position: relative;
    background-color: var(--white);
  }

  .menu-container.show .dropdown-content2 li {
    padding: 1vw;
  }

  .menu-container.show .dropdown2:hover .dropdown-content2 {
    display: block;
    flex-direction: column;
    margin-left: 8vw;
    width: auto;
    position: static;
  }

  .menu-container.show .dropdown-content3 {
    display: block;
    flex-direction: column;
    margin-left: 8vw;
    width: auto;
    padding: 0;
    position: relative;
    background-color: var(--white);
  }

  .menu-container.show .dropdown-content3 li {
    padding: 1vw;
  }

  .menu-container.show .dropdown3:hover .dropdown-content3 {
    display: block;
    flex-direction: column;
    margin-left: 8vw;
    width: auto;
    position: static;
  }

  h1 {
    margin-top: 20vw;
  }

  .lead {
    flex-direction: column;
    width: 80%;
  }

  .lead2 {
    flex-direction: column;
    width: 80%;
  }

  .lead button {
    font-size: 3vw;
  }

  .half button {
    font-size: 3vw;
  }

  .headerbutton button {
    font-size: 4vw;
  }

  .questions button {
    font-size: 3vw;
  }

  .collapsible:hover {
    font-size: 3vw;
  }

  .lead img {
    width: 80%;
  }

  .half {
    width: 80%;
  }

  .resources {
    width: 80%;
  }

  .footer1,
  .footer2 {
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
  }

  footer {
    height: auto;
  }

  footer a {
    font-size: 3vw;
  }

  /* TABLES */

  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin: 10vw 2vw;
  }

  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: left;
    margin: 4vw;
  }

  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    margin-right: 10vw;
  }

  table td:last-child {
    border-bottom: 0;
  }

  a#scrollToTopBtn {
    font-size: 2.2vw;
    width: 18vw;
  }

  a#scrollToTopBtn:hover {
    font-size: 2.2vw;
    width: 17vw;
  }

  #clearSearch {
    font-size: 2.2vw;
    width: 18vw;
    bottom: 8vw;
  }

  a#scrollToTopBtn2 {
    display: block;
    font-size: 2.2vw;
    width: 18vw;
  }

  a#scrollToTopBtn2:hover {
    width: 17vw;
  }
}

/* MAX WIDTH 500 */
@media screen and (max-width: 500px) {
  .menu-container.show a {
    font-size: 3.5vw;
    line-height: 4vw;
    padding: 0.5vw;
    margin-top: 0;
  }

  .hamburger-menu {
    margin-bottom: 1vw;
  }
  .lead button {
    font-size: 4vw;
  }

  .half button {
    font-size: 4vw;
  }

  .headerbutton button {
    font-size: 5vw;
  }

  .questions button {
    font-size: 4vw;
  }

  .collapsible:hover {
    font-size: 4vw;
  }

  footer a {
    font-size: 4vw;
  }

  h1 {
    margin-top: 25vw;
  }

  table td::before {
    margin-right: 20vw;
  }

  .gedcomTable th {
    font-size: 3vw;
    margin: 1vw;
    padding: 1vw;
    overflow-wrap: break-word;
  }

  nav a {
    font-size: 2.5vw;
    margin: 1vw;
  }

  .logo {
    margin: 0;
    padding: 0;
  }

  a#scrollToTopBtn {
    font-size: 3.5vw;
    width: 25vw;
  }

  a#scrollToTopBtn:hover {
    font-size: 3.5vw;
    width: 24.3vw;
  }
  #clearSearch {
    font-size: 3.5vw;
    width: 25vw;
    bottom: 12vw;
  }

  a#scrollToTopBtn2 {
    display: block;
    font-size: 3.5vw;
    width: 25vw;
  }

  a#scrollToTopBtn2:hover {
    display: block;
    font-size: 3.5vw;
    width: 24.3vw;
  }
}
