@import url('https://fonts.googleapis.com/css2?family=Trirong:wght@300;400;500;600;700;800&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Trirong', serif;
  font-size: 16px;
  line-height: 1.4;
  color: #444;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  white-space: normal;
  font-weight: 300;
}

/* Search Box */
#searchBox {
  width: 250px;
  margin: 30px auto 20px;
  padding: 10px 15px;
  font-size: 16px;
  border: 1px solid #444;
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

#searchBox:focus {
  border-color: #444;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

#searchBox::placeholder {
  font-style: italic;
}

#results {
  font-weight: 400;
  color: #000;
  margin-left: 40px;
}

/* Containers */
.container {
  text-align: center;
  margin: 0 auto;
}

.main-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.page {
  max-width: 500px;
  margin: 50px auto;
  padding: 0 30px;
  text-align: left;
}

.page ol li {
  padding-left: 15px;
}

/* Header */
.header {
  text-align: left;
  padding: 15px 0 0 15px;
  margin: 10px 0 30px;
}

.header a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  text-transform: uppercase;
}

/* Headings */
h1, h2, h3 {
  font-weight: 400;
  text-align: left;
  margin: 1em 0;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 a {
  font-weight: 400;
  text-decoration: none;
}

h1 {
  border-top: 1px solid #888;
  border-bottom: 1px solid #888;
  margin: 70px 0 0;
  padding: 25px;
  font-size: 1.7em;
  font-variant:small-caps;
  text-transform: none;
}

h2 {
  font-size: 1.4em;
  font-variant:small-caps;
  text-transform: none;
}

h2.sub {
  font-size: 1em;
  text-transform: none;
  font-weight: 500;
}

h3 {
  border-top: 1px solid #888;
  border-bottom: 1px solid #888;
  margin: 70px 0 0;
  padding: 25px 0 25px 20px;
  font-size: 1.2em;
}

/* Paragraphs */
p {
  margin: 1.2em auto;
  text-indent: 0;
}

/* Footer */
.footer {
  text-align: center;
}

.center {
text-align: center 
}
/* Links */
a {
  text-decoration: underline dotted;
  text-decoration-color: rgba(0, 0, 0, 0.3);
  text-decoration-thickness: 1px;
  color: #444;
  font-style: normal;
  font-weight: 300px
}

a:hover {
  text-decoration-style: solid;
}

a[href*="blueletterbible.org"] {
  font-size: 0.8em !important;
  text-decoration: none;
  font-style: normal;
}

/* Text Styles */
em, i {
  font-style: normal;
  font-weight: 300;
}

b {
  font-style: normal;
  font-weight: 300;
}

.bold {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5em;
  text-decoration: none;
}

strong {
  font-style: normal;
  font-weight: 300;
}

/* Blockquotes */
blockquote {
  font-size: 1.1em;
  margin: 2em auto;
  padding: 1em;
  text-align: left;
  line-height: 1.2;
  width: 90%;
  font-style: normal;
}

blockquote em,
blockquote i,
blockquote b {
  font-weight: 400 !important;
  font-style: normal !important;
}

/* Horizontal Rules */
hr {
  border: none;
  border-top: 1px solid #888;
  margin: 3em 0;
}

hr.border {
  border-top: 0.7px solid #444;
  height: 2px;
  padding: 0;
  margin: 7px 0 15px;
}

/* Small text */
small {
  font-size: 0.6em;
  font-variant: small-caps;
}

/* Lists */
ol, ul {
  list-style-type: none;
  text-align: left;
}

li {
  margin: 15px 0;
  line-height: 1;
}

li a {
  text-decoration: none;
}

/* Separators and Flourishes */
.separator {
  height: 5px;
}

.flourish {
  height: 4px;
  width: 80px;
  margin: 20px auto;
  border-top: 1px solid #444;
  border-radius: 2px;
}

/* Chapter Title */
.chap-title {
  text-transform: uppercase;
  padding: 17px 0 2px 10px;
  font-weight: 400;
  font-size: 0.9em;
}

/* Dropdown Menu */
.dropdown ul {
  margin: 0;
  list-style: none;
  position: fixed;
  right: 0;
  top: -20px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  line-height: 1;
  padding: 15px 10px;
}

.dropdown > ul {
  background: transparent !important;
}

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

.dropdown > ul > li > a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  background: #fff !important;
  font-size: 2em;
  border: 0;
  line-height: 1;
}

/* Transparent first link (cross) */
.dropdown > ul > li:first-child > a,
.dropdown > ul > li:first-child > a:hover,
.dropdown > ul > li:first-child > a:focus,
.dropdown > ul > li:first-child > a:active {
  background: transparent !important;
  color: inherit !important;
}

/* Submenus */
.dropdown ul ul {
  position: absolute;
  top: 100%;
  right: -1px;
  display: none;
  background: #fafafa;
  border: 0.5px solid #999;
  min-width: 250px;
  white-space: nowrap;
  z-index: 999;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
}

.dropdown ul ul li a {
  display: block;
  padding: 0.2rem 1rem;
  color: #444;
  text-decoration: none;
  line-height: 1.1;
  font-size: 0.905em;
}

/* Show submenu */
.dropdown li:hover > ul,
.dropdown li:focus-within > ul {
  display: block;
}

/* Hover/active effect */
.dropdown a:hover,
.dropdown a:focus,
.dropdown a:active {
  background: #444;
  color: #fff;
}

/* Search link in dropdown */
.dropdown a[href*="search.html"] {
  font-weight: 600;
  padding: 2px 0 4px 10px;
}

/* Indentation for certain menu items */
.dropdown ul li:nth-of-type(n+2):nth-of-type(-n+6) {
  padding-left: 10px;
}

#theme-toggle {
	background:transparent;
	border:0;
	color:#111;
	font-size: 1.6em;
	vertical-align: baseline;
    padding: 0 0 0 10px 
	}

/* =======================
   Dark Mode (manual toggle)
   ======================= */

html:not([data-theme="light"]) {
  background: #111;
  color: #ddd;
}

html:not([data-theme="light"]) body {
  background: #111;
  color: #ddd;
}

/* Links */
html:not([data-theme="light"]) a {
  color: #ddd;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

html:not([data-theme="light"]) a:hover {
  color: #fff;
  text-decoration-style: solid;
}

/* Search Box */
html:not([data-theme="light"]) #searchBox {
  background: #222;
  color: #eee;
  border: 1px solid #666;
}

html:not([data-theme="light"]) #searchBox:focus {
  border-color: #999;
  box-shadow: 0 0 8px rgba(200, 200, 255, 0.4);
}

html:not([data-theme="light"]) #results {
  color: #eee;
}

/* Headings */
html:not([data-theme="light"]) h1,
html:not([data-theme="light"]) h2,
html:not([data-theme="light"]) h3 {
  color: #eee;
  border-color: #555;
}

html:not([data-theme="light"]) h1,
html:not([data-theme="light"]) h3 {
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
}

/* Horizontal Rules */
html:not([data-theme="light"]) hr {
  border-top: 1px solid #555;
}

html:not([data-theme="light"]) hr.border {
  border-top: 0.7px solid #666;
}

/* Dropdown menu */
html:not([data-theme="light"]) .dropdown ul {
  background: #111;
}

html:not([data-theme="light"]) .dropdown > ul > li > a {
  background: #111 !important;
  color: #fff;
}

html:not([data-theme="light"]) .dropdown ul ul {
  background: #222;
  border: 0.5px solid #555;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.8);
}

html:not([data-theme="light"]) .dropdown ul ul li a {
  color: #fff;
}

html:not([data-theme="light"]) .dropdown a:hover,
html:not([data-theme="light"]) .dropdown a:focus,
html:not([data-theme="light"]) .dropdown a:active {
  background: #555;
  color: #fff;
}

/* Flourishes */
html:not([data-theme="light"]) .flourish {
  border-top: 1px solid #666;
}

html:not([data-theme="light"]) #theme-toggle {
	background:transparent;
	color:#fff !important;
	}