@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@700&family=Inika&family=Inter&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary--color: #48d645;
  --secondary--color: #000000;
  --advance--color: #ffffff;
}
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary--color);
  padding: 10px;
  margin: 0 100px 0 0;
  background: #d9d9d9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
}
.nav-bar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
}
.nav-bar ul {
  list-style: none;
  display: flex;
}
.nav-bar h1 {
  font-family: "Arial Black";
  cursor: pointer;
}
.nav-bar li {
  margin-right: 20px;
}
.nav-bar li a {
  list-style: none;
  text-decoration: none;
  color: var(--secondary--color);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
}
.nav-bar li a:hover::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary--color);
  transition: all 0.3s ease;
}
.nav-bar li a:hover {
  color: var(--primary--color);
  transition: color 0.5s ease;
}
.nav-bar span {
  color: var(--primary--color);
}
.main-section_row {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  width: 100%;
  margin: 20px auto;
}
.main-section_row h2 {
  font-family: "DM Sans", sans-serif;
  color: var(--primary--color);
  font-size: 14px;
  text-align: center;
  font-weight: 400;
  padding: 4px;
}

.main-section > p {
  color: var(--secondary--color);
  margin: 5px auto;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  font-style: bold;
  margin: 10px auto;
}
.btn {
  margin-top: 10px;
  width: 120px;
  height: 41px;
  border: 1px solid;
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  align-items: center;
  color: var(--advance--color);
  background-color: var(--primary--color);
  transition: all 0.5s;
  cursor: pointer;
  position: relative;
}
.main-img {
  cursor: pointer;
}
.btn span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 1;
  transition: 0.5s;
}
.btn span:after {
  content: "\00bb";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}
.btn:hover span {
  padding-right: 20px;
}
.btn:hover span::after {
  opacity: 1;
  right: 0;
}
.btn:hover {
  color: var(--primary--color);
  background-color: #ffffff;
  transition: all 0.5s;
  border: 1px solid var(--primary--color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.btnlf {
  background-color: var(--advance--color);
  color: var(--primary--color);
}
.secondary-row {
  background-color: var(--primary--color);
  text-align: center;
  padding: 10px;

  max-width: 100%;
}
#popular {
  scroll-margin-top: 100px;
}

.secondary-row h3 {
  color: var(--advance--color);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 50px;
  margin: 20px auto;
}
.secondary-row p {
  color: var(--advance--color);
  font-size: 30px;
  font-weight: 400;
  margin: 30px 0;
  font-family: "DM Sans", sans-serif;
  text-align: center;
}
.img-row {
  height: 150px;
  width: 100%;
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}
.img-row img {
  max-width: 100%;
  /* width: 500%; */
  margin-right: 35px;
  animation: moveLeftToRight 5s linear infinite;
  margin-bottom: 15px;
  text-align: center;
  border: none;
  cursor: pointer;
}
@keyframes moveLeftToRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.hero-section {
  display: flex;
  justify-content: space-between;
  padding-left: 100px;
  margin: 10% auto;
  align-items: center;
  text-align: center;
}
.hero-img img {
  cursor: pointer;
  max-width: 500px;
  margin-left: 0 auto;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  height: auto;
}
.hero-btn {
  border: none;
  background-color: #d9d9d9;
  color: var(--primary--color);
  border-radius: 50px;
  font-size: 18px;
  font-family: "Segoe UI";
  width: 180px;
  height: 45px;
  text-align: center;
}
.hero-btn:hover {
  background-color: var(--primary--color);
  color: var(--advance--color);
}
.hero-main h2 {
  font-size: 50px;
  color: var(--secondary--color);
  font-weight: 700;
  line-height: 1.2;
  font-family: "DM Sans", sans-serif;
  font-family: "Inika", serif;
  font-family: "Inter", sans-serif;
}
.hero-main p {
  font-family: "Segoe UI";
  color: var(--secondary--color);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}
.hero-btn__main {
  border: 1px solid #48d645;
  color: var(--advance--color);
  text-align: center;
  border-radius: 12px;
  width: 170px;
  height: 50px;
  background-color: var(--primary--color);
  margin: 20px 0;
  font-family: "Segoe UI";
  box-shadow: 10px 9px #d9d9d9;
  transition: all 0.3s;
}
.hero-btn__main:active {
  background-color: #d9d9d9;
  box-shadow: 0 5px #000000;
  transform: translateY(4px);
}
.hero-btn__main:hover {
  border: 1px solid #d9d9d9;
  background-color: #d9d9d9;
  color: var(--primary--color);
}
.Reciepe {
  background-color: var(--primary--color);
  height: auto;
}
#Recipes {
  scroll-margin-top: 100px;
}
.search-bar {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
  top: 10px;
}

.search-bar input[type="text"] {
  padding: 10px;
  text-align: center;
  font-size: 17px;
  border: none;
  float: left;
  width: 80%;
  background: #f1f1f1;
  border-radius: 5px 0 0 5px;
}
.search-bar input[type="text"]:focus {
  outline: none;
}
.search-bar button {
  float: left;
  width: 20%;
  padding: 10px;
  background: green;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
}

div.search-bar button:hover {
  opacity: 0.9;
}
.carousel-container {
  position: relative;
  width: 400px;
  top: 0;
  margin: 20px auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  width: 100%;
}
.carousel-item {
  flex: 0 0 400px;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s;
}

.carousel-item img {
  max-width: 100%;
  height: auto;
}

.carousel-item:hover {
  transform: translateY(5px);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ccc;
  border: none;
  color: var(--secondary--color);
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}
#results-container {
  text-align: center;
  margin: 0 auto;
  max-height: 400px;
  max-width: 300px;
  overflow-y: auto;
  padding: 10px;
  font-size: 25px;
  font-weight: 600;
  color: #000000;
  font-family: sans-serif;
  transition: 0.3;
}
.Reciepe--img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 30px 10px;
}

.row1,
.row2 {
  display: flex;
}

.row1 .reciepe-container,
.row2 .reciepe-container {
  flex: 1;
  max-width: 250px;
  position: relative;
}

.reciepe-container {
  margin: 10px;
}

.reciepe-container img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0dc40ab3;
  color: #000;
  height: 0;
  opacity: 0;
  transition: height 0.5s ease, opacity 0.5s ease;
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.reciepe-container:hover .overlay {
  opacity: 1;
  height: 50%;
}

.reciepe-container .text {
  color: #ffffff;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "DM Sans", sans-serif;
}

.contact-form {
  background-color: var(--primary--color);
  padding: 20px;
  color: #fff;
  width: 100%;
  max-width: 500px;
  margin: 50px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#Contact {
  scroll-margin-top: 100px;
}
.contact-form h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 20px;
  font-family: "DM Sans", sans-serif;
  font-family: "Inika", serif;
}

form {
  display: flex;
  flex-direction: column;
}

.input-group {
  margin-bottom: 20px;
  text-align: center;
}

.input-group label {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  font-family: "DM Sans", sans-serif;
  color: #000000;
  display: flex;
  align-items: center;
}

.input-group input,
.input-group textarea {
  padding: 8px;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  width: 100%;
}

.input-group textarea {
  resize: none !important;
}
.input[type="placeholder"] {
  outline: none;
}

button {
  padding: 10px;
  width: 120px;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: var(--primary--color);
  border: 2px solid #fff;
}
#success-message {
  color: #4caf50;
  font-size: 18px;
  margin-top: 10px;
}

#success-message {
  color: #4caf50;
  font-size: 18px;
  margin-top: 10px;
  margin-top: 10px;
}
.footer-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #ffffff;
  flex-wrap: wrap;
}

.footer-first {
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
  text-align: center;
  margin-bottom: 20px;
}

.footer-third {
  color: white;
  width: 100%;
  max-width: 300px;
  text-align: center;
  margin-bottom: 20px;
  display: block;
}

.footer-third ul {
  padding: 0;
}

.footer-third ul li {
  margin: 5px 0;
}

.footer-first p {
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
}
.footer-first span {
  color: var(--advance--color);
  font-size: 40px;
  font-family: "DM Sans", sans-serif;
  font-family: "Inika", serif;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  padding-top: 30px;
}
ul.no-bullets {
  list-style: none;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
}
ul.no-bullets li:hover {
  color: var(--primary--color);
  transition: 0.5s;
}

.footer-third h1 {
  font-family: "DM Sans", sans-serif;
  font-family: "Inika", serif;
  font-weight: bold;
  display: block;
}

.footer-img i:hover {
  color: var(--advance--color);
  transition: 0.3;
}
.foter-parent {
  background-color: green;
  max-height: full-height;
  max-width: 100%;
}
.recipe-info {
  margin: 5px auto;
  font-size: 1.2em;
  font-family: "Lato", sans-serif;
}
.rcp {
  margin: 5px auto;
  font-size: 2em;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  color: #000000;
  font-weight: 800;
}

.error {
  color: red !important;
  text-align: center;
  align-items: center;
  font: bolder;
  font-size: 5rem;
}

@media (max-width: 768px) {
  #nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  #bar1.rotate-bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  #bar2.hide-bar2 {
    opacity: 0;
  }

  #bar3.rotate-bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  #nav-links.show-nav {
    display: flex;
    line-height: 1.5;
    margin-top: 100px;
  }
  #menu-icon {
    display: block;
    cursor: pointer;
    margin-left: auto;
    color: #000000;
  }
  .bar {
    color: #000000;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 6px auto;
  }

  .main-section_row {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 30px auto;
    padding-left: 0;
  }
  .main-section_row h2 {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 20px;
    padding: 0 0;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .main-section_row h2 span {
    color: var(--primary--color);
  }
  .main-img img {
    max-width: 500px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    width: 100%;
  }
  .main-section_row p {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
      sans-serif;
    font-size: x-large;
    margin: 5px auto;
    text-align: center;
    font-weight: 600;
    color: var(--primary--color);
  }
  .btn {
    display: flex;
    margin: 10px auto;
    text-align: center;
    align-items: center;
    width: 120px;
    height: 41px;
    border: 1px solid;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    align-items: center;
    color: var(--advance--color);
    background-color: var(--primary--color);
    transition: all 0.5s;
    cursor: pointer;
    position: relative;
  }
  .btn span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: 0.5s;
    align-items: center;
  }
  .btn span:after {
    content: "\00bb";
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
  }
  .btn:hover span {
    padding-right: 20px;
  }
  .btn:hover span::after {
    opacity: 1;
    right: 0;
  }
  .secondary-row {
    background-color: var(--primary--color);
    text-align: center;
    padding: 10px;
    max-width: fit-content;
  }
  .hero-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 10% auto;
    text-align: center;
    padding-left: 0;
  }
  .hero-img img {
    width: 200px;
  }
  .hero-main {
    margin: 10px auto;
    text-align: center;
  }
  .hero-main h2 {
    font-size: 20px;
  }
  .hero-main p {
    font-family: "Segoe UI";
    color: var(--secondary--color);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
    color: #48d645;
    font-weight: 600;
  }
}
@media (min-width: 768px) {
  .main-section_row {
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    margin: 70px auto;
    width: 100%;
    padding-left: 0;
  }
  .main-section_row h2 {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 50px;
    margin: 50px 0;
  }
  .hero-main {
    margin: 10px auto;
    text-align: center;
  }
  .hero-img img {
    cursor: pointer;
    width: 350px;
    padding-left: 10px;
  }
  .hero-section {
    display: flex;
    justify-content: space-around;
    margin: 10% auto;
    text-align: center;
  }
  .hero-main p {
    font-family: "Segoe UI";
    color: var(--secondary--color);
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
    color: #48d645;
    font-weight: 600;
    flex-wrap: wrap;
  }
}
@media (max-width: 300px) {
}
