* { margin: 0; padding: 0; box-sizing: border-box; }
h1, h2, h3, h4, h5, h6{
  font-family: "Playwrite US Trad";
  font-size: 1.25em;
  color: #8B5E34;
  display: flex;
}
h2{
    font-size: 1.8em;
    gap: 2rem;
}
h1{
  font-family: "Playwrite US Trad";
}
html{
    font-size: 18px;
    align-items: center;
}

.profile-line{
  display: flex;
  flex-direction: row;
}
body {
    display: flex;
    flex-direction: column;
    align-items: center;
  background-color: #F7F1E8;
  font-family: "Nunito";
  font-size: 18px;
  color: #2E261C
}
.login-help{
    font-size: 1.25em;
}
.login-entries{
    display: flex;
    flex-direction: column;
    gap: 1rem;  
}
.login-password label {
    display: inline-block;
    color: '#000';
}
.login-button{
    width: 50%;
    min-width: 200px;
    display: block;
    margin: 0 auto;
}
.login-email{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}
.login-email input{
    width: 80%;
}
.login-password{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
}
.passInput{
    width: 80%;
}
dt {
    font-weight: 600;
}
main{
    display: flex;
    flex-direction: column;
    background-color: #FFF9F1;
    border-radius: 25px;
    border: 1px solid #888;
    gap: 1rem;
}
a{
    color:  #8B5E34;
    text-decoration-line: none;
}
a:hover{
    color: #A8570C;
    text-decoration-line: underline;
}
.btn{
    background-color: #8B5E34;
    color: #F7F1E8;
    border-radius: 10px;
    padding: 5px
}
.btn:hover{
    background-color: #A8570C  ;
    color: #FFF9F1 ;
    text-decoration-line: none;
}
ul{
    list-style-type: none;
}
.recipe-photo{
    transform: rotate(2deg);
    border-radius: 3px;
    border: 5px solid white;
    max-width: 100%;
    display: flex;
    padding-bottom: 0.5rem;
}
.recipe-photo img{
    max-width: 100%;
    height: auto;
    display: block;
}
.recipe-card{
    background-color: white;
    border-radius: 10px;
    border: 1px solid #F7F1E8;
    padding: 0.5rem;
}
.content {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  width: 100%;
  padding: 0 0.5rem; 
  box-sizing: border-box; 
  gap: 3rem;
}
.content > * {
  padding: 10px;
  flex: 1 100%;
}
section {
    display: flex;
    flex-direction: column;
}
.recipe-card{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
header {
    display: flex;    
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
}
.topRowHeader{
    display: flex;
    flex-direction: row;
    border-bottom: 5px solid #8B5E34;
    align-items: flex-end;
    justify-content: space-between;
}
.bottomRowHeader{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    
}
.homeLinks{
     display: flex;
    flex-direction: row;
    gap: 1rem;
}
.hero{
    display: flex;
    flex-direction: column;
}
.recipeMetaData{
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.tags{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}
.ingredients{
    padding-left: 1rem;
    text-indent: -1rem;
}
.stepList{
    padding-left: 1rem;
}
.recipeInfo{
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}
.metaRow{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.metaRow dt{
    flex: 0 0 25%;
    font-weight: bold;
}
.metaRow dd{
    flex: 0 0 75%;
}
.main-header{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.main-buttons{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}.main-content{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.recipe-card-grid{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  list-style: none;
  padding-left: 0;
  gap: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.recipe-card-grid li {
  flex: 0 0 30%;
  padding: 0.5rem;
  border: 1px solid #cec2b1;
  border-radius: 10px;
}
.recipe-card img{
    max-width: 100%;
    height: auto;
}
.recipe-card ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.recipe-card li{
    border: none;
}
.search-box{
   width: 60%;
   padding: 0.25rem;
}
.profile-header{
    display:flex;
    flex-direction: row;
    /* gap: 1rem */
    justify-content: space-between;
}
.profile-metadata{
    display: flex;
    flex-direction: column;
}
.profile-header img{
    width: 5rem;
    height: 5rem;
}
.profile-details{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.recipe-overview {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-grow: 1 2;
}
.recipe-details {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-grow: 1 2;
}
.recipe-pic-meta{
    flex: 0 0 33.333%;
}
.recipe-description{
    flex: 0 0 66.66666%;
}
.recipe-ingredients{
    flex: 0 0 33.3333%;
    line-height: 1.25;
}
.recipe-steps{
    flex: 0 0 66.6666%;
    line-height: 1.25;
}
textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #cec2b1;
    border-radius: 5px;
    padding: 0.5rem;
    font-family: "Nunito";
    font-size: 16px;
    box-sizing: border-box;
}

#title {
    font-family: "Playwrite US Trad";
    font-size: 1.25em;
    color: #8B5E34;
    border: none;
    background: transparent;
    flex: 1;
    font-weight: 400;
    width: 85%
}
#title::placeholder {
    color: #8B5E34;
}

input[type="text"], input[type="number"], input[readonly] {
    border: 1px solid #cec2b1;
    border-radius: 3px;
    padding: 0.25rem;
    font-family: "Nunito";
    font-size: 16px;
    margin: 0 0.25rem;
}

.step-ingredients {
    list-style-type: disc;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.step-ingredients li {
    display: flex;
    flex-direction: row;
    list-style: none; 
    position: relative;
    padding-left: 1.2em; 
   
}
.step-ingredients li::before {
    content: "•";         
    position: absolute;
    left: 0;
    color: black;         
}

.step-ingredients input[type="number"] {
    width: 20%;
}
.step-ingredients input[type="text"] {
    width: 40%;
}

.stepList li textarea { 
    width: 100%; margin-top: 0.5rem; 
}
.spetList li:before {
  vertical-align: top;
  line-height: 45px;
}

label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.recipe-description textarea {
    min-height: 120px;
}

/* Error list styling */
.error-list {
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    color: #d32f2f;
}

.error-list ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-list li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}



@media only screen and (max-width: 500px) {
  .recipe-overview{
    flex-direction: column;
    flex-grow: none;
    gap: 2rem;
  }
  .recipe-details{
    flex-direction: column;
    flex-grow: none;
    gap: 2rem;
  }
  .content{
    max-width: 100%;
    padding: 0;
  }
  body{
    padding: 0;
  }
  main{
    border-top: 1px solid #888;
    border-bottom: 1px solid #888;
    border-left: none;
    border-right: none;
  }
  header{
    padding-bottom: 0.5rem;
  }
  
}