@font-face {
    font-family: "Happy Times";
    src: url('../fonts/happy-times-NG_regular_master_web.woff2');
}
:root {
    --purple: hsl(294, 30%, 61%);
    --yellowlight: hsl(60, 99%, 77%);
    --bluelight: hsl(202, 90%, 77%);
    --orange: hsl(40, 87%, 65%);
    --redlight: hsl(347, 70%, 74%);
    --blacktransparent: hsla(0, 0%, 0%, 0.5);
}
* {
    margin: 0;
    padding: 0;
}
html, body {
    font-family: "Happy Times", serif;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
}
body {
    border: .2rem solid black;
}
h1 {
    padding: 1em 0 .5em;
    text-align: center;
    border-bottom: .2rem solid black;
}
p {
    padding: .5em 0;
}
a {
    color: var(--orange);
    font-style: italic;
    transition: .1s ease;
}
li:not(nav li) {
    margin-left: 1em;
}
a:hover, a:focus {
    color: var(--redlight);
    transition: color .3s ease;
}
img {
    max-width: 100%;
    height: auto;
}
.chart {
    border: solid black;
    border-width: .2em 0;
}
#tag1 {
    background: lightyellow;
    /* display: flex; */
    display:none;
    width: 100%;
}
#tag1 div {
    display: block;
    height: 5em;
    background: lightpink;
    flex-grow: 1;
}
#tag1 div:hover {
    background: lightsalmon !important;
    cursor: pointer;
}
#media-panel {
    display: flex;
}
#media-panel > * {
    width: 33%;
    height: auto;
    background: black;
}
#media-panel picture {
    border: solid black;
    border-width: 0 .1em 0;
}
#media-panel img {
    object-fit: cover;
    object-position: center center;
    height: 100%;
    width: calc(100vw / 3);
}
#media-panel video {
    align-self: center;
}
#media-panel > div {
    display: block;
    padding: .5em;
    background: white;
}
/* Channel-Navigation */
nav {
    background: #f2f2f2;
    /* border-bottom: .2rem solid black; */
}
nav ul {
    display: flex;
    padding-inline-start: 0;
}
nav > ul > li {
    /* border-bottom: .1em solid black; */
    background: var(--yellowlight);
}
nav > ul > li:not(:first-of-type) {
    border-left: .1em solid black;
}
nav > ul > li:first-of-type {
    background: var(--purple);
}
nav > ul > li:last-of-type {
    background: var(--bluelight);
}
nav ul ul{
    border-top: .1em solid black;
    margin: .4em -.5em -.6em;
}
nav ul li {
    list-style-type: none;
    flex-grow: 1;
    padding: .5em;
    transition: all .1s ease;
}
nav ul ul li:hover:not(.inactive), nav ul ul li:focus:not(.inactive) {
    background: hsl(14, 87%, 80%) !important;
    cursor: pointer;
    transition: all .3s ease;
}
nav ul ul li:not(:first-of-type) {
    border-left: .1em solid black;
}
li.inactive {
    background: var(--blacktransparent);
    opacity: .5;
}
/* Loader */
#loader, .loader {
    display: flex;
    height: 5em;
    border: .2em solid black;
    border-width: .2em 0;
}
#loader div, .loader div {
    flex-grow: 1;
    background:hsl(294, 30%, 61%);
    animation: changeWidth 4s ease infinite;
}
#loader div:nth-of-type(3n), .loader div:nth-of-type(3n) {
    flex-basis: 5%;
    background:lightpink;
    flex-grow: .5;
    animation-delay: 1s
}
#loader div:nth-of-type(2n), .loader div:nth-of-type(2n) {
    flex-basis: 2%;
    background:lightblue;
    animation-delay: 3s
}
#loader div:nth-of-type(4n), #loader div:nth-of-type(4n) {
    flex-basis: 10%;
    background:lightgoldenrodyellow;
    flex-grow: 3;
    animation-delay: 2s
}
@media screen and (prefers-reduced-motion: no-preference) {
    @-webkit-keyframes changeWidth {
        0% {
            flex-basis: 2%;
        }
        40% {
            flex-basis: 12%;
        }
        70% {
            flex-basis: 5%;
        }
        100% {
            flex-basis: 2%;
        }
    }
    @keyframes changeWidth {
        0% {
            flex-basis: 2%;
        }
        40% {
            flex-basis: 12%;
        }
        70% {
            flex-basis: 5%;
        }
        100% {
            flex-basis: 2%;
        }
    }
}
@media screen and (prefers-reduced-motion: no-preference) {
    @-webkit-keyframes changeBackground {
        0% {
            background: var(--bluelight);
        }
        10% {
            background: var(--bluelight);
        }
        40% {
            background: var(--purple);
        }
        50% {
            background: var(--purple);
        }
        70% {
            background: var(--yellowlight);
        }
        80% {
            background: var(--yellowlight);
        }
        100% {
            background: var(--bluelight);
        }
    }
    @keyframes changeBackground {
        0% {
            background: var(--bluelight);
        }
        10% {
            background: var(--bluelight);
        }
        40% {
            background: var(--purple);
        }
        50% {
            background: var(--purple);
        }
        70% {
            background: var(--yellowlight);
        }
        80% {
            background: var(--yellowlight);
        }
        100% {
            background: var(--bluelight);
        }
    }
}
/* Spacer: #spacer */
#spacer {
    height: 5em;
    background: var(--bluelight);
    animation: changeBackground 20s ease infinite;
    display: block;
    border:solid black;
    border-width: .2em 0;
}
/* Footer */
footer {
    display: flex;
    border: .2em solid black;
    border-width: 0 0 .2em;
}
footer > * {
    flex-basis: 25%;
    flex-grow: 1;
    padding: 1em .5em;
}
footer > *:not(:first-child) {
    border-left: .1em solid black;
}

#summary {
    display: flex;
    height: 5em;
    border: 0 solid black;
    border-width: 0 0 0;
}
#summary div {
    display: block;
}
#summary div:first-of-type {
    display: none;
}
#summary div:nth-of-type(2) {
    background: lightblue;
}
#summary div:nth-of-type(3) {
    background: pink;
}
#summary div:nth-of-type(4) {
    background: lightyellow;
}
#summary div:nth-of-type(5) {
    background: purple;
}
#summary div:nth-of-type(6) {
    background: black;
}
#summary div:nth-of-type(7) {
    background: lightgrey;
}
@media screen and (max-width: 800px) {
    #media-panel {
        flex-direction: column;
    }
    #media-panel > * {
        width: 100%;
    }
    footer {
        flex-direction: column;
    }
    footer > *:not(:first-child) {
        border-top: .1em solid black;
        border-left: 0;
    }
}