/* Basisstijl voor grotere schermen */
section.projecten {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.navbar ul {
  list-style-type: none;
  font-size: 23px;
  background-color: rgb(69, 69, 69);
  padding: 5px;
  margin-top: 60px;
  overflow: hidden;
  border-radius: 20px;
}

.navbar a {
  text-decoration: none;
  color: rgb(195, 195, 195);
  padding: 15px;
  display: block;
  text-align: center;
}

.navbar a:hover {
  background-color: rgb(106, 106, 106);
}

.navbar li {
  float: left;
}

body {
  background-image: url(../images/space.gif);
  background-size: cover;
  height: 100vh;
  padding: 0;
  margin: 0;
  color: rgb(255, 255, 255);
  font-family: Arial, Helvetica, sans-serif;
}

.container, .container2, .container3, .container4 {
  width: 80%;
  min-height: 400px;
  margin: 0;
  padding: 20px;
  border: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

nav > * {
  flex: 1;
  text-align: center;
}

footer {
  height: 40px;
  background-image: url(../images/image.png);
  position: fixed;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  z-index: 1000;
}

.footer_flex {
  display: flex;
  justify-content: space-around;
}

.footer_flex img {
  width: 40px; /* Adjust the size as needed */
  height: auto;
}

.appjes {
  margin: 0px 10px;
  transition: 1s;
}

.appjes:hover {
  transform: scale(1.3);
  z-index: 2;
  box-shadow: 0 0 15px 5px rgba(214, 212, 218, 0.6);
}

.item1, .item2, .item3, .item4 {
  width: 70%;
  height: auto;
  margin: 10px 0;
}

.container img, .container2 img, .container3 img {
  width: 30%;
  height: auto;
  margin-left: 20px;
}

#imgjump {
  width: 20%; /* Adjust the size as needed */
  height: auto;
  transition: transform 0.3s, box-shadow 0.3s;
  float: left;
}

#imgjump:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px 5px rgba(214, 212, 218, 0.6);
}

#imgyard{
  transition: transform 0.3s, box-shadow 0.3s;
  float: right;
  }

  #imgyard:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px 5px rgba(214, 212, 218, 0.6);
}

.item2 img, .item3 img, .item4 img {
  margin-left: 20px;
}

.flexbox_flex {
  display: flex;
  flex-direction: row;
}

.craft {
  transition: transform 0.6s, box-shadow 0.6s;
}

.craft:hover {
  transform: scale(1.3);
  box-shadow: 0 0 15px 5px rgba(214, 212, 218, 0.6);
}

/* Carousel styles */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 100;
  border-radius: 5px;
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.indicator {
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: white;
}

/* Project container styles */
.project-container {
  width: 80%;
  min-height: 400px;
  margin: 0;
  padding: 20px;
  border: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.project-text {
  width: 60%;
  padding-right: 20px;
}

.project-text h2 {
  margin-top: 0;
  color: #fff;
}

.project-text p {
  font-size: 18px;
  line-height: 1.5;
}

.project-image {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  transition: transform 0.6s, box-shadow 0.6s;
}

.project-img:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px 5px rgba(214, 212, 218, 0.6);
}

/* Media queries voor kleinere schermen */
@media only screen and (max-width: 768px) {
  .container, .container2, .container3, .container4 {
    width: 90%;
    min-height: 300px;
  }

  .item1, .item2, .item3, .item4 {
    width: 80%;
  }

  .container img, .container2 img, .container3 img, .container4 img {
    width: 40%;
  }

  footer {
    font-size: 18px;
    padding: 1px 0;
  }   

  .carousel-container {
    margin: 30px auto;
  }
  
  .carousel-button {
    font-size: 20px;
    padding: 8px 12px;
  }

  .project-container {
    flex-direction: column;
    width: 90%;
  }

  .project-text, .project-image {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }

  .project-text {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 480px) {
  .navbar ul {
    font-size: 18px;
  }

  .navbar a {
    padding: 10px;
  }

  footer {
    font-size: 18px;
  }

  .project-container {
    padding: 15px;
    min-height: 300px;
  }

  .project-text h2 {
    font-size: 20px;
  }

  .project-text p {
    font-size: 16px;
  }
}