@font-face {
  font-display: fallback;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/OpenSans-Regular.ttf");
}

@font-face {
  font-display: fallback;
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/OpenSans-Italic.ttf");
}

@font-face {
  font-display: fallback;
  font-family: "Open Sans";
  font-style: bold;
  font-weight: 700;
  src: url("../fonts/OpenSans-Bold.ttf");
}

body {
  max-width: inherit;
  --label-color: #666;
}

.grid {
  align-items: center;
  display: grid;
  font-size: 8px;
  grid-template-columns: repeat(14, 1fr);
}

.gridSpan {
  grid-column-start: 2;
  grid-column-end: 15;
}

.heading {
  color: var(--label-color);
  text-align: center;
}

.yearHeading {
  font-weight: bold;
}

#calendar {
  background-image: url(../grid.webp);
  background-size: cover;
}

.month {
  /* aspect-ratio: 1; */
  box-sizing: border-box;
  /* Use padding-top trick through 2022 until aspect-ratio is more ubiquitous. */
  padding-top: 100%;
  position: relative;
  width: 100%;
}

.month a {
  align-items: center;
  color: transparent;
  display: grid;
  font-weight: bold;
  height: 100%;
  justify-items: center;
  line-height: 1.1;
  position: absolute;
  text-align: center;
  text-decoration: none;
  top: 0;
  width: 100%;
}
.month:hover a {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  text-shadow: 0 0 8px black;
}

.letterIcon {
  align-items: center;
  display: grid;
  font-size: 4vw; /* Scale to screen width */
  font-weight: normal;
  height: 100%;
  justify-content: center;
  position: absolute;
  top: 0;
  width: 100%;
}

footer {
  border: none;
  margin: 0;
}

@media (min-width: 400px) {
  .grid {
    font-size: 10px;
  }
}

@media (min-width: 600px) {
  .grid {
    font-size: 12px;
  }
}

@media (min-width: 800px) {
  .grid {
    font-size: inherit;
  }
}
