
/* Add spacing between logo and heading */
.site-header .site-logo {
    margin-right: 15px; /* Adjust this value as needed */
  }

.site-header {
    display: flex;
    align-items: center;
    gap: 15px; /* Creates space between flex items */
  }

/* === HEADINGS === */
body {
  line-height: 1.7;
  font-size: 1.3em;
  color: #000000;
  font-family: Verdana, Geneva, sans-serif;
}

h1 {
    font-weight: bold !important;
    font-size: 38px;
    color: black !important;
    border-bottom: 2px solid rgb(0, 26, 255) !important; /* Black lines */
    padding-bottom: 5px !important;
    margin-top: 40px !important;
}

h2 {
  font-weight: bold !important;
  color: rgb(0, 7, 68) !important;
  border-bottom: 1px solid rgba(0, 26, 255, 0.171) !important; /* Black lines */
  padding-bottom: 5px !important;
  margin-top: 2em !important;
}

h3, h4, h5, h6 {
  font-weight: bold !important;
  color: rgb(0, 7, 68) !important;
  border-bottom: 0px solid rgba(0, 26, 255, 0.521) !important; /* Black lines */
  padding-bottom: 5px !important;
  margin-top:  !important;
}

/* === REMOVE RIGHT SIDEBAR === */
.sidebar-right {
    display: none !important; /* Completely hides the right sidebar */
}

/* === FIX LOGO & TITLE SPACING ON MOBILE === */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        align-items: center;
        padding: 12px 16px !important;
    }

    .nav-container .site-logo {
        width: 40px !important; /* Adjust size if necessary */
        height: auto;
    }

    .nav-container .site-title {
        margin-left: 10px !important; /* Reduce excessive space */
        padding-top: 2px !important;  /* Better vertical alignment */
    }
}

/* === LINKS === */
a {
    color: black !important;
    font-weight: bold !important;
    text-decoration: underline !important;
    transition: all 0.1s ease-in-out !important;
}

a:hover {
    background: rgba(0, 26, 255, 0.411) !important;
    color:black !important;
    text-decoration: underline !important;
}

/* === SIDEBAR STYLING === */
.nav-container {
    background: #f0f4f8 !important;
    color: black !important;
    padding: 20px !important;
}

.nav-container a {
    color: black !important;
    font-weight: bold !important;
    text-decoration: underline !important;
}

.nav-container a:hover {
    background: black !important;
    color: white !important;
    text-decoration: none !important;
}

/* Fix active link color in sidebar */
.nav-file-title.is-active {
    color: black !important;
    font-weight: bold !important;
}

/* === CODE BLOCKS === */
pre {
    background: #000 !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    overflow-x: auto !important;
}

/* Inline code */
code {
    background: #e8ecef !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
}

/* === TABLES === */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 10px 0 !important;
    background-color: #ffffff !important; /* Light slate grey background */
    box-shadow: 2px 2px 2px #dbdbdb;
    border-radius: 5px;
}

th, td {
    border: 1px solid rgba(0, 26, 255, 0.11) !important;
    padding: 10px !important;
    text-align: left !important;
}

th {
    background-color:  rgb(248, 248, 248) !important;
    color: black !important;
}

/* Add hover effect for table rows */
tr:hover {
    background-color: rgba(0, 26, 255, 0.336) !important; /* Darker slate grey when hovering */
    transition: background-color 0.2s ease !important;
}


/* === BLOCKQUOTES === */
/* === QUOTE BLOCK STYLING === */
blockquote {
    background: rgb(255, 255, 255) !important;
    color: rgb(0, 0, 0) !important;
    border-left: 0px solid #000000 !important;
    padding: 15px !important;
    padding-left: 15px !important;
    font-style: bold !important;
    margin: 20px 0 !important;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-radius: 5px;
    font-size: 1em;
}

blockquote:hover {
    background: rgb(229, 232, 255) !important;
}

/* === CALLOUT BOXES === */
.callout {
    background: #e8ecef !important;
    border-left: 5px solid black !important;
    padding: 15px !important;
    margin: 20px 0 !important;
}

/* === HIGHLIGHTED TEXT === */
.highlight, mark {
    background: rgb(179, 187, 255) !important;
    color: black !important;
    padding: 5px 5px !important;
    border-radius: 5px !important;
    font-weight: bold !important;
}

/* === HOVER EFFECT === */
.highlight:hover, mark:hover {
  background: rgba(0, 26, 255, 0.541) !important; /* Change to your desired hover color */
  color: black !important; /* Optional: change text color on hover */
}

/* === IMAGES === */
img {
    max-width: 100% !important;
    display: block !important;
    margin: auto !important;
}

/* === FOOTNOTES === */
.footnote {
    font-size: 0.9em !important;
    color: black !important;
}

/* ==CITATIONS== */
.citation {
  font-size: 0.85em;
  font-style: italic;
  color: #555;
  margin-top: -30px; /* Pull it closer to the table */
  padding-left: 10px;
}

/* Optional: visually connect with a border or rule */
.citation::before {
  content: "Source: ";
  font-weight: bold;
  font-style: normal;
}

/* === PREVIEW (EMBED PAGES) === */
.markdown-preview-view .block-language-callout,
.markdown-preview-view .callout {
  border-left: 4px solid rgb(0, 26, 255) !important;
}

.markdown-embed {
  border-left: 2px solid rgb(0, 26, 255) !important;
}


/* === BUTTONS === */
.custom-button {
    background-color: #fffb00 !important;
    color: #000000 !important;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    height: 38px;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }
  
  .custom-button:hover {
    background-color: rgb(0, 26, 255) !important;
  }

  .custom-button-2 {
    background-color: #000 !important;
    color: #fff !important;
    padding: 12px 20px;
    border: 1px solid #000;
    border-radius: 20px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    height: 38px;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }
  
  .custom-button-2:hover {
    background-color: #171718 !important;
    border-color: #171718 !important;
  }


  .custom-button-3 {
    background-color: #ffee00 !important;
    color: #000 !important;
    padding: 8px 16px;
    border: 0px solid #000;
    border-radius: 20px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    height: 38px;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }
  
  .custom-button-3:hover {
    background-color: #f3e300 !important;
    color: #000 !important;
    border-color: #000000 !important;
  }
  /* For link buttons */
  a.custom-button-3 {
    text-decoration: none;
  }


  .buy-button {
    display: block;
    width: fit-content;
    margin: 20px auto; /* Centers horizontally */
    background-color: #0b85ff !important; /* Alternative Amazon-style blue */
    color: white !important; 
    padding: 12px 50px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none !important;
  }
  .buy-button:hover {
    background-color: #0269cf !important; /* Darker on hover */
  }

  .button-container {
    text-align: center;
    color: rgb(31, 31, 31) !important; 
    font-style: italic;
    font-size: 12px;
  }

#search-bar {
    width: 100%;
    padding: 8px; /* Reduce padding to make it smaller */
    margin: 0px 0; /* Reduce margin to decrease space between the search bar and results */
    font-size: 14px; /* Slightly smaller font size to make it more compact */
    border: 1px solid #ccc;
    border-radius: 5px;
}

#results-container {
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 8px; /* Reduce padding to take up less space */
    margin-top: 0px; /* Reduce the space between the search bar and the results */
}

#results-container div {
    padding: 6px; /* Slightly smaller padding for each result */
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#results-container div:last-child {
    border-bottom: none;
}

#results-header {
    font-weight: bold;
    margin-bottom: 8px; /* Adjust the margin for a tighter fit */
    font-size: 12px; /* Smaller font size for the header */
}


/* Optional: Style the highlighted row */
table tr.highlighted {
    background-color: yellow !important;
}


html, body {
    scroll-behavior: smooth; /* Smooth scroll for the whole page */
}

table {
    overflow: hidden; /* Prevent any unnecessary overflow from table elements */
    touch-action: auto; /* Ensure the scroll interaction is normal on mobile */
}

#results-container {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}


.shop-banner {
  background-color: #0b85ff;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 1em;
  border-radius: 0px;
}


.link-banner {
  background-color: rgba(255, 255, 255, 0);
  color: rgb(0, 0, 0);
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9em;
  border-radius: 5px;
  border-width: 1px !important;
  border-color: black !important;
}

.link-banner + .internal-link {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255) !important;
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.link-banner + .internal-link:hover {
  background-color: yellow;
  color: black !important;
}

.link-banner + .internal-link + .internal-link{
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255) !important;
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}


.link-banner + .internal-link + .internal-link:hover{
  background-color: yellow;
  color: black !important;
}

.link-banner + .internal-link + .internal-link  + .internal-link{
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255) !important;
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}


.link-banner + .internal-link + .internal-link  + .internal-link:hover{
  background-color: yellow;
  color: black !important;
}


/*----------------SHOP-------------------- */
/* --------------------------------------- */

/* === Shop Grid === */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* === Shop Item Card === */
.shop-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  color: #000;
  transition: border-color 0.2s;
}

.shop-item:hover {
  border-color: #f3ce00; /* highlighter yellow */
}

/* === Shop Title === */
.shop-item h3 {
  margin-top: 0;
  color: #000;
  font-size: 1.2rem;
}

/* === Buy Button === */
.shop-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: #f3ce00;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.shop-button:hover {
  background-color: #e6c400;
}

/* === Category Headers === */
.shop-category-title {
  font-size: 2rem;
  color: #000;
  border-bottom: 2px solid #f3ce00;
  padding-bottom: 0.25rem;
  margin-top: 2rem;
}

/* Table of Contents */
#wiki-toc {
  position: fixed;
  top: 100px;
  right: 2rem;
  max-width: 250px;
  background: #f9f9f9;
  border-left: 3px solid #ccc;
  padding: 1em;
  font-size: 0.9em;
  overflow-y: auto;
  max-height: 70vh;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  z-index: 1000;
}
#wiki-toc h3 {
  margin-top: 0;
}
#wiki-toc ul {
  list-style: none;
  padding-left: 0;
}
#wiki-toc .toc-h3 {
  margin-left: 1em;
}
@media (max-width: 768px) {
  #wiki-toc {
    display: none;
  }
}

#pdf-export {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #005a9c;
  color: white;
  border: none;
  padding: 0.6em 1em;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  z-index: 9999;
}
#pdf-export:hover {
  background: #003f6b;
}

/* === Cards === */


.card-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: #333;
  color: #ccc;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  text-transform: lowercase;
  transition: background-color 0.2s;
}

.tag:hover {
  background-color: #555;
  cursor: default;
}
