body {
  font-family: "Roboto", sans-serif;
  /* font-size: clamp(14px, 1rem, 18px); */
  background-color: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 0;
}

h2 {
  margin-bottom: 10px;
}

.container {
  max-width: 1200px;
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Common */

.button-tray {
  max-width: 1200px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
}

/* Index */

.container ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1976d2;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  font-weight: 500;
}

.calendar-link:hover {
  background-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Calendars */

#toggle-past-events,
.button {
  margin: 10px 0;
  padding: 10px 20px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
#toggle-past-events:hover,
.button:hover {
  background-color: #1565c0;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-width: 100%;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
}

th {
  background-color: #1976d2;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e0f7fa;
}

tr.highlight-current,
tr.highlight-first {
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

table th:nth-child(1),
table td:nth-child(1),
table th:nth-child(2),
table td:nth-child(2) {
  white-space: nowrap;
}

.highlight-current {
  background-color: #ffeb3b !important;
  color: #000;
}

.highlight-first {
  background-color: #8bc34a !important;
  color: #fff;
}

.past-event {
  display: none;
}
.past-event.visible {
  display: table-row;
}

.note {
  caption-side: bottom;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);

  padding: 0.5rem 0.75rem;
}
