

header{
  display: flex;
  justify-content: center; 
  flex-direction: column;
  margin: 10px;
}
.top{
    display: flex;
    justify-content: space-between;
    
}
.logo{
  font-size: 2em;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}
.logo a{
    color: #333;
    text-decoration: none;
}
a{
    color: #7c5118;
}
.nav{
  display: flex;
  flex-direction: row;
  gap: 20px;
}
main{
    display: flex;
    align-items: center;
    flex-direction: column;
}  
body{
    background-color: beige;
    font-family: Arial, sans-serif;
    margin: 24px;
}

.card{
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    margin: 5px;
    border-radius: 10px;
    border: #333 solid 1px;
    width: 33%;
}
.cards-area{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
} 

.card ul{
  display: flex;
  flex-direction: row;
  list-style-type: none;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.recipes{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.recipes-list{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}
@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }
    .recipes {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 80%;
    }
}
.recipe-info{
    padding: 10px;
    border-radius: 10px;
    border: #333 solid 1px;
    background-color: white;
    width: 70%;
}
.recipe-columns{
    padding: 10px;
    border-radius: 10px;
    border: #333 solid 1px;
    margin: 30px;
    background-color: white;
    width: 70%;
}

header, main {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.comment{
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff9ef, #f5e1bf);
    border: 1px solid #d8b277;
    box-shadow: 0 8px 18px rgba(124, 81, 24, 0.08);
}

.comment-form{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(160deg, #fffdf8, #f2e3ca);
    border: 1px solid #d8b277;
    box-shadow: 0 14px 30px rgba(124, 81, 24, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.comment-form.is-active,
.comment-form.is-filled{
    transform: translateY(-2px);
    border-color: #a86d27;
    box-shadow: 0 18px 35px rgba(124, 81, 24, 0.18);
}

.comment-form-label{
    font-weight: bold;
    color: #5f3d10;
}

.comment-textarea{
    resize: vertical;
    min-height: 120px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #cda66b;
    background-color: rgba(255, 252, 245, 0.95);
    color: #3d2b12;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.comment-textarea:focus{
    outline: none;
    border-color: #a86d27;
    background-color: #fffaf2;
    box-shadow: 0 0 0 4px rgba(168, 109, 39, 0.18);
    transform: translateY(-1px);
}

.comment-textarea::placeholder{
    color: #9c7a4f;
}

.comment-submit{
    align-self: flex-start;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c5118, #b8762c);
    color: #fffaf2;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(124, 81, 24, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.comment-submit:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 24px rgba(124, 81, 24, 0.28);
    filter: brightness(1.05);
}

.comment-submit.is-pressed,
.comment-submit:active{
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 7px 14px rgba(124, 81, 24, 0.18);
}

.error{
    margin: 0;
    color: #9f2d20;
    font-weight: bold;
}

@media (max-width: 700px) {
    .recipe-info,
    .recipe-columns {
        width: calc(100% - 20px);
        margin: 20px 0;
    }

    .comment-submit{
        width: 100%;
    }
}
