body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  min-height: 100vh;
}
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
}

.index-panel,
.search-panel {
  padding: 2rem;
  box-sizing: border-box;
}

.index-panel {
  width: 40%;
  border-right: 1px solid #ccc;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}
.index-panel::-webkit-scrollbar {
  width: 8px;
}
.index-panel::-webkit-scrollbar-thumb {
  background: #007BFF;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .index-panel {
    display: none;
  }
  .index-panel.active {
    display: block;
  }
}

.search-panel {
  width: 60%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: flex-start;
}
.search-panel::-webkit-scrollbar {
  width: 8px;
}
.search-panel::-webkit-scrollbar-thumb {
  background: #007BFF;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .search-panel {
    width: 100%;
    border-bottom: none;
    position: static;
    height: auto;
    overflow: visible;
  }
}

h1, h2 {
  margin-top: 0;
}

#termResults h2 {
  margin-top: 20px;
}

.letter-nav a {
  margin-right: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  color: #333;
}
.letter-nav a.active {
  color: white;
  background-color: #007BFF;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.letter-nav a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .letter-nav a {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    display: inline-block;
  }
}
@media (max-width: 768px) {
  .letter-nav {
    margin: 2rem;
  }
}

ul.term-list {
  list-style: none;
  padding-left: 1rem;
}
ul.term-list li {
  margin: 4px 0;
}
ul.term-list a {
  display: inline-block;
  padding: 0.75em 1em;
  font-size: 1rem;
}
@media (max-width: 768px) {
  ul.term-list a {
    font-size: 1.25rem;
    padding: 1em 1.25em;
  }
}

#searchBox {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  margin-bottom: 1em;
}

.suggest-box {
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  margin-top: -1em;
  background: white;
  position: relative;
  z-index: 10;
}
.suggest-box div {
  padding: 0.5em;
  cursor: pointer;
}
.suggest-box div:hover {
  background: #f0f0f0;
}
.suggest-box div.active {
  background-color: #007BFF;
  color: white;
}
@media (max-width: 768px) {
  .suggest-box div {
    font-size: 1.25rem;
    padding: 0.75em;
  }
}

.suggest-item.active {
  background-color: #007BFF;
  color: white;
}

.definition-block {
  margin-bottom: 1.5em;
  padding: 1em;
  background: #f9f9f9;
  border-left: 4px solid #007BFF;
  line-height: 1.6;
}
.definition-block b {
  font-weight: bold;
}
.definition-block i {
  font-style: italic;
}
.definition-block ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}
.definition-block li {
  margin-bottom: 0.25em;
}
.definition-block br {
  display: block;
  margin-bottom: 0.5em;
}
.definition-block br + br {
  margin-top: 1em;
  content: "";
}

#toggleIndex {
  display: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border: none;
  background-color: #b8e0c8;
  color: #007BFF;
  font-weight: 900;
  cursor: pointer;
  width: 100%;
}
@media (max-width: 768px) {
  #toggleIndex {
    display: block;
  }
}

#indexOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem;
}
@media (min-width: 768px) {
  #indexOverlay {
    display: none !important;
  }
}
#indexOverlay.active {
  display: block;
}
#indexOverlay h1 {
  margin-top: 0;
}
#indexOverlay .close-btn {
  display: block;
  margin-bottom: 1rem;
  background: none;
  border: none;
  color: #007BFF;
  font-size: 1.2rem;
  cursor: pointer;
  text-align: left;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #007BFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=style.css.map */
