* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  font-family: "Bodoni", serif;
}

body.helvetica-font {
  font-family: "Helvetica", sans-serif;
}

nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 30px;
  background: linear-gradient(90deg, #343434, #e5e4e2);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list.active {
  display: grid;
  grid-template-columns: 1fr;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #343434, #e5e4e2);
}

li {
  padding: 15px 30px;
  line-height: 20px;
  font-size: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.nav-list li {
  width: 100%;
}

li a:hover,
.active {
  transform: scale(1.1);
  background-color: #000000;
  border-radius: 10px;
  padding: 8px;
  color: white; /* Ensure text color is white when active */
}

li.active {
  background-color: #000000;
  border-radius: 10px;
  border: 3px solid #000000;
}

li a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.headerhome {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
}

.headerhome img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 85%;
}

.headerhome h1 {
  position: absolute;
  bottom: 22%;
  color: white;
  font-size: 45px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: solid 3px;
  border-radius: 18px;
  width: 33%;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  margin-bottom: 20px;
}

.mainhome {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 25px;
  justify-items: center;
  align-items: start;
}

.mainhome section {
  margin-top: 25px;
}

.mainhome figure {
  margin-top: 20px;
  border: solid;
  border-radius: 25px;
  border-width: 5px;
  padding: 20px;
  width: 70%;
  margin-top: 15px;
  margin: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.mainhome figure img {
  text-align: center;
}

.mainhome section figure h3,
.mainhome section figure p {
  text-align: left;
}
.mainhome section figure h3 {
  margin-top: 5%;
  font-size: 35px;
}
.mainhome section figure p {
  line-height: 25px;
  font-size: 18px;
  padding-top: 5px;
  padding-bottom: 20px;
}
.mainhome section figure a {
  text-decoration: none;
  border: solid;
  border-radius: 15px;
  padding: 8px;
  background-color: #e5e4e2;
  color: black;
  transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}
.mainhome section figure a:hover {
  transform: scale(1.1);
  background-color: beige;
  padding: 8px;
  text-align: left;
}

.footerbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: linear-gradient(90deg, #343434, #e5e4e2);
  margin-top: 25px;
  padding: 20px;
  text-align: center;
  gap: 20px;
  border: solid;
  border-width: 3px;
  border-color: rgb(107, 106, 106);
}

.footerbar h4 {
  grid-column: span 3;
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.footersection {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: auto;
}

.footersection li {
  color: black;
  border: solid;
  border-radius: 5px;
  font-size: 14px;
}

.headerhelvetica {
  display: grid;
  grid-template-columns: 1fr;
}

.headerhelvetica h1 {
  display: grid;
  grid-column-start: 1;
  justify-content: center;
  justify-self: center;
  font-size: 55px;
  border: solid;
  border-radius: 25px;
  text-align: center;
  margin-top: 15px;
  padding: 8px;
  width: 85%;
}

.mainhelvetica {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 25px;
  margin: 15px;
}

.mainhelvetica figure {
  display: contents;
}

.mainhelvetica figure img {
  margin-top: 10px;
  grid-column-start: 1;
  justify-self: right;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.mainhelvetica figure h2 {
  grid-column-start: 2;
}

.mainhelvetica figure h2 {
  text-align: center;
  font-size: 35px;
  margin-top: 25px;
  grid-row-start: 1;
  width: 90%;
}

.mainhelvetica figure p {
  grid-column-start: 2;
  grid-row-start: 1;
  align-self: center;
  padding: 15px;
  font-size: 14px;
  line-height: 22px;
  width: 90%;
}

.mainhelvetica aside {
  margin-left: 10%;
  padding-left: 9%;
  margin-top: 7%;
  line-height: 22px;
}

.mainhelvetica section {
  justify-content: center;
  justify-self: center;
  grid-column-start: 2;
  grid-row-start: 2;
}

.mainhelvetica section h2,
.mainhelvetica section p {
  grid-column-start: 2;
}

.mainhelvetica section h2 {
  text-align: center;
  font-size: 35px;
  margin-top: 50px;
  grid-column-start: 2;
  grid-row-start: 2;
  width: 90%;
}

.mainhelvetica section p {
  grid-column-start: 2;
  grid-row-start: 2;
  align-self: center;
  padding: 15px;
  font-size: 14px;
  line-height: 22px;
  width: 90%;
}

.mainhelvetica a {
  grid-row-start: 2;
  grid-column-start: 2;
}

.back-to-home {
  display: block;
  text-align: center;
  margin: 20px auto;
  font-size: 16px;
  text-decoration: none;
  color: #000;
}

.abstractie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 10px;
  justify-items: center;
  align-items: center;
  padding: 20px;
}

/* Individual Image Classes for Control */
.img-1 {
  grid-column: span 2;
}
.img-2 {
  grid-column: span 2;
}
.img-3 {
  grid-column: span 1;
}
.img-4 {
  grid-column: span 1;
}
.img-5 {
  grid-column: span 1;
}
.img-6 {
  grid-column: span 1;
}
.img-7 {
  grid-column: span 1;
}
.img-8 {
  grid-column: span 1;
}
.img-9 {
  grid-column: span 2;
}
.img-10 {
  grid-column: span 2;
}
.img-11 {
  grid-column: span 1;
}
.img-12 {
  grid-column: span 2;
}
.img-13 {
  grid-column: span 1;
}
.img-14 {
  grid-column: span 2;
}

/* Responsive Design for Phones */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
  }

  .nav-list.active {
    display: grid;
  }

  nav {
    grid-template-columns: auto;
    grid-template-rows: auto auto;
  }

  .nav-list li {
    padding: 10px;
  }

  .headerhome h1 {
    font-size: 30px;
    width: 80%;
  }

  .mainhome {
    grid-template-columns: 1fr;
    grid-column-gap: 15px;
  }

  .mainhome figure {
    width: 90%;
  }

  .footerbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footersection {
    grid-template-rows: auto;
  }

  .headerhelvetica {
    display: grid;
    grid-template-columns: 1fr;
  }

  .headerhelvetica h1 {
    font-size: 35px;
    border-width: 2px;
    padding: 5px;
    width: 80%;
  }

  .mainhelvetica {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    column-gap: 15px;
    margin: 10px;
  }

  .mainhelvetica figure {
    display: contents;
  }

  .mainhelvetica figure img {
    grid-column-start: 1;
    justify-self: center;
    width: 80%;
  }

  .mainhelvetica figure h2 {
    font-size: 28px;
    width: 80%;
  }

  .mainhelvetica figure p {
    padding: 10px;
    font-size: 12px;
    width: 80%;
  }

  .mainhelvetica aside {
    margin-left: 0;
    padding-left: 0;
    margin-top: 5%;
    width: 80%;
    line-height: 20px;
  }

  .mainhelvetica section {
    grid-column-start: 1;
    grid-row-start: auto;
    width: 80%;
  }

  .mainhelvetica section h2 {
    font-size: 28px;
    margin-top: 30px;
    width: 80%;
  }

  .mainhelvetica section p {
    padding: 10px;
    font-size: 12px;
    width: 80%;
  }

  .mainhelvetica a {
    grid-column-start: 1;
    width: 80%;
  }
}
