body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #1b1b1f;
  height: 100%;
  min-height: 100dvh;
}

header {
  background: #161618;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border: none;
  border-radius: 4px;
  background-color: #dfdfdf;
}
button:hover {
  cursor: pointer;
  color: #fff;
  background-color: #c5c5c5;
}
.fa-trash {
  color: rgba(231, 4, 4, 0.884); 
}
.fa-check {
  color: rgba(9, 40, 219, 0.993);
}
.fa-xmark {
  color: red;
}
.fa-pencil {
  color: blue;
}
main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

#listaNotas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  align-items: start;
}

.card {
  background: yellow;
  padding: 1rem;
  border-radius: 8px;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card strong,
.card p {
  margin: 0 0 0.5rem 0;
  word-break: break-word;
}

.escondido {
  display: none;
}

textarea {
  width: 100%;
  height: 100px;
  margin-top: 0.5rem;
}

input[type="text"],
input[type="color"] {
  width: 100%;
  padding: 0.5rem;
}

#formularioNota {
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#formularioNota input[type="text"],
#formularioNota textarea,
#formularioNota input[type="color"] {
  width: 100%;
  box-sizing: border-box;
}
#novaNota {
  background-color: rgb(8, 196, 8);
}
/* Footer */
.footer{
    width: auto;
    display: flex;
    justify-content: space-evenly;
    margin-top: 550px;
    color: #555;
    font-weight: 600;
    
}
.footer a{
  color:#007bff;
  text-decoration: none;
}
.footer-links{
    display: flex;
    list-style: none;
    gap: 8px;
}
.footer-links a{
   color: #555;
  text-decoration: none;
}
.footer-links a:hover{
    color: rgb(18, 38, 150);
}


@media (max-width: 600px) {
  textarea {
    height: 200px;
  }
}
@media (max-width: 500px){
  .footer{
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  .footer-links{
    display: flex;
    flex-direction: column;
  }
}