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

html {
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(135deg, #1e1f26, #2a2c38);
  padding: 0 20px;
  min-height: 100vh;
  position: relative;
  color: #f0f0f0;
}

/* HEADER */
header {
  background: linear-gradient(90deg, #00ffe7, #8e7fff);
  padding: 24px 40px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 30px 30px;
  text-align: center;
}

header h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 2.4rem;
  color: #121212;
  letter-spacing: 2px;
}

/* FOOTER */
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem;
  text-align: center;
}

footer p {
  color: #888;
  font-size: 0.9rem;
}

/* NOTE */
.note {
  background: #fefefe;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 255, 231, 0.12);
  padding: 20px 24px;
  width: 280px;
  margin: 20px;
  float: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #2a2a2a;
}

.note:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 255, 231, 0.25);
}

.note h1 {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.note p {
  font-size: 1em;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.4;
}

/* DELETE BUTTON */
.note button {
  float: right;
  background: none;
  border: none;
  color: #8e7fff;
  font-size: 1.3em;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.note button:hover {
  transform: scale(1.2);
  color: #00ffe7;
}

/* FORM */
form.create-note {
  background: #ffffff;
  width: 500px;
  margin: 50px auto 30px;
  padding: 25px 30px 55px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(142, 127, 255, 0.25);
  position: relative;
  transition: all 0.3s ease;
  color: #2a2a2a;
}

form.create-note input,
form.create-note textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #8e7fff;
  padding: 10px;
  margin-bottom: 16px;
  font-size: 1.1em;
  background: transparent;
  font-family: inherit;
  resize: none;
}

form.create-note input:focus,
form.create-note textarea:focus {
  outline: none;
  border-color: #00ffe7;
}

/* ADD BUTTON */
form.create-note button {
  position: absolute;
  bottom: -22px;
  right: 20px;
  background: linear-gradient(135deg, #8e7fff, #00ffe7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5em;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
}

form.create-note button:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #00ffe7, #8e7fff);
}
/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  form.create-note {
    width: 80%;
    padding: 20px 24px 50px;
  }

  .note {
    width: calc(50% - 40px); /* 2 בעמודה */
    margin: 20px;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  form.create-note {
    width: 90%;
    padding: 20px 20px 50px;
  }

  .note {
    width: 100%;
    float: none;
    margin: 16px auto;
  }

  form.create-note button {
    right: 16px;
    bottom: -20px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 16px 20px;
  }

  header h1 {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  form.create-note {
    width: 100%;
    margin: 40px auto 20px;
    padding: 16px 16px 44px;
    border-radius: 16px;
  }

  form.create-note input,
  form.create-note textarea {
    font-size: 1em;
  }

  form.create-note button {
    width: 40px;
    height: 40px;
    font-size: 1.3em;
    right: 12px;
    bottom: -18px;
  }

  .note {
    width: 100%;
    margin: 16px 0;
    padding: 16px;
    border-radius: 14px;
  }

  .note h1 {
    font-size: 1.1em;
  }

  .note p {
    font-size: 0.95em;
  }

  footer {
    font-size: 0.8rem;
  }
}
