@import url("https://fonts.googleapis.com/css2?family=Signika&family=Source+Sans+3:wght@800&family=Vollkorn:ital,wght@1,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Signika&family=Source+Sans+3:wght@900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Signika&family=Source+Sans+3:wght@900&family=Vollkorn:ital,wght@1,500&display=swap");

body {
    padding: 0;
    margin: 0;
    background-color: #f4fdd9;
    color:#1C1715;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

p {
    font-family: "Signika", sans-serif;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: "Source Sans 3", sans-serif;
    background-color: pink;
    border-bottom: 2px solid #1C1715;
    flex-wrap: wrap;
    font-family: "Source Sans 3", sans-serif;
    margin-bottom:1%;
}

.logo img {
    width: 100px;
    margin-left: 7%;
}

.navigation {
    display: flex;
    justify-content: stretch;
    margin-right: 2%;
    flex-wrap: wrap;
}

.navigation ul {
    display: flex;
    list-style: none;
}

a {
    text-decoration: none;
    color: #1C1715;
}

.navigation ul li {
    margin-left: 40px;
}

.recipeimage {
    width: 100%;
}

.pagecontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 5%;
    min-height: 0;
}

.newrecipe {
    display: flex;
    width: 72%;
    margin: 30px;
    padding: 30px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    background-color: pink;
    border: 2px solid #1C1715;
    position: relative;
}

.black-box {
    background-color: #1C1715;
    position: absolute;
    width: 97%;
    /* Adjust the width as needed */
    height: 97%;
    /* Adjust the height as needed */
    bottom: -15px;
    left: -8px;
    /* Adjust the value to shift the box to the left */
    z-index: -1;
}

.newrecipe h2 {
    font-family: "Source Sans 3", sans-serif;
}

.newrecipe img {
    display: flex;
    object-fit: cover;
    width: 100%;
    border: 2px solid #1C1715;
}

.newtitle {
    display: flex;
    flex-direction: column;
    width: 104%;
    justify-content: center;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
    position: relative;
    width: 90%;
    justify-content: space-evenly;
    margin-bottom: 20px;
    align-items:center;
}

.category-title {
    width: 80%;
    display: flex;
    align-content: center;
    align-self: center;
    justify-content: left;
}

.card {
    max-width: 200px;
    margin: auto;
    text-align: center;
    position: relative;
    background-color: pink;
    border: 2px solid #1C1715;
}

.cardimg {
    display: flex;
}

.cardimg img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.colored-box {
    background-color: #1C1715;
    position: absolute;
    width: 94%;
    height: 100%;
    top: 10px;
    left: -10px;
    z-index: -1;
}

a {
    font-family: "Signika", sans-serif;
    display: block;
    text-decoration: none;
    color: #1C1715;
}
button {
    height: 40px;
    width: 100px;
    border:2px solid #1C1715;
    font-family: "Source Sans 3", sans-serif;
    font-size: 20px;
    background-color: pink;
    position: sticky;
}

button a {
    font-family: "Source Sans 3", sans-serif;
    text-align: center;
}
/*---start recipe styles---*/
.button button {
    height: 40px;
    max-width: 100px; /* Adjust the width as needed */
    font-family: "Source Sans 3", sans-serif;
    background-color: pink;
  }
  .button {
    display: absolute;
    float: right;
  }
  button a {
    font-family: "Source Sans 3", sans-serif;
  }
  .recipe-content {
    display: block;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    margin: 20px;
    gap: 20px;
    flex-wrap: wrap;
    align-content: center;
    width: 80%;
    margin-right: 5%;
  }
  .title {
    font-family: "Source Sans 3", sans-serif;
    font-size: 25px;
    margin-left: 4%;
  }

  .recipeimg{
    width: 91%;
    height: 413px;
    align-items: center;
    display: flex;
  }
  
  .recipeimage img {
    width: 75%;
    border: 2px solid #1C1715;
    overflow: hidden;
    object-fit: cover;
    height: 395px;
    position: relative;
    display: block;
    margin: 0 auto;
  }
  .recipe-page {
    display: flex;
    justify-content: space-between;
  }
  
  .recipe-sidebar {
    width: 200px; 
    height: 100%;
    position: sticky;
    top: 20px;
    background-color: pink;
    margin-right: 20px;
    border: 2px solid #1C1715;
    text-align: center;
    left:3px;
    border-radius:10px;
  }
  .recipe-sidebar li{
    padding-top:5%
  }
  .smallingredients{
    display:none;
  }
  /*---- about*/
  .aboutcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    
    margin: 5%;
    width: 90%;
    flex-wrap: wrap;
  }
  .aboutimg img {
    display: flex;
    object-fit: cover;
    width: 400px;
    justify-content:center;
    margin-right:15px;
  }
  .aboutinfo {
    display: flex;
    width: 60%;
    margin: 30px;
    padding: 30px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    background-color: pink;
    border: 2px solid #1C1715;
    position: relative;
  }
  
  .newtitle {
    display: flex;
    flex-direction: column;
    width: 90%;
    justify-content: center;
    margin-left: 5%;
  }

  
footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: "Source Sans 3", sans-serif;
    background-color: pink;
    border-top: 2px solid #1C1715;
    margin-top: 10px;
    flex-wrap: wrap;
    font-family: "Source Sans 3", sans-serif;
    
}

/* Add media query for smaller viewports */
@media (max-width: 800px) {
.navigation {
    justify-content: center;
    margin-right: 11%;
  }
  .container {
    width: 453px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;
    height: 100%;
}

header {
    justify-content: center;
    align-content: center;
    align-self: center;
    width: 100%;
    gap: 5%;
}

.navigation {
    justify-content: center;
    margin-right: 11%;
}
.category-title {
    width: 80%;
    display: flex;
    justify-content: center;
    font-size: 23px;
}

footer .logo {
    justify-content: space-evenly;
    align-content: center;
    right: 5%;
}

footer h1 {
    text-align: center;
    font-size: 27px;
    content: center;
}
footer {
    justify-content: center;
    align-content: center;
    align-self: center;
    width: 100%;
    gap: 5%;
}

.navigation {
    justify-content: center;
    margin-right: 11%;
}


footer .logo {
    justify-content: space-evenly;
    align-content: center;
    right: 5%;
}

footer h1 {
    text-align: center;
    font-size: 27px;
    content: center;
}
}
@media (max-width:500px){
    .smallingredients{
        display:block;
        
    }
    .smallingredients button{
        position:sticky;
        float:left;
        width:90px;
        font-size:14px;
    }
    .recipe-sidebar{
        display:none;
      }
}
@media (max-width: 400px) {
    .navigation {
        justify-content: center;
        margin-right: 25%;
      }
      .container{
        width: 314px;
      }
      
}