body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #fafafa;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
}

#last-save {
  display: none;
  text-align: center;
}

fieldset {
  border: none;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.version {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

button {
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background-color: #0056b3;
}

#note-title {
  max-width: 600px;
  border-radius: 0.2rem;
  padding: 0.3rem;
}

#note-text {
  max-width: 600px;
  height: 30em;
  max-height: 40em;
  border-radius: 0.2rem;
}

#recent-list {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 600px;
}

#recent-list h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

#recent-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  overflow: hidden;
}

#recent-list li {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#recent-list li:last-child {
  border-bottom: none;
}

#recent-list li:hover {
  background: #f2f2f2;
}

.recent-remove:hover{
  cursor: pointer;
}

.recent-title{
  margin-right: auto;
  margin-left: 3px;
}

.recent-title:hover{
  cursor: pointer;
}

.recent-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.recent-actions button {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.recent-actions button:hover {
  background-color: #0056b3;
}

.recent-actions button:active {
  transform: scale(0.97);
}

footer {
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #777;
  position:relative;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.25rem;
  } 
}