* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #fdfdfd;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
}

main {
  margin: 2rem 1rem 1rem;
}

h4 {
  margin: 0;
  font-weight: 100;
}

ul {
  padding: 0;
  margin: 0;
}

input[type="text"] {
  border: none;
  padding: 0.25rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

button {
  outline: none;
  border: none;
  padding: 0rem;
  width: 1.75rem;
  height: 1.75rem;
  cursor: pointer;
  background: transparent;
  border-radius: 50%;
  border-color: transparent;
  transition: all 0.3s;
}

button:hover,
button:focus {
  background: rgba(95, 99, 104, 0.157);
}

.notes-holder {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.note-section {
  max-width: 34rem;
  margin: auto;
  background: #fff;
  border-radius: 0.75rem;
  transition: all 0.3s;
  line-height: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0.25rem 0.525rem 0 rgb(0 0 0 / 10%);
}

.note-section .label-container {
  padding: 0 0.75rem;
}

.note-description {
  width: 100%;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  letter-spacing: 0.00625em;
  font-family: inherit;
  overflow: hidden;
}

.note-description[contenteditable]:empty::before {
  content: "Take a note...";
  color: #767676;
}

.note-section:hover,
.note-section:focus-within {
  box-shadow: 0 0.25rem 0.525rem 0 rgb(0 0 0 / 20%);
}

.note-settings {
  display: flex;
  align-items: flex-end;
  padding: 0.25rem 0.5rem;
}

.create-note {
  width: auto;
  height: auto;
  margin-left: auto;
  border-radius: 2rem;
  padding: 0.5rem 0.95rem;
}

#pallet {
  display: block;
  background: #fff;
  position: absolute;
  padding: 0.5rem;
  max-width: 9.5rem;
  overflow: hidden;
  z-index: 1000;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 0.525rem 0 rgb(0 0 0 / 10%);
}

#pallet .color-button {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.09rem;
  border: 0.123rem solid #767676;
}

.text-button {
  width: 100%;
  height: auto;
  padding: 0.25rem;
  border-radius: 0.25rem;
  background: rgba(95, 99, 104, 0.157);
}

#pallet li {
  list-style: none;
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
}

#pallet li * {
  cursor: pointer;
}

.note-card {
  background: #fff;
  border-radius: 0.75rem;
  transition: all 0.3s;
  position: relative;
  padding: 1rem;
  overflow: hidden;
  line-height: 1.5rem;
  box-shadow: 0 0.25rem 0.525rem 0 rgb(0 0 0 / 8%);
}

.note-card:hover,
.note-card:focus-within {
  box-shadow: 0 0.25rem 0.525rem 0 rgb(0 0 0 / 8%);
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0 0.5rem;
  cursor: pointer;
  margin-top: 0.25rem;
  margin-right: 0.25rem;
  border-radius: 0.75rem;
  background: rgba(95, 99, 104, 0.157);
}

.note-card button {
  opacity: 0;
  top: 0.5rem;
  right: 0.5rem;
  position: absolute;
  transition: all 0.3s;
  background: rgba(95, 99, 104, 0.157);
}

.note-delete {
  right: 2.75rem !important;
}

.note-card button:focus,
.note-card:hover > button {
  opacity: 1;
  display: initial;
}

.note-card div *,
.note-description * {
  white-space: normal;
  word-break: break-all;
}

.no-notes {
  text-align: center;
}
