* {
    font-family: calibri;
    margin: 0;
    padding: 0;
  }
  ::-webkit-scrollbar {
    width: 12px;               /* Width of the scrollbar */
  }
  ::-webkit-scrollbar-track {
    background: #f1f1f1;       /* Color of the scrollbar track */
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: #888;          /* Color of the scrollbar thumb */
    border-radius: 10px;
    transition: background-color 0.2s ease;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #555;          /* Color of the thumb when hovered */
  }
  body {
    color: #1a1a1a;
    transition: background-color 0.3s ease, color 0.3s ease;
    scrollbar-width: thin;     /* “auto” or “thin” */
    scrollbar-color: #888 #f1f1f1; /* thumb and track color */
  }
  body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f8ff;
  }
  body.dark-mode h2 {
    color: #f0f8ff;
  }
  body.dark-mode p {
    color: #f0f8ff;
  }
  body.dark-mode #homeBtn, #backBtn:disabled {
    color: #f0f8ff;
  }
  body.light-mode #xMark {
    color: #333;
  }
  body.light-mode .theme-sidebar {
    background-color: #ddd;
    color: #333;
  }
  body.dark-mode .theme-sidebar {
    background-color: #2b2b2b;
    color: #f0f8ff;
  }
  body.light-mode .search {
    background-color: #444;
    color: #f0f8ff;
  }
  body.dark-mode .navbar {
    background-color: #2b2b2b;
    color: #f0f8ff;
  }
  body.light-mode .search::placeholder {
    color: #ccc;
  }
  body.light-mode .logo {
    -webkit-text-stroke: 2px #1a1a1a;
  }
  .logo-content {
    position: relative;
    text-align: center;
    margin-top: 100px;
  }
  .logo {
    display: inline;
    font-size: 92px;
    user-select: none;
    font-weight: 1;
  }
  #logoThick {
    font-weight: 600;
  }
  .logo-n { color: #23c8ff; }
  .logo-o { color: #23ff95; }
  .logo-a { color: #e9ff23; }
  .logo-m { color: #ff5e23; }
  .logo-e { color: #ff23da; }
  .logo-d { color: #8623ff; }
  .logo-s { color: #557aff; }
  .logo-r { color: #23c8ff; }
  .logo-c { color: #70ff23; }
  .logo-h { color: #ffd500; }
  body.dark-mode .logo {
    -webkit-text-stroke: 1px #1a1a1a;
    text-shadow: -1px -1px 0 #1a1a1a, 1px -1px 0 #1a1a1a, -1px 1px 0 #1a1a1a, 1px 1px 0 #1a1a1a;
  }
  .searchBox {
    position: relative;
    text-align: center;
    margin-top: 30px;
  }
  .search {
    border: none;
    border-radius: 20px;
    padding: 10px 35px;
    width: 705px;
    transition: width 0.3s ease;
    font-size: 22px;
    outline: none;
  }
  .search:placeholder-shown {
    width: 300px;
  }
  .search:focus {
    width: 705px;
  }
  #searchIcon {
    position: absolute;
    top: 33%;
    margin-left: 10px;
    color: #7272ff;
  }
  .profile {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 10px;
    cursor: pointer;
  }
  .user-icon {
    font-size: 44.4px;
    color: #7272ff;
  }
  .pfp {
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }
  .hide {
    display: none;
  }
  .logout-popup {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: rgba(52, 52, 52, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  .logout-popup.show {
    display: block;
  }
  .login-popup {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    background-color: rgba(52, 52, 52, 0.9);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  .login-popup.show {
    display: block;
  }
  .logout-btn, .login-btn {
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    background-color: #9daada;
    color: black;
    font-weight: bold;
    transition: background-color 0.2s ease;
  }
  .logout-btn:hover, .login-btn:hover {
    cursor: pointer;
    background-color: #9370d0;
  }
  .logout-btn:active, .login-btn:active {
    background-color: #9940d9;
  }
  .loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000; /* Make sure it's above all other elements */
    pointer-events: all;
  }
  .loading-screen.visible {
    opacity: 1;
    visibility: visible;
  }
  .loader {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .hidden {
    display: none;
  }
  .navbar {
      display: none;
      align-items: center;
      justify-content: space-between;
      background-color: #f8f8f8;
      padding: 10px 20px;
      border-bottom: 1px solid #ddd;
      position: fixed;
      top: 0;
      width: 100%;
      height: 50px;
      z-index: 1000;
  }
  .navbar.visible {
      display: flex;
  }
  .nav-left {
      display: flex;
      gap: 10px;
  }
  .nav-left i {
      font-size: 20px;
      cursor: pointer;
  }
  .nav-left i.disabled {
      color: #aaa;
      cursor: not-allowed;
  }
  .search-container {
      flex: 1;
      display: flex;
      justify-content: center;
  }
  .search-container input {
      width: 60%;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 20px;
      text-align: left;
  }
  .results-page {
      margin: 80px auto 40px;
      padding: 20px;
      max-width: 900px;
  }
  .results-page h2 {
      color: #333;
      margin-bottom: 16px;
  }
  .result {
      margin-top: 20px;
      padding-bottom: 16px;
      border-bottom: 1px solid #ddd;
      word-break: break-word;
  }
  .result:last-child {
      border-bottom: none;
  }
  .result a {
    color: #1a0dab;
    font-size: 20px;
    text-decoration: none;
  }
  .result a:hover {
      text-decoration: underline;
  }
  .result-url {
      display: block;
      color: #006621;
      font-size: 14px;
      margin-top: 6px;
  }
  .result p {
      color: #555;
      margin-top: 6px;
      line-height: 1.6;
  }
  .no-results,
  .error-message {
      margin-top: 20px;
      font-size: 18px;
      line-height: 1.6;
  }
  .error-message {
      color: #c0392b;
  }
  body.dark-mode .results-page h2 {
      color: #f0f8ff;
  }
  body.dark-mode .result a {
      color: #8ab4f8;
  }
  body.dark-mode .result a:hover {
      color: #aecbfa;
  }
  body.dark-mode .result-url {
      color: #7dd892;
  }
  body.dark-mode .no-results {
      color: #f0f8ff;
  }
  body.dark-mode .error-message {
      color: #ff7675;
  }
  .customize {
    position: absolute;
    bottom: 15px;
    right: 15px;
  }
  .customize-btn {
    border: none;
    padding: 7.5px 10px;
    border-radius: 20px;
    background-color: #beccff;
    transition: background-color 0.2s ease;
  }
  .customize-btn:hover {
    cursor: pointer;
    background-color: #be99ff;
  }
  #customizeIcon {
    margin-right: 7.5px;
  }
  .theme-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: #2b2b2b;
    color: white;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    padding: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .theme-sidebar.show {
    right: 0;
  }
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
    padding: 5px;
    transition: color 0.2s ease;
  }
  .close-btn:hover {
    color: red;
  }
  .theme-option {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
  }
  .theme-option:hover {
    background-color: #666;
  }
  .theme-option.selected {
    background-color: #4CAF50;
  }
  #mainContent {
    transition: margin-right 0.3s ease;
  }
  #mainContent.shrink {
    margin-right: 300px;
  }
  /* Style the custom color label as a button */
  .custom-color-label {
    display: inline-block;
    background-color: #444;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
  }

  .custom-color-label:hover {
    background-color: #666;
  }

  /* Make the actual color input invisible but functional */
  .custom-color-input {
    opacity: 0;
    pointer-events: none;
  }
