body {
  font-family: Arial, Helvetica, sans-serif;
  overflow: auto;
}

body.index-background {
  background-image: url('index-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* probeer een soort lijn te maken als een web die aangeeft op welke pagina je je bevindt */
.line-index {
  width: 90%;
  height: 5px;
  border-top: 5px black;
  line-height: 80%;
}

/* The sidebar menu */
.sidenav {
  width: 160px;
  height: 700px;
  position: fixed;
  z-index: 1;
  top: 1;
  left: 1;
  overflow-x: hidden;
  padding-top: 1px;
}

/* The navigation menu links */
.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 25px;
  color: #6495ed;
  display: block;
  font-family: Arial, Helvetica, sans-serif;
}

.sidenav a:hover {
  font-family: 'Courier New', Courier, monospace;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.subnav {
  float: left;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.subnav .subnavbtn {
  all: unset;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  color: #6495ed;
  padding: 6px 8px 6px 16px;
  display: block;
  background-color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.navbar a:hover,
.subnav:hover .subnavbtn {
  background-color: white;
}

.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: white;
  width: 100%;
  z-index: 1;
}

.subnav-content a {
  float: left;
  color: #6495ed;
}

.subnav-content a:hover {
  background-color: #eee;
  color: #6495ed;
}

.subnav:hover .subnav-content {
  display: block;
}




/* Wrapper for both textboxes */
.textbox-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

/* Adjust the textboxes */
.textbox1 {
  margin-left: 160px;
  padding: 0px 10px;
  height: 200px;
  width: 40%;
  border: 1px solid black;
  background-color: white;
  overflow: scroll;
}

.textbox2 {
  margin-left: 160px;
  padding: 0px 10px;
  height: 650px;
  width: 100%;
  background-color: white;
  overflow: scroll;
}



/* On smaller screens, adjust sidebar */
@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 18px;
  }
}

.project1,
.project2,
.project3,
.project4,
.project5 {
  position: relative;
  margin-left: 250px;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;       /* Zet kinderen naast elkaar */
  align-items: flex-start; /* Zorgt dat alles bovenaan begint */
  gap: 20px;           /* Ruimte tussen afbeelding en div */
  margin-bottom: 20px; /* Ruimte tussen projecten */
}



.project1 img,
.project2 img,
.project3 img,
.project4 img,
.project5 img {
  width: 300px;
  height: 225px;
}

.center {
   display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}
.center-video {
   display: block;
  margin-left: auto;
  margin-right: auto;
  width: 640px;
  height: 360px;
}

.image-row {
  display: flex;
  justify-content: space-between;
}

.image-row img {
  width: 49.5%; /* slightly less than 50% to leave a small gap */
  object-fit: cover; /* optional, keeps image tidy */
  display: block; /* removes whitespace below images */
}

.left, .right {
  display: inline-block;
  vertical-align: top; /* Optional: aligns tops of the elements */
  width: 45%;
}

.left {
  margin-right: 0px;
}

.right {
  margin-left: 0px;
}



.popupDiv {
  display: none;
  position: fixed;
  top: 10px;
  left: 580px; /* ruimte laten voor de sidebar (160px + marge) */
  width: calc(99% - 580px); /* vul breedte minus sidebar */
  height: 97%;
  background-color: white;
  border: 2px solid black;
  z-index: 1000;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
}

/* AANGEPAST: geen grid layout meer */
.column {
  display: none; /* uitgeschakeld voor nieuwe layout */
}

/* AANGEPAST: thumbnails rechts verticaal */
.thumbnail-column {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  gap: 10px;
  overflow-y: auto;
  height: 100vh;
  box-sizing: border-box;
  position: fixed;
  right: 0;
  top: 0;
}

/* AANGEPAST: kleine afbeeldingen */
.thumbnail-column img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  cursor: pointer;
}

.thumbnail-column img:hover {
  opacity: 1;
}

/* AANGEPAST: layout voor vergroting + thumbnails */
.image-layout {
  display: flex;
  flex-direction: row;
  margin-left: 160px; /* ruimte voor sidebar */
  margin-right: 120px; /* ruimte voor thumbnails */
  height: 100vh;
  box-sizing: border-box;
}

/* AANGEPAST: vergrote afbeelding container */
.container {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  overflow: auto;
  height: 100vh;
}

.container img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: auto;
}
