:root {
    --main: #4882d9;
    --text: white;
    --text-on-bg: black;
    --bg: white;
    --alternate-bg: #2c373e;
    --alternate: #adadad;
    --accent: #2d64a6;
    --hero-bg: rgba(192, 192, 192, .3);
    --agenda-cols: 2;
    --agenda-cols-small: 1;
    --sidebar-bg: #000;
    --sidebar-width: 20rem;
    --sidebar-text: var(--text);
    --sidebar-hover-text: var(--main);
    --header-text: white;
    --header-main-text: var(--main);
    --header-bg: rgba(0, 0, 0, .5);
    --header-animation-time: 200ms;
    --scrollbar-color: var(--main);
    --header-scrollbar-color: var(--scrollbar-color);
    --animation-time: 300ms;
    --success: #008500;
    --warning: #d35700;
    --error: #f00;
}

html, body {
    position: relative;
    width: 100%;
    height: 100%;
}

body {
    background-color: #0a0121;
    color: var(--text);
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

main > article {
    background-image: url("./images/inventors-day-bg-2024.webp");
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
    /*background-attachment: fixed;*/
    scrollbar-color: var(--scrollbar-color);
    scrollbar-width: thin;
}

noscript {
    color: white;
    font-size: 2rem;
}

*, *:before, *:after {
    box-sizing: border-box;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1000;
    display: grid;
    align-items: center;
    justify-items: center;
    font-size: 2rem;
}

#loading-overlay.hidden {
    display: none;
}

h1 {
    margin-top: 0;
    font-size: 1.5rem;
}

a {
    color: var(--main);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

label {
    display: inline-block;
    margin-bottom: .25rem;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    padding: 0.4em;
    margin: 0 0 0.5em 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 2px;
}

input:disabled {
    color: #ccc;
}

input[type="range"] {
    height: 0;
}

button {
    color: #333;
    background-color: #f4f4f4;
    outline: none;
    cursor: pointer;
}

button:disabled {
    color: #999;
    cursor: not-allowed;
}

button:not(:disabled):active {
    background-color: #ddd;
}

button:focus {
    border-color: #666;
}

/* Themes */
main[data-theme=expo] {
    --main: #890a25;
    --text: white;
    --text-on-bg: black;
    --bg: white;
    --sidebar-hover-text: var(--main);
    --header-main-text: var(--main);
    --header-bg: rgba(11, 1, 34, 0.1);
    --scrollbar-color: var(--main);
    --header-scrollbar-color: var(--scrollbar-color);
}

main[data-theme=inventorsday] {
    --main: #ee7f01;
    --text: white;
    --text-on-bg: black;
    --bg: white;
    --alternate-bg: #2c373e;
    --alternate: #008bd0;
    --accent: #2d64a6;
    --hero-bg: rgba(255, 255, 255, .3);

    --sidebar-hover-text: var(--main);
    --header-main-text: var(--main);
    --header-bg: rgba(0, 0, 0, .5);
    --scrollbar-color: var(--main);
    --header-scrollbar-color: var(--scrollbar-color);
}

main[data-theme=inventorsday] > article {
    background-image: url("./images/inventors-day-bg-2024.webp");
}

main[data-theme=bimakademia] {
    --main: #ee7f01;
    --text: white;
    --text-on-bg: black;
    --bg: white;
    --alternate-bg: #2c373e;
    --alternate: #a1a1a3;
    --accent: #2d64a6;
    --hero-bg: rgba(255, 255, 255, .3);
    --agenda-cols: 2;
    --agenda-cols-small: 1;

    --sidebar-hover-text: var(--main);
    --header-main-text: var(--main);
    --header-bg: rgba(0, 0, 0, .5);
    --scrollbar-color: var(--main);
    --header-scrollbar-color: var(--scrollbar-color);
}

main[data-theme=bimakademia] > article {
    background-image: url("./images/bim-akademia-bg-2024.jpg");
}

main[data-theme=roadshow] {
    --main: #ee7f01;
    --text: white;
    --text-on-bg: black;
    --bg: white;
    --alternate-bg: #2c373e;
    --alternate: #008bd0;
    --accent: #2d64a6;
    --hero-bg: rgba(255, 255, 255, .3);

    --sidebar-hover-text: var(--main);
    --header-main-text: var(--main);
    --header-bg: rgba(0, 0, 0, .5);
    --scrollbar-color: var(--main);
    --header-scrollbar-color: var(--scrollbar-color);
}

main[data-theme=roadshow] > article {
    background-image: url("./images/inventors-day-bg-2024.webp");
}

::-webkit-scrollbar {
    width: 0.25rem;
    height: 0.25rem;
}
::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);
    border-radius: 6px;
    border: 2px solid var(--scrollbar-color);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
    padding: .125rem;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible; }
.hamburger:hover {
    opacity: 0.7; }
.hamburger.is-active:hover {
    opacity: 0.7; }
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #fff; }

.hamburger-box {
    width: 16px;
    height: 10px;
    display: inline-block;
    position: relative; }

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 20px;
    height: 2px;
    background-color: #fff;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: var(--animation-time, 300ms);
    transition-timing-function: ease; }
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block; }
.hamburger-inner::before {
    top: -6px; }
.hamburger-inner::after {
    bottom: -6px; }

.hamburger--arrow.is-active .hamburger-inner::before {
    transform: translate3d(-3px, 1px, 0) rotate(-40deg) scale(0.7, 1); }

.hamburger--arrow.is-active .hamburger-inner::after {
    transform: translate3d(-3px, -1px, 0) rotate(40deg) scale(0.7, 1); }

.tribute-container {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    overflow: auto;
    display: block;
    z-index: 999999;
    font-size: .8em;
}
.tribute-container ul {
    margin: 0;
    margin-top: 2px;
    padding: 0;
    list-style: none;
    color: var(--text-on-bg);
    background: #eee;
}
.tribute-container li {
    padding: 5px 5px;
    cursor: pointer;
}
.tribute-container li.highlight {
    color: var(--text);
    background: var(--accent);
}
.tribute-container li span {
    font-weight: bold;
}
.tribute-container li.no-match {
    cursor: default;
}
.tribute-container .menu-highlighted {
    font-weight: bold;
}