body {
  background: #F9F8FD;
  font-family: 'Lexend Exa', sans-serif;
  margin: 0px;

}

header .balk {
  box-sizing:border-box;
  position:absolute;
  top: 0px;
  left: 0px;
  z-index: -10;
  width: 100%;
  height: 100px;
  background-color: black;
}
header {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to botttom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
}

header .agplaatje {
  background-image: url('../images/cafetaria.jpg');  
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: absolute;
  Z-index: -1000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  opacity: 0.8;
}

header h1 {
  position:absolute;
  top: 5px;
  left: 25px;
  opacity: 1;
  color: white;
  background-color: black;
  font-size: 2.5em;  
}

.welkom {
  box-sizing: border-box;
  position: absolute;
  display: block;
  left: 50%;
  transform: translateX(-50%); /* centers the .welkom horizontally */
  display: block; /* centers the .welkom contents horizontally */
  border: solid white;
  border-radius: 30px;
  top: 210px;
  width: 40%;
  height: 26%;
  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: 438%;
  z-index:100;
  }

  .container {
    display: flex;
    position:relative;
    width: 80%;
    top:570px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .box {
    flex: 1;
    width: 400px;
    height: 180px;
    padding: 20px;
    border: 1px solid white;
    background-color: #f1f1f1;
    margin-left: 50px;
    text-align: center;
    border-radius: 5px;
    background-color: rgba(0,0,0, 0.7);
    
  }

  .box p {
    position:relative;
    margin-top: -5px;
    opacity: 1;
    color: white;
    font-size: 36px;
    font-weight: bold;
  
  }

  .box h3 {
    position:relative;
    margin-top: 0px;
    opacity: 1;
   color:rgb(122, 122, 122);
   text-transform: uppercase;
   font-size: 20px;

  }

  .box h4 {
    position:relative;
    margin-top: -25px;
    opacity: 1;
    font-size: 16px;
    color: darkgrey;
  }

  .box a{
    opacity: 1;
    color: #2375D8;
    cursor: pointer;
    text-decoration:none;
  }

  .box a:hover {
    color: white;
  }

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;
}


nav {
  position: absolute;
  top: 27px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  border: 2px solid white;
  border-radius: 30px;
  animation: slide-in 1s ease-out;
  cursor: pointer;
  z-index:1000;
}

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: 40px;
  }
  li {
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 10px;
    transition: background 0.2s;
    a {
      color: grey;
      text-decoration: none;
      text-transform: uppercase;
      transition: color 0.2s;
      }
      .onze-service {
        cursor: default;
    }

    ul {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      display: block;
      margin: 12px -12px;
      padding: 0;
      background: black;
      border: 2px solid darkgrey;
      border-right: 2px solid darkgrey;
      border-bottom: 2px solid darkgrey;
      border-radius: 5px;
      transition: opacity 0.2s, visibility 0.2s;
      li {
        margin: -2px 0 0 -2px;
        width: calc(100% - 20px);
        line-height: 1.7;
        a {
          color: grey;
        }
      }
    }
    &:hover {
      background: rgb(55, 55, 55);
     
      a {
        color: #F9F8FD;
      }
      ul {
        visibility: visible;
        opacity: 1;
        box-shadow: 0px 3px 5px 2px #EBECF1;
        li {
          a {
            color: #F9F8FD;
          }
        }
      }
    }
  }
}

@keyframes slide-in {
  0% {
    top: -50px;
  }
  40% {
    top: 20px;
  }
  70% {
    top: 10px;
  }
  100% {
    top: 15px;
  }
}


footer { 
  box-sizing:border-box;
  position: fixed; 
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 10px;
  background-color: black;
  text-align: center;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  flex-direction: column;
  z-index:-500;
}
  
  footer p {
  margin-top: 25px;
  color: white;
  font-size: 20px
  
  
  }
  
  footer h1 {
  margin-top: -15px;
  font-size: 36px;
  color: white;
  }

  .topnav {
    position:absolute;
    left:15px;
    top:21px;
    z-index:10;
    overflow: hidden;
    background-color: black;
    color:white;
  }
  
  .topnav a {
    float: left;
    display: none;
    color: white;
    text-align: center;
    padding: 6px 16px;
    text-decoration: none;
    font-size: 24px;
  }
  
  .topnav a:hover {
    background-color: black;
    color: white;
  }

  .topnav p a {
    float: left;
    display: none;
    color: grey;
    text-align: center;
    margin-top: -30px;
    margin-bottom: -20px;
    text-decoration: none;
    font-size: 24px;
  }

  .topnav p a:hover {
    background-color: black;
    color: grey;
  }

 
  
  .topnav .icon {
    display: none;
  }
  