:root {
  --main-color: #2563eb;
  --highlight-color: #93c5fd;
}

body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: var(--main-color);
  margin: 0;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.matching-diagram {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
}

.matching-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

ul {
  list-style: none;
  padding: 0;
  width: 45%;
  z-index: 2;
}

li {
  background: #e0e7ff;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

li.selected {
  background: var(--highlight-color);
}

svg.connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#reset-btn,
#more-btn {
  margin-top: 2rem;
  background: var(--main-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

#reset-btn:hover,
#more-btn:hover {
  background: #1e40af;
}

/* Center the match-text pills */
#match-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#match-list li {
  width: fit-content;
}

/* Hidden by default, revealed on “Show More” */
#more-content {
  display: none;
  margin-top: 2rem;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Table styles for the detailed and summary tables */
#more-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
#more-content th,
#more-content td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: center;
}
#more-content thead th {
  background: var(--highlight-color);
}
