* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid #000;
}

header .header-container {
  width: 90%;
  max-width: 900px;
  margin: auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

header .header-container .logo h1 {
  font-size: 20px;
  font-family: "Sora", sans-serif;
}

header .create-note-button {
  padding: 0.6em 1.3em;
  font-size: 18px;
  border: 1px solid black;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 200ms ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

header .create-note-button:hover {
  transform: translate(-0.25em, -0.25em);
  box-shadow: 0.25em 0.25em;
}

header .create-note-button:active {
  transform: translate(0.1em, 0.1em);
  box-shadow: 0.05em 0.05em;
}

header .create-note-button img,
header .create-note-button span {
  background: transparent;
}

main {
  width: 90%;
  max-width: 900px;
  margin: auto;
  margin-top: 111px;
  padding: 30px 0;
  min-height: 72vh;
}

main h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 30px;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  padding: 1rem;
  height: 25rem;
  border: 1px solid #000;
  border-radius: 3px;
  transition: all 200ms ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.card:hover {
  transform: translate(-0.25em, -0.25em);
  box-shadow: 0.25em 0.25em;
}

.card .content {
  height: 90%;
  padding: 20px;
}

.card .content h1 {
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.card .content textarea {
  width: 100%;
  height: 60%;
  resize: none;
  border: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
  word-break: keep-all;
}

.card .options {
  width: 100%;
  height: 10%;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  list-style: none;
}

.card .options img {
  transition: transform 200ms ease;
}

.card .options img:hover {
  transform: scale(1.2);
}

footer {
  border-top: 1px solid #000;
  display: flex;
  align-self: flex-end;
  width: 100%;
}

.footer-container {
  width: 90%;
  max-width: 900px;
  margin: auto;
  padding: 20px 0;
}

.footer-container span a {
  font-size: 20px;
  color: #000;
  font-family: "Sora", sans-serif;
  text-decoration: none;
}

.footer-container span a:hover {
  text-decoration: underline;
}

.modal {
  display: none;
}

.modal.active {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background: #36303060;
  width: 100%;
  height: 100%;
  padding: 20px 30px;
}

.modal.active .modal-overlay {
  width: 90%;
  height: 95%;
  margin: auto;
  border-radius: 10px;
  padding: 10px 20px;
}

.modal.active .modal-overlay .writing-field {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 90%;
  margin: auto;
}

.modal.active .modal-overlay .writing-field input {
  font-size: 20px;
  font-weight: 700;
  padding: 10px;
  border: none;
  outline: none;
  margin-top: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #000;
}

.modal.active .modal-overlay .writing-field textarea {
  padding: 10px;
  border: none;
  outline: none;
  width: 100%;
  height: 80%;
  font-size: 18px;
  resize: none;
}

.modal.active .modal-overlay .options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-left: 10px;
}

.modal.active .modal-overlay .options button {
  padding: 0.6em 1.3em;
  font-size: 14px;
  border: 1px solid black;
  border-radius: 3px;
  transition: all 200ms ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.modal.active .modal-overlay .options button:nth-child(1) {
  border-color: #1fc91f;
  color: #1fc91f;
}

.modal.active .modal-overlay .options button {
  border-color: red;
  color: red;
}

.modal.active .modal-overlay .options button:hover {
  transform: translate(-0.25em, -0.25em);
  box-shadow: 0.25em 0.25em;
}

.modal.active .modal-overlay .options button:active {
  transform: translate(0.1em, 0.1em);
  box-shadow: 0.05em 0.05em;
}

@media (max-width: 500px) {
  header .create-note-button span {
    display: none;
  }
}

@media (max-width: 900px) {
  .modal.active {
    background: #fff;
    padding: 20px 0;
  }

  .modal.active .modal-overlay {
    width: 95%;
  }
}
