/* Algemene stijl */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0d47a1, #1976d2, #42a5f5);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  flex-wrap: wrap; /* Zorgt dat menu naar beneden gaat op kleine schermen */
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

header nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

header nav a:hover {
  color: #ffcc00;
}

/* Games sectie */
.games {
  padding: 2rem;
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: white;
  transition: transform 0.3s, background 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.game-card img {
  width: 100%;
  border-radius: 8px;
  height: auto;
}

/* About Me */
.about {
  padding: 2rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-content img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
}

/* Project sectie */
.project {
  padding: 2rem;
  text-align: center;
}

.project .intro {
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

/* Hero image */
.hero-image img {
  width: 80%;       /* was 100%, nu 80% */
  max-width: 720px; /* optioneel, zorgt dat hij niet te groot wordt */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  cursor: pointer;
  margin: 0 auto;   /* centreren */
  display: block;   /* centreren */
}
/* Extra class voor kleinere afbeeldingen */
.small-img {
  max-width: 500px;  /* was 500px */
  max-height: 300px; /* was 300px */
  width: 100%;
  height: auto;
}



/* GitHub button */
.github-btn {
  display: inline-block;
  margin: 1.5rem auto;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0d47a1, #1976d2, #42a5f5);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.github-btn:hover {
  background: linear-gradient(135deg, #42a5f5, #1976d2, #0d47a1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img,
.gallery-item iframe,
.gallery-item video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Features lijst */
.features {
  list-style: none;
  max-width: 600px;
  margin: 1rem auto;
  text-align: left;
}

.features li {
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

/* Mechanics tabel */
.mechanic-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.9rem;
}

.mechanic-table th,
.mechanic-table td {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem;
  text-align: center;
}

.mechanic-img {
  width: 60px;
}

.code-img {
  max-width: 200px;
  height: auto;
  border-radius: 6px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Contact */
.contact {
  padding: 2rem;
  text-align: center;
}

.contact-info {
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.socials a {
  font-size: 1.8rem;
  margin: 0 10px;
  color: white;
  transition: 0.3s;
}

.socials a:hover {
  color: #ffcc00;
}

/* ----------------------------- */
/* MEDIA QUERIES voor responsiviteit */
/* ----------------------------- */

/* Tablets */
@media (max-width: 1024px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  header nav {
    margin-top: 0.5rem;
    justify-content: center;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobiel */
@media (max-width: 600px) {
  header {
    padding: 1rem;
  }
  header nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .project,
  .games,
  .about,
  .contact {
    padding: 1rem;
  }
  .game-card {
    padding: 0.5rem;
  }
  .about-content img {
    width: 140px;
    height: 140px;
  }
  .mechanic-table {
    font-size: 0.8rem;
  }
  .mechanic-img {
    width: 40px;
  }
  .code-img {
    max-width: 120px;
  }
}
