* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: whitesmoke;
  --offset: #ffffff;
  --accent: #ff5f50;
  --neutral: #929292;
  --text: rgb(0, 0, 0);
  --headings: "Comfortaa", sans-serif;
  --body: "Poppins", sans-serif;
  --box-shadow: 0px 3px 6px -3px #a2a2a2b5;
}

::placeholder {
  color: var(--neutral);
}

body {
  min-height: 100vh;
  background-color: var(--background);
}
.hidden {
  display: none;
}

button {
  transition: all 0.15s ease;
}

header {
  margin: 1rem auto;
  padding: 1.2rem;
  max-width: 95%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 9999px;
  box-shadow: 0px 5px 6px -3px #a2a2a2;
}

header input {
  font-family: var(--body);
  height: 2rem;
  width: 11.5rem;
  margin-right: 0.25rem;
  color: var(--text);
  padding: 0.2rem 0 0.2rem 0.8rem;
  background: var(--offset);
  border-radius: 10000px;
  border: none;
}

header button {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
  padding: 0.4rem 0.8rem;
  background: #ff5f50;
  color: white;
  border-radius: 99999px;
  border: none;
  box-shadow: var(--box-shadow);
}

main {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 80%;
}

.all-notes {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.new-note-form form {
  margin: 0.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}

.new-note-title,
.new-note-text {
  font-family: var(--body);
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  border-radius: 5px;
  border: none;
  color: var(--text);
  background: var(--offset);
}

textarea {
  resize: none;
}

.save-new-note {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
  width: 100%;
  padding: 0.4rem;
  border: none;
  box-shadow: var(--box-shadow);
  border-radius: 5px;
  color: var(--text);
  background-color: var(--offset);
}

.note {
  height: auto;
  width: 18rem;
  padding: 1rem;
  color: var(--text);
  border-radius: 5px;
  background: var(--offset);
  box-shadow: var(--box-shadow);
}

.note button {
  font-family: var(--body);
  margin-right: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.03rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  color: var(--text);
  border-radius: 99999px;
  border: none;
  box-shadow: var(--box-shadow);
}

button:hover {
  cursor: pointer;
  background-color: var(--accent);
  color: var(--background);
}

header button:hover {
  background-color: var(--text);
}

.note-title {
  font-family: var(--headings);
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.note-body {
  font-family: var(--body);
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.note-date {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

@media (min-width: 700px) {
  .all-notes {
    margin-top: 0.75rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  header {
    max-width: 90%;
    padding: 1.2rem;
  }

  header input {
    width: 20rem;
  }

  header button {
    font-size: 0.9rem;
  }

  .note {
    min-height: 10rem;
  }
}
