
* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background: #eeeeee;

  color: #222;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 15px;
}


.container {
  width: 760px;
  max-width: calc(100% - 30px);

  margin: 40px auto 80px;
}


header {
  margin-bottom: 25px;
}


h1 {
  margin: 0;

  font-family: monospace;

  font-size: 30px;
}


header p {
  margin-top: 5px;

  color: #666;
}


.write-box {
  background: white;

  border: 1px solid #aaa;
}


textarea {
  width: 100%;

  min-height: 130px;

  resize: vertical;

  border: 0;

  outline: none;

  padding: 15px;

  font-family: monospace;

  font-size: 15px;

  line-height: 1.5;
}


.write-footer {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 8px 10px;

  border-top: 1px solid #ddd;

  color: #777;

  font-size: 12px;
}


button {
  border: 1px solid #777;

  background: #eee;

  color: #111;

  padding: 6px 14px;

  cursor: pointer;

  font-family: inherit;
}


button:hover {
  background: #ddd;
}


button:disabled {
  opacity: 0.5;

  cursor: wait;
}


.search-box {
  margin: 25px 0 20px;
}


.search-box input {
  width: 100%;

  padding: 11px;

  border: 1px solid #aaa;

  background: white;

  outline: none;

  font-size: 14px;
}


.search-box input:focus {
  border-color: #555;
}


.section-header {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 10px;
}


.section-header h2 {
  margin: 0;

  font-size: 16px;
}


#noteCount {
  background: #ddd;

  padding: 2px 7px;

  border-radius: 10px;

  font-size: 11px;
}


.note {
  position: relative;

  margin-bottom: 15px;

  padding: 15px;

  background: white;

  border: 1px solid #aaa;
}


.note-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 15px;
}


.note-date {
  color: #888;

  font-family: monospace;

  font-size: 11px;
}


.delete-button {
  padding: 3px 7px;

  border: 0;

  background: transparent;

  color: #999;

  font-size: 11px;
}


.delete-button:hover {
  color: #c00;

  background: transparent;
}


.label {
  margin-bottom: 5px;

  color: #888;

  text-transform: uppercase;

  font-family: monospace;

  font-size: 10px;

  letter-spacing: 0.5px;
}


.original-section {
  margin-bottom: 18px;
}


.original-text {
  padding: 10px;

  background: #f5f5f5;

  white-space: pre-wrap;

  font-family: monospace;

  line-height: 1.5;
}


.natural-text {
  padding: 10px;

  border-left: 3px solid #555;

  white-space: pre-wrap;

  line-height: 1.5;
}


.empty {
  padding: 30px;

  border: 1px dashed #aaa;

  color: #777;

  text-align: center;
}


.error {
  padding: 15px;

  background: #ffe5e5;

  border: 1px solid #cc8888;

  color: #900;
}


@media (max-width: 600px) {

  .container {
    margin-top: 20px;
  }

  h1 {
    font-size: 24px;
  }

  textarea {
    min-height: 160px;
  }

}