
/*Darkmode is in the header file. It doesn't work here /*


/*search-button begin*/
	  
.search-button{
       text-align: right;    
      /*display: flex;*/
      gap: 12px;
      margin: 20px 0;}
		
button {
      /*padding: 10px 16px;
      background: var(--btn-primary);
      color: var(--btn-text);
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.2s; */
    }
    
button:hover {
     /* background: var(--btn-hover);
      transform: translateY(-2px); */
    }


.normal-button {
      padding: 10px 16px;
      background: var(--btn-primary);
      color: var(--btn-text);
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.2s;
    }
    
.normal-button:hover {
      background: var(--btn-hover);
      transform: translateY(-2px);
    }


/*search-button end*/


/*search box begin*/
 .search-box {
      position: fixed;
      top: 20px;
      right: 20px;
       /*background: #fff;*/
      background-color: var(--search-box);
	  color: var(--btn-text);
      border: 1px solid #cbd5e0;
      padding: 10px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      z-index: 9999;
      display: none;
      /* cursor: move;         /* show move cursor */
   /* touch-action: none;   /* needed for mobile dragging */
    }
    
    .search-box input {
      width: 180px;
      padding: 8px;
      border: 1px solid #cbd5e0;
      border-radius: 4px;
      margin-right: 5px;
    background-color: var(--bg-primary);
  color: var(--text-primary);
  }
    
    .search-box button {
      padding: 8px 12px;
      font-size: 14px;
    }
    
    mark.search-highlight {
      background: rgba(255, 230, 0, 0.5);
      padding: 0;
    }
    
    mark.active-match {
      background: orange;
    }
	
	/* Extra small screens - make search-box smaller */
@media (max-width: 540px) {
  .search-box {
    top: 5px;
    right: 5px;
    padding: 6px;
  }

  .search-box input {
    width: 120px;   /* reduced width */
    padding: 6px;
    font-size: 14px;
  }

  .search-box button {
    padding: 6px 8px;
    font-size: 12px;
  }

  .search-box span {
    font-size: 12px;
  }
}


/* Close button */
    .sh-close-btn {
      cursor: pointer;
      font-size: 24px;
      color: var(--btn-text);
    }
	
    .sh-close-btn:hover {
      color: red;
    }
	
	/*search box end*/
	
	/*Youtube PiP-style popup start*/

 /* PiP-style popup */
    .pip {
      position: fixed;
      /* Default: 90% of viewport width on small screens, max 480px */
      width: min(90vw, 480px);
      height: calc(min(90vw, 480px) * 0.5625); /* 16:9 aspect ratio */
      background: #000;
      display: none;
      z-index: 9999;
      border-radius: 10px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.4);
      resize: both;
      overflow: hidden; /* keep iframe edges clean */
    }

    .video-area {
      position: absolute;
      inset: 0;
    }

    .responsive-iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .close-btn, .move-btn {
      position: absolute;
      top: 6px;
      width: 28px;
      height: 28px;
      border: 0;
      border-radius: 999px;
      font-size: 16px;
      line-height: 28px;
      text-align: center;
      cursor: pointer;
      opacity: 0.9;
      background: rgba(0,0,0,0.5);
      color: #fff;
      z-index: 3;
    }
    .close-btn { right: 6px; }
    .move-btn  { left: 6px; }

    .drag-surface {
      position: absolute;
      inset: 0;
      z-index: 2;
      cursor: move;
      background: transparent;
      pointer-events: none;
    }
    .drag-surface.active {
      pointer-events: auto;
    }

    /* Mobile-first responsive sizing */
    /* Small phones (< 400px wide) */
    @media (max-width: 399px) {
      .pip {
        width: 85vw;
        height: calc(85vw * 0.5625);
      }
    }

    /* Medium screens (400px - 767px) */
    @media (min-width: 400px) and (max-width: 767px) {
      .pip {
        width: 380px;
        height: 213.75px;
      }
    }

    /* Tablets and small laptops (768px - 999px) */
    @media (min-width: 768px) and (max-width: 999px) {
      .pip {
        width: 420px;
        height: 236.25px;
      }
    }

    /* Desktop (1000px - 1399px) */
    @media (min-width: 1000px) and (max-width: 1399px) {
      .pip {
        width: 400px;
        height: 225px;
      }
    }

    /* Large desktop (1400px+) */
    @media (min-width: 1400px) {
      .pip {
        width: 440px;
        height: 247.5px;
      }
    }

    /* Landscape orientation on mobile - make it smaller to fit */
    @media (max-height: 500px) and (orientation: landscape) {
      .pip {
        width: 45vw;
        height: calc(45vw * 0.5625);
        max-height: 70vh;
      }
    }

/*Youtube PiP-style popup end*/


.unstyled-button {
  border: none;
  padding: 0;
  background: none;
  font-size: 16px;
  text-align: left;
  cursor:pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.unstyled-button .icon {
      width: 16px;
      height: 16px;
    }

.theme-buttons{
       text-align: right;    
      /*display: flex;*/
      gap: 8px;
      margin: 8px 16px;}




.header {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 0;
transition: all 0.3s ease;
}


.header2 {
  background-color: var(--bg-primary);
  color: var(--text-primary);
   padding: 0;
  text-align: center;
transition: all 0.3s ease;
}

table {
    border-collapse: collapse; /* Merges borders */
    width: 100%; /* Makes table full-width */
}

th, td {
     border: none; 
    padding: 0; /* Adds space inside cells */
}

h1 {
            margin-top:4px;
        }
		
.row {
  display: flex;
}

.column {
  flex: 50%;
  padding: 15px;
}

.footer {
  /*background-color: #f1f1f1;*/
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 10px;
  text-align: left;
transition: all 0.3s ease;
}

@media screen and (max-width: 600px) {
  .row {
    flex-direction: column;
    align-items:center;
    justify-content:center;
  }
}




/*Image*/

 .img-container {
  width: 100%;
  max-width: 200px; /* You can change this value */
  margin: 0 auto;
}

img {
  width: 100%;
  height: auto;
}



/*Article lists*/

html {
  font-family: "Lucida Sans", sans-serif;
}


a {
  text-decoration: none;
  /*color: #000;*/
color: var(--text-primary);
transition: all 0.3s ease;
}



.menu2 ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu2 li {
  padding: 8px;
  margin-bottom: 2px;
  /*background-color :#e6e6f2;*/
  background-color: var(--accent-color);
          /*color: #000;*/
	color: var(--text-primary);
transition: all 0.3s ease;
}

.menu2 li:hover {
     /*background-color :#ddd;*/
 background-color: var(--accent-hover);
   cursor:pointer;
}



.menu3 ul {
  list-style-type: decimal;
  margin: 0;
  padding: 8;
}

.menu3 li {
  padding: 4px;
  margin-bottom: 1px;
   /*background-color :#f1f1f1;*/
  background-color: var(--accent-color3);
      /* color: #000;*/
	 color: var(--text-primary);
  transition: all 0.3s ease;
}

.menu3 li:hover {
    /*background-color :#e3e3e3;*/
background-color: var(--accent-hover3);
    cursor:pointer;
}


#main {
  transition: margin-left .5s;
  padding: 1px;
}


/*hiding left menu start*/

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
  overflow-x: hidden;
  transition: 0.5s ease;
  padding-top: 0;
  box-shadow: 6px 0 15px rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
 backdrop-filter: blur(8px);
}

.sidebar a {
  padding: 12px 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--menu-text);
  display: block;
  border-radius: 8px;
  margin: 6px 12px;
 background: linear-gradient(145deg, var(--accent-color3), var(--accent-color)); 
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.4),
              inset -2px -2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.sidebar a:hover {
  background: linear-gradient(145deg, var(--accent-hover3), var(--accent-hover));
  color: var(--menu-hover);
  transform: translateX(6px);
  box-shadow: 2px 2px 10px rgba(0,0,0,0.25),
              -2px -2px 10px rgba(255,255,255,0.15);
}


.openbtn {
  font-size: 22px;
  cursor: pointer;
  background: linear-gradient(145deg, var(--accent-color3), var(--accent-color));
  color: var(--text-primary);
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  /*margin: 8px; */
  /* margin: 0;      --- remove existing 8px margin */
  /* margin-top: 4px;   ---optional small top spacing */
  box-shadow: 4px 4px 8px rgba(0,0,0,0.2),
              -2px -2px 6px rgba(255,255,255,0.1);
  transition: none; /* remove animation */
}

.openbtn:hover {
  background: linear-gradient(145deg, var(--accent-hover3), var(--accent-hover));
  transform: translateY(-2px);
  box-shadow: 6px 6px 12px rgba(0,0,0,0.25),
              -2px -2px 8px rgba(255,255,255,0.15);
}

/* Dark mode adjustment */
[data-theme="dark"] .openbtn {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
  color: var(--text-primary);
  box-shadow: 4px 4px 10px rgba(0,0,0,0.6),
              -2px -2px 6px rgba(255,255,255,0.05);
}

.sidebar a.spaced-link {
  margin-top: 35px; /* adjust space as needed */
  display: block;
}
/*hiding left menu end*/


/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidebar {padding-top: 10px;}
  .sidebar a {font-size: 14px;}
}


/*responsive menu*/


.menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu li {
  /*padding: 8px;
  margin-bottom: 7px;
  background-color: #33b5e5;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
*/
padding: 8px;
            margin-bottom: 7px;
            background-color: var(--accent-color);
          color: white;
            box-shadow: 0 1px 3px var(--shadow);
            border-radius: 4px;
            transition: all 0.3s ease;

}

.menu li:hover {
  /*background-color: #0099cc;*/
background-color: var(--accent-hover);
}

.aside {
 /*background-color: #ffffff;*/
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 15px;
  /*color: #000000;*/
  text-align: center;
  font-size: 14px;
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0), 0 0px 0px rgba(0, 0, 0, 0);
  transition: all 0.3s ease;
}


/* For mobile phones: */
[class*="col-"] {
  width: 100%;
}

@media only screen and (min-width: 600px) {
  /* For tablets: */
  .col-s-1 {
    width: 8.33%;
  }
  .col-s-2 {
    width: 16.66%;
  }
  .col-s-3 {
    width: 25%;
  }
  .col-s-4 {
    width: 33.33%;
  }
  .col-s-5 {
    width: 41.66%;
  }
  .col-s-6 {
    width: 50%;
  }
  .col-s-7 {
    width: 58.33%;
  }
  .col-s-8 {
    width: 66.66%;
  }
  .col-s-9 {
    width: 75%;
  }
  .col-s-10 {
    width: 83.33%;
  }
  .col-s-11 {
    width: 91.66%;
  }
  .col-s-12 {
    width: 100%;
  }
}
@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-1 {
    width: 8.33%;
  }
  .col-2 {
    width: 16.66%;
  }
  .col-3 {
    width: 25%;
  }
  .col-4 {
    width: 33.33%;
  }
  .col-5 {
    width: 41.66%;
  }
  .col-6 {
    width: 50%;
  }
  .col-7 {
    width: 58.33%;
  }
  .col-8 {
    width: 66.66%;
  }
  .col-9 {
    width: 75%;
  }
  .col-10 {
    width: 83.33%;
  }
  .col-11 {
    width: 91.66%;
  }
  .col-12 {
    width: 100%;
  }
}


