@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-family: "Lato", sans-serif;
  background-color: #f8f8f8;
  height: 100%;
}

/* Navigatiebalk */
nav {
  position: static;
  width: 100%;
  top: 0;
}

/* Logo  */
.nav__logo {
  float: left;
  margin: 14px 12px 12px 12px;
}

.nav__icoon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  background-color: #7a3cff;
  border-radius: 10px;
  padding: 8px 5px;
  font-size: 20px;
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.nav__titel {
  display: none;
}

/* Navigatielinks */
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  padding: 1rem;
  min-width: 5.2rem;
}

.nav__anchor {
  text-decoration: none;
  color: white;
  transition: background-color 0.2s;
}

.nav__anchor:hover {
  color: #5236df;
}

.nav__icoon:hover {
  background-color: #5236df;
}

.burger-icon {
  float: right;
  padding: 1rem;
  color: #5236df;
}

/* Footer */

body {
  min-height: 100vh;
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 100px 0 70px 0;
  width: 100%;
  margin-top: auto;
}

.footer__links {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  float: none;
  display: flex;
  justify-content: space-between;
  max-width: 300px;
}

.footer__link {
  display: flex;
  margin: 0 15px;
}

.footer__anchor {
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.footer__anchor:hover {
  background-color: #222;
  color: #7a3cff;
}

footer hr {
  width: 80%;
  border: 0;
  border-top: 1px solid #444;
  margin: 30px auto 15px auto;
}

footer p {
  font-size: 14px;
  color: #ccc;
  margin: 0;
}

.container {
  flex: 1;
  max-width: 88rem;
  display: grid;
  grid-template-areas:
    "nav"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 1rem;
  margin: 0 auto;
  background-color: white;
}

nav {
  grid-area: nav;
}

main {
  min-height: 80vh;
  grid-area: main;
}

.footer {
  grid-area: footer;
}

.main-titel {
  text-align: center;
  width: 70%;
  margin: 0 auto;
}

.toggle {
  display: none;
  position: absolute; /* over the page content instead of pushing it downwards */
  top: 3.15rem; /* underneath the logo instead of on top of it */
  width: 100%; /* full width menu */
  text-align: right;
  background-color: #333; /* background color for the toggle block */
}

@media screen and (min-width: 800px) {
  .burger-icon {
    display: none;
  }
  .toggle {
    position: static; /* no longer absolute, in the normal flow of the page lay-out */
    display: flex;
    justify-content: flex-end; /* aligns the menu items to the right */
    background-color: transparent;
  }

  .nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav__icoon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .nav__titel {
    display: flex;
    font-weight: bold;
    font-size: 18px;
    margin-left: 8px;
    color: black;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-bottom: 1px solid #ccc;
    height: 60px;
    line-height: 60px;
    padding: 0 20px;
    font-size: 16px;
    color: #333;
    position: sticky;
    top: 0;
  }

  .nav__links {
    float: right;
    display: flex;
    flex-direction: row;
  }

  .nav__links {
    margin-left: 20px;
  }

  .nav__anchor {
    text-decoration: none;
    color: #333;

    border-radius: 8px;
    transition: background-color 0.2s;
  }

  .nav__anchor--primary {
    background-color: #7a3cff;
    color: white;
    padding: 6px 14px;
  }
  .nav__anchor:hover {
    color: #5236df;
  }

  .nav__anchor--primary:hover {
    background-color: #5236df;
    color: white;
  }
}
