.hidden {
  display: none !important;
}

body {
  max-width: 600px;
  margin: 0 auto;
  font-family: sans-serif;
  background-color: #fff;
  color: #000;
  padding: 5px;
}

#home-button {
  display: inline-block;
  margin-bottom: 8px;
  cursor: pointer;
  color: #333;
  font-weight: bold;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: white;
  border-bottom: 2px solid;
}

#current-dir-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: bold;
  white-space: nowrap;
  font-size: 0.9em;
}

#current-dir-container i {
  margin-right: 0.4em;
}

.path-tree {
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

#directory-containers {
  max-height: 250px;
  overflow-y: auto;
  border-bottom: 2px solid;
}

.selected-dir {
  background-color: #999;
}

.dir-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  margin: 5px 0;
  padding: 2px 0;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.dir-name {
  display: inline-block;
  font-weight: bold;
  font-size: 14px;
  padding-left: 4px;
}

label {
  font-weight: bold;
  display: block;
  margin: 10px 0 5px;
}

input[type="text"] {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

#transcription-search-results {
  max-height: 400px;
  overflow-y: auto;
  border-bottom: 2px solid;
}

#transcription-search-results > div {
  padding: 6px 0;
  border-bottom: 1px solid #ccc;
}

#transcription-search-results > div:first-child {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
  position: sticky;
  top: 0;
  background-color: white;
}

#transcription-search-results div[id^="transcription-"] {
  font-size: 13px;
  font-weight: bold;
}

#transcription-search-results div[id$="-text"] {
  font-weight: normal;
  margin-left: 10px;
  color: #444;
}

.button {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 5px 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: inline-block;
  cursor: pointer;
  font-size: 13px;
}

.button:hover {
  background-color: #ddd;
}

.button.disabled {
  background-color: #f5f5f5;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.button.disabled:hover {
  background-color: #f5f5f5;
}

.transcription-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 5px;
}

.transcription-text {
  margin-top: 5px;
}

.transcription-text-container {
  padding: 5px 5px;
  border-left: 2px solid #888;
  background-color: #f9f9f9;
  border-radius: 2px;
  word-wrap: break-word;
}

