* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #000;
}

body {
  height: inherit;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #0d0d0d;
  color: #e0e0e0;
}

.normal-mode {
  color: #e0e0e0;
  margin: 0 2vw;
}

.normal-mode-flex {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  align-items: flex-start;
  background: #0d0d0d;
}

.normal-mode-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.normal-mode-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.normal-mode-right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.normal-mode-icon {
  height: 10em;
  width: auto;
  opacity: 0.9;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  width: 4em;
  margin: 0.5em 0;
}

.blank {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.okay-icon {
  height: 4.5em;
}

.btn {
  opacity: 0.9;
  cursor: pointer;
}
.btn:hover {
  opacity: 1;
}

.normal-mode-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.normal-mode-header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-family: "New Rocker", cursive;
  font-size: 300%;
}
.normal-mode-header-right {
  font-size: 90%;
  text-align: right;
  color: #fffa;
}

.normal-mode-header-right a {
  color: #90b1f6aa;
  text-decoration: none;
}

.normal-mode-header img {
  height: 2.5em;
}
.normal-mode-header h1 {
  margin: 0;
  font-size: 200%;
}

#normalModeContent textarea {
  width: 100%;
  padding: 0.8em 1vw;
  background: #1a1a1a;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

#normalModeContent textarea::placeholder {
  color: #666666;
}

#normalModeContent textarea:focus {
  border-color: #4a9eff;
  background: #1f1f1f;
}

#normalModeContent textarea.success {
  border-color: #0f0d;
  color: #0f0d;
}

#miniModeContent textarea.success {
  border-color: #0f0d;
  color: #0f0d;
}

#searchModeContent {
  padding: 2rem;
  background: #0d0d0d;
}

#searchModeContent h1 {
  color: #ffffff;
}

#searchModeContent input {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: #1a1a1a;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#searchModeContent input::placeholder {
  color: #666666;
}

#searchModeContent input:focus {
  border-color: #4a9eff;
  background: #1f1f1f;
}

#searchModeContent button {
  padding: 0.75rem 1.5rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  background: #4a9eff;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#searchModeContent button:hover:not(:disabled) {
  background: #5aaeff;
}

#searchModeContent button:active:not(:disabled) {
  background: #3a8eef;
}

#searchModeContent button:disabled {
  background: #2a2a2a;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

#searchResults {
  margin-top: 2rem;
  padding: 1rem;
  background: #1a1a1a;
  border-radius: 0.5rem;
  border: 1px solid #2a2a2a;
}

.search-status {
  color: #b0b0b0;
  font-style: italic;
}

.search-results-count {
  color: #e0e0e0;
  font-weight: 500;
  margin-bottom: 1rem;
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease;
}

.search-results-list li:hover {
  border-color: #3a3a3a;
}

.search-result-date {
  color: #4a9eff;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.search-result-file {
  color: #888888;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.search-result-text {
  color: #d0d0d0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.add-button {
  position: absolute;
  top: 1px;
  left: 1px;
  display: none;
}


.mini-mode {
  padding: 0.25rem;
  display: flex;
  gap: 0.25rem;
  background: #1a1a1a;
  color: #ffffff;
  align-items: center;
  font-size: 16px;
}

#miniModeContent textarea {
  width: 100%;
  padding: 1rem;
  background: #1a1a1a;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  resize: vertical;
}

.mini-mode-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-mode-icon {
  flex-shrink: 0;
  height: 3.5em;
  width: auto;
  opacity: 0.9;
}

.mini-mode {
  flex: 1;
  padding: 0.56em 0.78em;
  background: #2a2a2a;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 0.22em;
  font-size: 1em;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.mini-mode input::placeholder {
  color: #888888;
}

.mini-mode input:focus {
  border-color: #4a9eff;
  background: #2f2f2f;
}


.mini-mode-okay-icon {
  height: 3.5em;
}


.hidden {
  display: none;
}

.footer {
  padding: 2em 2vw;
  color: #fffa;
}

.footer h1 {
  font-size: 150%;
  font-family: "New Rocker", cursive;
}