/* Generic Note Styles */
.note-order-shown #noteboard {
  counter-reset: note;
}

.note-order-shown .note::before {
  counter-increment: note;
  content: "-" counter(note) "";
  position: absolute;
}

.note {
  /* backup styling in case a theme doesn't load properly */
  --normal-bg: lightblue;
  --normal-deco: cornflowerblue;
  --favorite-bg: gold;
  --favorite-deco: goldenrod;
  position: absolute;
  padding: 0.75rem;
  background-color: var(--normal-bg);
  color: black;
  box-shadow: 2px 2px 4px 2px #0005;
  border: 2px solid transparent;
  width: 385px;
  z-index: 1;
}

.note.favorite {
  background-color: var(--favorite-bg);
  z-index: 25;
}

.note .drag-grip {
  display: block;
  height: 2rem;
  border: 2px solid transparent;
  background-color: var(--normal-deco);
  cursor: grab;
}

.note.favorite .drag-grip {
  background-color: var(--favorite-deco);
}

.drag-grip:active {
  cursor: grabbing
}

.note ::placeholder {
  color: hsla(0, 0%, 0%, 70%);
}

.note div.note-header {
  width: max-content;
  height: 40px;
}

.note div.note-header button {
  width: 2.5rem;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  font-size: 1.5rem;
}

.note input,
.note button,
.note textarea {
  outline: none;
  border: none;
  padding: 0;
  background-color: transparent;
  color: inherit;
  font-weight: normal;
  font-size: 1rem;
  font-family: inherit;
}
.note input:focus,
.note textarea:focus {
  text-decoration: dotted underline currentColor;
}
.note button:hover,
.note button:focus-visible {
  text-decoration: solid underline currentColor;
}
.note button:active {
  background-color: black;
  color: white;
}

.note input.note-name {
  width: 18rem;
  font-family: inherit;
  font-size: 1.25rem;
}

.note textarea {
  width: 100%;
  padding: 0;
  resize: none;
  font-size: 1rem;
}

.note ul {
  list-style: none;
  padding: 0;
}

.note li {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 0.5rem;
  margin: 0.5rem;
  border-bottom: 1px dashed black;
}

.note li input[type="checkbox"] {
  accent-color: black;
}

.note li input[type="checkbox"]:checked + label {
  text-decoration: line-through solid currentColor;
}

.note li input[type="checkbox"]:hover,
.note li input[type="checkbox"]:focus-visible {
  outline: 2px solid black;
  outline-offset: 2px
}

.note li input[name="Add Checklist Item"] {
  width: 25ch
}

.note img {
  display: block;
  max-width: 100%
}

.note input[name="Image Url Input"] {
  width: 100%
}

.note:focus-within {
  z-index: 100;
}

.note:hover {
  z-index: 50;
}



