.flex_row {
  display: flex;
  flex-flow: row nowrap;
}

.flex_col, .C_main {
  display: flex;
  flex-flow: column nowrap;
}

.fill, .C_main {
  width: 100%;
  height: 100%;
}

.C_main {
  justify-content: center;
  background-color: var(--color_4);
  padding: 0.5rem;
}

.C_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
}
.C_header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color_3);
  transition: color 0.2s ease;
  padding: 0.5rem;
}
@media only screen and (orientation: landscape) and (min-width: 600px) {
  .C_header button:hover {
    color: var(--color_1);
    background-color: var(--color_4);
  }
}

.C_grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.C_day_name {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280; /* A neutral gray */
}

.C_date {
  padding: 10px 5px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}
@media only screen and (orientation: landscape) and (min-width: 600px) {
  .C_date:hover {
    background-color: var(--color_2);
  }
}
.C_date_selected {
  background-color: var(--color_3);
  color: var(--color_text_light);
}
.C_date_today {
  font-weight: 700;
  border: 2px solid var(--color_2);
}

.C_month_other {
  color: var(--color_5); /* Lighter gray for days outside the month */
  cursor: default;
}
.C_month_other :hover {
  background-color: transparent;
  transform: none;
}

.C_event {
  position: relative;
  bottom: 3px;
  right: 3px;
  font-size: 10px;
  font-weight: bold;
  color: var(--color_5);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0.6;
}