:root {
    --text-size: 1.5rem;
    --text-color: yellow;
    --overlay-bg-opacity: 0.9;
    overscroll-behavior: none;
}

@font-face {
    font-family: 'vcr';
    src: url(../typefaces/VCR-JP-extended.woff);
}

/* -------- RESETS  ------------ */

* {
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    margin-block-end: 0;
    margin-block-start: 0;
}

ol,
ul {
    list-style: none;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'vcr';
    touch-action: manipulation;
}

img {
    display: block;
}

button {
    all: unset;
    cursor: pointer;
}

a {
    color: var(--text-color);
}

a:visited {
    color: var(--text-color);
}



/* --------- FUNCTIONAL CLASSES AND OVERRIDES ------------- */

.outline {
    text-shadow: rgb(0, 0, 0) 3px 0px 0px, rgb(0, 0, 0) 2.834871px 0.981584px 0px, rgb(0, 0, 0) 2.357662px 1.855109px 0px, rgb(0, 0, 0) 1.620907px 2.524413px 0px, rgb(0, 0, 0) 0.705713px 2.915814px 0px, rgb(0, 0, 0) -0.287171px 2.986224px 0px, rgb(0, 0, 0) -1.248441px 2.727892px 0px, rgb(0, 0, 0) -2.072274px 2.169258px 0px, rgb(0, 0, 0) -2.66798px 1.371818px 0px, rgb(0, 0, 0) -2.969977px 0.42336px 0px, rgb(0, 0, 0) -2.945022px -0.571704px 0px, rgb(0, 0, 0) -2.59586px -1.503831px 0px, rgb(0, 0, 0) -1.960931px -2.270407px 0px, rgb(0, 0, 0) -1.11013px -2.787044px 0px, rgb(0, 0, 0) -0.137119px -2.996865px 0px, rgb(0, 0, 0) 0.850987px -2.876773px 0px, rgb(0, 0, 0) 1.74541px -2.439988px 0px, rgb(0, 0, 0) 2.447689px -1.734595px 0px, rgb(0, 0, 0) 2.880511px -0.838247px 0px;
}

.blur {
    filter: blur(1px);
}

.hidden {
    display: none !important;
}

.opacity0 {
    opacity: 0;
    transition: opacity 200ms steps(5);
}

.opacity01 {
    opacity: 1;
}

#load-dialogue {
    z-index: 100;
    height: 105%;
    width: 105%;
    opacity: .95;
    background-color: black;
    position: absolute;
    left: -2.5%;
    top: -2.5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

button:focus-visible {
    color: blue;
}

button:focus {
    color: yellow;
}

#tv-house {
    height: 100%;
    width: 100%;
    background-color: black;
    position: relative;
    overflow: scroll;
    overscroll-behavior: none;
}

/* ---- video positioning ------ */

.video-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* OLD .video-container > video {
    position: absolute;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    filter: grayscale(0) contrast(1.5) brightness(1.1) hue-rotate(0) invert(0.0);
    opacity: 1;
} */

.video-container {
    position: absolute;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    overflow: hidden;
    background: black;
}

.svg-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.svg-wrapper>svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    filter: grayscale(0) contrast(1.5) brightness(1.1) hue-rotate(0) invert(0.0);

}

/* --------- REPOSITIONING -------- */

/* .horal-left {
    left: 0;
}

.horal-center {
    left: 50%;
    transform: translateX(-50%);
}

.horal-center.vertal-center {
    transform: translate(-50%, -50%)
}

.horal-right {
    right: 0;
}

.vertal-top {
    top: 0;
}

.vertal-center {
    top: 50%;
    transform: translateY(-50%)
}

.vertal-bottom {
    bottom: 0;
} */

/* ------ INFORMATION OVERLAY ------*/

.credits-container,
.biography-container {
    text-align: left;
    overflow-y: auto;
    scrollbar-color: var(--text-color) transparent;
    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 1) 99%, rgba(0, 0, 0, 0) 100%);
    direction: rtl;
    padding-left: 1.5rem;
    padding-right: var(--info-nav-width);
}

.credits-container * {
    direction: ltr;
}

.biography-container * {
    direction: ltr;
}

.credits-container li {
    margin-left: 20%;
}

.credits-container>ul {
    margin-bottom: (var(--text-size) * 1.4) !important;
}

.credits-container>ul:last-child {
    margin-bottom: 0;
}

.credits-container span {
    display: block;
    margin-left: 20%;
}

.credits-container h2 {
    font-size: var(--text-size);
}

.library-container {
        padding-right: var(--info-nav-width);

}

.credits-container span {
    padding-bottom: .7rem;
}

.contact-container {
    padding-right: var(--info-nav-width);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mailbutton {
    text-decoration: underline;
}

[data-mailadress] {
    text-decoration: underline;
}


::-webkit-scrollbar-thumb {
    border-radius: 0;
}

::-webkit-scrollbar-track {
    border-radius: 0;
}

/* keyframes */
/* @keyframes fadeInOut {
  0%   { fill: rgba(255, 255, 0, 0.0); }
  50%  { fill: rgba(255, 255, 0, 0.9); }
  100% { fill: rgba(255, 255, 0, 0.0); }
} */

@keyframes fadeInOut {
  0%   { fill: rgba(255, 255, 0, 0.0); }   /* invisible */
  14.28% { fill: rgba(255, 255, 0, 0.9); } /* fade in for 1s */
  28.57% { fill: rgba(255, 255, 0, 0.0); } /* fade out for 1s */
  100%  { fill: rgba(255, 255, 0, 0.0); }  /* stay invisible for ~5s */
}

/* svg {
    filter: blur(3px);
    -webkit-filter: blur(3px);
} */

#enter-page-button {
    all: unset;
    color: var(--text-color);
    font-size: var(--text-size);
    line-height: 1;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#enter-page-button:focus-visible {
    color: blue;
}

#enter-page-button h1 {
    font-size: var(--text-size);
    text-align: center;
    max-width: 80vw;
}

#enter-page-button {
    width: fit-content;
}

#start-screen-wrapper {
    height: auto;
    width: 30vw;
    position: relative;
    margin: 0 auto;
}

#start-screen-wrapper > video, svg{
    height: auto;
    width: 100%;
}

#start-dialogue-svg {
    position: absolute;
    left: 0;
    top: 0;
}

#start-dialogue-button {
    fill: rgba(0, 0, 0, 0.0);
    cursor: alias;
    animation: fadeInOut 7s ease-in-out infinite;
}

#start-dialogue-button:hover {
    fill: rgba(255, 255, 0, 0.9);
    stroke: yellow;
    stroke-width: 5px;
    outline: none;
}

.cls-2:hover {
    fill: rgba(255, 255, 0, 0.9);
    stroke: yellow;
    stroke-width: 5px;
    outline: none;
}

.cls-2 {
    fill: rgba(0, 0, 0, 0.0);
    cursor: alias;
    animation: fadeInOut 7s ease-in-out infinite;
}

.cls-2:focus-visible {
    fill: rgba(255, 255, 0, 0.9);
    stroke: yellow;
    stroke-width: 5px;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    outline: none;
}

.transition-overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: cell;
    opacity: 1;
}

.transition-overlay>* {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 1;
}



.navigation-overlay {
    font-size: var(--text-size);
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 3rem 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: var(--text-color);
    filter: blur(1px);
    font-weight: bold;
    text-align: center;
    opacity: .9;
    gap: 2rem;
    pointer-events: none;
    line-height: 1.2;
}


.navigation-overlay>* {
    all: unset;
    cursor: pointer;
    pointer-events: all;
    /* width: calc(100% / 3); */
}

#nextroom {
    text-align: left;
    display: none;
}

.information-overlay {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, var(--overlay-bg-opacity));
    font-size: var(--text-size);
    color: var(--text-color);
    position: fixed;
    top: 0;
    left: 0;
    padding: 3rem;
    filter: blur(1px);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-navigation>div {
    cursor: pointer;
    width: fit-content;
    text-align: right;
}

.activated::after {
    content: ' •';
}

.bryan-keller-button {
    font-size: var(--text-size);
}

.credits-container>h4 {
    margin-top: 1.5rem
}

.credits-container>h4:first-child {
    margin-top: 0
}

.info-navigation {
    height: 100%;
    position: fixed;
    top: 3rem;
    right: 4.5rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: .2rem;
    align-items: flex-end;
    z-index: 5;
}

/* SCANLINES OVERLAY */

.scanlines {
    height: 104%;
    width: 104%;
    overflow: hidden;
    position: fixed;
    left: -2%;
    top: -2%;
    user-select: none;
    pointer-events: none;
}

.scanlines:before,
.scanlines:after {
    display: block;
    pointer-events: none;
    content: "";
    position: absolute;
}

.scanlines:before {
    width: 100%;
    height: 2px;
    z-index: 2147483649;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.75;
    animation: scanline 6s linear infinite;
}

.scanlines:after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483648;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(0, 0, 0, 0.3) 51%);
    background-size: 100% 4px;
    animation: scanlines 2s steps(24) infinite;
    filter: blur(1px);
}

@keyframes scanline {
    0% {
        transform: translate3d(0, 200000%, 0);
    }
}

@keyframes scanlines {
    0% {
        background-position: 0 50%;
    }
}

/* ---------------------------------- */

.audio-controls {
    display: flex;
    height: fit-content;
    gap: 1rem;
    color: var(--text-color);
    justify-content: center;
    height: 2rem;
    font-size: var(--text-size);
}

.cls-1 {
    fill: var(--text-color);
    stroke: black;
    stroke-width: 2px;
    width: 20px;
    height: 20px;
}

#closer {
    position: absolute;
    right: 4.5rem;
    bottom: 3rem;
    z-index: 5;
    height: fit-content;
    width: fit-content;
}

#mobilemenutoggle {
    display: none;
}

.headshot-container {
    height: 100%;
    width: fit-content;
    position: relative;
}

.headshot-container img {
    height: 100%;
    width: auto;
}


/* TOURING LIST SPECIAL STYLING */

.touringlist {
    margin-left: 10rem;
}

.touringlist>li {
    display: inline-block;
    margin: 0;
}

.touringlist>li:after {
    content: ' /';
}

.touringlist>li:last-child:after {
    content: none;
}

@supports (scrollbar-color: auto) {
    * {
        scrollbar-color: transparent yellow;
        scrollbar-width: none;
    }

}

/* Otherwise, use `::-webkit-scrollbar-*` pseudo-elements */
@supports selector(::-webkit-scrollbar) {
    *::-webkit-scrollbar {
        background: transparent;
        width: 8px;
    }

    *::-webkit-scrollbar-thumb {
        background: yellow;
    }

    #tv-house::-webkit-scrollbar {
    display: none;
}
}



@media screen and (max-width: 1100px) {
    :root {
        --info-nav-width: 0;
    }

    .bryan-keller-button {
        width: fit-content;
        margin: 0 auto;
    }

    #tv-house {
        overflow: auto;
    }

    #start-screen-wrapper {
        width: 60vw;
    }   


    #volume-down, #volume-up, #volumerange {
        display: none;
    }

    .credits-container,
    .biography-container,
    .contact-container {
        mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 1) 99%, rgba(0, 0, 0, 0) 100%);
        padding: 0;
        padding-right: 1rem;
        direction: ltr;
    }

    .headshot-container {
        width: 100%;
        height: 90%;
    }

    .headshot-container>img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
    }

    .contact-container {
        min-height: 0;
        gap: calc( var(--text-size) * 1.4 * 4)
    }

    .credits-container li,
    .credits-container span,
    .touringlist {
        margin-left: 0rem;
        padding-left: 1rem;
    }

    .navigation-overlay {
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1.5rem;
    }

    .mobile-hidden {
        display: none;
    }

    h4 {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    h4:first-of-type {
        margin-top: 0
    }

    .information-overlay {
        padding: 2rem;
        justify-content: space-between;
    }

    .info-navigation {
        position: revert-layer;
        width: fit-content;
        margin: 0 auto;
        height: fit-content;
        z-index: 5;
    }

    #closer {
        top: 2rem;
        right: 2rem;
        z-index: 5;
    }

    .mobile-menu {
        width: fit-content;
        margin: 0 auto;
    }

    .activated::after {
        content: none;
    }

    #mobilemenutoggle {
        display: block;
        position: absolute;
        left: 2rem;
        top: 2rem;
        height: fit-content;
        width: fit-content;
        z-index: 6;
    }

    .info-navigation>div,
    a {
        width: fit-content;
        margin: 0 auto;
        text-align: center;
    }

    .biography-container {
        mask-image: none;
    }

    .media-menu {
        display: hidden;
    }

    .audio-controls {
        gap: 1rem;
    }
}

@media screen and (max-width: 600px) {
    :root {
        --text-size: 1.1rem;
    }
}