nav {
  display: flex;
  justify-content: center;
  background-color: #ccc; 
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 75px;
}

nav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

nav li {
  padding: 1rem 0;
}

nav li:nth-child(1) {
  background-color: #b5ae7d; 
}

nav li:nth-child(2) {
  background-color: #aaa67d; 
}

nav li:nth-child(3) {
  background-color: #c2c1a3; 
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

html {
  scroll-behavior: smooth; 
}

.hero {
  background-image: url('../afbeeldingen/Skyfall2.png');
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
  height:165vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}


main {
  display: grid;

  grid-template-columns: 1fr 1fr ;
  grid-template-rows: 20% 1fr; 
  height: 400px;
  margin-bottom: 80px; 
}

main img {
  width: 50%;
  padding-top: 30px;
  border-radius: 15px;
 
  margin-left: 20%;
  
}

Main h2 {
  margin-top: 10px;
  font-size: 55px;
  grid-column-start: 2;
  grid-row: 1;
  
}

main p {
  width: 80%;
  color: white;
  background-color: black;
  border-radius: 12px;
  font-size: 32px;
  grid-column: 2;
  grid-row: 2;
  margin-top: 20px; 
  padding: 20px; 
  text-align: center; 
}

.horizontal-section {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr; 
  gap: 20px; 
  margin-top: 50px; 
  align-items: center; 
}

.horizontal-section .text-block {
  margin-left: 10px;
  margin-right: 25px;
  text-align: justify; 
  font-size: 18px;
  color: white; 
  background-color: black; 
  border-radius: 10px; 
  padding: 20px; 
  line-height: 1.6; 
}

.horizontal-section .image-block img {
  width: 100%; 
  border-radius: 5px;
  display: block;
  margin: 0 auto; 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); 
}

.horizontal-section-with-title {
  display: grid;
  grid-template-columns: 1fr 2fr; 
  gap: 20px; 
  align-items: center; 
  margin-top: 80px; 
}

.horizontal-section-with-title .image-container .image-block img {
  margin-left: 15px;
  width: 100%; 
  border-radius: 10px; 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); 
}

.horizontal-section-with-title .text-block {
  text-align: left; 
}

.horizontal-section-with-title .section-title {
  font-size: 48px; 
  color: black;
  margin-bottom: 20px; 
  font-weight: bold;
}

.horizontal-section-with-title .section-text {
  font-size: 18px; 
  color: white; 
  background-color: black; 
  border-radius: 10px; 
  line-height: 1.8; 
  padding: 20px; 
}

.horizontal-section-with-title {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; 
  gap: 20px; 
  align-items: stretch; 
  margin-top: 80px; 
}

.horizontal-section-with-title .image-block img {
  width: 100%; 
  border-radius: 10px; 
  margin-left: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); 
}

.horizontal-section-with-title .text-block {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  text-align: left; 
}

.horizontal-section-with-title .section-title {
  font-size: 48px; 
  color: black;
  margin-bottom: 20px; 
  font-weight: bold;
}

.horizontal-section-with-title .section-text {
  margin-left: 10px;
  margin-right: 25px;
  font-size: 18px; 
  color: white; 
  background-color: black; 
  border-radius: 10px; 
  line-height: 1.8; 
  padding: 20px; 
}

.section-title {
  text-align: center;
  font-size: 60px; 
  margin-bottom: 25px; 
  color: black;
  font-weight: bold;
}

.vertical-section {
  text-align: center;
  margin-top: 80px; 
}

.vertical-section .image-block img {
  width: 60%; 
  border-radius: 10px; 
  margin-bottom: 20px; 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); 
}

.vertical-section .section-title {
  font-size: 48px; 
  color: black;
  margin-bottom: 20px; 
  font-weight: bold;
}

.vertical-section .section-text {
  font-size: 18px; 
  color: black;
  line-height: 1.8; 
  width: 80%;
  margin: 0 auto; 
}

.image-container .image-block img {
  width: 80%; 
  border-radius: 10px; 
  display: block;
  margin: 0 auto; 
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); 
}

footer{
  color: white;
  background-color: black;
  text-align: center;
  height: 100px;
}


footer p, h1 {
  margin-top: 40px;
}

body {
  background-color: lightblue;
}

@media only screen and (max-width: 480px) {
  body {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  nav ul {
    grid-template-columns: 1fr;
  }

  nav li {
    text-align: center;
    padding: 10px 0;
  }

  .hero {
    height: auto;
    text-align: center;
    padding: 20px;
  }

  main,
  .horizontal-section,
  .horizontal-section-with-title,
  footer {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
  }

  main img,
  .horizontal-section .image-block img,
  .horizontal-section-with-title .image-block img,
  .image-container .image-block img {
    width: 90%;
    margin: 20px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  }

  main h2,
  .horizontal-section-with-title .section-title,
  .section-title {
    font-size: 24px;
    margin: 40px auto 10px; 
    text-align: center;
    position: relative; 
    z-index: 1; 
  }

  .horizontal-section .section-title {
    font-size: 24px;
    margin: 20px auto; 
    text-align: center;
    position: relative;
    z-index: 2; 
  }

  .horizontal-section .text-block {
    margin-top: 40px; 
  }

  .horizontal-section .image-block img {
    margin-top: 20px; 
  }

  main p,
  .horizontal-section .text-block,
  .horizontal-section-with-title .text-block,
  footer p,
  footer h1 {
    font-size: 16px;
    line-height: 1.6;
    width: 90%;
    
    color: white;
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto; 
    text-align: center;
  }

  .horizontal-section,
  .horizontal-section-with-title {
    display: block;
  }

  .text-block,
  .image-block,
  .image-container {
    width: 100%;
  }

  footer {
    background-color: black; 
    color: white; 
    text-align: center;
    padding: 20px; 
    width: 100%; 
    margin: 0; 
  }

  footer p, footer h1 {
    margin: 10px 0; 
    font-size: 16px; 
  }

  .mobile-nav {
    display: none;
  }
  
 
 
    .mobile-nav {
      display: block;
      background-color: #333;
      padding: 10px;
      position: relative;
    }
  
    .menu-toggle {
      display: none;
    }
  
    .hamburger {
      display: block;
      width: 30px;
      cursor: pointer;
    }
  
    .hamburger span {
      display: block;
      height: 3px;
      background: #fff;
      margin: 5px 0;
      transition: all 0.3s;
    }
  
   
    .nav-menu {
      display: none;
      list-style: none;
      padding: 0;
      margin-top: 10px;
      background-color: #333;
    }
  
    .nav-menu li {
      border-top: 1px solid #444;
    }
  
    .nav-menu li a {
      display: block;
      padding: 10px;
      text-decoration: none;
      color: white;
    }
  
    
    .menu-toggle:checked + .hamburger + .nav-menu {
      display: block;
    }
  }
  @media (max-width: 768px) {
    nav:not(.mobile-nav) {
      display: none;
    }


  
    
  }


