:root {
	--white: #d1d1d1;
	--black: #121212;
    --hlb: #1f89c2;
	--hl: #fcb531;
	--dgray: #0f0f0f;
	--lgray: #1f1f1f
}

.paused * {
    animation-play-state: paused !important;
}

/* @keyframes boot {
    0% {
        opacity: 0.6;
    }
    5% {
        opacity: 1;
    }
}

.foreground {
    animation: boot;
    animation-duration: 0.1s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
} */

* {
	margin: 0;
	padding: 0;
	/* box-sizing: border-box; */
	/* zoom: 95%; */
}

@font-face {
	font-family: 'VCR'; 
	src: url('../assets/VCR.ttf') format('truetype');
  }

body {
    background: none;
    background-color: #121212;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    position: relative;
    z-index: 0;
    color: #fff;
    /* height: 100vh; */
    width: 100%;

    font-family: VCR;
    font-size: 1rem;
    line-height: 1.35;

    padding: 0;
    margin: 0;
    transition: .3s;
    scrollbar-color: var(--lgray) #0f0f0f;
    scrollbar-width: .5rem;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
   	-ms-user-select: none;
   	user-select: none;

    /* min-height: 100vh; */
    overflow-y: hidden;

    /* scroll-snap-type: block mandatory; */

}

div.foreground {
    position:relative;
    min-height: 100dvh;
    width: 100%;
    z-index: 1;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    box-shadow: inset 0 0 100px 50px rgb(0, 0, 0);
}

.channel {
    position: absolute;
    width: 10vw;
    left: 10vw;
    top: 5dvh;
    filter: drop-shadow(0 0 2px)
}

#clock {
    display: inline-block;
    background-color: black;
    padding-left: 5px;
    padding-right: 5px;
    min-width: 5vw;
    text-align: center;
    bottom: 10vh;
    left: 10vw;
    font-size: 1.5rem;
    box-shadow: 10px 10px 1px rgb(41, 41, 41);
    /* transition: ease-in 3s; */
}

.bg-stack {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg {
    position: absolute;
    inset: 0;
    
    will-change: opacity;
    backface-visibility: hidden;

    background-size: cover;
    background-position: 50% 45%;
    background-repeat: no-repeat;
}

@keyframes bgCycle {
    0%   { opacity: 0; }
    2%   { opacity: 1; }
    18%  { opacity: 1; }
    20%  { opacity: 0; }
    100% { opacity: 0; }
  }

.bg.base {
  background-image: url("../images/bg_poc.webp");
  opacity: 1;
  animation: none;
}

.bg:not(.base) {
  opacity: 0;
  animation: bgCycle 60s infinite;
}

.bg.orange  { background-image: url("../images/bg_orange.webp");  animation-delay:  0s; }
.bg.blue    { background-image: url("../images/bg_blue.webp");    animation-delay: 10s; }
.bg.back    { background-image: url("../images/background.webp"); animation-delay: 20s; }
.bg.orange2 { background-image: url("../images/bg_orange2.webp"); animation-delay: 30s; }
.bg.blue2   { background-image: url("../images/bg_blue2.webp");   animation-delay: 40s; }
.bg.blue3   { background-image: url("../images/bg_blue3.webp");   animation-delay: 50s; }

html, body {
    overflow-x: hidden;
}

html {
    font-size: 16px;
    overflow-y: scroll;
}

#hud {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

a {
    color: inherit;
    text-decoration: none;
    transition: ease-out 0.4s;
}

a:hover {
    color: #1f89c2;
    transition: ease-in 0.1s;
}

.scary:hover {
    color: #fff;
    pointer-events: auto;
}

.flex-2 {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.blur-layer {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 0;
}

.inner {
	height: 50%;
	width: 75%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	position: absolute;
	padding-bottom: 0
}

.container {
	/* position: fixed; */
    width: 100%;
    height: 20%;
    max-width: 1100px;
    margin-left: 10vw;
    margin-right: auto;
    transform: none;
    margin-top: clamp(-15vh, -15vh, -20vh);
    /* margin-top: -10vh; */
    /* margin-bottom: 10vh; */
    /* padding: 1rem 2rem; */
}

.tooltip {
    position: relative; 
    display: inline-block; 
    border-bottom: 3px dotted var(--hlb); 
    cursor: pointer; 
  }
  
  .tooltiptext {
    visibility: hidden;
    width: max-content;
    max-width: 100vw;
    background-color: black;
    color: #fff;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    padding: 10px;
    /* border-radius: 6px; */
    
    position: absolute;
    z-index: 1; 
    top: 4dvh;
    left: 5vw;
    margin-left: -5vw;
    
    opacity: 0;
    transition: opacity 0.3s; 
    transition: ease-in 0.2s;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }



@keyframes intro {
from {
    filter: brightness(30%); filter: blur(10px); filter: drop-shadow(0 0 0);
    translate: 0 100vh;
    scale: 100% 1;
    pointer-events: none;
    }

    to {
    translate: 0 0;
    scale: 100% 1;
    }
}

@keyframes dropShadow {
    25%{
        filter: drop-shadow(30px 10px 0px #eeb115);
        pointer-events: none;
      }
      99% {
        filter: drop-shadow(30px 10px 0px #eeb115);
      }
      100% {
        filter: none;
        pointer-events: auto;
      }
}


@keyframes breatheShadow {
    0%, 100% { filter: drop-shadow(30px 10px 0px #eeb115);}
    50% { filter: drop-shadow(28px 18px 0px #eeb115);}
}

@keyframes breathe {
    0%, 100% { transform: translateY(5vh) scale(1);}
    50% { transform: translateY(5.8vh) scale(1);}
}

.heranim {
    animation:
    intro 2s forwards,
    breathe 3s ease-in-out infinite;
    /* animation-delay: 6s; */
    image-rendering: crisp-edges;
    position: fixed;
    bottom: 0;
    right: 14vw;
    width: clamp(18vw, 38vw, 38vw);
    z-index: 10;
    transform: translateY(5vh);
    pointer-events: none;
    display: grid;
    transition: 0.3s ease-in-out;
}

.her {
    transform: rotate(8deg);
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.her.body {
    animation-name: dropShadow, breatheShadow;
    animation-duration: 4s, 3.5s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards;
    animation-delay: 2s, 4s;
}

.heranim img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    opacity: 0;
}

.her.body.idle {
    opacity: 1;
}

.her.face.blink {
    opacity: 1;
}

.her.speak {
    opacity: 0;
}

.her.speakblink {
    opacity: 0;
}

.her.face {
    transition: opacity 0.15s ease-in-out;
    will-change: opacity;
}

.her.face.sleep {
    transition: none;
    will-change: opacity;
}

.her.body {
    transition: opacity 0.15s ease-in-out;
    will-change: opacity;
}

.heranim:hover .bsu {
    filter: none !important;
    opacity: 1;
}

.bsu {
    filter:none;
    pointer-events: auto;
    transition: 0.2s ease-in;
    background-color: #0f0f0f;
    color: #fff;
    opacity: 0;
    font-size: 1rem;
    position: fixed;
    max-width: auto;
    right: 30vw;
    top: 35vh;
    padding: 1px;
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
    text-align:center;
    z-index: 9999;
}

@keyframes speakyBreathing {
    0%, 100% { transform: translateY(1vh) scale(1);}
    50% { transform: translateY(1.3vh) scale(1);}
}

.speaky {
    animation-name: intro, speakyBreathing;
    animation-duration: 2s, 2s;
    animation-delay: 0s, 0s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards;

    filter:none;
    pointer-events: auto;
    transition: 0.2s ease-in;
    background-color: #0f0f0f;
    text-shadow: 0 0 6px;
    color: #fff;
    font-size: 1rem;
    position: fixed;
    max-width: auto;
    right: 20vw;
    top: 30vh;
    padding: 1px;
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
    text-align:center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.speaky.hidden {
    opacity: 0;
}


.leftPat {
    display: block;
    right: 10vw;
    top: 20vh;
    position:absolute;
    width: 20vw;
    background-color: red;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.breaking {
    position: fixed; 
    bottom: 0;
    margin-bottom: 0;
    padding: 2px;
    width: 100%;
    overflow: hidden; 
    background-color: #0f0f0f;
    color: var(--white);
    font-size: 1.3rem;
    white-space: nowrap;
    z-index: 10000;
}

.breaking-content:hover{
    animation-play-state: paused;
}

.breaking-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 55s linear infinite;
    animation-delay: 3s;
}

#news::before {
    content: "> BREAKING NEWS: ";
    color: var(--hl)
}

#news::after {
    content: " // ";
    color: var(--hl)
}

#weather::before {
    content: "WEATHER REPORT: ";
    color: var(--hlb)
}

#weather::after {
    content: " // THANK YOU FOR YOUR PATRONAGE, FSQ BROADCASTING SERVICE.";
    color: var(--hl)
}

#logo {
    width: 5%;
}

@keyframes typing {
    0% {
        content: "F"
    }
    5% {
        content: "FA"
    }
    10% {
        content: "FAL"
    }
    15% {
        content: "FALS"
    }
    20% {
        content: "FALSE"
    }
    25% {
        content: "FALSEQ"
    }
    30% {
        content: "FALSEQU"
    }
    35% {
        content: "FALSEQUA"
    }
    40% {
        content: "FALSEQUAL"
    }
    45% {
        content: "FALSEQUALI"
    }
    50% {
        content: "FALSEQUALIF"
    }
    55% {
        content: "FALSEQUALIFI"
    }
    60% {
        content: "FALSEQUALIFIE"
    }
    65% {
        content: "FALSEQUALIFIED"
    }
    100% {
        content: "FALSEQUALIFIED" 
    }
}

@keyframes caret {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.text-title {
    color: var(--hl);
	margin-top: 25%;
	font-size: 2rem;
	text-align: left;
	opacity: 1;
	word-spacing: 1px;
    filter: drop-shadow(5px 5px 0px #2e2e2e);
    pointer-events: auto;
}

.typing::after {
    content: "";
    animation-name: typing;
    animation-delay: 6s;
    animation-fill-mode: forwards;
    animation-duration: 3s;
    animation-iteration-count: 1;
}

.text-title::after {
    animation: caret 0.8s infinite;
    content: "_"
}

.text-subtitle {
    transition: max-width 0.1s ease-in;
    display: flow-root;
    align-self: flex-start;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    color: var(--white);
    padding: 20px;
    max-width: 15vw;
    background-color: rgba(30, 30, 30, 0.56);
    box-shadow: 12px 12px 1px rgb(41, 41, 41);
    contain: layout paint;
    /* overflow-anchor: none; */
}

.text-subtitle-small {
    display: flow-root;
    align-self: flex-start;
    margin-bottom: 1.5rem;
    max-width: 20%;
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.56);
    box-shadow: 10px 10px 1px rgb(41, 41, 41);
    /* overflow-anchor: none; */
}

.bios {
    color: #fff;
    cursor: pointer;
    display: block;
    transition: ease-out 1s;
    will-change: opacity;
}

.bios::before {
    content: ">";
}

.bios:hover {
    color: var(--hlb);
    transition: ease-in 0.2s;
}

/* .bio {
    will-change: opacity;
    contain: layout paint;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.2s ease,
        opacity 0.25s ease;
}

.bio.open {
    grid-template-rows: 1fr;
    opacity: 1;
} */

.bio {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.18s ease,
        opacity 0.12s ease 0.18s;

    will-change: opacity;
    contain: layout paint;
}

.bio.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.bio-content {
    contain: paint;
}

.bio > * {
    overflow: hidden;
}



.bios.hopen::before {
    color: var(--hlb);
    transition: ease-in 0.2s;
    content: "-> "
}

.spacer {
    padding: 50px;
}

.hl {
	color: var(--hl);
	font-weight: normal;
    pointer-events: auto;
}

@keyframes lissa {
    0% {
        content: " |";
    }
    25% {
        content: " -";
    }
    50% {
        content: " /";
    }
    75% {
        content: " |";
    }
    100% {
        content: " / Lissa. "
    }
}

.hl.lissa::after {
    content: ". ";
    transition: ease-in 3s;
}

.hl.lissa:hover::after {
    content: "";
    cursor: pointer;
    pointer-events: auto;
    transition: ease-in 3s;
    animation: lissa 3s;
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

.hlb {
	color: var(--hlb);
	font-weight: normal;
}


/* Mobile */
@media only screen and (max-width: 767px) {

    .blur-layer {
        backdrop-filter: none;
        background: rgba(0,0,0,0.3);
    }

    .channel {
        display: none;
    }

    .bios {
        text-align: center;
    }
    
    .bios::after {
        content: " <"
    }

    .bios.hopen {
        color: var(--hlb)
    }

    body {
      background-color: #121212;
      /* flex-direction: column; */
      overflow-x: hidden;
    }

    .bg {
        position: absolute;
        inset: 0;
      
        background-size: cover;
        background-position: 50% 45%;
        background-repeat: no-repeat;
    }

    #clock {
        position: absolute;
        left: 30vw;
        top: 60vw;
        margin-bottom: 0;
        font-size: 1.3rem;
    }

    .her {
        display: none;
    }

    .text-subtitle .text-title .text-subtitle-small {
        min-width: 100vw;
        text-align: center;
        position: absolute;
        
    }

    .container {
        margin-left: 0;
        position: absolute;
        min-width: 100%;
    }

    .text-title {
        /* animation-name: gradientChange;
        animation-duration: 5s; */
        color: var(--hl);
        /* animation-iteration-count: infinite; */
        margin-top: 25%;
        margin-left: 0;
        font-size: 2rem;
        text-align: center;
        opacity: 1;
        word-spacing: 1px;
        filter: drop-shadow(5px 5px 0px #2e2e2e);
        pointer-events: auto;
    }
    
    .text-subtitle {
        margin-left: 0;
        display: inline-block;
        margin-top: 1.5rem;
        margin-bottom: 3rem;
        color: var(--white);
        max-width: 100%;
        padding: 20px;
        background-color: rgba(30, 30, 30, 0.56);
        box-shadow: 12px 12px 1px rgb(41, 41, 41);
        /* overflow-anchor: none; */
    }
    
    .text-subtitle-small {
        margin-left: 0;
        display: inline-block;
        align-self: normal;
        /* white-space: break-spaces; */
        text-align: left;
        margin-bottom: 1.5rem;
        max-width: 100%;
        padding: 20px;
        background-color: rgba(30, 30, 30, 0.56);
        box-shadow: 10px 10px 1px rgb(41, 41, 41);
        /* overflow-anchor: none; */
    }
}

/* 1920x1080 and up */
@media screen and (min-width: 1921px) {
    body {
        font-size: clamp(1.2rem, 1.3rem, 2.3rem);
    }
    .text-title {
        font-size: 3rem;
    }

    #clock {
      font-size: 1.5rem;
    }

    .breaking {
        font-size: 1.5rem;
    }

    .text-subtitle {
        min-width: clamp(5vw, 15vw, 50vw);
        bottom: 0;
        font-size: 1.3rem;
        margin-bottom: 5.5rem;
        transition: max-width 0.4s ease, opacity 0.2s ease;
    }
    .text-subtitle-small {
        min-width: 15vw;
    }

    .container {
        margin-top: 10vh;
        transform: none;
    }

    .bsu {
        transition: 0.2s ease-in;
        background-color: #0f0f0f;
        color: #fff;
        opacity: 0;
        font-size: 1.3rem;
        position: fixed;
        max-width: auto;
        display: inline-block;
        right: 30vw;
        top: 65vh;
        padding: 1px;
        padding-left: 20px;
        padding-right: 20px;
        height: auto;
        text-align:center;
        z-index: 9999;
    }

    @keyframes dropShadow {
      25%{
          background-image: url('../images/idle_nh');
          filter: none;
        }
        100% {
          filter: drop-shadow(1.5vw 10px 0px #eeb115)
        }
    }
  

    .heranim {
        position: fixed;
        bottom: 0;
        right: 15vw;
        width: clamp(28vw, 38vw, 48vw);
        z-index: 10;
        pointer-events: auto;
        transform: translateY(5vh);
    }
}
/* I don't even know I guess */
@media screen and (min-width: 2560px) {
    body {
        font-size: clamp(1.5rem, 1.8rem, 2.3rem);
    }
    .text-title {
        font-size: 4rem;
    }

    #clock {
      font-size: 2rem;
    }

    .breaking {
        font-size: 2.5rem;
    }

    .text-subtitle {
        min-width: clamp(5vw, 15vw, 50vw);
        bottom: 0;
        font-size: 2rem;
        margin-bottom: 0.5rem;
        transition: max-width 0.4s ease, opacity 0.2s ease;
    }
    .text-subtitle-small {
        min-width: 15vw;
    }

    .container {
        margin-top: 10vh;
        transform: none;
    }

    .bsu {
        transition: 0.2s ease-in;
        background-color: #0f0f0f;
        color: #fff;
        opacity: 0;
        font-size: 2rem;
        position: fixed;
        max-width: auto;
        display: inline-block;
        right: 30vw;
        top: 65vh;
        padding: 1px;
        padding-left: 20px;
        padding-right: 20px;
        height: auto;
        text-align:center;
        z-index: 9999;
    }

    @keyframes dropShadow {
      25%{
          background-image: url('../images/idle_nh');
          filter: none;
        }
        100% {
          filter: drop-shadow(1.5vw 10px 0px #eeb115)
        }
    }
  

    .heranim {
        position: fixed;
        bottom: 0;
        right: 15vw;
        width: clamp(28vw, 38vw, 48vw);
        z-index: 10;
        pointer-events: auto;
        transform: translateY(5vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
      animation: none !important;
    }
  }