/* Reset-ish */
:root {
  --bg-color: #dcfdfd;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  font-family: Arial, sans-serif;
  color: #333;
  text-align: center;
}

.title {
  margin: 40px 0 20px;
  font-size: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background-color: white;
  padding: 40px 20px;
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Centres cards instead of stretching them (used for the yearly sections). */
.grid.centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.grid.centered .card {
  flex: 0 0 200px;
  max-width: 100%;
  box-sizing: border-box;
}

.year-title {
  margin: 30px 0 10px;
  font-size: 1.6rem;
}

.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: white;
  color: #333;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
