:root {
    --font: 1.2rem Arial, Geneva, Helvetica, sans-serif;
    --menufont: 1rem Arial, Geneva, Helvetica, sans-serif;
    --descriptionheight: 50px;
    box-sizing: border-box;
}

body {
    font: var(--font);
    margin: 0;
}

button {
    font: var(--menufont);
}

body.cy .en {
    display: none;
}

body:not(.cy) .cy {
    display: none;
}

a:link {
    color: darkblue;
}

.dateHeading {
    width: 100%;
    background-color: darkblue;
    color: white;
    font-weight: bold;
    padding: 6px;
    user-select: none;
}

.image img {
    width: 200px;
}

.table {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0px;
    background-color: gray;
    row-gap: 0px;
    justify-content: flex-start;
    padding: 0 6px;
}

.dateHeading {
    margin: 0 -6px 2px -6px;
    transition: all 1s;
    overflow: hidden;
}

.dateHeading.hide,
.dateHeading.unsearch {
    height: 0;
    padding: 0;
}

.show.hide,
.show.unsearch {
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

.show {
    user-select: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-content: flex-start;
    padding: 10px 5px 0 5px;
    margin: 4px 6px;
    width: 200px;
    flex-wrap: nowrap;
    background-color: white;
    border-radius: 4px;
    transition: all 1s;
    overflow: hidden;
    position: relative;
}

.show .mask {
    position: absolute;
    bottom: 0;
    height: 20px;
    width: 100%;
    background-color: white;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.show.favorite::after {
    content: "😊";
    position: absolute;
    top: 0;
    right: 0;
}

.show.highlight {
    outline: 4px dashed rgb(255, 174, 0);
}

.show:not(.favorite)::after {
    content: "◯";
    position: absolute;
    top: 0;
    right: 0;
}


.table.prompt-favorites .show:not(.favorite)::after {
    content: "🔴";
}

.show:not(.favorite):hover::after {
    content: "😊";
    opacity: 20%;
}

#sideButtons>div {
    width: 2em;
    height: 2em;
    position: relative;
    font-size: large;
}

#sideButtons>div::after {
    position: absolute;
    scale: 1.4;
}

#favoriteButton::after {
    content: "😊";
}

#searchButton::after {
    content: "🔍";
}

#upfrontInstallButton::after {
    content: "⏬";
}

#favoriteButton:hover::after {
    background-color: yellow;
    border-radius: 50%;
}

#upfrontInstallButton:hover::after,
#searchButton:hover::after {
    transform: scale(1.2);
    border-radius: 50%;
}

.date {
    font-size: small;
}

.venue {
    cursor: pointer;
}

.title {
    font-weight: bold;
}

.subtitle {
    font-size: small;
}

.description-container {
    display: flex;
    margin: 8px 0 0 0;
}

.description-prop {
    width: 1px;
    height: var(--descriptionheight);
}

.description:not(:empty)::after {
    position: absolute;
    bottom: 2px;
    right: 2px;
    border-radius: 7px;
    color: gray;
    background-color: white;
    width: 30px;
    height: 12px;
    text-align: center;
    z-index: 10;
    font-weight: bold;
    padding-bottom: 2px;
    border: solid gray 1px;
}

.description-container:not(.expand) .description:not(:empty)::after {
    content: "• • •";
}

.expand .description:not(:empty)::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='gray' viewBox='0 4 24 24'%3E%3Cpath d='m12.6 14.74 4.22-4.58c.43-.46.06-1.16-.6-1.16H7.78c-.66 0-1.03.7-.6 1.16l4.22 4.58c.31.34.89.34 1.2 0'/%3E%3C/svg%3E");
}

.description {
    max-height: var(--descriptionheight);
    font-size: small;
    color: rgb(190, 189, 189);
    background-color: white;
}

.description-container:has(.description:empty) {

    .mask,
    .description-prop {
        display: none;
    }
}

#table.hide-descriptions .description-container {
    display: none;
}

.expand .description {
    max-height: 90%;
    position: absolute;
    border-top: black solid 1px;
    bottom: 0;
    color: black;
    padding-bottom: 20px;
    left: 5px;
    right: 5px;
}

#sources {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: azure;
    padding: 3px;
    transition: all 2s;
}

.from-cache {
    color: blue;
}

.empty-promoter {
    color: gray;
}

@media (max-width:600px) {
    .table {
        justify-content: center;
    }
}

@media (max-width:1200px) {
    #sources {
        display: none;
    }
}

#menu {
    position: fixed;
    top: 0;
    right: 0;
    margin: 10px 10px 0 0;
    scale: 1.2;
}

#menu>svg {
    background-color: white;
    border: 2px solid white;
    border-radius: 2px;
}

#sideButtons {
    position: fixed;
    top: 40px;
    right: 4px;
    border-radius: 4px;
    font: var(--menufont);
    z-index: 2;
}

#searchField:not(.reveal) {
    display: none;
}

#searchField {
    top: 10px;
    left: 25vw;
    position: fixed;
    background-color: dodgerblue;
    padding: 2px;
    border-radius: 4px;
}

#searchField>input {
    width: 40vw;
}

.table.no-film>.show.film {
    display: none;
}

.table.no-quiz>.show.quiz {
    display: none;
}

.table.no-live>.show.live {
    display: none;
}

.table.no-broadcast>.show.broadcast {
    display: none;
}

#promoterSwoggle {
    margin: 0 0 10px -10px;
    opacity: 0.6;
}

.slideout {
    position: fixed;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    left: 0;
    right: 0;
    bottom: 150vh;
    height: 100vh;
    padding: 0;
    transition: all 1s ease-in-out;
    background-color: rgba(0, 0, 0, 0.4);
}

.page::after,
.slideout-content::after {
    content: "◀";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 1.5em;
    width: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: blue;
    font-size: 0.8em;
    padding: 0 0 2px 0;
    border-radius: 4px;
    color: white;
    border: 1px solid blue;
}

.slideout-content::after {
    transform: rotate(90deg) translate(50%, -50%);
}

.page::after {
    transform: rotate(90deg) translate(-100%, 150%);
}

.slideout-content {
    background-color: rgba(192, 192, 192, 0.92);
    border-radius: 6px;
    padding: 6px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    align-self: center;
    align-items: center;
    overflow-y: auto;
    max-height: 100%;
    max-width: 80vw;
    overflow: visible;
}

.slideout.visible {
    bottom: 0;
}

.slideout.visible .slideout-content {
    margin-top: 0;
}

.slideout-content>div {
    overflow-y: auto;
    margin: 10px;
}

#promoterMenu {
    padding: 10px;
}

#flag {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background-color: black;
    color: white;
}

.head {
    background-color: #e4e4e4;
    display: flex;
}

.head img {
    max-width: 100%;
}

#monthMenu {
    position: fixed;
    z-index: 20;
    top: 40px;
    left: 2px;
    width: 90vh;
    transform: translate(-100%, 0px) rotate(-90deg);
    transform-origin: top right;
    contain: content;
    display: flex;
    justify-content: space-evenly;
    gap: 1px;
    background-color: dodgerblue;
    border-radius: 6px;
    transition: all 1s;
    min-width: calc(12 * 2.5em);
    font: var(--menufont);
}

body:not(.showMenus) #monthMenu {
    margin-left: -60px;
}

.monthButton {
    background-color: white;
    border: 0;
    color: darkblue;
    padding: 8px;
    min-width: calc(90vh / 12);
}

.monthButton>span {
    user-select: none;
}

.monthButton:hover {
    background-color: royalblue;
}

#menu {
    stroke: black;
    border-radius: 4px;
}

#menu:hover {
    stroke: royalblue;
}

.languageButton {
    padding: 0 min(20px, 3vw);
}


#bottomMenu {
    position: fixed;
    z-index: 20;
    bottom: 0;
    width: 100%;
    margin-bottom: -100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    z-index: 300;
    padding: 6px 0 12px 0;
    transition: all 1s;
}

body.showMenus #bottomMenu {
    margin-bottom: 0;
}

#bottomMenu button {
    background-color: white;
    color: black;
    border-top: 0;
    border-bottom: 0;
    border-width: 1px;
    border-color: dodgerblue;
    font: var(--menufont);
}

#actionMenu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#promoterMenu {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(190, 189, 189);
    width: fit-content;
    height: fit-content;
    max-height: 90vh;
    max-width: 90vw;
    overflow: auto;
    padding: 20px;
}

#sources-page {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#demoSplash {
    position: fixed;
    width: 100vw;
    background-color: yellow;
    bottom: 0;
    color: black;
    z-index: 10;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 2vh;

    div:first-child {
        max-width: 70vw;
        text-align: end;
    }

    img {
        height: min(8rem,max(15vw,15vh));
    }
}

body.demo {
    overflow: hidden;
    #demoSplash {
        display: flex !important;
    }
}
.demoArrow
{
    position: relative;
&::after {
    content: ">";
    margin-right: -3vw;
    position: absolute;
    right: 0;
    transform: scale(1.5);
}
}