/* KML Global Stylesheet */

body { 
  font-family: 'Segoe UI', sans-serif; 
  background-color: #fdfcf9; 
  color: #222; 
  margin: 0; 
  padding: 1.5em; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  line-height: 1.6;
}

.navbar { 
  width: 100%; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background-color: #f3f3f3; 
  padding: 1em 1.5em; 
  border-bottom: 1px solid #ccc; 
  box-sizing: border-box; 
  position: sticky;
  top: 0;
  z-index: 10;
} 

.navbar a { 
  text-decoration: none; 
  color: #003366; 
  font-weight: bold; 
  transition: color 0.3s;
}
.navbar a:hover {
  color: #0066aa;
}

h1 {
  margin-top: 0.8em;
  font-size: 1.9em;
  color: #003366;
}

/* ✅ Wrapper for centered image + left-aligned text + left line */
.page-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.content-wrapper {
  border-left: 4px solid #ccc;
  padding: 2em;
  max-width: 800px;
  text-align: left;
  background-color: #fff;
}

/* ✅ Improved: Center image using flex */
.centered-image {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5em;
}

/* Kanji block styles */
.kanji-entry { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  background-color: #ffffff; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
  border-radius: 12px; 
  margin: 2em 0; 
  padding: 2em; 
  width: 100%; 
  max-width: 600px; 
} 

.kanji-header { 
  font-size: 3em; 
  margin-bottom: 0.3em; 
  color: #222;
} 

.kanji-label {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}
.kanji-med {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.kanji-emoji img { 
  max-height: 120px; 
  margin: 1em 0; 
} 

.kanji-art img {
  width: 80%;
  max-width: 380px;
  display: block;
  margin: 2em auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.kanji-story { 
  font-size: 1.2em; 
  margin: 0.8em 0; 
  color: #444; 
} 
.furigana {
  margin-left: 0.3em;
  font-size: 0.95em;
  color: #555;
  font-style: italic;
}
.kanji-components, .kanji-readings { 
  font-size: 1em; 
  color: #555; 
  margin-top: 0.5em; 
} 

@media (max-width: 600px) { 
  .kanji-header { font-size: 2.5em; } 
  .kanji-emoji img { max-height: 130px; } 
