main {
  margin-top: calc(var(--logo-height) + 2em);
}

@media screen and (min-width: 64em) {
  main {
    margin-top: calc(var(--logo-top-with-navigation) + var(--logo-height) - var(--navigation-top) - 1em /* navigation height */ + 2em /* margin */);
  }
}

#calendar-export-state {
  font-size: 0.8em;
  margin-top: 0.3em;
}

#ics-links {
  margin-top: 1em;
  padding-bottom: 1em;
}

/* Calendar header */
#calendar .fc-toolbar-title {
  color: #FF9900;
}

#calendar .fc-icon-info {
  background-image: url(/static/img/calendar-info.svg);
}

/* Calendar table border */
#calendar table, #calendar table td, #calendar table th {
  border-color: #46b6ee;
}

/* Calender header row */
#calendar table.fc-col-header th {
  color: #FF9900;
  font-weight: normal;
  padding: 0.15em 0;
  background-color: #22374C;
}

/* Regular calendar cells */
#calendar td.fc-day {
  background-color: rgba(34, 55, 76, 0.5);
  font-size: 0.9em;
}

/* Day number in month view */
#calendar .fc-daygrid-day-number {
  padding: 3px !important;
  min-width: 1.8em;
  font-weight: bold;
  font-size: 0.85em;
  border-left: 1px solid #46b6ee;
  border-bottom: 1px solid #46b6ee;
  background-color: #22374C;
  color: #FF9900;
  text-align: right;
}

/* Time column in week and day views */
#calendar .fc-timegrid-axis, #calendar .fc-timegrid-slot {
  font-size: 0.75em;
  color: #fff;
}

/* Calendar event */
#calendar .fc-event {
  color: #fff;
  cursor: pointer;
  white-space: pre-line;
  padding: 0.2em;
  overflow: hidden;
}

/* Container for event time and title */
#calendar .fc-event .fc-event-main-frame {
  display: block;
}

/* Event time and title placement */
#calendar .fc-event .fc-event-time, #calendar .fc-event .fc-event-title-container, #calendar .fc-event .fc-event-title {
  display: inline;
}

/* Event time */
#calendar .fc-event .fc-event-time {
  font-weight: bold;
}
/*
#calendar .fc-event .fc-event-time::after {
  content: " ";
}*/

/* Event title */
#calendar .fc-event .fc-event-title {
  font-weight: normal;
}

/* Today */
#calendar td.fc-day-today {
  background-color: #46b6ee66;
}

/* Calendar buttons, dialog buttons */
#calendar .fc-header-toolbar button {
  border: 1px solid #46b6ee;
  background-color: #22374C;
  color: #FF9900;
}

/* Hover states for calendar buttons and dialog buttons */
#calendar .fc-header-toolbar button:hover,
/* Active state for monat, week, day buttons */
#calendar .fc-header-toolbar button.fc-button-active {
  background-color: #0c1c2a;
  border: 1px solid #FF9900;
  color: #FF9900;
}

#dialog-legend .dialog {
  width: 100%;
  max-width: 20em;
}

#dialog-legend table {
  width: 100%;
}

#dialog-legend td {
  padding: 0.4em 3em;
  text-align: center;
}

#dialog-details .dialog {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 64em) {
  #dialog-details .dialog {
    width: auto;
    height: auto;
    min-width: 40em;
    max-width: 60em;
    min-height: 30em;
    max-height: 100%;
  }
}

#dialog-details th {
  text-align: left;
  padding-right: 1em;
}

#dialog-details table {
  margin-bottom: 2em;
}

#event-location p {
  margin: 0;
}

.note {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1.5em;
}

.note p {
  margin: 0;
}

.note p + p {
  margin-top: 0.5em;
}
