/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  box-sizing: border-box;
}

header {
  background-color: #6200ea;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#note-creation textarea {
  width: 100%;
  height: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 1rem;
  box-sizing: border-box;
}

#note-creation button {
  display: block;
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background-color: #6200ea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
}

#note-creation button:hover {
  background-color: #3700b3;
}

#note-link {
  margin-top: 1rem;
  padding: 1rem;
  background: #e0e0e0;
  border-radius: 5px;
}

.link-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#note-link input {
  width: 80%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#note-link button {
  padding: 0.5rem 1rem;
  background-color: #6200ea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#note-link button:hover {
  background-color: #3700b3;
}

/* Improved Note Display Area */
#note-display {
  margin: 2rem auto;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  width: 100%;
  max-width: 900px; /* Larger width for note display */
  background-color: #f9f9f9;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  min-height: 400px; /* Ensure the area has a decent minimum height */
  position: relative;
}

#note-display p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

#note-display textarea {
  width: 100%;
  height: 300px; /* Fixed height for better readability */
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

#note-display button {
  padding: 0.7rem 1.2rem;
  background-color: #6200ea;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-end;
  font-size: 1.1rem;
}

#note-display button:hover {
  background-color: #3700b3;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #6200ea;
  color: white;
  margin-top: 2rem;
}

footer p {
  margin: 0;
}

/* Hidden Class */
.hidden {
  display: none;
}

/* Mobile Responsive */
@media only screen and (max-width: 600px) {
  main {
    padding: 1rem;
  }

  #note-creation button {
    font-size: 1rem;
  }

  #note-link input {
    width: 70%;
  }

  #note-display {
    width: 100%; /* Full width for small screens */
    padding: 0.5rem;
  }

  #note-display textarea {
    height: 200px; /* Adjust textarea height for smaller screens */
  }
}
