  /* Define theme colors */
  :root, html[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #222222;
	--bg-glass: rgba(230, 230, 230, 0.99);
  }
  html[data-theme="dark"] {
    --bg-color: #4d4d4d;
    --text-color: #f5f5f5;
	--bg-glass: rgba(77, 77, 77, 0.99); 
	scroll-behavior: smooth;
  }
  body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s;
	overflow-x: hidden;

  }	

/* Apply this to elements you want to protect */
.no-copy {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10 and IE 11 */
    user-select: none;         /* Standard syntax for Chrome, Firefox, Opera */
}

@media print {
    /* Hide the entire body content when printing the webpage */
    body {
        display: none !important;
    }
}


.heading{
	position: inline-block;
  top: 0;
    width:100%;
  z-index: 5;
	display: flex;
	align-items: left;
	padding: 0 !important;
}


    /* 3. GLASSMORPHIC NAVBAR LAYOUT WITH LEFT ALIGNMENT */
    .navbar {
      position: absolute;
      top: auto;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 1600px;
   /*   background: var(--bg-glass); */
	  background-color: rgba(19, 21, 23, 0.4);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 0px solid var(--border-glass);
      border-radius: 0px;
      padding: 2px 7px;
      z-index: 4;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
	  color: inherit;
    }

    .nav-container {
      display: flex;
      align-items: center;
      justify-content: flex-start; /* Forces content to align to the absolute left edge */
	  color: inherit;
	  margin-left: 10px !important; 
	  margin-right: 10px !important;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 5px;
      width: 100%; /* Spans full width of the container for solid left-dock alignment */
	  color: inherit;
    }

    .nav-item {
	transition: opacity 0.2s ease;
	text-decoration: none;
	color: CanvasText;
	color: inherit;
    }

    .nav-item:hover {
      opacity: 0.9;
    }

    /* 4. CONTROLLER BUTTON & PURE UL/LI RESET */
    .dropdown-wrapper {
      position: relative;
    }

    .menu-btn {
      background: transparent !important;
      border: none !important;
      padding: 0px 2px !important;
      margin: 0 !important;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 3px;
	  color: inherit;
    }

    .arrow-icon {
      font-size: 0.4em;
      transition: transform 0.2s ease;
      display: inline-block;
    }

    /* Force absolute removal of list bullet markers and margins */
    .dropdown-menu, 
    .dropdown-menu li {
      list-style: none !important;
      list-style-type: none !important;
      padding: 0 !important;
      margin: 0 !important;
	  color: inherit;
    }

    .dropdown-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0; /* Aligns dropdown list directly below the left edge of the button wrapper */
      background: var(--bg-glass) !important;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 0px solid var(--border-glass);
      border-radius: 6px;
      padding: 3px !important; /* Slight boundary padding for items container */
      min-width: 120px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      display: none; /* Controlled asynchronously via script state */
	  color: inherit;
      z-index: 99;
    }

    .dropdown-item {
      display: block;
      padding: 10px 14px;
      border-radius: 8px;
      transition: background 0.2s ease;
	  color: inherit;
    }

    .dropdown-item:hover {
      background: var(--bg-hover);
    }


    /* 5. STATE MODIFIERS */
    .dropdown-wrapper.is-open .dropdown-menu {
      display: block;
    }

    .dropdown-wrapper.is-open .arrow-icon {
      transform: rotate(180deg); /* Flips the standard indicator chevron arrow */
    }

        /* Flexbox navigation button container */
        .nav-controls {
		display: flex;
          /* justify-content: space-between; */
            padding: 0px;
         /*background-color: #bac6d2;   */
		/*border-top: 1px solid grey;     */	
        }

html, body, :fullscreen {
  min-height: 100dvh !important; /* Dynamic Viewport Height fills the true pixel area */
  height: 100dvh !important;
  margin: 0;
  padding: 0 !important;
  overflow: none; /* Prevents tiny sub-pixel scrolling gaps */
}
  

/*------------------about popup-------------------*/
    .about-link:hover {
      text-decoration: underline;
    }

    /* Backdrop Dimmer (Hidden by default) */
    .popup-overlay {
      display: none; 
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
    }

    /* Pop-Up Window Box */
    .popup-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--bg-glass);
      padding: 30px;
      border-radius: 8px;
      width: 400px;
      max-width: 90%;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Close Button Layout */
    .close-btn {
      float: right;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      color: #aaa;
      line-height: 20px;
    }
    .close-btn:hover {
      color: #000;
    }

/* ------------------------------- show hide forms ---------------------------*/
.toggle-form{
margin: 0 !important;
  padding: 0 !important;
}

/* Base button styles */
.toggle-btn {
/*	border: 1px solid; */
	cursor: pointer;
	transition: background-color 0.2s;
	display: block;
	padding: 2px 2px !important; 
	border-radius: 8px;
	transition: background 0.2s ease;
	color: inherit;
	text-decoration: none;
}

/* Highlight style when a button is selected */
.toggle-btn.active {
 background-color: #6d6d6d;
  border-color: white;
/*  font-weight: bold; 
  text-decoration: underline;
  text-decoration-color: #BA4343; *//* Sets the line color to red */ 
  
}

.main-container{
		  margin-left: 10px !important; 
	  margin-right: 10px !important;
}


/*----------------------------------the images--------------------------*/

/* Parent row container */
.image-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

/* Individual columns */
.image-card {
  margin: 0;
  flex: 1;                  /* Forces equal sizing across all columns */
  display: flex;
  flex-direction: column;   /* Stacks image vertically above caption */
  min-width: 0;             /* Prevents content from overflowing */
}

/* Wrapper to isolate the image layout */
.img-wrapper {
  width: 90%;
  height: 200px;            /* Set your desired image height here */
  overflow: hidden;         /* Keeps everything clean */
  border-radius: 8px;
  border: 1px solid grey; /* Adds a solid border (adjust color/thickness here) */
}

/* The actual image */
.image-card img {
  width: 100%;
  height: 100%;             /* Fills the wrapper completely */
  object-fit: cover;        /* Keeps aspect ratio clean */
  display: block;           /* Removes unwanted bottom spaces */
}

/* Captions are safely forced below the image wrapper */
figcaption {
  margin-top: 10px;
  text-align: left;
  word-wrap: break-word;    /* Prevents long text from clipping */
}

/*-------------------------books*/
/* Container Layout */
.book-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 25px;
  width: 100%;
  padding: 20px 10px;
  /* System font stack: standard fonts built directly into Windows, Mac, and Linux */
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;  */
  box-sizing: border-box;
}

/* Individual Book Column */
.book-card {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;      
  min-width: 0;
}

/* Interactive Image Wrapper */
.book-wrapper {
  position: relative;        
  width: 100%;
  max-width: 180px;          
  height: 270px;             
  overflow: hidden;
  border-radius: 4px 12px 12px 4px; 
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
  cursor: pointer;
  z-index: 1;
}

/* INTERACTIVE HOVER EFFECT: Book lifts up and shadow expands */
.book-wrapper:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* The Book Cover Picture */
.book-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #e0e0e0; /* Fallback gray box if the local image is missing */
}

/* Best Seller Badge */
.badge {
  position: absolute;
  top: 12px;
  left: 0;
  background-color: #e74c3c; 
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 4px 4px 0;
  box-shadow: 1px 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
  letter-spacing: 0.5px;
}



.book-title {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  
}

.book-author {
  font-size: 13px;
}

/*------------------------------bring to mid page */
.my-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer; /* Changes mouse cursor to a pointing hand */
  user-select: none; /* Prevents text highlighting when double-clicked */
}

/* Optional hover visual feedback */
.my-button:hover {
  background-color: #0056b3;
}

