body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.header,
.page {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2rem;
  max-width: 1000px;
  width: 90%;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.recipes,
.recipes-list,
.card-area,
.profile-intro,
.recipe-columns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.recipe-box {
  border: 1px solid rgb(140, 163, 165);
  padding: 1rem;
  background-color: aqua;
}

h1,
h2 {
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.comments-section {
  margin-top: 2rem;
  border-top: 1px solid rgb(210, 215, 215);
  padding-top: 1.5rem;
}

.comment {
  border: 1px solid rgb(180, 190, 190);
  background-color: #f9f9fb;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.comment-text {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
}

.comment-meta {
  color: rgb(95, 95, 95);
  font-size: 0.9rem;
  margin: 0;
}

.comment-empty {
  color: rgb(85, 85, 85);
  margin-bottom: 1rem;
}

#comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

#comment-form textarea {
  min-height: 100px;
  padding: 0.75rem;
  border: 1px solid rgb(180, 180, 180);
  border-radius: 6px;
  resize: vertical;
}

#comment-form button {
  width: fit-content;
  padding: 0.75rem 1.25rem;
  border: none;
  background-color: rgb(70, 130, 180);
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

#error-message,
.error-message {
  color: rgb(185, 40, 40);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .header,
  .page {
    padding: 1rem;
    margin: 1rem auto;
  }

  .top,
  nav,
  .recipes,
  .recipes-list,
  .card-area,
  .profile-intro,
  .recipe-columns {
    flex-direction: column;
    align-items: stretch;
  }

}
