html {
  background-color:rgb(255, 255, 255)
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  padding-left: 220px;
  
}

.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: #ffffff;
  border-right: 2px solid #16213e;
  padding: 10px 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.left-sidebar h3 {
  color: #000000;
  margin: 0 0 20px 0;
  font-size: 18px;
  text-align: center;
  border-bottom: 2px solid #16213e;
  padding: 0 10px 10px 10px;
  flex-shrink: 0;
}

.nav-item {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 12px;
  font-weight: lighter;
  transition: all 0.3s ease;
}

.nav-item:hover {
  font-size: 13px;
  transform: translateX(5px);
}

.nav-item.active {
  border-color: #535353;
}
.nav-score {
  float: right;
  color: #0078d4;
  font-weight: bold;
  background: #e8f4fd;
  border-radius: 6px;
  padding: 2px 8px;
  margin-left: 8px;
  font-size: 12px;
}



.quiz-word {
  background-color: rgb(123, 123, 123);
  color: rgb(123, 123, 123);
  padding: 2px 4px;
  cursor: pointer;
  border: 0px solid #ffffff;
  position: relative;
  display: inline-block;
  border-radius: 5px;
}

.quiz-word.revealed {
  background-color: #3fe03f;
  color: rgb(0, 0, 0);
}

.quiz-word.incorrect {
  background-color: #5a2d2d;
  color: rgb(255, 0, 0);
}

.answer-input {
  border: 2px solid #4a9eff;
  padding: 2px 6px;
  margin: 0;
  border-radius: 3px;
  font-size: inherit;
  font-family: inherit;
  width: auto;
  min-width: 60px;
  background-color: #2a2a2a;
  color: white;
  outline: none;
}

.answer-input:focus {
  border-color: #66b3ff;
  box-shadow: 0 0 5px rgba(102, 179, 255, 0.5);
}

.score {
  position: fixed;
  right: 15%;
  transform: translateX(100%);
  z-index: 1;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: white;
  background-color: #16213e;
  padding: 5px;
  border-radius: 5px;
}

.quiz-container {
  position: relative;
  z-index: 0;
}

.feedback {
  margin-left: 5px;
  font-weight: bold;
}

.correct {
  color: #009800;
}

.incorrect {
  color: #f66666;
  text-decoration-color: #ff6666;
}

/* Tooltip styling for hints */
.quiz-word[title] {
  position: relative;
}

.quiz-word[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.quiz-word[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 95%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  z-index: 1000;
}
div ul {
  font-size: large;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
p {
  background-color: #2a2a2a;
  color: white;
  padding: 10px 10px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  line-height: 1.5;
}
li {
  margin-bottom: 12px;
  line-height: 2;
  padding: 10px 18px 10px 38px;
  background: linear-gradient(90deg, rgba(255,255,255,0.7) 0%, rgba(224,225,255,0.7) 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 160, 122, 0.12), 0 1.5px 4px rgba(22, 33, 62, 0.08);
  position: relative;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  list-style-type: none;
  font-size: 1.08em;
  font-weight: none;
  cursor: pointer;
  overflow: visible;
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 0px solid rgba(0, 0, 151, 0.25);
}

li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  color: #c3d2ff;
  font-size: 1.2em;
  transition: color 0.3s, transform 0.2s;
  opacity: 0.85;
}

li:hover {
  background: linear-gradient(90deg, #ffffff 0%, #d2d4ff 100%);
  transform: scale(1.03) translateX(4px);
  box-shadow: 0 4px 16px rgba(255, 160, 122, 0.18), 0 2px 8px rgba(22, 33, 62, 0.12);
}

li:hover::before {
  color: #ff9800;
  transform: translateY(-50%) scale(1.2) rotate(-10deg);
  opacity: 1;
}

li:hover {
  background-color: #404040;
}

button {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border: none;
  padding: 1px 2px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 0.3s ease;

  font-weight: bold;
  margin-left: 5px;
}

button:hover {
  background-color: #333333;
}

/* Additional sidebar improvements for dropdown overflow */
.category-section {
  margin-bottom: 5px;
}

.category-items::-webkit-scrollbar {
  width: 6px;
}

.category-items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.category-items::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.category-items::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ensure sidebar content area is scrollable */
.left-sidebar::-webkit-scrollbar {
  width: 8px;
}

.left-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}


body {
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
}


.sliding-header-container {
  text-align: center;
  padding: 2rem;
  background: white;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sliding-header {
  opacity: 0;
  animation: slide-in 1s ease-in-out forwards;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

@keyframes slide-in {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.bundle-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 1rem 0;
}

.purchase-button {
  width: 100%;
  padding: 12px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.2rem;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.purchase-button:hover {
  background: #576bff;
}

@media (max-width: 600px) {
  html body {
    font-size: 1.05rem;
    padding: 4px;
    max-width: 100vw;
    margin: 0;
    background: #f5f6fa;
    padding-left: 0; /* Ensure sidebar padding is removed */
  }
  h1, h2, h3 {
    font-size: 1.15em;
    margin: 0.5em 0;
    text-align: center;
  }
  ul {
    padding-left: 0.5em;
    font-size: 1em;
  }
  li {
    font-size: 1em;
    padding: 8px 6px;
    margin-bottom: 8px;
    border-radius: 6px;
    line-height: 1.5;
  }
  .score, .sliding-header-container, .bundle-grid, .bundle-card {
    max-width: 100vw;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .quiz-word {
    font-size: 1em;
    padding: 3px 8px;
    min-width: 40px;
    letter-spacing: 1px;
    border-radius: 5px;
    margin: 2px 0;
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
  }
  .quiz-word.revealed {
    background-color: #3fe03f;
    color: #155724;
  }
  .quiz-word.incorrect {
    background-color: #f8d7da;
    color: #721c24;
  }
  .answer-input {
    font-size: 1em;
    padding: 6px 10px;
    min-width: 80px;
    border-radius: 4px;
    width: 90vw;
    max-width: 220px;
    margin: 4px 0;
  }
  button, .purchase-button {
    font-size: 1em;
    padding: 14px 0;
    width: 100%;
    border-radius: 6px;
    margin-top: 8px;
  }
  img, svg {
    max-width: 100vw;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .category-header {
   display: none
  }
  .category-items {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    transition: none !important;
  }
  .autocomplete-dropdown {
    display: none !important;
  }
  .try-again {
    font-size: 0.8em !important;
    padding: 2px 6px !important;
    min-width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
  }

  .left-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;      /* Full width for top bar */
    height: 56px !important;      /* Height for top bar */
    z-index: 1000 !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border-bottom: 2px solid #16213e !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    font-weight: bold !important;
    transition: none !important;
    transform: none !important;
  }
  body {
    padding-left: 0 !important;
    padding-top: 56px !important; /* Prevent content under sidebar */
  }
  /* Sidebar links horizontal */
  .left-sidebar ul,
  .left-sidebar .category-items {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    width: 100%;
  }
  .left-sidebar li {
    display: inline-block !important;
    margin: 0 18px 0 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 1em !important;
    line-height: 56px !important;
    cursor: pointer;
    position: relative;
    list-style-type: none;
  }
}
li.collapsing {
  max-height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: scaleY(0) scaleX(0) !important;
  transition:
    max-height 0.5s cubic-bezier(.2,0,.2,1),
    opacity 0.3s,
    margin 0.3s,
    padding 0.3s,
    transform 0.5s cubic-bezier(.2,0,.2,1);
}

.autocomplete-dropdown div {
  border: none !important;
  background: white;
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1em;
}
.autocomplete-dropdown div:hover {
  background: #f0f8ff;
}
.dollar-green {
    color: #003413 !important; /* Tailwind green-500 */
    font-weight: none;
    font-size: 1.1em;
    background-color: #deffde;
    padding: 2px 4px;
  }