:root {
    --headerkleur: rgb(139, 128, 114);
    --tekstkleur: #202020;
    --kleuraccent1: rgb(241, 153, 12);
    --kleuraccent2: rgb(43, 110, 12);
    --afronding: 8px;
    --BGC:rgb(238, 238, 238);

}

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

body{
    background-color: var(--BGC);
    color: var(--tekstkleur);
    font-family: 'SN Pro', serif;
    font-size: 1.1rem;
    overflow-x: hidden;
}

h1{
  margin-bottom: 3px;
  color: red;
}

p{
  margin-bottom: 0.5em;
}
article>p{
  margin-top: 0.7rem;
}

header {
  margin-bottom: 1em;
}

header,
footer {
  background-color: var(--headerkleur);
  box-shadow: 0 0 5px #999;
}

.wrapper {
  width: 100%;
  max-width: 50em;
  margin: 0px auto;
  padding: 0.5em;
}

header div.wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

header img {
  width: 35px;
  height: 35px;
}

h2{
  margin-bottom: 0.7rem;
  margin-right: 40px; /* want width icoon is 38px plus 2px zodat geen overlap*/

}

nav ul {
  display: flex;
  gap: 0.5em;
  flex-direction: row;
  list-style-type: none;
  justify-content: end;
  
}

nav ul li a {
  display: block;
  padding: 0.5em;
  text-decoration: none;
  color: var(--tekstkleur);
  border-radius: var(--afronding);
  
}

nav ul li a:hover {
  color: var(--tekstkleur);
  background-color: var(--kleuraccent1);
}

nav li.hier a {
  background-color: var(--BGC);
  color: var(--kleuraccent2);
}

form{
  display: flex;
  flex-direction: column;
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: #fff;
  padding: 1em 1em 0.5em 1em;  /* 0.5 voor bottom want elk inputfield heeft margin bottom*/
  border-radius: var(--afronding);
}

input{
  padding: 5px;
  margin-bottom: 1em;
}

input[type=checkbox], input[type=radio]{
  margin-right: 0.3em;
  margin-bottom: 1em;
  accent-color: var(--kleuraccent2);
  cursor: pointer;
}

.technieklabel label{
  margin-right: 1rem;
}

.bereidingen article{
  background-color: #fff;
  padding: 1em;
  border-radius: var(--afronding);
  margin-bottom: 1em;
  box-shadow: 0 0 3px #999;
  max-width
}

article{
  position: relative;
}

input[name=techniek]+img{
  max-height: 18px;
  max-height: 18px;
}

.recept::after,
.bewaartechniek::after{
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  
 background-size:cover;   /* hoe wordt de afbeeelding geschaald binnen het pseudoelement, schaalt de afbeelding zo groot mogelijk binnen het element zonder vervorming. */
}
.bewaartechniek::after{
background-image: url("img/conserve.svg");
}
.recept::after{
  background-image: url("img/bestek.svg");
}

/*opmaak moestuinlabels*/

.moestuingroenten{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* border: 1px solid black; */
  margin-bottom: 5px;
  accent-color: var(--kleuraccent2);
  padding: 5px;
  margin: 8px;
}

.moestuingroenten span{
  display: inline-block;               /* laten staan zodat label zich aanpast aan lengt woord*/
  border: solid 1px var(--tekstkleur);
  padding: 5px 10px;
  border-radius: 10px;
  transition: 0.2s;
  cursor: pointer;
}
/* .moestuingroenten span:hover,  */.moestuingroenten input:checked + span{
  background-color:var(--kleuraccent1);
}

.moestuingroenten input[type=checkbox]{
  display: none;
}


#lijstingredienten{
  display: flex;
  flex-wrap: wrap;
}

.ingredienten{
  margin: 0.3rem;
  width: 180px
}

section.bereidingen{
  display: grid;
  gap: 1em;
  grid-template-columns:  minmax(0, 1fr);
}

button#voegingrtoe, input[type=submit]{
  padding: 5px 1rem;
  font-size: 1.1rem;
  border-radius: var(--afronding);
  max-width: fit-content;
  margin: 0.8rem;
}

button#voegingrtoe:hover, input[type=submit]:hover{
  cursor: pointer;
}

#bereiding, .ingredienten{
 color: var(--tekstkleur);
  font-family: 'SN Pro', serif;
  font-size: 1.1rem;
  padding: 0.3rem;
}

.ingredientenlijst{
  padding-left: 1.5rem;
}

.ingredientenlijst li{
  margin-bottom: 0.2rem;;
}

p.succes{
  color: var(--kleuraccent2);
  border: 1px solid var(--kleuraccent2);
  padding: 5px;
  background-color: #fff;
}
p.fout{
  color: var(--kleuraccent1);
  border: 1px solid var(--kleuraccent1);
  padding: 5px;
  background-color: #fff;
}

.lijst{
  display: block;
}

@media(min-width: 776px) {
  section.bereidingen{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .moestuingroenten span:hover{
    background-color:var(--kleuraccent1);
  }
}