
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@font-face {
  font-family: 'ds-system';
  src: url('/Fonts/nitrods-font.ttf') format('truetype');
}

body {
  background-color: white;
  color: black;
  margin-left: 24px;
  margin-top: 50px;
  margin-right: 24px;
  font-family:"ds-system"
  
}
a {
   text-decoration: none;
   color:black;
} 
.navbar {
      position: sticky; /* Keep top bar fixed on scroll */
      top: 0;
      width: 100%;
      background-color: #2d3748; /* Sleek dark slate gray */
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.85rem 2rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
      z-index: 1000;
    }
.menu-toggle {
  display: none;
}


/* The Side Menu Container */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px; /* Off-screen by default */
  width: 250px;
  height: 100vh;
  background-color: gray;
  border: 4px inset black;
  border-radius:8px;
  padding-top: 80px;
  padding-right:10px;
  padding-bottom: 80px;
  transition: all 0.3s ease;
  z-index: 99;
}
/* Menu Links styling */
.side-menu ul {
  list-style: none;
}

.side-menu ul li a {
  display: block;
  padding: 15px 25px;
  color: black;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.2s;
}

.side-menu ul li a:hover {
  background-color: #333;
}

/* --- THE TRICK: When checkbox is checked --- */

/* Slide the menu into view */
.menu-toggle:checked ~ .side-menu {
  left: 0;
}

/* Optional: Shift main content right when menu opens */
.menu-toggle:checked ~ .content {
  margin-left: 250px;
}

/* Optional: Transform burger icon lines into an "X" close button */
.menu-toggle:checked ~ .burger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle:checked ~ .burger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .burger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Content adjustment transition */
.content {
  padding: 20px;
  margin-left: 0;
  transition: all 0.3s ease;
}



/* Horizontal menu style */
/*Nav Button*/
.NavButton{
  position:fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  cursor: pointer;
  width: 100px;
}
/* Isolated Variables Scope */
:root {
  --lshm-bg-dark: #1a1a1a;
  --lshm-text-light: #ffffff;
  --lshm-accent-cyan: #00adb5;
  --lshm-speed-smooth: 0.4s;
}

/* Unique Trigger Controls */
.lshm-trigger-btn, 
.lshm-dismiss-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.lshm-trigger-btn {
  color: #333;
}

.lshm-navbar-container {
  flex-direction: row-reverse; 
}

.lshm-dismiss-btn {
  color: var(--lshm-text-light);
}

/* Unique Off-screen Left Layout */
.lshm-navbar-container {
  position: fixed;
  top: 100px;
  right: 0;
  max-width: 100%;
  width: 400px;
  height: 60px;
  background-color: var(--lshm-bg-dark);
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 10000; /* High z-index priority */
  
  /* Left Slide-in Property */
  transform: translateX(100%);
  transition: transform var(--lshm-speed-smooth) ease-in-out;
}

/* Active State Modifier */
.lshm-navbar-container.lshm-state-active {
  transform: translateX(0);
}

/* Internal Horizontal List Structure */
.lshm-nav-wrapper {
  display: flex;
  list-style: none;
  margin: auto;
  padding: 0;
  width: 100%;
  justify-content: flex-start; 
  gap:20px;
}

/* Scoped Menu Typography */
.lshm-nav-link {
  color: var(--lshm-text-light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.lshm-nav-link:hover {
  color: var(--lshm-accent-cyan);
}

/* Scoped Dim Backdrop */
.lshm-backdrop-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--lshm-speed-smooth) ease-in-out;
}

.lshm-backdrop-blur.lshm-state-active {
  opacity: 1;
  pointer-events: auto;
}

/* Novel Formatting Class */
.novel-container{
  margin:auto;
  font-family: "Open Sans", sans-serif;
  max-width: 800px;
  padding:30px;
  border:2px solid black;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), 
              inset -2px -2px 5px rgba(0, 0, 0, 0.3);
  color: black;
  line-height: 120%;
  border-radius: 5px;
  background:  	#C0C0C0;

  
}
.textbox-button-style {
  margin: auto;
  display: inline-block;
  padding: 10px;
  max-width: 200px;
  border: 2px solid #000000; 
  color: black;
  line-height: 120%;
  border-radius: 6px; /* Slightly increased to preserve curve inside the border */
  overflow: hidden;   /* Prevents background/shadow bleed outside rounded corners */
  background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.08) 50%
    ),
    linear-gradient(90deg, #e6e6e6, #CCCCCC);
  transition: all 0.1s ease;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}


.textbox-button-style:hover {
    background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.15) 50%
    ),
    linear-gradient(90deg, #FFFFFF, #C0C0C0);
}
/* Active (Pressed) State */
.textbox-button-style:active {
  transform: translateY(2px);
  /* Added a negative spread (-1px) so the shadow doesn't choke the top corners */
  box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5);
  background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.15) 50%
    ),
    linear-gradient(90deg, #d4d4d4, #b8b8b8);
}
  .textbox-display-style{
  margin:auto;
  display:inline-block;
  padding:10px;
  max-width: 300px;
  border: 4px solid #000000; 
  color: black;
  line-height: 120%;
  border-radius: 5px;
  background: #4d4d4d;
   background: 
    linear-gradient(
       rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.08) 50%
    ),
    linear-gradient(90deg, #e6e6e6, #CCCCCC); /* Replace with your color/image URL */
    background-size: 100% 4px, cover;
}
.textbox-display-darker{
  margin:auto;
  max-width: 1000px;
  padding:30px;
  border: 2px solid #000000; 
  color: black;
  line-height: 120%;
  border-radius: 5px;
  background: #A9A9A9;
   background: 
    linear-gradient(
       rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.08) 50%
    ),
    linear-gradient(90deg, #e6e6e6, #CCCCCC); /* Replace with your color/image URL */
  
  /* Forces the scanline pattern to repeat every 4px vertically */
  background-size: 100% 4px, cover;
  
}
.textbox-display-white{
  margin:auto;
  display:inline-block;
  padding:5px;
  max-width: 300px;
  border: 1px solid #000000; 
  color: black;
  line-height: 120%;
  border-radius: 5px;
  background: #FFFFFF; /* Replace with your color/image URL */
  background-size: 100% 4px, cover;
}
.textbox-display-black{
  margin:auto;
  color: #FFFFFF;
  display:inline-block;
  padding:10px;
  max-width: 300px;
    border: 2px solid black;          /* Inner black layer (actual border) */
  box-shadow: 0 0 0 2px white,      /* Middle white layer */
              0 0 0 4px black; 
  line-height: 120%;
  border-radius: 5px;
  background: #000000; /* Replace with your color/image URL */
  background-size: 100% 4px, cover;
}

/*DS Banner stuff */

.ds-box {
  display: flex;
  align-items: center;
  width: 320px;
  background-color: #ffffff;
  
  /* Double border effect using outline and border */
  border: 3px outset black;
  transition: all 0.3s ease;
}

/* Left Icon Container with vertical silver gradient */
.ds-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 50%, #cccccc 100%);
  border: 1px outset ;
  flex-shrink: 0;
}

.ds-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* Right Content Area with Horizontal Scanline Pattern */
.ds-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 0 10px;
  text-align: center;
  color: #111111;
  border-color:gray;
  border-top:1px;
  border-bottom:1px;
  /* Repeating linear gradient to simulate subtle horizontal grid/scanlines */
  background: repeating-linear-gradient(
    to bottom,
    #ffffff,
    #ffffff 2px,
    #f2f2f2 2px,
    #f2f2f2 4px
  );
}

.ds-content .title {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.ds-content .subtitle {
  font-size: 14px;
  color: #333333;
}
/* Active (Pressed) State */
.ds-box:active {
  filter: brightness(0.85);                /* Darkens the background */
  border-style: inset;                        /* Reverses outset bevel to look pressed in */
  transform: translateY(2px);                  /* Shifts the element down to simulate weight */
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); /* Adds internal shadow for depth */
  transition: all 0.05s ease;                  /* Makes press response instant */
}

.menu-button-style {
  margin: auto;
  display: inline-block;
  padding: 10px;
  max-width: 200px;
  max-height: 50px;
  border: 2px outset #000000; 
  color: black;
  line-height: 120%;
  overflow: hidden;   /* Prevents background/shadow bleed outside rounded corners */
  background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.08) 50%
    ),
    linear-gradient(90deg, #e6e6e6, #CCCCCC);
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}


.menu-button-style:hover {
    background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.15) 50%
    ),
    linear-gradient(90deg, #FFFFFF, #C0C0C0);
}
/* Active (Pressed) State */
.menu-button-style:active {
  transform: translateY(2px);
  /* Added a negative spread (-1px) so the shadow doesn't choke the top corners */
  box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5);
  background: 
    linear-gradient(
      rgba(18, 16, 16, 0) 50%, 
      rgba(0, 0, 0, 0.15) 50%
    ),
    linear-gradient(90deg, #d4d4d4, #b8b8b8);
}


.grid-background {
  background-size: 30px 30px;
  background-image:
    linear-gradient(to right, silver 2px, transparent 1px),
    linear-gradient(to bottom, silver 2px, transparent 1px),
    repeating-linear-gradient(
      to bottom,
      rgba(131, 131, 131, 0.2) 0px,
      rgba(131, 131, 131, 0.2) 1px,
      transparent 2px,
      transparent 4px
      );
  
}
.grid-background.dark-mode {
  background-color: #696969; /* Deep dark slate background */
  background-size: 30px 30px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 2px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 2px, transparent 1px),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
}
