.calendar-weekday-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin: 0 auto;
  max-width: 1500px;
  padding: 0 20px;
}

.calendar-head {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calendar-head h2 {
  min-width: 200px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 columns for days of the week */
  gap: 4px;
  margin: 0 auto;
  max-width: 1500px;
  padding: 0 20px;
}

.calendar-day {
  position: relative;
  padding: 5px;
  min-height: 200px;
  border: 1px solid var(--tertiary-color);
  background-color: var(--primary-background);
  text-decoration: none;
}

.calendar-day-number {
  position: absolute;
  font-size: 0.8em;
  top: 0;
  right: 5px;
  color: var(--gray-45);
}

.dc-number {
  position: absolute;
  top: 0;
  left: 5px;
  font-size: 0.8em;
  font-style: italic;
  color: var(--gray-45);
}

.dc-info {
  position: relative;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dc-title-wrap {
  width: 100%;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
}

.dc-title {
  text-align: center;
  font-size: 0.9em;
}

.dc-checkmark {
  width: 100%;
  position: absolute;
  top: 50%;
}

.dc-checkmark svg {
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.dc-languages {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 2px;
}

.dc-language-icon {
  fill: var(--primary-color);
}

.dc-language-icon svg {
  width: 25px;
  height: 25px;
}

.not-available:hover,
.not-available:active {
  cursor: not-allowed;
  background-color: var(--primary-background);
}

.available:hover,
.available:active {
  cursor: pointer;
  background-color: var(--primary-color);
}

.not-available:hover .calendar-day-number,
.not-available:active .calendar-day-number {
  color: var(--primary-color);
}

.available:hover .calendar-day-number,
.available:active .calendar-day-number {
  color: var(--primary-background);
}

.available:hover .dc-language-icon svg path,
.available:active .dc-language-icon svg path,
.available:hover .completed svg circle,
.available:active .completed svg circle {
  fill: var(--primary-background);
  stroke: var(--primary-background);
}

.dc-language-icon svg path {
  fill: var(--gray-45);
  stroke: var(--gray-45);
}

.available:hover .dc-language-icon svg path,
.available:active .dc-language-icon svg path {
  fill: var(--quaternary-background);
  stroke: var(--quaternary-background);
}

.available:hover .not-completed svg circle,
.available:active .not-completed svg circle {
  fill: var(--primary-color);
  stroke: var(--primary-background);
}

.available:hover svg rect,
.available:active svg rect {
  fill: var(--primary-color);
  stroke: var(--primary-color);
}

.available:hover .dc-title,
.available:active .dc-title,
.available:hover .dc-language-name,
.available:active .dc-language-name {
  color: var(--primary-background);
}

.available:hover .dc-number,
.available:active .dc-number {
  color: var(--quaternary-background);
}

@media (max-width: 500px) {
  .calendar-day {
    min-height: 75px;
  }
}

@media (max-width: 815px) {
  .calendar-day {
    min-height: 100px;
    padding: 0;
  }

  .calendar-day-number {
    display: none;
  }

  .dc-info {
    padding: 0;
    justify-content: center;
  }

  .dc-title-wrap {
    display: none;
  }

  .dc-checkmark {
    top: unset;
  }

  .dc-checkmark svg {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1300px) {
  .dc-title-wrap {
    padding: 0;
  }

  .dc-title {
    font-size: 0.8em;
  }
}
