/* center the header and main content box on the page

use a reasonable maximum width for readability

include consistent spacing between major sections

visually separate cards from the page background

group related content clearly */

header{
  width: 100%;
}

nav{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
}

nav ul{
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
}

.site-name{
  text-decoration: none;
  color: black;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: x-large;
  font-weight: bold;
}

body{
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.cards-area{
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.card{
  border: 1px solid black;
  background-color: whitesmoke;
  padding: 1rem;
  width: 40%;
}

.recipe-columns{
  max-width: 500px;
}

.tag{
  color: grey;
}

#comments{
  max-width: 50%;
}

#comment-area{
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  margin-top: 1rem;
  gap: 1rem;
  align-items: stretch;
}

.comment{
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.author{
  align-self: flex-start;
  font-size: large;
}

.message{
  align-self: flex-start;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

.date{
  align-self: end;
  font-size: small;
  color: gray;
}

@media (max-width: 800px) {
  .card{
    width: 60%;
  }

  body{
    max-width: 800px;
  }
}

@media (max-width: 520px) {
  .card{
    min-width: 300px;
  }

  nav{
    flex-wrap: wrap;
  }


  body{
    max-width: 520px;
  }
}
