body{
  font-size: 12px;
  background-color: #F3E5D8;
  text-align: center;
  font-family:"nexaBold";
  margin: 0;
}

nav ul{
  display: flex;
  background-color: white;
  list-style: none;
  padding: 1rem;
  justify-content: flex-end;
  margin: 0;
  flex-wrap: wrap;
}

nav li{
  color: white;
  font-size: 1em;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: .5em;
}

nav li:first-child {
  margin-right: auto;
  align-self: flex-start;
}

nav a {
  font-size:1.5em;
  color: #50b266;
  text-decoration: none;
}

p{
  color: black;
}

h1, h2, h3, h4, h5, h6 {
  color: #50b266;
}

button{
  color: white;
  font-size: 1em;
  font-family:"nexaBold";
  text-decoration: none;
  border-radius: 1.25em;
  background-color: #2800a0;
  width: 95vw;
  box-shadow: inset 0 -0.1875em 0.0625em #120145;
  padding: .4375em 1.5em .5625em;
}

button:hover{
  background-color: #2800a0;
}

figure{
    position: absolute;
    bottom: -2em;
    left: -3rem;
    width: 103vw;
}

button{
  margin: 0;
  padding: .4375em 1.5em .5625em;
  position: relative;
  border: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1.5;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background-color .2s linear;
  border-radius: 1.25em;
  width: 80%;
}

form{
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 80%;
  margin-left: 2.5%;
  margin-right: 2.5%;
  z-index: 1;
  top: 7.5em;
  background-color: #50b266;
  color: white;
  left: 10%;
  margin: 0;
  padding-top: 1em;
  padding-bottom: 2em;
  border-bottom-left-radius: 2.5em;
  border-bottom-right-radius: 2.5em;
  transition: opacity .2s ease-out;
}

input[type='number'] {
  transition: background-color .2s;
}

input[type='number']:focus{
  transform: scale(0.98, 0.98);
}

input[type='number']:valid  {
  font-family:"nexaBold";
  width: 96%;
  padding: 0 .5em;
  line-height: 2.3em;
  border: 1px solid #91a3b7;
  color: white;
  background-color: #9FDDAB;
  font-size: 1em;
  border-radius: .5em;
  text-align: center;
}

input[type='number']:invalid {
  font-family:"nexaBold";
  width: 96%;
  padding: 0 .5em;
  line-height: 2.3em;
  border: 1px solid #91a3b7;
  color: white;
  background-color: ;
  font-size: 1em;
  border-radius: .5em;
  text-align: center;
}

input[type=number]::-webkit-inner-spin-button {
  width:200px
}

fieldset:invalid p{
  display:block
}

.visible{
  opacity: 1;
  visibility: visible;
}

fieldset{
  display:flex;
  border:none;
  padding-bottom: 2em;
}

header div{
  display: flex;
  flex-direction:column;
  align-items: center;
  font-size: 10px;
  background-image: url("../images/steiger.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: center;
  position: relative;
  flex-wrap:wrap;
}

header div h1{
  font-size: 2.5em;
  padding-top: 0.5rem;
}

header div section{
  width: 80%;
}

aside{
  width: 80%;
  margin-top: 5em;
}

aside a{
  width: 80%;
  color: white;
  text-align: start;
  text-decoration: none;
  font-size: 1.5em;
  background-color: #2800a0;
  padding: 1em;
  border-radius: 1.2rem;
  transition: background-color .2s ease-out;
}

aside a:hover {
    background-color: #2A2E77;
}

header div section ul{
  display: flex;
  background: rgba(255,255,255,.8);
  border-top: 0.1rem solid #91a3b7;
  list-style: none;
  padding: 1rem;
  margin: 0;
  flex-wrap: wrap;
  height: 8em;
}

header div section ul:first-of-type{
  border: none;
}

header div li{
  width: 20%;
  color: white;
  padding: 1rem;
  box-sizing: border-box;
  position: relative;
}

header div li:first-child{
  width: 80%;
  text-align: start;
}

header div section a{
  text-align: start;
  text-decoration: none;
  font-size: 1.5em;
  color: #616160;
}

header div ul img {
  width: 3rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

header div section header{
  margin-top: 5em;
  height: 5em;
  background-color: white;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
}

header div section footer{
  height: 5em;
  background-color: white;
  border-bottom-left-radius: 1.2rem;
  border-bottom-right-radius: 1.2rem;
  margin-bottom: 12em;
}

section h1{
  font-size: 2.2em;
}

/*-------------------------- in mijn articles ben ik aan de slag gegaan met de position properties --------------------------*/

article{
  display: flex;
  flex-direction: column;
  border-radius: 1.2rem;
  margin: 5% 2% -2%;
  position: relative;
}

article{
  box-shadow:none;
  transition: box-shadow .2s ease-in;
}

article:hover{
  box-shadow: 5px  5px 2px rgba(0, 0, 0, 0.5);
}

article ul{
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  height: 2rem;
  background-color: white;
  list-style: none;
  padding: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 0;
  border-top-left-radius: 1.2em;
  border-top-right-radius: 1.2em;
}

article img{
  height: 250px;
  object-fit: cover;
  border-radius: 1.2rem
}

article li:last-child {
  margin-left: auto;
  align-self: flex-end;
}

article ul img{
  height: 2rem;
  width: 2rem;
}

article p{
  position: absolute;
  bottom: 0;
  font-size: 1.5em;
  right: .5em;
  color: white;
  background-color: #50b266;
  padding: 1em;
  border-radius: 1.2rem;
}

article li{
  width: 20%;
  color: white;
  box-sizing: border-box;
  position: relative;
}

article ul li p{
  top: -16px;
  bottom: 0.5em;
  font-size: 1em;
  right: 1.5em;
  color: black !important;
  background-color: transparent;
  padding: 1em;
  border-radius: 1.2rem;
}

article h2{
  position: absolute;
  top: 3.5em;
  left: 1.5em;
  background-color: rgba(255,255,255,.8);
  padding: 1em;
  border-radius: 1.2rem;
}

.alle_verhalen header{
  position: relative;
}

.alle_verhalen header ul{
  list-style: none;
  display: flex;
  justify-content: flex-start;
  text-align: center;
  padding: 1%;
}

.alle_verhalen header ul li{
  margin: 0.5em;
  width: 100%;
}

button{
  outline: none
  padding: 12px 38px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  color: white;
  background-color: #2800a0;
  border-radius: 2em;
  cursor: pointer;
  width: 80%;
  transition: border-bottom-left-radius .2s ease-in;
  transition: border-bottom-right-radius .2s ease-in;
}

.showFilter {
  outline:0;
  border-bottom-left-radius: 0em;
  border-bottom-right-radius: 0em;
  background-color: #50b266;
}

.submitfilter {
    border: none;
    color: #50b266;
    font-size: 1.5em;
    font-family:"nexaBold";
    text-decoration: none;
    border-radius: 1.25em;
    background-color: white;
    width: 90%;
    height: 50px;
    box-shadow: none;
    padding: .4375em 1.5em .5625em;
}

label{
  padding: 0px 10px 0px 0px;
  position: relative;
  margin: 10px auto;
  cursor: pointer;
  -webkit-transition: all 0.25s linear;
}

legend{
  font-size: 1.5em;
}

/*-------------------------- code gebruikt voor het stylen van radio buttons https://codepen.io/AngelaVelasquez/pen/Eypnq --------------------------*/


input[type=radio]{
  position: absolute;
  visibility: hidden;
}

.alle_verhalen ul li .check{
  background-image: none;
  border: 5px solid #d3d3d3;
  border-radius: 100%;
  height: 25px;
  width: 25px;
  top: 10px;
  left: 30%;
	z-index: 5;
  transition: border-radius 0.2s linear;
}

.alle_verhalen ul li:hover .check {
  border: 5px solid #FFFFFF;
}

.alle_verhalen ul li .check::before {
  display: block;
  position: absolute;
	content: '';
  border-radius: 2em;
  height: 35px;
  width: 35px;
  margin: auto;
  transition: background-color 0.2s linear;
}

input[type=radio]:checked ~ .check {
  border: 5px solid white;
  border-radius: 10px;
}

input[type=radio]:checked ~ .check::before{
  background-color: white;
}

input[type=radio]:checked ~ label{
  color: white;
}

/*-------------------------- code gebruikt voor het stylen van radio buttons https://codepen.io/AngelaVelasquez/pen/Eypnq --------------------------*/

/*--------------------------------- slider code https://www.w3schools.com/howto/howto_js_rangeslider.asp -------------------------------------------*/

.slider{
  border-radius: 12.5px;
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 98%; /* Full-width */
  height: 25px; /* Specified height */
  background: #d3d3d3; /* Grey background */
  outline: none; /* Remove outline */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/*--------------------------------- slider code https://www.w3schools.com/howto/howto_js_rangeslider.asp -------------------------------------------*/

.alle_verhalen form p{
  color: white;
}

/*------------------------------- DROPDOWN code gebruikt van:https://www.w3schools.com/howto/howto_css_dropdown.asp -------------------------------*/

.dropdown a {
  width: 100%;
  color: #606060;
  text-align: start;
  text-decoration: none;
  font-size: 1.2em;
  background-color: white;
  padding: .4375em 25% .5625em;
  border-radius: 0.5rem;
  border: .0625rem solid #91a3b7;
}

.dropdown {
  position: relative;
  display: inline-block;
  width: 80%;
  margin-top: 2em;
  background-image: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  background-image: none;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 1em;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: white;}

.dropdown:hover .dropdown-content {display: block;}

/*------------------------------- DROPDOWN code gebruikt van:https://www.w3schools.com/howto/howto_css_dropdown.asp -------------------------------*/

main{
  margin-bottom: 5em;
}

/*------------------------------- FOOTER -------------------------------*/

footer{
  height: 100px;
  background-color: #2800a0;
}

footer p{
  color: white;
  padding-top: 5em;
}

/*------------------------------- FOOTER -------------------------------*/

@media (min-width: 40em){

  form{
    width:49%;
    left: 0.9%;
    top: 8em;
  }

  .alle_verhalen section{
    display: flex;
    flex-wrap: wrap;
  }

  article{
    width: 48%;
    margin: 5% 1% -2%;
  }

  .dropdown, .alle_verhalen header button, .alle_verhalen header h1{
    width: 49%;
  }
}

@media (min-width: 55em){

    form{
      top: 8em;
      left: 0.9%
    }

  nav li{
    min-width:200px;
  }

  header div{
    flex-direction:initial;
    font-size: 12px;
  }

  aside{
    width: 25%;
    position: relative;
  }

  aside a{
    width: 150px;
    position: absolute;
    top: -10em;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  header div section a{
    text-align: start;
    text-decoration: none;
    font-size: 1.5em;
    color: #616160;
  }

  header div section{
    width: 40%;
  }

  header div section footer{
    margin-bottom: 15em;
  }
}

@media (min-width: 75em){

  form{
    width: 34.15%;
    position: absolute;
    top: 4em;
    left: 32.9%;
    margin:0;
  }

  header div{
    flex-direction:initial;
    font-size: 14px;
  }

  header div section footer{
    margin-bottom: 20em;
  }

  article{
    width: 31%;
  }

  .alle_verhalen header{
    display: flex;
  }


  .alle_verhalen header button{
    height: 10%;
    margin-top: 1.15em;
    width: 49%;
  }

}
