.navigation-wrapper {
  position: relative;
  max-width: 100%;
  text-align: center;
}

.scroll-container {
  overflow-x: auto; /* Enable horizontal scroll */
  white-space: nowrap;
  position: relative;
  scrollbar-width: none; /* Hide scrollbar on Firefox */
  -ms-overflow-style: none; /* Hide scrollbar on IE 10+ */
  max-width: 100vw;
  display: block;
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar on WebKit browsers */
}

.day-item {
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
}
.calendar-year-month-display,
.year-month-display {
  font-size: 18px;
  font-weight: bold;
  padding: 0 10px;
  display: inline-block;
  line-height: 1em;
}

.horizontal-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  white-space: nowrap;
   /* Center the items within the list */
}

.horizontal-list li {
  padding: 5px 10px;
  background-color: #f0f0f0;
  margin-right: 5px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}

.horizontal-list li.active {
  background-color: #007bff;
  color: white;
}

.horizontal-list li.today {
  background-color: #ffc107;
  color: white;
}

.horizontal-list li:hover {
  background-color: #007bff;
  color: white;
}
.year-month-navigation {
  line-height: 1em;
  display: inline-flex;
  align-items: center;
}
.day-navigation {
  line-height: 1em;
  display: flex;
  align-items: center;
}
.calendar-nav-arrow,
.nav-arrow {
  cursor: pointer;
  font-size: 24px;
  user-select: none; /* Prevent text selection when clicking arrows */
}
.calendar-nav-arrow.left-arrow,
.nav-arrow.left-arrow {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cline x1='16' y1='10' x2='22' y2='16' stroke='black' stroke-width='2'/%3E%3Cline x1='16' y1='22' x2='22' y2='16' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.calendar-nav-arrow.right-arrow,
.nav-arrow.right-arrow {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cline x1='16' y1='10' x2='22' y2='16' stroke='black' stroke-width='2'/%3E%3Cline x1='16' y1='22' x2='22' y2='16' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

/* Ensure the scroll container takes up the remaining space */
.navigation-wrapper .scroll-container {
  flex-grow: 1;
  overflow-x: scroll; /* Allow scrolling */
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.calendar-navigation,
.year-month-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.calendar-nav-arrow,
.nav-arrow {
  cursor: pointer;
  font-size: 24px;
  margin: 0 10px;
}

#calendar-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.calendar th, .calendar td {
  padding: 3px;
  border: 1px solid #FFF;
}
.calendar th {
  text-align: center;
  border: 1px solid #eee;
}

.event-day {
  background-color: var(--secondary);
  color: white;
}
.event-day a {
  display: block;
  padding: 6px;
}