/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
    2. Remove default margin
  */
* {
  margin: 0;
}

/*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: 'Poppins', sans-serif;
}

/*
    5. Improve media defaults
  */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/*
    6. Remove built-in form typography styles
  */
input,
button,
textarea,
select {
  font: inherit;
}

/*
    7. Avoid text overflows
  */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/*
    8. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}


:root {

  --green: #509E2F;
  --vomit-green: #C4D600;
  --orange: #EAAA00;
  --reddish: #ED8B00;
  --red: #F6784C;
  --morered: #DC582A;

}

ul li {
  list-style-type: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;

}

header input {
  width: 100%;
  background-color: #F3F3F3;
  border: none;
  outline: none;
  border-bottom-left-radius: 2px;
  border-top-left-radius: 2px;
  position: relative;
  padding-left: 1em;
}

header input:focus {
  outline: none;
}


nav a {
  display: block;
  text-decoration: none;
  color: black;
}

p {
  margin-bottom: 1em;
}

h2,
h3 {

  margin: 1em 0;
}


#hamburger:hover {

  cursor: pointer;
}

.logo img {

  width: 80px;
}

.search {
  display: flex;
  flex-basis: 40%;
}

.searchbutton {

  background-color: var(--green);
  width: 55px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: 2px;
  border-top-right-radius: 2px;

}

#search-results {
  display: none;
  position: absolute;
  z-index: 1;
  background-color: white;
  line-height: 2em;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 1em;
  padding-top: 0;
  padding-left: 0;
  top: 100px;
  max-height: 300px;
  overflow-y: scroll;

}

#search-results a {
  text-decoration: none;
  color: black;

}

#menu {
  display: none;
  position: absolute;
  background-color: white;
  padding: 1em;
  z-index: 1;
  line-height: 2em;
  right: 80px;
  border-radius: 6px;
  width: 200px;

}

#menu a {

  text-decoration: none;
  color: black;

}

#menu a:hover {

  cursor: pointer;
  font-weight: 700;

}

.recipe {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
  line-height: 1em;
}

.recipe a:hover {
  transform: scale(1.1);

}
.recipe:last-of-type {
  margin-bottom: 0;
}

.mainwrapper {

  display: flex;
  padding: 1em 2em;
}


.leftside {
  flex-basis: 60%;

}

.hozzavalok li::before {
  content: "\2022";
  color: var(--morered);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.infobox {

  display: flex;
  gap: 2em;
  text-align: center;
  background-color: #F3F3F3;
  justify-content: center;
  margin-bottom: 1em;
  margin-top: 1em;
  border-radius: 8px;
  padding: .5em 1em;

}

.infobox div div:first-of-type {
  font-weight: 700;
}

.mainimg {

  width: 60%;
  margin: 0 auto;

}

.rightside {
  flex-basis: 40%;
  padding-left: 2em;
}

#ajanlatright {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0;
}

#ajanlatright li {
  flex-basis: 40%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: .5em;
}

#ajanlatright li:hover {
  opacity: .7;


}

#ajanlatright li a {
  text-decoration: none;
  color: white;
}

.preparation li::before {
  content: var(--content-value);
  position: absolute;
  color: var(--morered);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  left: 65px;

}

#tovabbi {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

#tovabbi img {
  width: 200px;
  height: 132px;
  border-radius: 8px;

}

#tovabbi h3 {
  text-align: center;
  font-size: 1rem;
  max-width: 200px;

}

#tovabbi a {
  text-decoration: none;
  color: black;
}

#tovabbi div:hover {

  opacity: .7;

}

.alsoajanlasok {

  padding: 0 2em;
}

#morerecipe {

  background-color: var(--green);
  padding: .5em 3em;
  display: block;
  margin: 0 auto;
  border: none;
  color: white;
  border-radius: 6px;


}

#morerecipe:hover {
  cursor: pointer;
  opacity: .8;

}

footer {

  display: flex;
  gap: 1em;
  padding: 1em 2em;
  align-items: center;
  margin-top: 1em;
}

footer a {
  text-decoration: none;
  color: black;

}

footer a {

  opacity: .7;
}

footer img {
  width: 50px !important;
}

.mainheading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1em 2em;
  margin-top: 1em;
}




@media (max-width: 799px) {

  .rightside {

    display: none;
  }

  .leftside {
    flex-basis: 100%;
  }

  .infobox {
    font-size: .5rem;

  }


  .search {

    flex-basis: 50%;
  }

}