body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

body.word-page {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0px 20px;
}

.word-container {
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
}

.word-container h2 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #333;
}

.image-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.image-container img {
  max-width: 150px;
  max-height: 150px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.image-container p {
  font-size: 14px;
  color: #555;
  margin: 5px 0 0;
}

p.meaning {
  font-size: 16px;
  color: #444;
}

br {
  display: block;
  min-height: 16px;
  content: "\200b";
}

/* Updated styles for group headers */
.overview-group {
  margin-bottom: 30px;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.overview-group h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.overview-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjusted for group layout */
  gap: 10px;
}

.overview-item {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  position: relative;
}

.overview-item img {
  max-width: 50px;
  height: auto;
  border-radius: 4px;
}

.overview-item a {
  text-decoration: none;
  color: #333;
}

.overview-item .number {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: #000;
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 4px;
}

.overview-item .word {
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
}

.overview-item .remark {
  display: inline-block;
  font-size: 12px;
  color: #555;
  margin-left: 3px;
}

.matches {
  font-size: 12px;
  margin-top: 5px;
}
.matches strong {
  font-size: 16px;
  color: #8B0000;
  border: 2px solid #8B0000; /* Primary black border */
  background-color: white; /* White background for better contrast */
  padding: 2px; /* Space between text and border */
}