#harmonogramEpisodes {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 22px;
    min-height: 328px;
}

#harmonogramEpisodes+div {
    clear: both;
}

.dayRow {
    width: 100%;
    height: 100%;
    display: flex;
    text-align: center;
    vertical-align: middle;
    clear: both;
    transition: opacity 0.2s;
}

.dayCell {
    width: 100px;
    flex: 1;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background-color: #ddd;
    color: white;
    margin-bottom: 1px;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
    /* border-bottom: 0.5px solid white; */
}

.episodes {
    width: calc(100% - 100px);
    height: 100%;
    float: right;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.episodeCell {
    width: calc(50% - 1px);
    margin-left: 1px;
    float: left;
    transition: opacity 0.2s;
}

.episodeCell:nth-child(odd):last-child {
    width: calc(100% - 1px);
}

@media(max-width: 979px) {
    .episodeCell {
        width: calc(100% - 1px);
    }
}

.episodeTime {
    background-color: #ddd;
    padding: 7px;
    height: 100%;
    width: 55px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 1px;
    /* border-bottom: 0.5px solid white; */
    float: left;
    transition: background-color 0.2s, color 0.2s;
}

.episodeTitle {
    background-color: #eee;
    padding: 7px;
    /* episodeTime: width + padding * 4  */
    width: calc(100% - 83px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: lighter;
    margin-bottom: 1px;
    /* border-bottom: 0.5px solid white; */
    float: left;
    transition: background-color 0.2s, color 0.2s;
}

/* Day rows */

.dayRow:nth-child(-n+2) {
    opacity: 0.5;
}

.dayRow:nth-child(odd)>.dayCell {
    background-color: #128abe;
}

.dayRow:nth-child(even)>.dayCell {
    background-color: #0f7baa;
}

.dayRow:nth-child(even) .episodeTime {
    background-color: #ccc;
}

.dayRow:nth-child(even) .episodeTitle {
    background-color: #ddd;
}

.dayRow:nth-child(-n+2)>.dayCell {
    background-color: #ddd;
    color: black;
}

.dayRow:nth-child(3)>.dayCell {
    background-color: #c72127;
}

.sunday {
    margin-bottom: 6.5px;
}

/* Episode Types */

.episodeCell.newEpisode>.episodeTime {
    background-color: #d5ae38;
    font-weight: bold;
}

.episodeCell.newEpisode>.episodeTitle {
    background-color: #f8cc48;
    font-weight: bold;
}

.episodeCell.finalEpisode>.episodeTitle {
    font-weight: bold;
}

.streamEpisode {
    cursor: pointer;
}

.episodeCell.streamEpisode>.episodeTime {
    background-color: #ab6cce;
    color: white;
}

.episodeCell.streamEpisode>.episodeTitle {
    background-color: #d3b8eb;
}

.episodeCell.streamEpisode>.episodeTitle>b {
    font-weight: bold;
}

.episodeCell.holidaysEpisode>.episodeTime {
    background-color: #1a7d37;
    color: white;
}

.episodeCell.holidaysEpisode>.episodeTitle {
    background-color: #209642;
    color: white;
}

.episodeCell.todayEpisode>.episodeTime {
    background-color: #ad1e24;
    color: white;
}

.episodeCell.todayEpisode>.episodeTitle {
    background-color: #db3a3f;
    color: white;
}

.todayEpisode.streamEpisode>.episodeTime {
    background-color: #bc5154;
    color: white;
}

.todayEpisode.streamEpisode>.episodeTitle {
    background-color: #ef7074;
    color: white;
}

/* Mouseover events */

.canClick {
    cursor: pointer;
}

.dayRow.selectedRow {
    opacity: 1;
}

.dayRow.selectedRow .dayCell {
    background-color: #128abe;
    color: white;
}

.dayRow.selectedRow .episodeTitle {
    background-color: #db3a3f;
    color: white;
}

.dayRow.selectedRow .episodeTime {
    background-color: #ad1e24;
    color: white;
}

.dayRow.unselectedRow {
    opacity: 0.25;
}

.dayRow.unselectedRow .dayCell {
    background-color: #ddd;
    color: black;
}

.dayRow.unselectedRow .episodeTitle {
    background-color: #eee;
    color: black;
}

.dayRow.unselectedRow .episodeTime {
    background-color: #ddd;
    color: black;
}

.episodeCell.selectedEpisode>.episodeTitle {
    background-color: #db3a3f;
    color: white;
}

.episodeCell.selectedEpisode>.episodeTime {
    background-color: #ad1e24;
    color: white;
}

.unselectedEpisode {
    opacity: 0.5;
}

.episodeCell.unselectedEpisode>.episodeTitle {
    background-color: #eee;
    color: black;
}

.episodeCell.unselectedEpisode>.episodeTime {
    background-color: #ddd;
    color: black;
}

/* Animation */

.episodeCell>.episodeTitle.animateSpacing {
    animation: animateSpacing 0.5s infinite;
}

@keyframes animateSpacing {
    0% {
        letter-spacing: 1px;
        transform: rotate(0deg);
        background-color: #ffff00;
        color: black;
    }
    25% {
        transform: rotate(-5deg);
        background-color: #00ffff;
    }
    50% {
        letter-spacing: 20px;
        transform: rotate(0deg);
        background-color: #ff00ff;
        color: white;
    }
    75% {
        transform: rotate(5deg);
        background-color: #00ff00;
    }
    100% {
        letter-spacing: 1px;
        transform: rotate(0deg);
        background-color: #ffff00;
        color: black;
    }
}