:root {
    --text-color: #000000;
    --background-color: #FAFAFA;
    --button-background-color: #FFFFFF;
    --primary-accent-color: #1EAAF1;
    --primary-accent-text-color: #FFFFFF;
    --secondary-accent-color: #E4F5FD;
    --secondary-accent-text-color: #000000;
    --button-active-color: #FDC02F;
    --button-inactive-color: #46749C;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #E1E1E1;
        --background-color: #111111;
        --button-background-color: #1C1C1C;
        --primary-accent-color: #111E24;
        --primary-accent-text-color: #FFFFFF;
        --secondary-accent-color: #1C1C1C;
        --secondary-accent-text-color: #E1E1E1;
    }

    img.dressing-room-loader {
        -webkit-filter: invert(1);
        filter: invert(1);
    }
}

body {
    font-size: 32pt;
    font-family: San Francisco, Helvetica Neue, Segoe UI, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text-color);
    background-color: var(--background-color);
}

h1 {
    font-family: inherit;
    font-size: 60pt;
}

h2 {
    font-family: inherit;
    font-size: 50pt;
}

p.code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22pt;
    padding: 5px;
    border-style: solid;
    border-color: grey;
    border-radius: 10px;
    border-width: 1px;
    word-wrap: break-word;
}

button {
    min-height: 2em;
    min-width: 2em;
    padding: 0.5em 0.5em;
    border-style: solid;
    border-color: grey;
    border-radius: 10px;
    border-width: 1px;
    margin: 0.25em 0.25em;
    background-color: var(--button-background-color);
    font-family: inherit;
    font-size: 22pt;
    font-weight: bolder;
    color: var(--button-inactive-color);
}

button a {
    color: inherit;
    text-decoration: none;
}

button.data-entry.selected {
    color: var(--button-active-color);
    font-weight: 900;
}

input, select {
    font-family: inherit;
    font-size: 22pt;
    color: var(--text-color);
    background-color: var(--background-color);
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 10px;
    min-height: 2em;
}

input[type=text] {
    width: 10em;
}

input[type=checkbox] {
    min-width: 2em;
    min-height: 2em;
}

td {
    font-family: inherit;
    font-size: 40;
    border-style: none;
    padding: 0.25em;
}

ul {
    list-style-type: none;
}

table {
    width: 100%;
}

tr.act-name {
    margin-top: 2em;
}

td.act-name {
    color: var(--secondary-accent-text-color);
    background-color: var(--secondary-accent-color);
    font-size: 40pt;
}

td.day {
    color: var(--primary-accent-text-color);
    background-color: var(--primary-accent-color);
    font-size: 50pt;
    padding: 0.25em 0em;
}

li.showtime.started {
    color: var(--button-active-color);
    font-weight: 800;
}

li.showtime.over {
    text-decoration: line-through;
    color: grey;
}

div.showtime-annotation {
    display: none;
}

div.showtime-annotation.visible, div.time-left {
    display: inline;
}

div.time-left {
    font-weight: normal;
    font-style: italic;
    color: red;
}

.mirror-animated.mirrored {
    display: inline-block;
    -moz-transform:    scaleX(-1); /* Gecko */
    -o-transform:      scaleX(-1); /* Opera */
    -webkit-transform: scaleX(-1); /* Webkit */
    transform:         scaleX(-1); /* Standard */

    filter: FlipH;                 /* IE 6/7/8 */
}

ul.navigation {
    background-color: var(--primary-accent-color);
    width: 100%;
    height: 116;
    display: flex;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    z-index: 2;
}

div.navigation-margin {
    height: 116;
}

ul.navigation li {
    list-style-type: none;
    padding: 25px;
    position: relative;
}

ul.navigation li, ul.navigation li a {
    color: #D2EEFC;
    font-size: 40pt;
    font-weight: 700;
    text-decoration: none;
}

ul.navigation li a.selected {
    color: var(--primary-accent-text-color);
}

div.nav-indicator {
    display: none;
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0px;
    left: 0px;
    background-color: #ffffff;
}

div.nav-indicator.selected {
    display: block;
}

.filler-item {
    flex-grow: 1;
    text-align: center;
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 48;
}

div.pane {
    display: none;
}

div.pane.selected {
    display: block;
}

button.navigation.selected {
    color: #ffffff;
}

div.dressing-room-buttons {
    z-index: 1;
    position: relative;
}

div.dressing-room-loader {
    text-align: center;
    vertical-align: middle;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 2;
}

img.dressing-room-loader {
    height: 80;
    margin: auto auto;
}

div.toast-container {
    position: fixed;
    bottom: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}

div.toast {
    display: none;
    /* primary accent color for dark mode doesn't stand out enough. hardcode */
    background-color: #1EAAF1;
    color: var(--primary-accent-text-color);
    min-width: 250px;
    margin-top: 10px;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    z-index: 1;
    font-size: 50pt;
}

div.toast.bad {
    background-color: #ff7f7f;
}

div.toast.active {
    display: block;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

div.centered {
    display: flex;
    justify-content: center;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}
