/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #ccc;
}

header h1 {
  font-size: 2.5rem;
  color: #222;
}

.subtitle {
  font-style: italic;
  color: #666;
}

/* Intro */
.intro {
  margin: 30px auto;
  max-width: 700px;
  text-align: center;
}

/* Translation Grid */
.translation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 40px 0;
}

.translation-card {
  background-color: #fff;
  border-left: 6px solid #9df2ff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.translation-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #0e0e1c;
}

.translation-card p {
  font-size: 1rem;
  color: #444;
}

/* Glossary */
.realm-glossary {
  margin-top: 40px;
}

.realm-glossary h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #0e0e1c;
}

.realm-glossary ul {
  list-style: none;
  padding-left: 0;
}

.realm-glossary li {
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid #fdf897;
}

/* Footer */
footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}
.card-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #9df2ff;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #c1f3ff;
}
/* Ensure all translation cards use flex layout */
.translation-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push button to bottom */
  height: 100%; /* Equal height across grid */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  background-color: #fff;
  border-left: 6px solid #9df2ff;
}

/* Button styling */
.card-button {
  align-self: center; /* Center horizontally */
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #9df2ff;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-height: 48px; /* Consistent button height */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%; /* Optional: consistent width */
  max-width: 240px;
}

.card-button:hover {
  background-color: #c1f3ff;
}
.return-button {
  display: inline-block;
  margin: 40px auto;
  padding: 12px 24px;
  background-color: #fdf897;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px #fdf897;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.return-button:hover {
  background-color: #fff3b0;
  box-shadow: 0 0 15px #fdf897;
}
