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

body {
  font-size: 16px;
  font-family: sans-serif;
  text-align: center;
  padding-top: 2rem;
}

main {
  max-width: 968px;
  margin: 0 auto;
}

h1 {
  font-weight: 500;
  font-size: 2.5em;
}

.form {
  margin: 1rem 0;
  padding: 0 1rem;
}
.form h2 {
  font-weight: 500;
  color: green;
  font-size: 1.2em;
}
.form form {
  margin: 0.5rem 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.form .input {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form .input__child {
  display: flex;
  gap: 0.5rem;
}
.form .input__child:nth-of-type(1) {
  gap: 0.7rem;
}
.form label {
  margin-top: 0.2rem;
}
.form .text-area {
  width: clamp(250px, 80vw, 815px);
  font-family: sans-serif;
  padding: 0.3rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: 0.1s;
}
.form .text-area__title {
  height: 30px;
  resize: none;
}
.form .text-area__note {
  min-height: 30px;
  height: 50px;
  resize: vertical;
}
.form .text-area:focus {
  outline: 3px solid rgb(164, 164, 252);
  border-radius: 4px;
}
.form .submit-btn {
  display: inline-block;
  width: 80px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125em;
  background-color: green;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.form .submit-btn:hover {
  background-color: rgba(0, 128, 0, 0.85);
}
.form .view-btn,
.form .delete-btn {
  display: inline-block;
  padding: 0.4rem 0.5rem;
  margin-right: 0.3rem;
  font-size: 0.65em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid blue;
}
.form .view-btn:hover,
.form .delete-btn:hover {
  opacity: 0.8;
}
.form .view-btn {
  background-color: blue;
  color: white;
}
.form .delete-btn {
  background-color: white;
  color: blue;
}
.form .note {
  margin: 0.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 0.5rem;
}
.form .note__list {
  text-align: initial;
  max-width: 850px;
  margin: 0.5rem auto 0;
  display: grid;
  gap: 0.5rem;
}
.form .note__desc {
  margin: 0.5rem 0 1rem;
  font-size: 0.8125em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal {
  background-color: rgb(238, 238, 238);
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5em 2.5em;
  position: relative;
}
.modal__container {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.modal__container.active {
  pointer-events: auto;
  opacity: 1;
}
.modal__content {
  width: 250px;
  overflow-wrap: break-word;
  padding: 1em 0;
}
@media screen and (min-width: 968px) {
  .modal__content {
    width: 400px;
  }
}
.modal__title {
  margin-bottom: 0.5rem;
}
.modal__close {
  position: absolute;
  content: "";
  top: 15px;
  right: 5px;
  padding: 0.5rem;
  cursor: pointer;
}
.modal__close--line {
  width: 15px;
  height: 1px;
  background-color: black;
}
.modal__close--line:nth-of-type(1) {
  transform: rotate(135deg) translate(1px, -1px);
}
.modal__close--line:nth-of-type(2) {
  transform: rotate(-135deg);
}

.error-msg {
  color: red;
  font-size: 0.75em;
  display: none;
}/*# sourceMappingURL=style.css.map */