
/* BASIC FORMATTING */

html {
    font-size: 18px
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Nunito', Arial, Helvetica, sans-serif;
    font-size: 18px;
    color: #2E261C;
    background-color: #F7F1E8; /*cream*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
    width: 100%;
    padding: 0rem 0.5rem; 
}

.login body {
    font-size: 1.25em; /*1.25 times the size of body text*/
}

header {
    border-bottom: 2px solid #8B5E34; /*oak*/
    display: flex;
    flex-direction: column;
}

header h1 {
    color: #8B5E34; /*oak*/
}

/* position save-button */
.edit-title {
    position: relative;
}

.edit-title button {
    position: absolute;
    top: 5px;
    right: 10px;
    padding: .5em 1em;
    width: 10%;
    height: 50%;
}

.error-output {
    color: red;
}

h1, h2, h3, h4, h5, h6, .input-h1 {
    font-family: 'Playwrite US Trad', serif;
    font-size: 1.25em; /*1.25 times the size of body text*/
    color: #A8570C;
}

b {
    font-weight: 600;
}

i {
    color: #888; /*ash*/
    font-style: normal;
}

li {
    line-height: 1.25;
}

a, label.subtitle {
    color: #8B5E34; /*oak*/
    text-decoration: none;
}

a:hover {
    color: #A8570C; /*cacao*/
    text-decoration: underline;
}

.recipe-title {
    color: #A8570C; /*cacao*/
    text-decoration: none;
}

.recipe-title:hover {
    color: #8B5E34; /*oak*/
    text-decoration: underline;
}

h1.title {
    font-size: 1.8em; /*1.8 times the size of body text*/
}

main {
    background-color: #FFF9F1; /*paper*/
    border: 1px solid #2E261C; /*cast iron*/
    border-radius: 10px;
    padding: 1rem;
    margin-top: 3rem;
}

.main title {
    font-size: 1.5em; /*1.5 times the size of body text*/
    /* margin-bottom: 2rem; */
}

section {
    margin-bottom: 2rem;
}


dt.tags {
    color: #8B5E34; /*oak*/
    text-wrap:nowrap;
}

.tag {
    display: flex;
    column-gap: 0.5rem;
    flex-wrap: wrap;
}

.menu-button {
    background-color: #8B5E34; /*oak*/
    color: #F7F1E8; /*cream*/
    padding: .5em 1em;
    border: none;
    border-radius: 13px; /*pill shape*/
}

.menu-button:hover {
    background-color: #A8570C; /*cacao*/
    color: #FFF9F1; /*paper*/
    text-decoration: none;
}

.recipe-card {
    background-color: #FFF; /*white*/
    border: 0.5px solid #888; /*ash*/
    border-radius: 10px;
    padding: 0.5rem;
    width: 32%; /*3 cards*/
}

@media (max-width: 600px) 
{
    .recipe-card {
    background-color: #FFF; /*white*/
    border: 0.5px solid #888; /*ash*/
    border-radius: 10px;
    padding: 0.5rem;
    width: 50%; /*2 cards*/
}
}

@media (max-width: 400px) 
{
    .recipe-card {
    background-color: #FFF; /*white*/
    border: 0.5px solid #888; /*ash*/
    border-radius: 10px;
    padding: 0.5rem;
    width: 100%; /*1 card*/
}
}

.recipe-card-photo {
    display: flex;
    max-width: 100%; 
    max-height: 10rem;
    margin-bottom: 0.5rem; 
}

.row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
}

.crow {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.brow {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.col {
    display:flex;
    flex-direction: column;
    align-items:baseline;
}

.user-image {
    height:5rem;
    width:5rem;
}

.search-bar {
    display: flex;
    margin-top: 0.25rem;
    gap: 0.25rem;
}

.search-item {
    display: flex;
    padding: 0.25rem;
}

.input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width:100%;
    margin-top: 1rem;
}

.input-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width:100%;
    align-items:baseline;
}

.login-submit {
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    margin-top: 1rem;
}

.login-button {
    justify-content:center;
    padding:0.25rem;
    width:50%;
    min-width:200px;
}

.input input {
    padding: 0.25rem; 
    flex:1;
    box-sizing:border-box;
    width: 80%; 
    max-width:100%;
}

.input label {
    width:15%;
}

@media (max-width: 700px) 
{
    .input {
    display: flex;
    flex-direction: column;
    align-items:baseline;
    width:100%;
}

.input-item {
    display: flex;
    flex-direction: column;
    width:100%;
    margin-bottom:1rem;
}

.login-submit {
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

}

.big-input{
    padding: 0.25rem; 
    flex:1;
    box-sizing:border-box;
}

.metadata {
    display: flex;
    flex-direction: row;
    column-gap: 1.5rem;
    flex-wrap: wrap; 
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* RECIPE PAGE */ 

.recipe-brief {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    max-width: 100%;
}

.recipe-photo {
    display: flex;
    transform: rotate(2deg);
    border: 5px solid #FFF; 
    border-radius: 3px;
    max-width: 100%; /* matches parent */
    margin-bottom: 0.5rem; 
}

.recipe-photo img {
    max-width:100%;
    max-height:100%;
}

.recipe-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.label {
    display: flex;
    flex: 0 0 calc(25% - 0.25rem);
}

.value {
    display: flex;
    flex: 1 1 calc(75% - 0.25rem);
    justify-content:flex-start;
}

.left-side {
    flex: 1 1 0;
}

.right-side {
    flex: 2 1 0;
}

.ingredients {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    text-indent: -1rem;
}

.steps {
    display: flex;
    flex-direction: column;
    padding-left: 1em;
}



.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content:space-evenly;
    row-gap: 1rem; /* switched to row-gap to look more like screenshots */
    margin: 1rem 0rem;
}

.hide {
    display:none;
}

@media (max-width: 500px) 
{
    main {
    background-color: #FFF9F1; /*paper*/
    border-top: 1px solid #2E261C; /*cast iron*/
    border-bottom: 1px solid #2E261C; /*cast iron*/
    border-radius: 10px;
    margin-top: 3rem;
    width:100%;
}
header {
    border-bottom: 2px solid #8B5E34; /*oak*/
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    width:100%;
    flex-wrap:wrap;
}
    .recipe-brief {
    display: flex;
    flex-direction: column; /*stacked*/
    gap: 2rem;
    max-width: 100%;
    margin-bottom: 1rem;
    }

.recipe-photo {
    display: flex;
    transform: rotate(2deg);
    border: 5px solid #FFF; 
    border-radius: 3px;
    max-width: 100%; /* matches parent */
    margin-bottom: 0.5rem; 
}

.recipe-photo img {
    max-width:100%;
    max-height:100%;
}

.recipe-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.label {
    display: flex;
    flex: 0 0 calc(25% - 0.25rem);
}

.value {
    display: flex;
    flex: 1 1 calc(75% - 0.25rem);
    justify-content:flex-start;
}

.ingredients {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    text-indent: -1rem;
}

.steps {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    padding-bottom: 1rem;
}

}
