@charset "UTF-8";
/* Mini kanji List */
* {
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Helvetica Neue", sans-serif;
  background: #000;
  color: antiquewhite;
	max-width: 430px;
	margin: 0 auto;
  padding: 1em;
}

a {
  text-decoration: none;
}

.wrapper {
  max-width: 430px;
  margin: 0 auto;
}

.highlight {
  color: #b8860b; /* or any color like #facc15 (yellow-ish) */
  font-weight: bold;
}

/* Header */
.kw-header {
  text-align: center;
  padding: 10px 0;
}

.kw-logo {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em;
  font-size: 2.3rem;
  font-weight: 600;
  font-family: 'Marcellus', serif; /* or whatever you use */
  margin-bottom: 0.2em;
}

/* Color styles */
.kakishibu {
  color: #904012;  /* Wabi-sabi orange */
}

.sabi {
  color: #9f8672;  /* Soft brown-gray */
}

.kanji-closing-message {
  margin-top: 2rem;
  font-size: 0.92em;
  line-height: 1.6;
  color: #ccc;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

/* Title styling */
.kanji-page-label {
  text-align: center;
  font-size: 1.2em;
  margin-top: 1em;
  color: #222;
  font-weight: bold;
}

/* Footer or extra note message */

.kanji-tabs {
  display: flex;
  justify-content: space-between;
  gap: 6px; /* slightly tighter gap */
  margin: 1.5em 0 1em;
}

.kanji-tabs a {
  flex: 1;
  text-align: center;
  background-color: #313b12;
  color: antiquewhite;
  border-radius: 16px;
  padding: 0.4em 0.2em; /* less vertical padding */
  font-size: 0.8rem; /* slightly smaller */
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid #333;
  white-space: nowrap; /* ðŸ’¡ prevent line wrap */
}

.kanji-tabs a:hover {
  background-color: darkolivegreen;
  color: #000;
}

.kanji-tabs a:nth-child(1) { flex: 1; }      /* Home */
.kanji-tabs a:nth-child(2) { flex: 1.4; }    /* Listen & Learn */
.kanji-tabs a:nth-child(3) { flex: 1; }      /* Spin 9 */

/* Footer */
.kw-footer {
  text-align: center;
  font-size: 1em;
  color: #9f8e72; /* sabi tone */
  padding: 16px 12px;
  border-top: 1px solid #444;
  margin-top: 1.5em;
  line-height: 1.5;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
}

.kw-footer a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.kw-footer a:hover {
  text-decoration: underline;
}

.footer-kakishibu {
  color: #c36d3c;
  font-weight: 800;
}

.footer-sabi {
  color: #9f8672;
  font-size: 0.7em;
  font-weight: 600;
}

.compact-footer {
  margin-top: 0px !important; /* or whatever spacing looks best */
}

.kanji-grid {
  display: grid !important;
  grid-template-columns: repeat(10, 25px) !important;
  gap: 2px;
  justify-content: center;
  margin: 1em auto;
}

.kanji-grid a {
  width: 25px !important;
  height: 25px !important;
  display: block;
}

.kanji-grid img {
  width: 25px !important;
  height: 25px !important;
  border: 1px solid #666;
  border-radius: 2px;
  display: block;
  margin: 0;
  padding: 0;
  transition: transform 0.2s ease;
}

.kana-tabs a {
  background: #3a4420; /* Olive green */
  color: bisque;
  padding: 0.4em 1.4em;
  border-radius: 10px;
  margin: 1.5em 0.1em 0.5em 0.1em;
  font-weight: normal;
  text-decoration: none;
  display: inline-block;
}

.kana-tabs {
  display: flex;
  justify-content: center;
  gap: 0.2em; /* Controls spacing between buttons */
  margin-top: 1em;
  margin-bottom: 0.5em; /* Reduces margin below */
}

/* Special color for E-voice tab */
.kana-tabs .evoice-tab {
  background-color: #896011;  /* kakishibu orange */
  color: bisque;                /* black text */
  font-weight: normal;
}

.kana-tabs .evoice-tab:hover {
  filter: brightness(1.1);
}


.k101-note {
  max-width: 380px;
  margin: 1.5em auto 0 auto;
  font-size: 1.05rem;
  color: #ceaa64;
  text-align: left;
  line-height: 1.6;
  font-weight: 400;
}

.expandable-note {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #ceaa64;
	text-align: left;
  max-width: 380px;
  margin: 2em auto;
}

.expand-toggle {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.5em;
  margin-bottom: 0;
  line-height: 1.3;
  transition: transform 0.2s ease, color 0.2s ease;
}

.expand-toggle:hover {
  color: #f1d59b;
  transform: scale(1.05);
}