/* Basisstijl voor grotere schermen */
h1 {
  text-align: center;
  margin-top: 5px;
  font-size: 50px;
}

.navbar ul {
  list-style-type: none;
  font-size: 23px;
  background-color: rgb(69, 69, 69);
  padding: 5px;
  margin-top: 60px;
  overflow: hidden;
  border-radius: 20px;
}

.navbar a {
  text-decoration: none;
  color: rgb(195, 195, 195);
  padding: 15px;
  display: block;
  text-align: center;
}

.navbar a:hover {
  background-color: rgb(147, 147, 147);
}

.navbar li {
  float: left;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url(../images/space.gif);
  background-size: cover;
  height: 100vh;
  padding: 0;
  color: rgb(255, 255, 255);
}

main {
  flex: 1;
}

.foto_mezelf {
  display: block;
  margin: auto;
  padding: 1px;
  
}

.eerste {
  width: 500px;
  text-align: left;
  font-size: 20px;
  margin-left: 250px;
}
h2 {
  text-align: left;
  margin-left: 250px;
  font-size: 25px;
}

ul li:nth-child(1) a {
  color: rgb(255, 255, 255);
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

nav > * {
  flex: 1;
  text-align: center;
}
footer {
  background-image: url(../images/image.png);
  position: fixed;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 5px 0;
  text-align: center;
  font-size: 16px;
  z-index: 1000;
  font-family: Arial, Helvetica, sans-serif;
}
.footer_flex {
  display: flex;
  justify-content: space-around;
  position: sticky;
}
.flexing{
  display: flex;
  flex-direction: row;
}

/* Media queries voor kleinere schermen */
@media only screen and (max-width: 768px) {
  .flexing {
    flex-direction: column;
    align-items: center;
  }

  .eerste {
    margin-left: 0;
    font-size: 18px;
    width: 90%;
    text-align: center;
  }

  .foto_mezelf {
    width: 80%;
    height: auto;
    margin: 20px 0;
  }

  h1 {
    font-size: 40px;
  }

  footer {
    font-size: 14px;
    padding: 5px 0;
  }
}

@media only screen and (max-width: 480px) {
  .navbar ul {
    font-size: 18px;
  }

  .navbar a {
    padding: 10px;
  }

  h1 {
    font-size: 30px;
  }

  .eerste {
    font-size: 16px;
  }

  footer {
    font-size: 12px;
    padding: 5px 0;
  }
}

@media  only screen and  (max-width: 451px){
  .eerste{
    margin-left: 0;
    font-size: 16px;
    width: 90%;
    text-align: center;
  }
  h2{
    margin-left: 50px;
    font-size: 20px;

  }
  .flexing{
    flex-direction: column;
    
  }
  .foto_mezelf{
    width: 80%;
    height: auto;
    margin: 20px 0;
  }
  footer{
    width: 100%;
    height: 80px;
    font-size: 18px;
  }
}