main {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.WelkomTerug {
  width: 95%;
  background-color: rgba(42, 42, 42, 0.773);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  margin: 10px 0;
  padding: 20px;
}

.WelkomTerug ul {
  margin-left: 30px;
}

.WelkomTerug li {
  margin: 8px 0;
  font-weight: 300;
}

.WelkomTerug a {
  color: lightseagreen;
}

.WelkomTerug ul ul {
  list-style-type: "- ";
}

.Kaarten {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0 0 0;
  width: 95%;
}

.Kaarten section {
  position: relative;
  background-color: rgb(238, 238, 238);
  color: black;
  border-radius: 10px;
  margin: 10px;
  padding: 20px;
  width: 400px;
  height: 150px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.Kaarten section:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.Kaarten h3 {
  font-size: 1em;
}

.Kaarten h2 {
  margin: 14px 0 8px;
}

.Kaarten p {
  font-size: 0.7em;
  font-weight: 200;
}

.Kaarten section div {
  position: absolute;
  right: 20px;
  top: 15px;
  height: 25px;
  width: 25px;
  border-radius: 5px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Kaarten section div i {
  color: rgb(47, 98, 209);
  font-size: 0.7em;
}

.Deadlines {
  width: 95%;
  background-color: rgb(238, 238, 238);
  border-radius: 10px;
  margin: 20px 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: black;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.Deadlines:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.DeadlinesHeader {
  display: flex;
  align-items: center;
}

.Deadlines h3 {
  margin-left: 10px;
  font-size: 1.2em;
}

.Deadlines h4 {
  margin-top: 10px;
  font-size: 1em;
  font-weight: 400;
}

.Deadlines ul {
  margin: 10px 20px;
}

.Deadlines li {
  margin: 12px 0;
}

.Deadlines li p {
  font-size: 1em;
  font-weight: 600;
  margin-left: 10px;
}

.Deadlines li h5 {
  font-size: 0.8em;
  font-weight: 300;
  margin-left: 15px;
}

.DeadlinesTimer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.DeadlinesTimer section {
  width: 49%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6px;
  border-radius: 5px;
}

.DeadlinesTimer .Robbe {
  background-color: rgba(155, 155, 255, 0.656);
  border: 1px solid rgb(57, 57, 255);
  color: rgb(57, 57, 255);
}

.DeadlinesTimer .Jason {
  background-color: rgba(155, 255, 158, 0.656);
  border: 1px solid rgb(46, 128, 28);
  color: rgb(46, 128, 28);
}

.DeadlinesTimerTotaal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  main {
    padding: 15px 10px;
  }

  .WelkomTerug {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
  }

  .WelkomTerug h2 {
    font-size: 1.3em;
  }

  .WelkomTerug ul {
    margin-left: 20px;
  }

  .WelkomTerug li {
    font-size: 0.95em;
  }

  .Kaarten {
    width: 100%;
    justify-content: center;
  }

  .Kaarten section {
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    padding: 15px;
    height: auto;
    min-height: 130px;
  }

  .Kaarten h2 {
    font-size: 1.8em;
  }

  .Deadlines {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
  }

  .Deadlines h3 {
    font-size: 1.1em;
  }

  .Deadlines h4 {
    font-size: 0.95em;
  }

  .Deadlines ul {
    margin: 10px 10px;
  }

  .DeadlinesTimer {
    flex-direction: column;
    gap: 10px;
  }

  .DeadlinesTimer section {
    width: 100%;
  }
}

@media (max-width: 480px) {
  main {
    padding: 10px 5px;
  }

  .WelkomTerug {
    padding: 12px;
  }

  .WelkomTerug h2 {
    font-size: 1.2em;
  }

  .WelkomTerug p {
    font-size: 0.9em;
  }

  .Kaarten section {
    padding: 12px;
    min-height: 120px;
  }

  .Kaarten h3 {
    font-size: 0.9em;
  }

  .Kaarten h2 {
    font-size: 1.6em;
    margin: 10px 0 6px;
  }

  .Kaarten p {
    font-size: 0.65em;
  }

  .Deadlines {
    padding: 12px;
  }

  .Deadlines h3 {
    font-size: 1em;
  }

  .Deadlines h4 {
    font-size: 0.9em;
  }

  .Deadlines li p {
    font-size: 0.9em;
  }

  .Deadlines li h5 {
    font-size: 0.75em;
  }
}
