@import url(palette.css);

@font-face {
    font-family: 'Metrophobic';
    src: url(../fonts/Metrophobic/Metrophobic-Regular.ttf);
}

@font-face {
    font-family: 'Jersey10';
    src: url(../fonts/Jersey_10/Jersey10-Regular.ttf);
}

@font-face {
    font-family: 'Cascadia_Code';
    src: url(../fonts/Cascadia_Code/CascadiaCode-VariableFont_wght.ttf);
}

:root {
    --primary-header-width: 15rem;
    --loading-timeout: 2.5s;
    --vanish-duration: 2s;
    --logo-vanish-duration: 2.4s;
    --vanish-timing-function: ease;
    --layout-margin: 3.5rem;
}

* {
    padding: 0;
    margin: 0;
}

/*
    GENERAL
*/
body {
    font-family: 'Metrophobic', sans-serif;
    background-color: var(--color-white);
    display: flex;
    flex-direction: row;
    max-width: 75rem;
    line-height: 1.5;
    margin: auto;
    overflow-x: hidden;
}

/*
        HEADINGS
*/
h1 {
    font-size: 2.4rem;
    margin: 0.5rem 0;
}

h2 {
    font-size: 1.75rem;
    margin: 0.2rem 0;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

/*
        PARAGRAPH
*/
p {
    margin: 0.4rem 0;
}

/*
        LINK
*/
a {
    margin: 2px;
    font-family: 'Jersey10';
    font-size: 1.5rem;
}

a:link {
    color: var(--color-tertiary);
}

a:visited {
    color: var(--color-visited);
}

/* 
        BUTTON 
*/
button {
    cursor: pointer;
    font-family: 'Metrophobic', sans-serif;
    font-size: 0.8rem;
}

button:disabled {
    cursor: default;
}

button.classic {
    min-width: 5.5rem;
    height: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background-color: var(--color-desktop-tertiary-dark);
    border-image-source: var(--border-image-button-idle);
    border-image-slice: 3;
    border-image-repeat: stretch;
    border-width: 9px;
    border-radius: 20px;
    border-image-outset: 2px;
    color: var(--color-white);
    filter: drop-shadow(0 6px 0 var(--color-desktop-tertiary-light));
}

button.classic.hidden {
    display: none;
}

button.classic:active:not(:disabled)::before {
    content: "";
    flex: 0 0 6px;
}

button.classic:disabled {
    filter: opacity(0.65);
    cursor: default;
}

button.classic.iconButton {
    padding: 0.55rem;
    min-width: 2rem;
    text-indent: -999rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

button.classic.iconButton:active:not(:disabled) {
    background-position-y: 5px;
}

/*
        CARD
*/
.card {
    border: 3px solid transparent;
    border-image-source: var(--border-image-white);
    border-image-slice: 1;
    border-image-repeat: stretch;
    background-color: var(--color-white);
    background-clip: padding-box;
    padding: 0.25rem;
    box-sizing: border-box;
}

/*
        NAVHELP, A11Y HELP
*/
.navHelp {
    position: absolute;
    left: -999rem;
}

.navHelp:focus {
    position: static;
}

.a11yHelp {
    position: fixed;
    left: -100vw;
}

/*
        HIDDEN
*/
.hidden {
    display: none;
}

/*
        CODE
*/
pre {
    white-space: pre-wrap;
}

code {
    font-size: 1rem;
    font-family: 'Cascadia_Code', monospace;
}

code .string {
    color: var(--color-green);
}

code .tag {
    color: var(--color-blue);
}

code .attribute {
    color: var(--color-red);
}

code .comment {
    color: var(--color-gray);
}

code .rule {
    color: var(--color-yellow);
}

code .property {
    color: var(--color-red);
}

code .value {
    color: var(--color-green);
}

code .overridden {
    text-decoration: line-through var(--color-gray);
}

/*
        BACKGROUND
*/
#backgroundContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    filter: blur(0.5rem);
    transition: filter var(--vanish-duration) ease;
}

body.animateOut #backgroundContainer,
body.animateIn #backgroundContainer {
    filter: blur(0);
}

#backgroundContainer::before,
#backgroundContainer::after {
    content: "";
    height: 100%;
    flex: 1 0 48px;
    background-size: contain;
}

#backgroundContainer::before {
    background-image: url("../images/left_back.png");
    background-position: right;
}

#backgroundContainer::after {
    background-image: url("../images/right_back.png");
    background-position: left;
}

#background>img {
    -webkit-user-select: none;
    -webkit-user-drag: none;
    user-select: none;
    width: fit-content;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/*
        PERSONA
*/
.personaProfile {
    padding-top: 5rem;
    margin-bottom: 3rem;
}

.personaProfile> :not(.personaHeader) {
    padding: 0.8rem 1.2rem;
}

.personaHeader {
    display: flex;
    height: fit-content;
    width: 100%;
}

.personaHeader hgroup {
    padding: 0 1rem;
    flex: 1 1 auto;
}

.personaHeader h3 {
    padding: 0.4rem 0;
}

.personaHeader p {
    font-size: 1.125rem;
}

.personaProfile>section {
    margin: 0.2rem 0.35rem;
}

.personaProfile>section hgroup {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: bold;
}

.personaAbility {
    display: flex;
    align-items: center;
}

.activeSprite {
    margin-right: 2rem;
    object-fit: contain;
    height: 11rem;
}

/*
            PERSONA POWER
*/
.personaPower {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 1rem;
}

.personaPowerImage {
    object-fit: contain;
    height: 3.6rem;
    border-right-width: 0;
}

.personaPowerTitle {
    display: flex;
    align-items: center;
    padding-right: 0.5rem;
    font-weight: bold;
    height: 3.6rem;
    border-left-width: 0;
    font-style: normal;
}

/*
            LIAM
*/
#Liam_power .personaPowerTitle,
#Liam_power .personaPowerImage {
    border-image-source: var(--border-image-Liam);
    background-color: var(--color-Liam);
    color: var(--color-white);
}

/*
            CHARLOTTE
*/
#Charlotte_power .personaPowerTitle,
#Charlotte_power .personaPowerImage {
    border-image-source: var(--border-image-Charlotte);
    background-color: var(--color-Charlotte);
    color: var(--color-white);
}

/*
            OLIVIA
*/
#Olivia_power .personaPowerTitle,
#Olivia_power .personaPowerImage {
    border-image-source: var(--border-image-Olivia);
    background-color: var(--color-Olivia);
    color: var(--color-white);
}