/* Estils generals en mode fosc */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #bb86fc;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Capçalera i peu de pàgina */
header, footer {
  background-color: #1f1f1f;
  text-align: center;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

header h1, footer p {
  margin: 0;
}

header h1 {
  font-size: 24px;
  line-height: 1.5;
}

/* Contingut principal */
main {
  flex: 1;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Estils per a les seccions de trimestre */
.trimestre {
  margin-bottom: 2rem;
}

.trimestre h2 {
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
  color: #ffffff;
}

/* Contenidor de targetes */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* Estil de les targetes */
.card {
  background-color: #1f1f1f;
  border-radius: 8px;
  padding: 15px;
  width: 220px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 0.2s, background-color 0.3s;
}

.card:hover {
  transform: scale(1.02);
  background-color: #2a2a2a;
}

.card h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #bb86fc;
}

.card p {
  font-size: 14px;
  color: #e0e0e0;
}

/* Especific per a targetes enllaç (1r Trimestre) */
.cards a.card {
  display: block;
}

/* Secció Meme */
.meme {
  margin-top: 2rem;
  text-align: center;
}

.meme-container img {
  max-width: 100%;
  height: auto;
  border: 2px solid #333;
  border-radius: 8px;
}

.meme-container p {
  margin-top: 0.5rem;
  font-style: italic;
  color: #bbb;
}

/* Responsive: ajustos per a pantalles petites */
@media (max-width: 768px) {
  main {
    padding: 10px;
  }
  
  .trimestre h2 {
    font-size: 20px;
  }
  
  .card {
    width: 100%;
    max-width: 300px;
  }
  
  .card h3 {
    font-size: 16px;
  }
  
  .card p {
    font-size: 13px;
  }
}

