body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15pt;
  margin: 20px;
  background-color: white;
}

header {
  text-align: center;
}

a { opacity:0.7; color: darkblue; }
a:visited { opacity:0.8; color: darkblue; }
a:hover { opacity:1; }

.calendar-container {
  background-color: white;
  overflow: hidden;
}

.calendar-header {
  background: lightblue;
  color: black;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid darkgray;
}

.calendar-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 80px repeat(var(--days-count), 1fr);
  background-color: white;
}

.time-header, .day-header {
  background: lightgray;
  border-right: 1px solid darkgray;
  border-top: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  font-weight: 600;
  text-align: center;
  padding-top: 10px;
  height: 20px;
  font-size: 14px;
  color: black;
}

a.element-link { opacity:1; color: black; text-decoration: underline; }
a.element-link:visited { opacity:1; color: black; }
a.element-link:hover { opacity:1; color: darkslategray; }

.time-header {
  border-left: 1px solid darkgray;
  background: lightgray;
}

.time-slot {
  border-left: 1px solid darkgray;
  border-right: 1px solid darkgray;
  border-bottom: 1px solid darkgray;
  font-size: 14px;
  color: black;
  background: lightgray;
  text-align: center;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-slot {
  border-right: 1px solid lightgray;
  border-bottom: 1px solid lightgray;
  position: relative;
  height: 100px;
  background-color: white;
  overflow: visible;
}

.event {
  position: absolute;
  background: lavender;
  color: black;
  padding-left: 5px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid darkgray;
  overflow: hidden;
  transition: all 0.2s ease;
}

.event:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 20;
}

/* Make a div into a link: https://stackoverflow.com/a/22074404 */
.event a.invisible-link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-decoration: none; /* No underlines on the link */
  z-index: 10; /* Places the link above everything else in the div */
  background-color: #fff; /* Fix to make div clickable in IE */
  opacity: 0; /* Fix to make div clickable in IE */
}

.event-description {
  position: absolute;
  z-index: 30;
}

.event-title {
  font-weight: 600;
  margin-bottom: 0px;
  overflow: hidden;
}

.event-coords {
  font-size: 12px;
  opacity: 0.9;
}

.event.event-with-link {
  border-color: darkslategray;
  border-width: 1.5px;
}

.event.category-community {
  background: lemonchiffon;
}

.event.category-session {
  background: lightskyblue;
}

.event.category-activity {
  background: lightsalmon;
}

.event.category-break {
  background: lightgreen;
}

.event.category-food {
  background: limegreen;
}

.event.category-keynote {
  background: plum;
}

@media (max-width: 768px) {
  .calendar-grid {
    font-size: 10px;
  }
  .event {
    font-size: 9px;
    padding-left: 0px;
  }
}

