/* ===============================
   HOME PAGE BASIS LAYOUT
   =============================== */

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background: url("../images/home/achtergrond.png") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.home-layout {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container van de homepage */
.container {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

/* Titel bovenaan */
h1 {
  font-size: 2.8rem;
  color: #033e8c;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Grid met module-kaarten */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

/* Kaart-stijl van module-knoppen */
.card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #033e8c;
  font-weight: bold;
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Hover-effect van modulekaarten */
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Iconen */
.icon-spelling {
  width: 80px;
  height: auto;
}


.icon-werkwoord {
  width: 180px;
  height: auto;
}

.icon-frans {
  width: 120px;
  height: auto;
}

.icon-frans-dictee {
  width: 180px;
  height: auto;
}

/* Icon animaties */
.icon-wobble:hover {
  animation: wobble 0.6s ease;
}

@keyframes wobble {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-8deg); }
  50%  { transform: rotate(8deg); }
  75%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.icon-bounce:hover {
  animation: bounce 0.4s ease;
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-8px); }
  60%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

.icon-wiggle:hover {
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(6deg); }
  40% { transform: rotate(-6deg); }
  60% { transform: rotate(4deg); }
  80% { transform: rotate(-4deg); }
}

/* Glow + Pop-out effect */
.icon-glow-pop:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.6));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.module-title {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #033e8c;
  line-height: 1.3;
}

/* Tekstbadge “Coming soon” */
.coming-soon-text {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c62828;
  background: rgba(255, 230, 230, 0.9);
  padding: 3px 8px;
  border-radius: 8px;
  margin-top: 6px;
}

/* =============================================
   RESPONSIVENESS – MOBIEL & TABLET
   ============================================= */

@media (max-width: 900px) {

  h1 {
    font-size: 2.3rem;
  }

  .card {
    padding: 24px 16px;
  }
}

@media (max-width: 600px) {

  h1 {
    font-size: 1.9rem;
    padding: 0 10px;
  }

  .modules {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .card {
    padding: 20px 14px;
  }

  .icon-spelling {
    width: 60px;
  }
  .icon-frans {
    width: 80px;
  }
  .icon-werkwoord {
    width: 100px;
  }

  .coming-soon-text {
    font-size: 0.8rem;
    padding: 2px 5px;
  }
}

@media (max-width: 400px) {

  .icon-spelling {
    width: 50px;
  }
  .icon-frans {
    width: 60px;
  }
  .icon-werkwoord {
    width: 80px;
  }

  h1 {
    font-size: 1.6rem;
  }
}
