html, body {
    height: 100%;
}

html {

}

body {
    background-color: #333;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

footer {
    text-align: center;
    font-size: x-small;
    margin: 2em 0 4em 0;
    padding-bottom: 48pt;
}

footer img {
    width: 15%;
    height: auto;
}

a, a:active, a:visited {
    color: white;
}

h1 {
    font-size: 48pt;
    font-family: obvia-narrow,sans-serif;
    font-weight: 900;
    font-style: normal;
    text-align: center;
    background: rgb(255,207,144);
    background: linear-gradient(0deg, rgba(255,207,144,1) 0%, rgba(238,238,238,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant: small-caps;
}

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

nav {
    display: flex;
    border: none;
    line-height: 1em;
    font-size: 16pt;
    margin: 0 1em;
}

nav a, nav a:active, nav a:visited {
    color: #ffcb08;
    text-decoration: none;
    font-weight: bold;
}

nav .prev {
    text-align: left;
}

nav .next {
    text-align: right;
}

nav > * {
    flex: 1;
    text-align: center;
}

h2 {
    text-align: center;
    line-height: 1em;
    font-size: 16pt;
    color: #ffcb08;
}

#description img {
    display: block;
    aspect-ratio: 16 / 9;
    margin: 3em auto 1em auto;
    width: 50%;
    min-width: 480px;
    height: auto;
}

section {
    margin: 0.25em 1em;
}

#stages {
    display: flex;
    flex-direction: column;
}

#stages p {
    align-self: center;
}

#stages ul {
    column-count: 1;
    padding: 0;
}


@media screen and (min-width: 640px) {
    #stages ul {
        column-count: 2;
    }    
}

#stages li {
    font-weight: bold;
    list-style: none;
    text-align: left;
    background-color: #666;
    border: thin solid #fff;
    margin-bottom: 0.5em;
    break-inside: avoid-column;
    min-height: 48px;
    background-size: cover;
    display: flex;
    align-items: stretch;
    flex-direction: column;
}

#stages li:hover {
    animation: MOVE-BG1 5s infinite alternate;  
}

@keyframes MOVE-BG1 {
    0% {background-position: 25% 100%;}
    100% {background-position: 25% 0%;}
}

#stages li.stage1 {
    background-image: url("../images/stage1.jpg");
    background-position: 25% 50%;
}

#stages li.stage2 {
    background-image: url("../images/stage2.jpg");
    background-position: 25% 60%;
}
#stages li.stage3 {
    background-image: url("../images/stage3.jpg");
    background-position: 25% 70%;
}
#stages li.stage4 {
    background-image: url("../images/stage4.jpg");
    background-position: 25% 60%;
}
#stages li.stage5 {
    background-image: url("../images/stage5.jpg");
    background-position: 25% 35%;
}
#stages li.stage6 {
    background-image: url("../images/stage6.jpg");
    background-position: 25% 65%;
}

#stages li.stage7 {
    background-image: url("../images/stage7.jpg");
    background-position: 25% 58%;
}

#stages li.stage8 {
    background-image: url("../images/stage8.jpg");
    background-position: 25% 50%;
}

#stages li.stage9 {
    background-image: url("../images/stage9.jpg");
    background-position: 25% 73%;
}

#stages li.stage10 {
    background-image: url("../images/stage10.jpg");
    background-position: 25% 69%;
}

#stages li.stage11 {
    background-image: url("../images/stage11.jpg");
    background-position: 25% 69%;
}

#stages li.stage12 {
    background-image: url("../images/stage12.jpg");
    background-position: 25% 69%;
}

#stages li a {
    text-decoration: none;
    padding: 0.5em 0;
    padding-left: 1em;
    display: flex;
    flex: auto 1;
}

#information, #contacts, #links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timestamp {
    text-align: center;
    font-size: x-small;
}

section p, #contacts ul, #stages p, #links ul {
    max-width: 32em;
    margin: 0 0 1em 0;
}

#links ul {
    padding: 0;
}

#links li {
    list-style: none;
    text-align: center;
    margin-bottom: 1em;
}

#stage {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#view {
    display: block;
    flex-grow: 2;
    height: 50vh;
    width: 100%;
}

#view > * {
    width: 100%;
    height: 100%;
}

#description {
    flex-grow: 1;
}

th {
    text-align: right;
    vertical-align: top;
    padding-right: 2em;
}

.discipline, .note {
    padding-top: 1em;
    text-align: center;
    border-bottom: rgb(247, 190, 4) thin solid;
}

canvas {
    background: rgb(2,0,36);
    background: linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 12%, rgba(0,212,255,1) 50%);
}

.address {
    font-style: italic;
}

#sponsors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#sponsors h2 {
    width: 100%;
}

#sponsors img {
    flex-grow: initial;
    flex-basis: content;
    max-height: 128px;
    width: auto;
    margin: 1em;
}

@media (min-width: 512px) {

    .content {
        column-count: 2;
    }

    section {
        break-inside: avoid-column;
    }

    #sponsors img {
        max-width: 90%;
    }
}
