body {
  font-family: sans-serif;
  background-color: #1a1a1a; /* Dark background */
  color: #f0f0f0; /* Light text */
  margin: 0;
  padding: clamp(5px, 2vw, 20px) clamp(10px, 5vw, 50px) clamp(10px, 5vw, 50px) clamp(10px, 5vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Ensure body takes full viewport height */
  box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: clamp(10px, 2vw, 20px);
}

footer {
    margin-top: clamp(10px, 2vw, 20px);
    font-size: 12px;
    color: #888;
}

footer a {
    color: #aaa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

#main-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
  gap: clamp(10px, 2vw, 20px); /* Space between title and grid-wrapper */
  margin: auto; /* Center the main container */
  max-width: 1400px;
}

#grid-wrapper {
  display: flex;
  gap: clamp(5px, 1vw, 10px); /* Space between years-container and grid-container */
  width: 100%;
}

.year-row {
  display: flex;
  align-items: center;
  gap: clamp(1px, 1vw, 10px);
  width: 100%;
}

.year-label {
  font-size: clamp(10px, 1.2vw, 12px);
  text-align: right;
  width: clamp(5px, 3vw, 20px); /* Give a fixed width to the label container */
  flex-shrink: 0;
}
.year {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: clamp(1px, 0.2vw, 2px);
  animation: fade-in 0.5s ease-in-out forwards;
  opacity: 0;
  width: 100%;
}

.week {
  width: clamp(5px, 1.5vw, 15px);
  height: clamp(5px, 1.5vw, 15px);
  border-radius: 50%;
  background-color: #ddd;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s ease-in-out;
}

.week:hover {
    transform: scale(1.2);
}

.pulse {
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#tooltip {
  position: absolute;
  display: none;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none; /* So the tooltip doesn't interfere with mouse events */
}
