@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto+Flex:opsz,wght,XOPQ,XTRA,YOPQ,YTDE,YTFI,YTLC,YTUC@8..144,100..1000,96,468,79,-203,738,514,712&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Fira+Mono:wght@400;500;700&display=swap');

:root{
    /* color */
    --text-color: #CBCBD2;
    --strong-color:#D2D2D9;
    --link-color:#74a8d3;
    --bg-color: #1C1C1C;
    --accent-strong:orchid;/*DA70D6*/
    --accent-light:lightslategrey;
    --highlight-blue: #15EEEE;
    --highlight-green: forestgreen;
    --highlight-red: crimson;
    --highlight-yellow: gold;
    --faded-color:#383838;
    --white:#fcfcfc;
    /* font */
    --header-font: Bebas Neue;
    --text-font: Roboto Flex;
    /* img */
    --bg-image:url("assets/background-noise.png");
    --brig-idle:url("assets/idle_anim.avif");
    --light-strong:url("assets/light-good.webp");
    --light-neutral:url("assets/light-average.webp");
    --light-weak:url("assets/light-bad.webp");
    /* misc */
    --img-padding: 21px;
    --line-height: 1.5rem;
}

html{
    scroll-behavior:smooth;
    width:100%;
    overflow:auto;
}

body{
    position:relative;
    background-color: var(--bg-color);
    background-image: var(--bg-image);
    color: var(--text-color);
    max-width:100%;
    margin:auto;
    font-family: var(--text-font);
    overflow:auto;
}

article{
    line-height:var(--line-height);
    max-width:1080px;
    padding:0 21px;
    margin:auto;
}

footer{
    padding:0 1rem 1rem 1rem;
    text-align:center;
    color:var(--faded-color);
    max-width:1080px;
    margin:auto;
}

/* headers */
h1,h2,h3,h4,h5,h6{
    scroll-margin-top:14px;
    line-height:normal;
}

h2,h3,h4,h5,h6{
    margin-bottom:1rem;
}

h1{
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color:var(--white);
    letter-spacing: 0.02em;
    margin: 56px 0;
    text-align: center;
}

h2{
    padding-top:10px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 2.1rem;
    color:var(--white);
    letter-spacing: 0.028em;
    margin: 2.5rem 0 1.5rem 0;
    text-align: center;
}

h3{
    font-size:1.75rem;
}

h4{
    font-size:1.5rem;
}

h5{
    font-size:1.35rem;
}

.prop{
    display:inline-block;
    width:56px;
    margin-right:14px;
    font-variant-numeric:oldstyle-nums;
    color:var(--faded-color);
}


/* text */
p, li{
    font-family: var(--text-font);
}

p{
    box-sizing:border-box;
}

strong{
    color:var(--strong-color);
}

a{
    color:#4b99d1;
    text-decoration:none;
}

a:hover{
    color:#74a8d3 !important;
    text-decoration:underline;
}

.blue{
    color:var(--highlight-blue) !important;
}

.red{
    color:var(--highlight-red) !important;
}

.toc-desc a{
    color:var(--accent-light);
}

/* images and figures*/
.float-left{
    float:left;
    margin-right:var(--img-padding);
}

.float-right{
    float:right;
    margin-left:var(--img-padding);
}

.float-left figcaption{
    text-align:left;
}

.float-right figcaption{
    text-align:right;
}

figcaption{
    color:var(--accent-light);
    font-size:0.84rem;
    font-style:italic;
    margin-top:-0.35rem;
}

.clear{
    clear:both;
    display:block;
}

ul{
    list-style-type:circle;
}

h4.strong::after,
h4.neutral::after,
h4.weak::after{
    content:"";
    position:relative;
    display:inline-block;
    width:21px;
    height:21px;
    background-size:cover;
    background-position: center;
    vertical-align:middle;
    margin-left:4px;
    pointer-events:none;
}

h4.strong::after{
    background-image:var(--light-strong);
}
h4.neutral::after{
    background-image:var(--light-neutral);
}
h4.weak::after{
    background-image:var(--light-weak);
}

hr{
    border:0;
    border-top:1px solid var(--faded-color);
    height:0px;
    margin:1rem 0;
}

#table-of-contents{
    display:flex;
    flex-direction:column;
    gap:1rem;
    border:0;
    border-top:1px solid var(--faded-color);
    border-bottom:1px solid var(--faded-color);
    margin:1rem 0;
    padding:1rem 0;
}

#table-of-contents p{
    margin:0;
}

.toc-header,
.toc-header a{
    font-weight:700;
    color:var(--accent-strong);
}

.toc-desc{
    font-style:italic;
    color:var(--accent-light);
}

/* hero card */
#brig-hero-card{
    position:relative;
    height:630px;
    border:1px solid var(--accent-strong);
    border-radius:0 70px;
    background-image:url("assets/bg.webp");
    background-position:center;
    /*pointer-events:none;*/
}

/* orig brig idle anim */
#brig-idle-anim-test{
    position:relative;
    width:100%;
    height:100%;
    background-image:var(--brig-idle);
    background-size:contain;
    background-repeat:no-repeat;
    background-position-x:center;
    background-position-y:bottom;
    overflow:hidden;
    pointer-events:none;
    z-index:2;
}


#brig-idle-anim{
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
    pointer-events:none;
    z-index:2;
}

#brig-idle-anim stacked-alpha-video{
    width:auto;
    height:100%;
}

#brig-ability-table-wrapper{ /* needed to z-index the table accents */
    position:absolute;
    top:35px;
    right:3.5rem;
    z-index:4;
}

#brig-ability-table{
    position:relative;
    top:0;
    left:0;
    display:flex;
    flex-direction:column;
    row-gap:10px;
    box-sizing:content-box;
    background:#121212;
    padding:10px 14px;
    border:2px solid #ffffff7d;
    pointer-events:auto;
}

#brig-ability-table::after{
    content:"";
    position:absolute;
    top:0.7rem;
    left:1.4rem;
    width:100%;
    height:100%;
    border:1px solid #ffffff36;
    z-index:-1;
}

.brig-ability-row{
    display:flex;
    flex-wrap:nowrap;
    column-gap:14px;
}

.ability-icon{
    position:relative;
    display:flex;
    width:4rem;
    height:4rem;
    align-items:center;
    justify-content:center;
    border:2px solid white;
    border-radius:50%;
    opacity:0.49;
    transition:opacity 0.432s ease;
    cursor:pointer;
}

.ability-icon::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:white;
    border-radius:50%;
    opacity:0;
    transition:opacity 0.432s ease;
    pointer-events:none;
}

.ability-icon:hover::before{
    opacity:0.14;
}

.ability-icon:hover{
    opacity:1;
}

.ability-icon img{
    display:block;
    max-width:2.8rem;
    max-height:2.8rem;
    object-fit:cover;
}

.ability-tooltip{
    position:absolute;
    max-width:350px;
    height:auto;
    padding:10px;
    color:var(--text-color);
    background:#000000e8;
    border:1px solid #ffffff7d;
    border-radius:5px;
    pointer-events:none;
    z-index:7;
}

.tooltip-name{
    display:block;
    color:var(--highlight-blue);
    font-weight:700;
    font-size:1.2rem;
}

.tooltip-desc{
    display:block;
}

.ability-tooltip hr{
    margin:7px 0;
    border-style:dashed;
}

.tooltip-data-tbl{
    display:flex;
    flex-direction:column;
}

.tooltip-property{
    color:var(--highlight-blue);
    font-weight:700;
}

#brig-sig{
    position:absolute;
    bottom:0;
    left:42%;
    z-index:3;
    pointer-events:none;
}

#support-icon{
    display:flex;
    align-items:end;
    justify-content:center;
    position:absolute;
    top:7px;
    left:98px;
    width:182px;
    height:210px;
    background-image:linear-gradient(to top, #DA70D647, #00000000 70%);
    border-radius:0 0 50% 50%;
    z-index:1;
    opacity:0.7;
    pointer-events:none;
}

#support-icon img{
    max-height:70%;
    object-fit:cover;
    padding-bottom:14px;
}

/* tables */
.tbl{
    display:block;
    column-gap:10px;
    row-gap:10px;
    text-align:center;
    margin:auto;
}

.tbl.abbr{
    max-width:91%;
}

.tbl.nav{
    border:2px solid rgb(56,56,56);
    border-radius:14px;
    padding-bottom:10px;
    overflow:hidden;
}

.tbl-header{
    text-align:center;
    font-weight:700;
    margin:0 0 10px 0;
    padding:5px 0;
    background:rgb(56, 56, 56);
}

.tbl-row{
    display:flex;
    flex-direction:row;
    justify-content:center;
}

.tbl-column{
    display:flex;
    flex-direction:column;
}

.tbl video,
.tbl img{
    width:100%;
}

.hero-button-container{
    display:flex;
    flex-direction:row;
    gap:7px;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    margin:auto;
}

.hero-button{
    display:inline-block;
    width:56px;
    height:56px;
    border-width:2px;
    border-style:solid;
    border-radius:50%;
    border-color:var(--text-color);
    padding:2px;
    cursor:pointer;
    opacity:0.7;
    transition: opacity 0.35s ease-out, border-color 0.35s ease-out;
}

.hero-button img{
    width:100%;
    height:100%;
    border-radius:50%;
    filter:saturate(0.7);
    overflow:hidden;
}

.hero-button:hover{
    opacity:1;
}

.hero-button.strong:hover{
    border-color:var(--highlight-green);
}

.hero-button.neutral:hover{
    border-color:var(--highlight-yellow);
}

.hero-button.weak:hover{
    border-color:var(--highlight-red);
}


/* map icons */
.map{
    display:block;
    position:relative;
    width:196px;
    height:140px;
}

.map .map-name{
    display:block;
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    text-align:center;
    background:#000000b3;
    font-weight:700;
}

.map img{
    width:100%;
    height:100%;
    object-fit:cover;
    pointer-events:none;
}

/* callouts */
.callout{
    display:block;
    width:100%;
    height:100%;
    max-width:91vw;
    border-radius:5px;
    margin:auto;
}

.callout.callout-example{
    position:relative;
    background-color:#2B303E;
    border:1px solid var(--highlight-blue);
    margin-top:2.8rem;
}

.callout.callout-example::before{
    content:"Example";
    position:relative;
    display:block;
    top:-1.4rem;
    left:7px;
    height:0;
    color:var(--highlight-blue);
    font-size:2.1rem;
    font-style:italic;
    font-family:var(--header-font);
    text-transform:uppercase;
}

.callout-title{
    color:#5c8ca4;
}

.callout-video{
    display:inline-block;
    max-width:1280px;
    max-height:720px;
    border-radius:5px;
    overflow:hidden;
}

.callout-video video{
    width:100%;
    height:100%;
    object-fit:cover;
}

.callout-content{
    background-color:#0000007d;
    background-image: var(--bg-image);
    padding:0.7rem;
    margin:0.7rem;
    border-radius:5px;
}

li.checklist,
ul.checklist li{
    list-style-type:none;
}

li.checklist input,
ul.checklist li input{
    margin-left:-1.4em;
    margin-right:0.25rem;
}

/* av1 web component css */
/* meant to stable render video before javascript loads */
stacked-alpha-video {
  display: inline-block;
}

stacked-alpha-video video {
  display: none;
}

/* sidebar */
#sidebar{
    display:none;
    position:fixed;
    top:0;
    right:0;
    max-width:350px;
    padding-top:1rem;
    padding-right:2rem;
}

.toc{
    display:flex;
    flex-direction:column;
}

.toc a{
    color:var(--text-color);
    text-decoration:none;
    transition: font-weight 0.14s ease-in-out, color 0.14s ease-in-out;
}

.toc a:hover{
    color:var(--link-color);
}

.toc a.active{
    color:var(--link-color);
    font-weight:700;
}



--

/* =========================
   Dark Background Header Styling
============================ */

/* H1 — Main Section */
h1 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 3rem;
  color: #F4E1C1;           /* light gold for contrast */
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 #B88B3D; /* subtle glow for dark bg */
  margin: 3rem 0 2rem 0;
  text-align: center;
}

/* H2 — Subsection */
h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 2.1rem;
  color:var(--white);
  letter-spacing: 0.028em;
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
}


h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.021em;
    margin: 2rem 0 1rem 0;
    text-align: center;
    font-variant:small-caps;
    color:var(--white);
}

h4, h5, h6{
    font-family:'Fira Mono', monospace;
    font-weight:500;
    font-size:1.2rem;
    letter-spacing:0.021em;
    color:var(--white);
}

blockquote{
    position:relative;
    max-width:70%;
    margin:2.1rem auto;
    font-style:italic;
}

blockquote::before{
    content:"“";
    font-family:serif;
    font-size:8.4rem;
    color:goldenrod;
    position:absolute;
    top:56%;
    z-index:-1;
    opacity:0.21;
}

blockquote .attr{
    display:block;
    text-align:right;
    font-style:normal;
}

blockquote .attr::before{
    content:"—";
}

.footer-text{
    cursor:pointer;
}

.footer-text:hover{
    text-decoration:underline;
}

#attribution{
    visibility:hidden;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:var(--text-color);
    background:var(--bg-color);
    background-image:var(--bg-image);
    border:1px solid var(--white);
    border-radius:10px;
    text-align:center;
}

#attribution ul{
    padding:1rem;
}

#attribution li{
    list-style:none;
}

.show{
    visibility:visible !important;
}