/* Universal border-box with inheritance */
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
/* Typography */
h1,
h2,
h3,
nav {
  font-family: "Raleway", sans-serif;
}
body,
p {
  font-family: "Open Sans", sans-serif;
}
/* Body */
body {
  background-color: #91c9db;
  padding: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Header and Navbar for Mobile */
header {
  background-color: lightblue;
  color: white;
  padding: 0.625rem;
  border-radius: 0.625rem;
  text-align: center;
}

header nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none; /* Initially hidden for collapsible behavior */
}

header nav ul.active {
  display: flex; /* Show when active */
  flex-direction: column;
  gap: 0.5rem;
}

header nav li {
  background-color: rgb(143, 205, 226);
  padding: 1rem;
  border: 1px solid rgb(143, 205, 226);
  border-radius: 0.625rem;
  text-align: center;
}

header nav a {
  color: white;
  text-decoration: none;
}

header nav li:hover,
header nav .active {
  background-color: lightblue;
  font-weight: bold;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Main content */
main,
aside {
  padding: 1.25rem;
  border-radius: 0.3125rem;
  background-color: white;
  margin-top: 1rem;
}

main {
  margin: 0 auto;
  max-width: 800px;
}

/* Asides */
.thomasmore,
.samenwerkingen {
  margin-top: 1rem;
  background-color: #fff;
  border-radius: 0.3125rem;
  padding: 1.25rem;
}

/* Footer with social icons */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background-color: lightblue;
  color: white;
  border-radius: 0.625rem;
  margin-top: 1rem;
}

.footer-text {
  flex: 1;
}

.social-media-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icon img {
  width: 100%;
  height: 100%;
}

.pdf-container {
  position: relative;
  width: 100%; /* Full width of the container */
  padding-top: 75%; /* Aspect ratio of 4:3 */
  overflow: hidden;
}

.pdf-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Scale the embed to fit the container */
  height: 100%;
  border: none;
}

/* Images and Typography */
img {
  max-width: 100%;
  height: auto;
}

h2 {
  font-size: 1.5rem;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

/* Grid layout for larger screens */
@media (min-width: 768px) {
  body {
    width: 72.5rem; /* 1200px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr; /* Main content + aside */
    grid-template-areas:
      "header header"
      "main thomasmore"
      "main samenwerkingen"
      "footer footer";
    gap: 1.25rem;
  }

  header {
    grid-area: header;
  }

  header nav {
    flex-direction: row;
    justify-content: center;
  }

  header nav ul {
    display: flex; /* Always show on larger screens */
    flex-direction: row;
    gap: 1rem;
  }

  .nav-toggle {
    display: none; /* Hide the toggle button on larger screens */
  }

  main {
    grid-area: main;
  }

  .thomasmore {
    grid-area: thomasmore;
  }

  .samenwerkingen {
    grid-area: samenwerkingen;
  }

  footer {
    grid-area: footer;
    flex-direction: row;
  }
}
