.word-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
  background-color: #ffffff; /* White background */
  border-radius: 1rem; /* More rounded corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
  text-align: center; /* Center all content */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
}

.word-container h1 {
  font-size: 3.5rem; /* Larger font for the word */
  color: #2c3e50; /* Darker, more prominent color */
  margin-bottom: 1.5rem;
  font-weight: 700; /* Bold */
  text-transform: capitalize; /* Capitalize the first letter */
  position: relative;
  display: inline-block; /* To make underline fit content */
}

.word-container h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background-color: #3498db; /* A vibrant blue underline */
  border-radius: 2px;
}

.word-container p {
  font-size: 1.2rem;
  color: #34495e; /* Slightly lighter text for etymology */
  line-height: 1.8;
  margin-bottom: 1rem;
  padding: 0 1rem; /* Some horizontal padding */
}

.word-container p:last-of-type {
  margin-bottom: 0;
}

.word-container p.no-etymology {
  font-style: italic;
  color: #7f8c8d; /* Grey for no etymology message */
  margin-top: 2rem;
}
