/* starting reset */
@font-face {
  font-family: 'YesevaOne-Regular', serif;
  src: url(../fonts/YesevaOne-Regular.ttf) format('ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-VariableFont_opsz,wght', sans-serif;
  src: url(../fonts/Inter-VariableFont_opsz\,wght.ttf) format('ttf');
  font-weight: normal;
  font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
}

header {
    display: flex;
    align-items: center;
  }
  
  .logo {
    margin-top: 25px;
    align-items: center;
   margin-left: 20px;
    position: absolute;
    width: 100px;
    height: 80px;
  }

  nav {
    width:100%;
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;

}

nav ul {
display: flex;
}

nav ul li {
    margin: 8px 24px;
    list-style: none;
}
nav ul li a {
    color: #000000;
    text-decoration: none;
    align-items: baseline;
}


/* hero */
.hero {
  background-image: url('../img/Hero\ Image\ Home\ Page.jpeg'); 
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  

/* Position and center the image to scale nicely on all screens */
background-position: top;
background-repeat: no-repeat;
background-size: cover;
position: relative;

width: 100%;
height: 80%;
}
 
.heroarticles {
  height: 50%;
  background-image: url('../img/Hero\ Image\ Article\ Page.jpeg'); 
  background-size: cover;
  display: flex;
  justify-content: center;
  

/* Position and center the image to scale nicely on all screens */
background-position: top;
background-repeat: no-repeat;
background-size: cover;
position: relative;

width: 100%;
height: 80%;
}

.hero-contact {
  height: 50%;
  background-image: url('../img/Hero\ Image\ Contact\ Us\ Page.jpeg'); 
  background-size: cover;
  display: flex;
  justify-content: center;
  

/* Position and center the image to scale nicely on all screens */
background-position: top;
background-repeat: no-repeat;
background-size: cover;
position: relative;

width: 100%;
height: 80%;
}

.hero-food-waste {
  height: 50%;
  background-image: url('../img/How\ to\ Reduce\ Food\ Waste.jpg'); 
  background-size: cover;
  display: flex;
  justify-content: center;
  

/* Position and center the image to scale nicely on all screens */
background-position: top;
background-repeat: no-repeat;
background-size: cover;
position: relative;

width: 100%;
height: 80%;
}

.hero-content h1 {
  background: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
  padding: 40px;
  border-radius: 10px;
  font-family: 'Yeseva One', serif;
  font-size: 52px;
  text-align: center;
}

.intro {
  display: flex;
  justify-content: center;
color: rgb(0, 0, 0);
font-size: 30px;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search-bar input[type="text"] {
  padding: 15px;
  border: 1px solid #ffffff;
  border-radius: 80px 0px 0px 80px;
  width: 500px; /* Adjust width as needed */
  height: 60px;
  font-size: 1em;
}

.search-button {
  background-color: #ffffff; 
  border: 1px solid #ffffff;
  border-radius: 0 80px 80px 0;
  padding: 0px 20px 0px 20px;
  height: 60px;
  color: transparent;
  cursor: pointer;
  font-weight: bold;
}

.search-button:hover {
  background-color: #eee;
}

h2 {
  font-family: 'Yeseva One', serif;
  font-size: 40px;
    display: flex;
    justify-content: left;
    padding: 40px;
}

.Articlesbtn {
    background-color:  #4A850A;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    justify-content: center; 
    align-items: center;
    display: block;
    margin: auto;
    border-radius: 80px;
  
  }

  .Recipesbtn {
    background-color: #4A850A;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    justify-content: center; 
    align-items: center;
    display: block;
    margin: auto;
    border-radius: 80px;
  
  }

  .Aboutbtn {
    background-color: #4A850A;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    justify-content: center; 
    align-items: center;
    display: block;
    margin: auto;
    border-radius: 80px;
  }

.More {
  margin-bottom: 20px;
}

  .bgsection {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.497), rgba(255, 255, 255, 0.31)), url('../img/About\ home\ page.jpeg'); 
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgb(0, 0, 0);

    
  
  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  
  width: 100%;
  height: 80%;
  }

.abouttitle, .abouttext {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 80px 20px 80px;
}

  section {
    width: 100%;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(11, auto);
    grid-template-rows: repeat(10, auto);
    grid-gap: 20px;
    text-align: center;
  }

  .thumbnail, .caption {
    width: 100%
  }
 
  #gnocchi {
    grid-column-start:  2;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #hummus {
    grid-column-start:  4;
    grid-column-end: 6;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #lentil {
    grid-column-start:  6;
    grid-column-end: 8;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #butter {
    grid-column-start:  8;
    grid-column-end: 10;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #gnocchit {
    grid-column-start:  2;
    grid-column-end: 4;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  #hummust {
    grid-column-start:  4;
    grid-column-end: 6;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  #lentilt {
    grid-column-start:  6;
    grid-column-end: 8;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  #buttert {
    grid-column-start:  8;
    grid-column-end: 10;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  #sugar {
    grid-column-start:  2;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #bloating {
    grid-column-start:  4;
    grid-column-end: 6;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #grocery {
    grid-column-start:  6;
    grid-column-end: 8;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #hacks {
    grid-column-start:  8;
    grid-column-end: 10;
    grid-row-start: 2;
    grid-row-end: 8;
  }

  #sugart {
    grid-column-start:  2;
    grid-column-end: 4;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  #bloatingt {
    grid-column-start:  4;
    grid-column-end: 6;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  #groceryt {
    grid-column-start:  6;
    grid-column-end: 8;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  #hackst {
    grid-column-start:  8;
    grid-column-end: 10;
    grid-row-start: 8;
    grid-row-end: 9;
  }

  .caption {
    margin-top: 10px;
    text-align: center;
    font-size: 20px;
    color: #000000;
  }
  
  @media (max-width: 768px) {
    .gallery-item {
      flex: 1 0 100%; /* Full width on smaller screens */
      max-width: 100%;
    }
  }

  
  /* Generic styling */
* {
    box-sizing: border-box;
    font-family: "inter", sans-serif;
    margin: 0;
    padding: 0;
  }
  ul {
    list-style: none;
    padding-left: 0;
  }
  footer {
    /* width: 100%; */
    background-color: #EDE8D0;
    line-height: 1.5;
    padding-left: 5%;
    padding-top: 5%;
     position: relative;
  
  }
  
  /* Newsletter Section */
  .footer-newsletter {
    max-width: 400px;
  }
  
  .footer-newsletter h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .footer-newsletter h6 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #777;
  }
  
  /* Newsletter Form */
  .newsletter-form {
    display: flex;
    margin-bottom: 20px;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    outline: none;
  }
  
  .newsletter-form button {
    background-color: #5b8c3b; /* Green button */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .newsletter-form button:hover {
    background-color: #4a752d;
  }
  
  /* Social Icons */
  .ft-social {
    padding: 0 1.875rem 1.25rem;
  }
  .ft-social-list {
    display: flex;
    justify-content: center;
    border-top: 1px #d18b00;
    padding-top: 1rem;
  }
  .ft-social-list li {
    margin: 0.5rem;
    font-size: 1.25rem;
  }
  .ft-social-list li img {
    margin-top: 5px;
    vertical-align: middle;
    height: 2rem;
    width: 2rem;
  }
  
  /* Footer Logo */
  .footer-logo img {
    max-width: 170px; /* Adjust logo size */
    width: 150px;
      position: absolute;   
      top: 50%;   
      left: 50%;   
      transform: translate(-50%, -50%); 
      z-index: 999;   
    }
  
  /* Footer Links */
  .footer-links {
    display: flex;
    gap: 80px; /* Space between link groups */
    position: absolute;
    right: 30px;
    top: 50%;  
     color:#000000;
     justify-items: right;
     transform: translate(-50%, -50%); 
     z-index: 999;   
  }
  
  .footer-links a {
    display: block;
    text-decoration: none;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  h6 {
    display: flex;
    justify-content: center;
  }
    /* Media query for tablets (768px) */
    @media only screen and (max-width: 768px) {
      /* Styles specific to tablets */
      /* Adjust layout, font sizes, etc. for tablets */
    }
    
    /* Media query for mobile devices (540px) */
    @media only screen and (max-width: 540px) {
      /* Styles specific to mobile devices */
      /* Further adjust layout, font sizes, etc. for smaller screens */
    }