/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Roboto', sans-serif;
  background: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* Watermark */
.watermark {
  position: fixed;
  top: 10px;
  right: 20px;
  opacity: 0.05;
  font-size: 5rem;
  user-select: none;
  z-index: 1;
}

/* Main Container */
.container {
  flex: 1;
  padding: 60px 20px 20px 20px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

/* Notes Section */
.notes-section {
  margin-top: 30px;
}

/* Note Input */
.note-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.note-input textarea {
  padding: 10px;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.note-input textarea:focus {
  border-color: #007bff;
}

/* Button */
.btn {
  padding: 10px 15px;
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

/* Notes List */
.notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Note Card */
.note-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.note-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.note-card p {
  text-align: left;
}

/* Delete Note */
.delete-note {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #dc3545;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.delete-note:hover {
  color: #a71d2a;
}

/* Footer */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

.footer a {
  color: #0d6efd;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .container {
    padding: 50px 15px 15px;
  }

  .note-input textarea {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  .notes-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .footer {
    font-size: 0.85rem;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 40px 15px;
  }

  .note-input textarea {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.85rem;
  }

  .notes-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer {
    font-size: 0.8rem;
    padding: 8px;
  }

  .watermark {
    font-size: 4rem;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 15px;
  }

  .note-input textarea {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.8rem;
  }

  .notes-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer {
    font-size: 0.75rem;
    padding: 6px;
  }

  .watermark {
    font-size: 3rem;
    top: 20px;
    right: 10px;
  }
}
