@media only screen and (max-width: 768px) {

    header {
      height: auto;
    }
  
    header .agplaatje {
      background-position: center;
      background-size: cover;
      height: 327px; 
    }
  
    header h1 {
      font-size: 1.5em; 
      top: 10px;
      left: 10px;
    }
  
    .welkom {
      top: 130px;
      left: 50%;
      transform: translateX(-50%); 
      display: block; 
      width: 90%;
      height: auto;
      padding: 10px;
    }
  
    .welkom h1 {
      font-size: 1.2em; 
      margin-bottom: 10px;
    }
  
    .welkom h2 {
      font-size: 2em; 
    }
  
    .container {
      flex-direction: column;
      position:absolute;
      width: 90%;
      top: 325px;
      margin-left: 3.5%;
    }
  
    .box {
      width: 96%;
      height: auto;
      margin-left: 0;
      margin-bottom: 20px;
      padding: 10px;
    }
  
    .box p {
      font-size: 2em; 
    }
  
    .box h3 {
      font-size: 1.2em; 
    }
  
    .box h4 {
      font-size: 1em; 
    }

    .box a{
      opacity: 1;
      color:#2375D8;
      cursor: pointer;
      text-decoration:none;
    }

    .box a:hover {
      opacity: 1;
      color:#2375D8;
      cursor: pointer;
      text-decoration:none;
    }
 
    logo {
      position: absolute;
      width: 100%;
      height: 60px;
      top: 15px;
      left: 0;
      text-align: center;
    }
  
    logo .plaatje {
      width: 150px;
      height: 60px;
      left: 50%;
      padding-top: 15px;
      transform: translateX(-50%); 
    }
  
    logo .a {
      top: 0px;
    }
  
    nav {
    display:none;
      top: 35px;
      right: 50%;
      transform: translateX(50%); 
    }
  
    footer {
        position:absolute;
        top: 875px;
      height: 71px;
      padding: 10px;
    }
  
    footer p {
      font-size: 1em; 
    }
  
    footer h1 {
      font-size: 1.5em; 
    }
}

@media screen and (max-width: 768px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav li:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;

  }
}

@media screen and (max-width: 768px) {
  .topnav.responsive {
    position: relative;
    width:90%;
    top:100px;
    border: solid white;
    border-radius: 5px;

  }

  .topnav.responsive .icon {
    position: absolute;
    left: 0;
    top: 0;
    background-color:black;
    color:white;
   
  }
  .topnav.responsive a {
    float: none;
    display: block;
      margin-left: 50px;
  }
}

@media only screen and (min-width:769px) and (max-width: 1053px) {
    .welkom {
        box-sizing: border-box;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* centers the .welkom horizontally */
        display: block; /* centers the .welkom contents horizontally */
        border: solid white;
        border-radius: 30px;
        top: 1300px;
        width: 500px;
        height: 235px;
        background-color: rgba(0, 0, 0, 0.5)
      }

      .container {
        display: flex;
        position: relative;
        width: 100%;
        top: 500px;
        margin-left: auto;
        margin-right: auto;
    }

      .box {
        font-size: 18px;
        line-height: 1.5;
        margin-left: 5px;
        padding: 10px;
      }

      .box p {
        font-size: 24px;
      }
      
      .box h3 {
        font-size: 16px;
      }
      
      .box h4 {
        font-size: 14px;
      }
    }
     


@media only screen and (min-width:769px) and (max-width: 1120px) {

    logo {
        box-sizing:border-box;
        position:absolute;
        width: 250px;
        height: 80px;
        background-color:black;
        top: 10px;
        left: 25px;
      }
      
      logo .plaatje {
        background-image: url(../images/logo.png);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        position: relative;
        width: 167px;
        left: 16%;
        top: 1px;
        height: 77px;
        cursor: pointer;
      }
      
      
      nav {
        transform: translateX(-22%); }

      ul {
        position: relative;
        display: flex;
        flex: 1 1 auto;
        left:center;
        margin: 0;
        padding: 0 30px;
        list-style-type: none;
        li:not(:last-child) {
          margin-right: 10px;
        }

  .welkom {
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* centers the .welkom horizontally */
    display: block; /* centers the .welkom contents horizontally */
    border: solid white;
    border-radius: 30px;
    top: 130px;
    width: 500px;
    height: 235px;
    background-color: rgba(0, 0, 0, 0.5)
  }
  footer {
    position:relative;
    top: 325px;
  height: auto;
  padding: 10px;
}

}

@media only screen and (min-width:1075px) and (max-width: 1270px) {
    
      .welkom {
        box-sizing: border-box;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* centers the .welkom horizontally */
        display: block; /* centers the .welkom contents horizontally */
        border: solid white;
        border-radius: 30px;
        top: 130px;
        width: 500px;
        height: 235px;
        background-color: rgba(0, 0, 0, 0.5)
      }
}

}

@media only screen and (min-width:769px) and (max-width: 1920px) {

    .welkom {
        box-sizing: border-box;
        position: absolute;
        left: 50%;
        transform: translateX(-50%); 
        display: block; 
        border: solid white;
        border-radius: 30px;
        top: 130px;
        width: 500px;
        height: 193px;
        background-color: rgba(0, 0, 0, 0.5)
      }

      .welkom h1 {
        position:relative;
        top:0px;
        color: white;
        margin-top: 24px;
        padding-top: 5px;
        max-width: 830px;
        text-align: center;
        z-index: 100;
        font-size: 20px;
      }
      
      .welkom h2 {
        display:block;
        margin-top: -8px;
        color: white;
        max-width: 830px;
        width: 100%;
        text-align: center;
        font-size: 346%;
        z-index:100;
        }
        .container {
          display: flex;
          position: relative;
          width: 100%;
          top: 400px;
          margin-left: auto;
          margin-right: auto;
      }
      footer {
        position:relative;
        top: 544px;
      height: auto;
      padding: 10px;
    }
}
