
/* hamburger menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    display: none; /* Initially hidden */
    z-index: 1;
  }
  
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  /* Hamburger Icon */
  .hamburger {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 2;
  }
  
  .hamburger span {
    display: block;
    height: 4px;
    background-color: black;
    margin: 5px 0;
    transition: 0.3s ease;
  }
  
  /* Hidden Checkbox */
  #menu-toggle {
    top: 0;
    visibility: hidden;
  }
  
  /* Sliding Menu */
  .menu {
    position: fixed;
    top: 0;
    visibility: hidden;
    width: 250px;
    height: 100vh;
    background-color: #333;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: 0.3s ease;
    z-index: 1;
  }
  
  .menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 0;
  }
  
  .menu a:hover {
    background-color: #444;
  }
  
  /* Open menu when checkbox is checked */
  #menu-toggle:checked ~ .menu {
    visibility: visible;
  }

  #menu-toggle:checked + .hamburger span {
    display: none; /* Removes the lines from the layout */
  }
/* shows the user where to click to close the menu*/ 
  #menu-toggle:checked {
    position: fixed;
    visibility: visible;
  }
  
  

/* css voor de hoofdpagina */ 
/*
begin met het artikel aan te passen op de hoofdpagina
*/ 
/*algemene css */

body 
{
  font-size: 0.875rem; /* 14px */
}
h1
{
    text-align: center;
}

footer
{
    margin-left: 40vw;
    margin-top: 10vw;
}

article 
{
  font-family: Arial, Helvetica, sans-serif;
}


/* hoofdpagina */
#hoofdpagina #Napoleon
{
    margin-left: 40vw;
    top: 0;
    position: fixed;
}
#hoofdpagina #tekst
{  
    vertical-align: top;
    margin-left: 30vw;
    padding-top: 20vh;
    font-weight: 400;
    font-style: normal;
}
#hoofdpagina footer{
  margin-top: 30vw;
}
/* css voor zijn persoonlijk leven*/
#personal #titel
{
    margin-left: 40vw;
    
}

#personal #tekst
{  
    vertical-align: top;
    margin-left: 30vw;
    padding-top: 10vh; 
}


/*css voor zijn militaire carriëre*/
#military #titel
{
    margin-left: 40vw;
    top: 0;
   
}
#military #tekst
{  
    vertical-align: top;
    margin-left: 30vw;
    padding-top: 10vh;
}

#military h3
{
  font-family: "Playwrite AU VIC Guides", serif;
}

#military h2
{
  font-family: 'Times New Roman', Times, serif;
}

/*css voor de foto gallerij */
#Photo header
{
  margin-left: 10vw;
}
#Photo .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px;
}

#Photo figure {
    width: 300px; 
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#Photo figure img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

#Photo figcaption {
    padding: 8px 12px;
    font-size: 0.9rem;
    background-color: #eee;
    border-top: 1px solid #ddd;
}


/*css voor de tips*/
#tips #titel
{
    margin-left: 40vw;
    top: 0;
   
}
#tips #tekst
{  
    vertical-align: top;
    margin-left: 30vw;
    padding-top: 10vh; 
}

/*css het contact formulier */

#contact form {
  display: grid;
  gap: 10px;
  max-width: 100px;
  width: 100%;
  margin-left: 45vw;
  box-sizing: border-box;
}

#contact header
{
  margin-left: 20vh;
}

@media screen and (min-width:800px) {
  /*overschrijf voor de tablet */ 
  body{
    font-size: 1rem; /* 16px */
  }
  #Photo figure img {
    opacity: 1;
    border-color: red;
    
}

#contact form
{
  max-width: 600px;
}


  }

  @media screen and (min-width: 1200px) 
  {
    body{
      font-size: 1.2rem; /* 19px */
    }
  .hamburger
  {
    display: none;
  }
 .menu
 {
  display: block;
  visibility: visible;
  width: 150px;
 } 
}
