/* center the header and main content box on the page */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: Arial, Helvetica, sans-serif;

    background-color: rgba(0, 128, 0, 0.192);

    margin: 0;
}



/*for class .top, .nav, or ::content*/
/*
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    //text-align: cemter;

    width: 100%;
    max-width: 700px;
    box-sizing: border-box;

    margin: 0 auto 24px auto;
    padding: 24px;
    
    border: 1px solid;
    border-radius: 10px;

    
}

.content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    margin: 0 auto 24px auto;
    padding: 24px;
    border: 1px solid;
    border-radius: 10px;
*/
.content {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    max-width: 700px;
    box-sizing: border-box;

    margin: 0 auto 24px auto;
    padding: 24px;

    border: 1px solid;
    border-radius: 10px;
}

.comments-section {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 32px;
}

.comments-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
    gap: 8px;
}

.comment-form label {
    display: block;
    width: 100%;
}

.comment-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 200px;
    padding: 12px;
    font: inherit;
    resize: vertical;
}

.comment-form button {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    padding: 8px 14px;
}

header,nav {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    font-size: 112.5%;

    width: 100%;
    max-width: 900px;
    box-sizing: border-box;    
    padding: 16px 24px;
    /*margin: 0 auto;*/
}

.search-block form{
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

/*
.nav{
    justify-content: space-evenly;
    gap: 24px;
    margin-bottom: 24px;
}
*/

.recipes, .cards-area, .recipes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  
  margin-left: auto;
  margin-right: auto;
}

.recipe-box {
  width: calc(50% - 10px); /* 2 per row */
  border-style: groove;
  border-width: 2px;
  background-color: rgb(209, 233, 255);
}

@media (max-width: 700px) {
    .recipe-box {
        width: 100%;
    }
}

/* These are not copacetic with the assignment specification :(

.recipe-box:hover{
  background-color: rgba(255, 255, 0, 0.301);
}

.recipe-box:hover .tag{
  background-color: rgb(209, 233, 255);
}


.recipe-box:hover a{
    color: rgb(209, 233, 255);
}
    */

.tag-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    /* I WANT TO ADD SOME SPACING TO LEFT OF RECIPE CARD MAN*/
}

.tag{
    background-color: rgba(255, 255, 0, 0.671);
    border-style: solid;
    border-width: 1.5px;
    margin-bottom: 5px;
}

a{
    color: rgb(255, 255, 0);

    text-shadow: 
    -1.2px -1.2px 0 #000,  
     1.2px -1.2px 0 #000,
    -1.2px  1.2px 0 #000,
     1.2px  1.2px 0 #000;
}

/*
a:hover{
    color: rgb(209, 233, 255);
}
*/

.login-form input {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.search-block input{
    /*align-items: flex-end;*/
    width: 100%;
    max-width: 400px;
    padding: 8px;
    margin: 0px;
    box-sizing: border-box;
}

.search-block label{
    display: flex;
    align-items: center;
    flex-grow: 1;
    box-sizing: border-box;
}

header,nav,.content,.login-form {
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}



img {
    max-width: 100%;
    height: auto;
    display: block;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-form button{
    width: 400px;
    height: 40px;
}


/*Styling for comments*/
.comments-section,
.comment-form,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.comment-form textarea {
    min-height: 200px;
}

/*Styling for comment character counter*/
.comment-counter {
    margin: 4px 0 10px 0;
    font-size: 0.95rem;
    color: #444;
}

.counter-warning {
    color: darkorange;
    font-weight: bold;
}

.counter-danger {
    color: crimson;
    font-weight: bold;
}

.comment-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}