/* ==========================================
   IMPORTS
========================================== */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* ==========================================
   GLOBAL STYLES
========================================== */

/* Box-sizing and Global Reset */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* hoogte van header */
}

body {
  margin: 0;
  padding: 0;
  background-color: #ededed;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* General Font Settings */
* {
  font-family: roboto;
}

/* ==========================================
   HEADER STYLES
========================================== */

/* Header Styling */
header {
  position: relative;
}

/* ==========================================
   SECTION STYLES
========================================== */

h2 {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 200%;
}

h3 {
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-size: 150%;
}

.underline {
  border-bottom: 2px solid lightgrey;
  padding-bottom: 4rem;
}

section {
  padding: 0 2rem;
}

.lastline {
  margin-bottom: 4rem;
}

/* ==========================================
   FOOTER STYLES
========================================== */

footer {
  background-color: #1a2526;
  color: #ededed;
  text-align: center;
  padding: 1.5rem 0;
}

/* ==========================================
   LINK STYLES
========================================== */

a {
  text-decoration: none;
  font-weight: bold;
  color: #1a2526;
}

/* ==========================================
   FIGURE STYLES
========================================== */

figure {
  padding-top: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  margin: auto;
  justify-content: space-between; /* Zorgt ervoor dat de afbeeldingen aan de uiteinden staan */
}

figure img {
  max-width: 500px; /* Zorgt ervoor dat de afbeeldingen niet breder zijn dan hun container */
  height: auto; /* Behoudt de verhoudingen van de afbeeldingen */
  margin: auto;
  margin-bottom: 2rem;
  box-shadow: rgb(0 0 0 / 34%) 6px 4px 13px 1px;
}

figure img:nth-child(n + 2) {
  display: none;
}

/* ==========================================
   NAVIGATION STYLES
========================================== */

/* Navbar Styling */
nav {
  position: fixed;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a2526;
  color: #ededed;
  padding: 0.5rem 2rem;
}

.logo {
  width: 3rem;
}

/* Navigation Links */
.nav-links {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #1a2526;
  padding: 1rem;
  margin-right: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: lightgray;
  font-size: 1rem;
  font-weight: 400;
}

.nav-links.active {
  display: flex;
  background-color: #1a2526;
  padding-bottom: 2rem;
}

/* Hover Effects */
.nav-links a:hover {
  color: white;
  font-weight: bold;
}

/* Current Navigation Item */
.current-nav {
  color: white !important;
  font-weight: bold !important;
}

/* Hamburger Menu */
.hamburger {
  margin-right: 1rem;
  position: relative;
  background: none;
  border: 0.5px solid #ededed;
  border-radius: 5px;
  color: #ededed;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================
   HERO STYLES
========================================== */

.hero {
  background-image: url(../Images/Achtergrond1.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 50vh;
  color: #ededed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin: 2rem 2rem 1rem 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* dropshadow voor betere leesbaarheid */
}

.hero p {
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* dropshadow voor betere leesbaarheid */
}

/* ==========================================
   BUTTON STYLES
========================================== */

/* General Button Styling */
.button {
  margin-top: 1rem;
  background-color: #007bff;
  color: #ededed;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
}

.button:hover {
  background-color: #0056b3;
}

/* Footer Buttons */
footer .button {
  display: inline-block;
  margin: 1rem;
}

.buttoncontainer {
  display: flex;
  justify-content: center; /* Horizontaal centreren */
  align-items: center;
  margin-bottom: 2rem;
}

/* ==========================================
   CARD STYLES
========================================== */

.cardcontainer {
  margin-bottom: 4rem;
}

.card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 1rem;
  margin: 2rem 0;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.card h3 {
  margin: 1rem;
  color: #1a2526;
  text-align: center;
  font-size: 1.5rem;
}

.card p {
  color: #1a2526;
}

.card a {
  display: inline-block;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========================================
   SLIDESHOW STYLES
========================================== */

.mySlides {
  display: none;
  width: 100%;
  position: relative;
}

img {
  vertical-align: middle;
  width: 100%;
  border-radius: 15px;
}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden; /* Prevents overflow */
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 0.5rem;
  margin-top: -2rem;
  color: white;
  font-weight: bold;
  font-size: 2rem;
  transition: 0.6s ease;
  border-radius: 5px;
  background-color: #007bff;
  border: none;
  user-select: none;
  z-index: 10; /* Ensure buttons are above the images */
}

.prev {
  left: 2rem;
}

.next {
  right: 2rem;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: #0056b3;
}

/* Caption text */
figcaption {
  color: #f2f2f2;
  position: absolute;
  bottom: 0;
  font-size: clamp(0.5rem, 4vw, 2rem);
  width: 100%;
  text-align: center;
  background-color: rgba(26, 37, 38, 0.9);
  height: 50%;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  white-space: nowrap;
}

figcaption p {
  margin: 0;
  font-size: clamp(0.5rem, 4vw, 2rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Bar Container */
.barcontainer {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.bar {
  cursor: pointer;
  height: 0.5rem;
  width: 4rem;
  margin: 2px;
  background-color: #bbb;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.active,
.bar:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 0.3s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   CONTACT FORM STYLES
========================================== */

#contact-form {
  background-color: #ffffff;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 4rem;
}

#contact-form h2 {
  text-align: center;
  font-size: 2rem;
  color: #1a2526;
  margin: 2rem 0 4rem 0;
}

#contact-form p {
  text-align: left;
  color: #555;
  margin-bottom: 2rem;
}

/* Form Elements */
form p {
  margin-bottom: 1rem;
}

form label {
  display: block;
  color: #1a2526;
  margin-bottom: 1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Submit Button */
button[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background-color 0.3s ease;
  margin-bottom: 2rem;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* ==========================================
   MEDIA QUERIES
========================================== */

/* Tablet and Larger Screens */
@media (min-width: 768px) {
  figcaption {
    height: 33%;
  }

  figure img:nth-child(2) {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    width: auto;
    padding: 0;
  }

  .hamburger {
    display: none;
  }

  .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2rem;
  }

  .card img {
    width: 50%;
    height: auto;
    object-fit: cover;
    margin-right: 2rem;
  }

  .card .text-container {
    display: flex;
    flex-direction: column;
  }

  .card h3 {
    text-align: center;
    margin: 0 0 0.5rem 0;
  }

  .card p {
    margin: 0;
    text-align: left;
  }

  .card .text-container .button {
    width: auto;
    align-self: flex-start;
  }

  figure {
    gap: 2rem;
  }

  figure img {
    width: calc(50% - 1rem);
    margin-bottom: 0;
  }
}

/* Desktop and Larger Screens */
@media (min-width: 1200px) {
  main {
    max-width: 1200px;
    margin: auto;
  }

  .slideshow-container {
    max-width: 1200px;
  }

  figure img {
    width: calc(33.33% - 1.5rem);
    margin-bottom: 0;
  }

  figure img:nth-child(3) {
    display: block;
  }
}
