body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
}

nav {
  background-color: #333;
  color: white;
  padding: 1em 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

main {
  padding: 20px;
  margin: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #0056b3;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 20px;
  justify-items: center;
}

.character-card {
  background-color: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 10px;
  width: 80px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.character-card .character {
  font-size: 2em;
  font-weight: bold;
  color: #343a40;
}

.character-card .romaji {
  font-size: 0.8em;
  color: #6c757d;
  margin-top: 5px;
}

.vocabulary-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.vocabulary-item {
  background-color: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vocabulary-item .japanese {
  font-size: 1.5em;
  font-weight: bold;
  color: #343a40;
}

.vocabulary-item .romaji {
  font-size: 1em;
  color: #6c757d;
  margin-top: 5px;
}

.vocabulary-item .english {
  font-size: 1em;
  color: #495057;
  margin-top: 10px;
  border-top: 1px solid #ced4da;
  padding-top: 5px;
}

button {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 10px;
}

button:hover {
  background-color: #0056b3;
}

input[type="text"] {
  width: calc(100% - 22px); /* Account for padding and border */
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#practice-area {
  margin-top: 20px;
  padding: 15px;
  background-color: #e9ecef;
  border-radius: 8px;
  border: 1px dashed #ced4da;
}
.flashcard {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 30px 20px;
  margin: 20px auto;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flashcard-character, .flashcard-japanese {
  font-size: 4em;
  font-weight: bold;
  color: #343a40;
  margin-bottom: 10px;
}

.flashcard-romaji, .flashcard-english {
  font-size: 1.5em;
  color: #6c757d;
  margin-top: 5px;
}

.flashcard-english {
  border-top: 1px solid #e9ecef;
  padding-top: 10px;
  margin-top: 15px;
}

