


header {
    position: sticky;
    top: 0;
    z-index: 1000;  /* Keeps the header above other content */
    background-color: none;
    box-shadow: 0 4px 2px -2px gray;  /* Optional: adds a shadow effect */
    width: 100%;
    padding: 15px 0;  /* Adjust padding as needed */
  }
  /* with 3d shadow effect */
  header {
    position: sticky; 
    /* background-color: lightyellow; */
    border-bottom: 2px solid transparent; /* Invisible border for spacing */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1),  /* 3D shadow */
                0 6px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow */
  }
  
  header.night-mode {
    /* background-color: #442f46; */
    color: #ffffff;
    border-bottom: 2px solid transparent; /* Invisible border for spacing */
    box-shadow: 0 4px 8px rgba(243, 128, 128, 0.1),  /* 3D shadow */
                0 6px 20px rgba(250, 121, 121, 0.616); /* Deeper shadow */
  }
  
  header {
    border-bottom: 2px dotted;
  
    /* max-width: 800px; */
    /* margin: 0 auto; */
  
  }
  


/* start nav drop down options */

nav {
    /* background-color: #333; */
    /* background-color: currentColor; */
    padding: 10px;
  }
  
  .nav-links {
    list-style: none;
    margin: 0;
    padding-left: 50px;
    /* padding: 10px; */
    display: flex;
  }
  
  .nav-links li {
    position: relative;
    margin-right: 20px;
  }
  
  .nav-links a {
    text-decoration: none;
    /* color: white; */
    color: currentColor;
    padding: 10px;
    display: block;
  }

  /* 🔥 Active link style */
.nav-links a.active-link {
  font-weight: bold;
  transform: scale(1.35); /* Enlarge text by 10% */
  color: var(--hover-text-color,  #ffcc00); /* #ffcc00 Soft gold for good visibility */
  text-shadow: 
      /* Black outline layers (top, bottom, left, right) */
      /* -1px -1px 0 black,
      1px -1px 0 black,
      -1px 1px 0 black,
      1px 1px 0 black,
       */
       1px 1px 0 black,

      0px 0px 5px var(--hover-shadow-color, rgba(255, 204, 0, 0.7)), /* Outer glow */
      2px 2px 5px var(--hover-shadow-color, rgba(255, 204, 0, 0.5)); /* Soft shadow */
}


  
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px;
    z-index: 1100; /* ➡️ Make it higher than topic-dropdown */

  }
  
  .dropdown-menu li {
    border-bottom: 1px solid #555;
  }
  
  .dropdown-menu a {
    color: white;
    padding: 10px;
    display: block;
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  /* end nav drop down options */



  .fire-effect {

    position: relative;
    /* display: inline-block; */

    text-shadow:
      0 0 2px #ff6a00,
      0 0 4px #ff8800,
      0 0 6px #ffaa00,
      0 0 8px #ffdd55;
    animation: crackle 12s infinite alternate;
  }
  
  @keyframes crackle {
    0% {
      text-shadow:
        0 0 2px #ff6a00,
        0 0 4px #ff8800,
        0 0 6px #ffaa00,
        0 0 8px #ffdd55;
    }
    100% {
      text-shadow:
        0 0 4px #ff8800,
        0 0 6px #ffaa00,
        0 0 8px #ffcc00,
        0 0 10px #ffffff;
    }
  }
  

  .rjn-title-divider {
    position: relative;
    overflow: hidden; /* 🔥 Hide the overflow for the shimmer effect */
    border-top: 1px dotted #999;
    border-bottom: 1px dotted #999;
    margin: 2em 0;
    /* background: linear-gradient(to right, transparent, #fff464dc, transparent); */
    background: linear-gradient(to right, transparent, #daab3fdc, transparent);
    color: black;
    text-align: center;
    margin-bottom: 0em;
    margin-top: 0.2em;
  }
  
  /* ✨ Shimmer effect overlay */
  .rjn-title-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 10s infinite;
  }
  
  /* ✨ Shimmer animation */
  /* @keyframes shimmer {
    0% {
      left: -50%;
    }
    100% {
      left: 100%;
    }
  } */


  .title-divider {
    position: relative;
    text-align: center;
    margin: 2em auto;
    margin-top: -1.2em;
    margin-bottom: 0em;
    width: fit-content; /* ⬅️ Only as wide as its content */
    padding: 0 2em; /* ⬅️ Add extra padding left and right */
  }


/* Reusable CSS Class for All Dividers */
.soft-divider {
  border-top: 1px solid #ddd;
  margin: 2em;

}

.dotted-divider {
  border-top: 1px dotted #999;
  margin: 2em 0;
}

.gradient-divider {
  /* height: 1px; */
  background: linear-gradient(to right, transparent, #a3f2598e, transparent);
  padding-top: 20px; /* Add breathing room if you want */
  padding-bottom: -2000px;
  margin: 2em 0;
}

.double-divider {
  border-top: 3px double #ccc;
  margin: 2em 0;
}

.offset-divider {
  /* height: 2px; */
  background: linear-gradient(to right, transparent, #a3f2598e, transparent);
  margin: 2em 0;
  margin-left: 50px; /* ✅ Offset from the left */
  width: calc(100% - 50px); /* ✅ Take up the rest of the width */
}


.search-rjn-button {
  background-color: inherit;
  color: currentColor;
  border: 1px solid #ccc;
  padding: 0.5em;
  font-size: 0.65em; /* optional but good to keep */
  border-radius: 5px; /* optional for soft edges */
  box-sizing: border-box; /* ensures padding doesn't overflow */
}
