	@font-face {
	font-family: Garamond12R;
	src: url('fonts/Garamond1R.woff');
	}

	body {
	font-family: 'Garamond12R', 'Garamond';
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background-image: url('images/autumn.jpg');
	background-attachment: fixed;
        background-size: cover;
	}

	h1 {
	text-align: center;
	font: 'US Declaration';
	font-size: 36px;
	}
	
	h2 {
	text-align: center;
	font: 'Garamond';
	font-size: 28px;
	}

	h3 {
	text-align: center;
	font-size: 24px;
	}

	p {
	text-align: block;
	font-size: 22px;
	font: 'Garamond12R', 'Garamond';
	}

	table {
	table-layout: fixed;
	font-size: 22px;
	background: rgba(255, 255, 255, 0.98);
	border: 2px solid;
	}

	.quotetable {
	border: none;
	}

	td {
	padding: 15px;
	vertical-align: top;
	}

	td.vert-align-mid {
	vertical-align: middle;
	}

	a {
	text-decoration: none;
	color: #ff0000;
	}

	a:hover {
	text-decoration: underline;
	color: blue;
	}

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

	.dropdown a {
	color: white;
	}

	.dropbtn {
	background-color: blue;
	color: white;
	padding: 12px 20px;
	font-size: 16px;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	}

	.dropdown-content {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 750px;
	box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
	z-index: 1;
	border-radius: 4px;
	padding: 8px 0;
	columns: 3;
	column-gap: 20px;
	}

	.dropdown-content a {
	color: #ff0000;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	font-family: 'Garamond12R', 'Garamond', sans-serif;
	break-inside: avoid;
	}

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

	.dropdown:hover .dropdown-content {
	display: block;
	}

	.dropdown:hover .dropbtn {
	background-color: #298bd9;
	}

	a.dropbtn,
	a.dropbtn:hover,
	html.dark a.dropbtn,
	html.dark a.dropbtn:hover {
		display: inline-block;
		color: white;
		text-decoration: none;
		font-size: 16px;
		font-family: sans-serif;
		break-inside: avoid;
	}

	.column-image {

	}

	#footer {
	clear: both;
	text-align: center;
	width: 100%;
	}
	
	.search-result {

	
	}

	.divider-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 40px 0;
	}
	
	.divider-line {
	width: 100%;
	border: none;
	border-top: 2px solid #ccc;
	}

	.footer-img {
	position: absolute;
	width: 150px
	}

/* ===== Dark mode for newrivergenealogy.org ===== */

html.dark body {
  color: #e8e2d6;
  background-color: #111;
}

/* Dim the background photo instead of hiding it */
html.dark body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
  pointer-events: none;
}

html.dark table {
  background: rgba(28, 28, 30, 0.97);
  border-color: #555;
  color: #e8e2d6;
}

html.dark a        { color: #ff7b6b; }
html.dark a:hover  { color: #8fc4ff; }

html.dark .dropbtn            { background-color: #1f4f8a; }
html.dark .dropbtn a            { color: white; }
html.dark .dropdown:hover .dropbtn { background-color: #2f6db5; }
html.dark .dropdown-content   { background-color: #222; box-shadow: 0 8px 16px rgba(0,0,0,0.6); }
html.dark .dropdown-content a { color: #ff7b6b; }
html.dark .dropdown-content a:hover { background-color: #333; }

/* Soften photos and scans slightly so they don't glare */
html.dark img { filter: brightness(0.88); }

/* Toggle button */
#theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  padding: 6px 12px;
  font-size: 16px;
  font-family: 'Garamond12R', 'Garamond', serif;
  border: 1px solid #888;
  border-radius: 4px;
  background: #f9f9f9;
  color: #222;
  cursor: pointer;
}
html.dark #theme-toggle { background: #333; color: #eee; border-color: #666; }
	

/* Forms at the bottom of family pages */

  .nrg-club {
    box-sizing: border-box;
    margin: 2em 0 1em;
    padding: 0;
    font-family: 'Garamond12R', 'Garamond', 'Times New Roman', serif;
    font-size: 22px;
    line-height: 1.45;
    color: #222;
    text-align: left;
  }
  .nrg-club *,
  .nrg-club *::before,
  .nrg-club *::after {
    box-sizing: border-box;
  }
  .nrg-club-heading {
    margin: 0 0 0.6em;
    text-align: center;
    font-family: 'Garamond12R', 'Garamond', 'Times New Roman', serif;
    font-size: 28px;
    font-weight: normal;
  }
  .nrg-club-signup,
  .nrg-club-contribute {
    border: 2px solid #222;
    padding: 1.1em 1.2em 1.2em;
    background: #f7f1e6;
  }
  .nrg-club-signup {
    margin-bottom: 1.15em;
  }
  .nrg-club-contribute {
    background: #fbfaf6;
  }
  .nrg-club-kicker {
    margin: 0 0 0.35em;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a3d1c;
  }
  .nrg-club-lead,
  .nrg-club-note,
  .nrg-club-privacy,
  .nrg-club-credit {
    margin: 0 0 0.75em;
  }
  .nrg-club-note,
  .nrg-club-privacy,
  .nrg-club-credit {
    font-size: 18px;
    line-height: 1.4;
  }
  .nrg-club-privacy {
    margin: 0.7em 0 0;
  }
  .nrg-club-credit {
    margin: 0.35em 0 0;
    font-size: 16px;
  }
  .nrg-club-contribute h3 {
    margin: 0 0 0.35em;
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    font-family: 'Garamond12R', 'Garamond', 'Times New Roman', serif;
  }
  .nrg-club-intro {
    margin: 0 0 0.9em;
    text-align: center;
  }
  .nrg-club-row {
    margin: 0 0 0.75em;
  }
  .nrg-club label,
  .nrg-club .nrg-club-label {
    display: block;
    margin: 0 0 0.25em;
    font-size: 20px;
  }
  .nrg-club input[type="text"],
  .nrg-club input[type="email"],
  .nrg-club input[type="file"],
  .nrg-club textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.4em 0.5em;
    font-family: inherit;
    font-size: 20px;
    line-height: 1.3;
    color: #222;
    background: #fff;
    border: 1px solid #444;
    border-radius: 0;
  }
  .nrg-club textarea {
    min-height: 6.5em;
    resize: vertical;
  }
  .nrg-club input[type="file"] {
    padding: 0.35em 0;
    background: transparent;
    border: none;
    font-size: 18px;
  }
  .nrg-club input:focus,
  .nrg-club textarea:focus,
  .nrg-club button:focus {
    outline: 2px solid #8a1f12;
    outline-offset: 2px;
  }
  .nrg-club-signup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 0.7em;
    align-items: flex-end;
  }
  .nrg-club-signup-form .nrg-club-row {
    flex: 1 1 16em;
    margin: 0;
  }
  .nrg-club-signup-form .nrg-club-actions {
    flex: 0 0 auto;
    margin: 0;
  }
  .nrg-club button {
    display: inline-block;
    padding: 0.45em 1.1em;
    font-family: inherit;
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
    background: #2b2b2b;
    border: 2px solid #2b2b2b;
    cursor: pointer;
  }
  .nrg-club button:hover {
    background: #8a1f12;
    border-color: #8a1f12;
  }
  .nrg-club-choice {
    margin: 0 0 0.45em;
  }
  .nrg-club-choice label,
  .nrg-club-check label {
    display: flex;
    align-items: flex-start;
    gap: 0.45em;
    margin: 0;
    font-size: 20px;
    cursor: pointer;
  }
  .nrg-club-choice input,
  .nrg-club-check input {
    margin: 0.35em 0 0;
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
  }
  .nrg-club fieldset {
    margin: 0 0 0.75em;
    padding: 0.6em 0.8em 0.5em;
    border: 1px solid #888;
  }
  .nrg-club legend {
    padding: 0 0.35em;
    font-size: 20px;
  }
  .nrg-club-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .nrg-club form {
    position: relative;
  }

	.nrg-club-signup > *, .nrg-club > *, .nrg-club-contribute > * {
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	}

  html.dark .nrg-club {
    color: #e8e2d6;
  }
  html.dark .nrg-club-signup {
    background: #2a241c;
    border-color: #888;
  }
  html.dark .nrg-club-contribute {
    background: #222018;
    border-color: #888;
  }
  html.dark .nrg-club-kicker {
    color: #d7b48a;
  }
  html.dark .nrg-club input[type="text"],
  html.dark .nrg-club input[type="email"],
  html.dark .nrg-club textarea {
    color: #e8e2d6;
    background: #1a1a1a;
    border-color: #777;
  }
  html.dark .nrg-club input[type="file"] {
    color: #e8e2d6;
  }
  html.dark .nrg-club fieldset {
    border-color: #777;
  }
  html.dark .nrg-club button {
    background: #4a1c16;
    border-color: #c47a70;
    color: #fff;
  }
  html.dark .nrg-club button:hover {
    background: #8a1f12;
    border-color: #ff7b6b;
  }
  html.dark .nrg-club input:focus,
  html.dark .nrg-club textarea:focus,
  html.dark .nrg-club button:focus {
    outline-color: #ff7b6b;
  }

  @media (max-width: 600px) {
    .nrg-club {
      font-size: 20px;
    }
    .nrg-club-signup,
    .nrg-club-contribute {
      padding: 0.9em 0.8em 1em;
    }
    .nrg-club-signup-form,
    .nrg-club-signup-form .nrg-club-actions {
      display: block;
      width: 100%;
    }
    .nrg-club-signup-form button {
      width: 100%;
      margin-top: 0.55em;
    }
  }

