a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
a:hover {
  color: #0077cc;
  text-decoration: underline;
}
@font-face {
  font-family: "Gentium";
  src: url("/static/Gentium.woff2") format("woff2");
}
@font-face {
  font-family: "Yaoti";
  src: url("/static/Yaoti.woff2") format("woff2");
}
.gentium-text {
  font-family: "Gentium";
  font-size: 1.00em;
  line-height: 1.6;
  font-kerning: none;
}
.gentium-text.syllable {
  text-align: center;
  min-width: 70%;
  margin-left: 0.5em;
}
.serif-text {
  font-family: serif;
  font-size: 1.00em;
  line-height: 1.6;
}
body {
  background-image: url("/static/background0.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding-top: 40px;
}
h1 {
  margin-top: 30px;
  margin-bottom: 15px;
}
textarea {
  resize: none;
  overflow-y: hidden;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  line-height: 1.6;
}
.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 153px);
}
.left-column,
.right-column,
.mid-column {
  box-sizing: border-box;
  padding: 10px 20px;
  background-color: rgba(255,255,255,0.7);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #aaa;
  border-radius: 8px;
  margin-left: 10px;
  margin-right: 10px;
  flex: 1;
}
.left-column {
  overflow-y: auto;
  max-width: 56%;
}
.right-column {
  position: sticky;
  max-width: 34%;
}
.mid-column {
  overflow-y: auto;
  max-width: 64%;
}
.textarea-container {
  display: flex;
  justify-content: center;
  margin: 0.5em 0;
}
#char-table-container {
  max-height: calc(100vh - 373px);
  overflow-y: auto;
}

#char-table-container table {
  border-collapse: collapse;
  width: 100%;
}

#char-table-container td {
  text-align: center;
}

#char-table-container td:nth-child(1) { 
  width: 5%; 
  color: #999;
  font-size: 0.8em;
  font-family: serif;
}
#char-table-container td:nth-child(2) { 
  width: 5%;
  font-family: serif; 
  font-weight: bold;
}
#char-table-container td:nth-child(3) {
  width: 10%;
  font-size: 0.90em;
}
#char-table-container td:nth-child(4) { 
  width: 70%;
  text-align: left;
  font-size: 0.90em;
  text-indent: -0.50em;
  padding-left: 1em;
  padding-right: 1em;
}
#char-table-container thead tr {
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1.0), rgba(255, 255, 255, 0.8));
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#char-table-container table tr:not(:last-child) {
  border-bottom: 1px solid #ccc;
}
.right-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin: 0.5em 0 0 0;
}
.right-controls-row {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #333;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin-top: 10px;
}
.nav-bar {
  background-color: rgba(245, 245, 245, 0.9);
  padding: 10px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.nav-bar a {
  margin-right: 20px;
  color: #666;
}
.nav-bar a:hover {
  color: #0077cc;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
tr.no-transcription {
  background-color: rgba(139, 0, 0, 0.15); /* 深紅背景，透明度調整 */
}
ul,
ol {
  padding-left: 0.5em;
  margin-left: 2em;
  margin-right: 2em;
  margin-top: 1em;
  margin-bottom: 0.5em;
  list-style-position: outside;
  line-height: 1.6;
}
li {
  margin-bottom: 0.5em;
}
.sub-note {
  display: list-item; 
  list-style-type: '※'; 
  padding-left: 0.5em;
  margin-left: 4em;
  margin-right: 2em;
  margin-bottom: 0.5em;
  font-size: 0.90em;
  color: #444;
  line-height: 1.6;
}
#sponsor-content {
  margin: 1em;
}
#sponsor-intro p {
  font-family: serif;
  font-size: 1.00em;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1em;
}
#sponsor-list div {
  margin-top: 1em;
  margin-bottom: 0.3em;
  font-family: monospace;
  font-size: 0.95em;
  tab-size: 2em;
  color: #555;
}
#sponsor-list .donor-indent {
  margin-top: 0.3em;
  margin-left: 2em;
}
#donation-section {
  text-align: center;
  margin-bottom: 1em;
}
#donation-box {
  display: none;
  justify-content: center;
  margin-top: 1em;
}
.donation-pair {
  width: 25%;
  margin: 0 1em;
  text-align: center;
}
.donation-pair img {
  width: 100%;
  height: auto;
}
.donation-caption {
  font-size: 0.8em;
  margin-top: 0.00em;
}
.filter-container,
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-container {
  margin-bottom: 0.0em;
}

.filter-container label,
.filter-container select,
.preview-header label {
  font-size: 0.9em;
}
.input-section {
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.input-section h4 {
  margin: 10px 0;
}

.filter-container {
  margin-top: auto;
}
.site-footer {
  text-align: center;
  font-size: 0.75em;
  color: #666;
  margin: 0px;
  width: 100%;
}
code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  color: #d63384;
  display: flex;
  justify-content: center;
  font-family: "Gentium";
  letter-spacing: 0.05em;
  font-size: 1.2em;
  font-kerning: none;
}

#insert-buttons-container {
  padding: 8px;
  background-color: rgba(250,250,250,0.9);
  border-radius: 6px;
  border: 1px solid #ddd;
}
.insert-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.insert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.insert-row button.insert-char {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-family: "Gentium", serif;
  font-size: 0.95em;
  line-height: 1;
}
.insert-row button.insert-char:hover {
  background: #f0f7ff;
  border-color: #80b3ff;
}

.insert-separator {
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
  margin: 3px 0;
  border-radius: 1px;
}
