body {
  background: url("/images/fondo.jpg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  font-family: sans-serif;
  text-align: center;
}

.layout {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 800px;
  height: 100px;
  margin: 0 auto;
  padding: 0 30px;
  background-color: #52ebc7;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  border-radius: 8px;
}

.layout a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 1.2rem;
  padding: 10px 20px;
}

h1 {
  font-size: 2.5rem;
  color: #00ccff;
  margin-top: 40px;
  text-align: center;
}

.notes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px 0;
  width: 100%;
}

.note-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  min-height: 250px;
  max-height: 300px;
}

.note-title {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
}

.note-category {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  background-color: #f5f5f5;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
}

.note-content {
  color: #34495e;
  font-size: 1rem;
  overflow-y: auto;
  line-height: 1.5;
  flex-grow: 1;
  padding: 10px 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.edit-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.delete-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.edit-button:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

.delete-button:hover {
  background-color: #c0392b;
  transform: translateY(-1px);
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: space-around;
  align-items: center;
  max-width: 400px;
  height: 400px;
  margin: 0 auto;
  background-color: rgb(251, 251, 251);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.create-button {
  background-color: #55f355;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.create-button:hover {
  background-color: #45c845;
  transform: translateY(-1px);
}

label {
  font-weight: bold;
  margin-bottom: 20px;
  color: #000000;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #81ccfb;
    border-radius: 5px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.link_cancelar {
  text-decoration: none;
  color: #e74c3c;
  font-weight: bold;
  margin-top: 10px;
}

.link_cancelar:hover {
  color: #c0392b;
  text-decoration: underline;
}

.link_Layout {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    margin-top: 10px;
}

.link_Layout:hover {
    color: #2980b9;
    text-decoration: underline;
}

img {
  max-width: 100%;
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form_title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  color: #388ee4;
  margin-bottom: 10px;
  margin-top: 20px;
  text-align: center;
}

.edit-form {
  display: flex;
  flex-direction: column;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #3498db;
}

.edit-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.edit-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.edit-textarea {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-height: 15px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
}

.edit-textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.edit-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.save-button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

.save-button:hover {
  background-color: #219a52;
  transform: translateY(-1px);
}

.cancel-button {
  background-color: #95a5a6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

.cancel-button:hover {
  background-color: #7f8c8d;
  transform: translateY(-1px);
}






