* {
    box-sizing: border-box;
}
body {
    font-size: 100%;
    line-height: 1;
    font-family: Arial, Roboto, sans-serif;
    color: #222;
    font-size: 14px;
    background-color: white;
    display: inline-block;
    margin: 0;
}
body > header {
    position: relative;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    width: calc(100vw - 10px);
    color: white;
    padding: 10px;
    padding-top: 14px;
    margin-top: 0;
    font-weight: 500;
    padding-top: 14px;
    overflow-x: auto;
    display: flex;
    z-index: 2;
}
body > #header-bg {
    position: absolute;
    background: #3f51b5;
    top: 0;
    left: 0;
    box-shadow:
        0 0 2px 2px rgba(0, 0, 0, 0.14),
        0 -1px 5px 2px rgba(0, 0, 0, 0.12),
        0 -1px 1px 2px rgba(0, 0, 0, 0.2);
    height: 50px;
    width: 100%;
    z-index: 0;
}
body header h2 {
    display: inline-block;
    margin: 0;
    flex-grow: 1;
}
#about {
    cursor: pointer;
    fill: white;
}
#about-dialog {
    cursor: unset;
}
a {
    color: #222;
}
.grid {
    position: relative;
}
.hour-labels {
    position: relative;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    white-space: nowrap;
    background:
            linear-gradient(to right,
            #90CAF9, #90CAF9 2px,
            transparent 2px
            ),
            white;
    z-index: 2;
    border-bottom: 2px #90CAF9 solid;
}
.hour-labels > div {
    display: inline-block;
    padding: 5px;
}
.location-labels {
    left: 0;
    position: relative;
    position: sticky;
    float: left;
    background:
            linear-gradient(to bottom,
            #E3F2FD, #E3F2FD 50%,
            transparent 50%
            ),
            white;
    z-index: 2;
    border-right: 2px #90CAF9 solid;
}
.location-labels > div {
    overflow: hidden;
    border: solid 5px transparent;
    text-overflow: ellipsis;
}
.location-labels > div:nth-child(odd) {
    background: #E3F2FD;
}
.location-labels > div:nth-child(even) {
    background: white;
}
.location-rows {
    position: absolute;
    z-index: -1;
    width: 100%;
}
.location-rows > div:nth-child(odd) {
    background:
            linear-gradient(to right,
            #90CAF9, #90CAF9 2px,
            transparent 2px
            ),
            linear-gradient(to right,
            #BBDEFB, #BBDEFB 2px,
            transparent 2px
            ),
            #E3F2FD;
    background-position: -2px 0;
}
.location-rows > div:nth-child(even) {
    background:
            linear-gradient(to right,
            #90CAF9, #90CAF9 2px,
            transparent 2px
            ),
            linear-gradient(to right,
            #BBDEFB, #BBDEFB 2px,
            transparent 2px
            ),
            white;
    background-position: -2px 0;
}
.corner {
    position: relative;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 4;
    float: left;
    background: white;
    padding: 5px;
    border-right: 2px #90CAF9 solid;
    border-bottom: 2px #90CAF9 solid;
}
.schedule-entry {
    position: absolute;
    margin-left: -1px;
}
.entry-box {
    cursor: pointer;
    background-color: white;
     border-radius: 2px;
    border-bottom: 3px solid #aaa;
    border-radius: 2px;
    padding-left: 5px;
    padding-right: 5px;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    position: absolute;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    text-decoration: none;
    transition: color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
}
.entry-box.entry-box--emphasis {
    font-style: italic;
}
.entry-box.entry-box--closed {
    padding: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    border: none;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(to right,
            #607D8B, #607D8B 2px,
            #37474F 2px
            ),
            linear-gradient(to right,
            #607D8B, #607D8B 2px,
            #37474F 2px
            ),
            white;
    background-position: -2px 0;
    background-size: 50px 100%;
}
.details {
    position: absolute;
    top: 15px;
    width: 0;
    height: calc(100vh - 30px);
    max-width: 640px;
    max-height: 480px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    z-index: 5;
    text-decoration: none;
    width: calc(100vw - 30px);
    white-space: normal;
    cursor: auto;
}
.entry-anchor {
    position: fixed;
}
.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
}
.popup.popup--active {
    display: block;
}
.close {
    float: right;
    width: 2em;
    height: 2em;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    line-height: 2em;
    cursor: pointer;
}
.location-anchor {
    position: absolute;
    pointer-events: none;
}
.entry-link {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.legend {
    border: 1px solid lightgray;
    display: grid;
    max-width: calc(100vw - 24px);
    position: sticky;
    margin: 5px;
    padding: 5px;
    left: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    grid-template-columns: repeat(auto-fit, minmax(150px, auto));
    min-width: 150px;
}
.legend h3 {
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 0;
    margin-bottom: 5px;
    grid-column: 1/-1;
}
.legend-entry {
    display: flex;
    align-items: center;
}
.legend-color {
    width: 1.5em;
    height: 1.5em;
    border: 1px solid black;
    margin: 5px;
}
.entry-content {
    position: sticky;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.entry-title {
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 20px;
}
.entry-rating {
    font-size: 10px;
    background-color: lightgray;
    border-radius: 8px;
    padding-right: 4px;
    padding-left: 4px;
    border: 1px solid gray;
    line-height: 16px;
    height: 16px;
    color: black;
    margin-left: 5px;
}
#footer {
  position: sticky;
  left: 10px;
  margin: 10px;
  display: inline-block;
  left: 50vw;
  transform: translateX(-50%);
}
