body {
  display: flex;
  flex-direction: column;
  align-items: center;
}


* {
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
  }

  html, body {
    margin: 0;
    height: 100%;
overflow-x: hidden;
width: 100%;
background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontaal centreren */
}


  /* NAVBAR */
  .top-nav {
position: sticky;
top: 0;
z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #77aacc;
  background: linear-gradient(to left, #77aacc, #fff);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: #FFF;
min-height: 50px;
    height: 50px;
    line-height: 50px;

  padding: 1em;
width: 100%;
}

.top-nav a {
  color: #fff;              /* witte tekst */
  text-decoration: none;    /* geen onderstreping */
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

  .logo {
    font-weight: bold;
    font-size: 1.5em;
  }

  .menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}


 .menu > li {
  margin: 0 1rem;
  overflow: hidden;
}

.menu a {
    line-height: inherit;
}


  .menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #menu-toggle {
    display: none;
  }

  .menu-button,
  .menu-button::before,
  .menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  }

  .menu-button::before {
    content: '';
    margin-top: -8px;
  }

  .menu-button::after {
    content: '';
    margin-top: 8px;
  }

  #menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0;
    transform: rotate(405deg);
  }

  #menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255,255,255,0);
  }

  #menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0;
    transform: rotate(-405deg);
  }


    .form-container {
        background-color: #f2f2f2;
        padding: 2rem;
        border-radius: 4px;
        box-shadow: 3px 3px 8px rgba(119,170,204,0.6);
        text-align: center;
        width: 100%;
        max-width: 400px;
margin-top: 40px;
    }

img{
padding: 3.5rem;
}

    h2 {
        margin-bottom: 1.5rem;
        color: #333;
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 1rem;

    }


    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="submit"] {
        padding: 0.8rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
    }

    input[type="submit"] {
        background-color: #77aacc;
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    input[type="submit"]:hover {
        background-color: #77aacc;
    }

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="submit"] {
    width: 100%;
    max-width: 100%;
}

    a {
        display: block;
        margin-top: 0.5rem;
        color: #3b82f6;
        text-decoration: none;
        font-size: 0.9rem;
    }

    a:hover {
        text-decoration: underline;
    }

    .error {
        color: red;
        text-align: center;
        margin-bottom: 1rem;
    }

/* Extra styling voor nette foutmeldingen */
.error-message {
    background-color: #ffe0e0;
    color: #b00000;
    border: 1px solid #ffb3b3;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}
.message.success {
  background-color: #e0ffe0;
  border: 1px solid #70c470;
  color: #2a662a;
}

.message.error {
  background-color: #ffe0e0;
  border: 1px solid #d66;
  color: #a00;
}

/* RESPONSIVE MOBIEL */
  @media (max-width: 768px) {

.form-container {
        padding: 1rem;
        margin-top: 20px;
    }
    img {
        padding: 2rem;
        max-width: 80%;
        height: auto;
    }

  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

#menu-toggle:not(:checked) ~ .menu {
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

#menu-toggle:checked ~ .menu {
  pointer-events: auto;
  height: auto;
}

  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #77aacc;
  }


  .menu > li:not(:last-child) {
    border-bottom: 1px solid #333;
  }

.menu a {
    line-height: 2.5rem;   /* past precies binnen de li hoogte */
    padding: 0;            /* geen extra padding nodig */
    display: flex;
    align-items: center;   /* verticale centrering */
    justify-content: center;
    width: 100%;
height: 20px;
}
}
