#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

#calendar .day {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  aspect-ratio: 1/1;
}
#calendar .day._name {
  aspect-ratio: unset;
}
#calendar .event {
  background-color: #008099;
  color: #fff;
  padding: 4px;
  margin: 2px;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* number of lines to show */
  line-clamp: 1;
  -webkit-box-orient: vertical;
}
#calendarDays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
#months {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5rem;
  margin-bottom: 5rem;
  gap: 3rem;
}
#months #currentMonth {
  font-size: 3rem;
  font-weight: 500;
  text-align: center;
}

#months #prevMonth,
#months #nextMonth {
  background-color: #008099;
  color: white;
  border-radius: 999px;
  display: flex;
  padding: 1px 8px;
  font-size: 3rem;
  font-weight: 500;
}
#calendar .day {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
#calendar .day._name {
  font-size: 3rem;
  font-weight: 300;
  /* font-family: "STIX Two Text", serif; */
}
#calendar .day span {
  position: absolute;
  color: #008099;
  font-size: 4rem;
  top: 10px;
  left: 10px;
  font-family: "STIX Two Text", serif;
  pointer-events: none;
}

@media (max-width: 991px) {
  #calendar .day._name {
    font-size: 2rem;
  }
  #calendar .day span {
    font-size: 2rem;
    top: 2px;
    left: 4px;
  }
  #calendar .event {
    width: 12px;
    height: 12px;
    background-color: red;
    color: red;
  }
  #calendar .day {
    padding: 6px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: row;
  }
}
