body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 1.25rem;
}
h1 {
  text-align: center;
  margin-bottom: 1.25rem;
}
.container {
  max-width: 64rem;
  margin: auto;
  margin-bottom: 1rem;
  background: white;
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 .625rem rgba(0, 0, 0, 0.1);
}
label {
  display: block;
}
input[type="text"],
textarea {
  width: calc(100% - 1rem);
  font-family: Arial, sans-serif;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  border-radius: 0.35rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  display: block;
}
textarea {
  min-height: 4em;
  resize: vertical;
  overflow: auto;
}

/* Results */
#resultContainer {
  display: none;
}
.quote {
  border: 1px solid #ccc;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.375rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 .625rem rgba(0, 0, 0, 0.1);
}
.quote h4, .quote p {
  margin: 0.5rem 0;
}
#annotatedSource {
  white-space: pre-wrap;
}
.quote p:hover {
  cursor: pointer;
}
.copied {
  color: #555 !important;
}

/* Button */
button {
  padding: 12px 20px;
  background: #0078ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
button:hover {
  background: #005fcc;
}

/* Highlighting Classes */
.hStrong, .hMedium, .hWeak {
  border-radius: 3px;
  padding: 2px;
}
.hStrong {
  background: #b6ffb6;
}
.hStrong.highlighted:hover {
  background: #9fff9f;
}
.hMedium {
  background: #fff7a8;
}
.hMedium.highlighted:hover {
  background: #fff380;
}
.hWeak {
  background: #ffb6b6;
}
.hWeak.highlighted:hover {
  background: #ff9f9f;
}
.highlighted {
  position: relative;
  cursor: pointer;
  pointer-events: auto;
}
.highlighted:hover::after {
  content: "Quote " attr(data-quote) " - Score: " attr(data-score);
  position: absolute;
  left: 0;
  top: -1.8em;
  background: #222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  white-space: nowrap;
  z-index: 999;
  pointer-events: none;
}

/* Legend */
.legend {
  margin-top: 1.25rem;
  font-size: 0.875rem;
}
.legend span {
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 10px;
}