@charset "utf-8";
:root
{
    --page-bg: var(--psd-lightest-gray);
    --page-bg-inverted: var(--black);
    --card-bg: var(--white);
    --form-bg: var(--white);
    --text: var(--screen-black);
    --text-inverted: var(--white);
    --subtle: var(--psd-dark-gray);
    --subtler: var(--psd-light-gray);
    --disabled: var(--psd-light-gray);
    --interactive: var(--muted-purple);
    --accent: var(--brand-yellow);
    --link: var(--purple);
    --bright: var(--purple);
    --negative: var(--red);
    --card-border: var(--text);
    --input-bg: var(--page-bg);
    --input-text: var(--text);
    --button-bg: var(--text);
    --button-text: var(--card-bg);
    --status-good: var(--muted-green);
    --status-alert: var(--orange);
    --status-bad: var(--negative);
}

@media (prefers-color-scheme: dark)
{
    :root
    {
        --page-bg: var(--black);
        --page-bg-inverted: var(--white);
        --card-bg: var(--psd-darkest-gray);
        --form-bg: var(--black);
        --text: var(--white);
        --text-inverted: var(--black);
        --subtle: var(--screen-white);
        --subtler: var(--psd-darkest-gray);
        --disabled: var(--psd-dark-gray);
        --interactive: var(--muted-purple);
        --accent: var(--purple);
        --link: var(--brand-yellow);
        --bright: var(--brand-yellow);
        --negative: var(--red);
        --button-bg: var(--text);
        --button-text: var(--page-bg);
    }
    /* If making changes to this, remember to change
    in games.css too */
}

*
{
    box-sizing: border-box;
}

header,footer,nav,main,section,figure,article,aside
{
    display: block;
    position: relative;
}

html,
body
{
    margin: 0;
    padding: 0;
}

body
{
    font-family: "Roobert", Helvetica, sans-serif;
}

/* ------------------- */
/*!------ Colors ----- */
/* ------------------- */

html,
body,
#navbar
{
  background-color: var(--page-bg);
  color: var(--text);
}

/* ----------------- */
/*!------ Text ----- */
/* ----------------- */

h1
{
    font-size: 1.8em;
    margin: 0 0 0.5em 0;
    font-weight: 800;
}

a
{
    color: inherit;
    text-decoration: underline;
}

strong,
em
{
    font-weight: 700;
    font-style: normal;
}

strong>em,
em>strong
{
    font-weight: 800;
}

/* ------------------ */
/*!------ No-JS ----- */
/* ------------------ */

body.nojs #navbar
{
    position: relative !important;
}

.js-warning
{
    display: none !important;
}

body.nojs .js-warning
{
    display: block !important;
}

.js-warning
{
    position: relative;
    background-color: var(--red);
    color: var(--white);
    padding: 1em;
    z-index: 202020;
}

.js-warning p
{
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
}

figure.image img,
body.no-ar li#ar,
.visually-hidden
{
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.layout-hidden
{
    display: none !important;
}

.subtle
{
    color: var(--subtle);
}
a.subtle
{
    color: inherit;
}

.big
{
    font-size: 120% !important;
}

.money,
.tableNum
{
    text-align: right;
}

.hidden
{
    display: none !important;
}

.centered,
.centered *
{
    text-align: center;
}

.emptyText
{
    margin: 5em auto;
}

/* ----------------------- */
/*!---- MAIN SECTIONS ---- */
/* ----------------------- */

section,
section header,
section h2,
section h3,
section p,
section div,
section ul,
section dl,
form,
footer ul,
footer nav
{
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------- */
/*!------ Smaller Blocks ----- */
/* --------------------------- */

.card
{
    background: var(--card-bg);
    color: var(--text);

    padding: 0.5em 1em;    
    margin: 1rem auto;
    border-radius: 0.5em;
}
    .card.stroked
    {
        border: .1em solid var(--card-border);
    }

.wide
{
    max-width: 110rem;
}

span.trademark
{
    font-size: 0.5em;
    vertical-align: 0.75em;
    right: 0;
}

div.button
{
    display: inline-block;
    width: fit-content;
    border-radius: 1em;
    color: var(--button-text);
    background-color: var(--button-bg);
    padding: 0.25em 0.7em 0.35em 0.7em;
    text-align: center;
    margin: 2rem auto;
}

div.button a
{
    text-decoration: none;
    font-weight: 700;
}

section h2
{
    font-weight: 800;
    font-size: 2.4em;
    line-height: 1;
    margin: 6rem auto 3rem auto;
}

section p
{
    font-size: 1em;
    line-height: 1.3em;
    position: relative;
    z-index: 3;
}

/* ------------------------------ */
/*!------ Images and Videos ----- */
/* ------------------------------ */

figure
{
    padding: 0;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    margin: 0;
}

figure video
{
    width: 100%;
    height: auto;
}

figure img
{
    position: absolute;
    height: 0;
    width: 0;
}


figure.video
{
    position: relative;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    place-items: center;
}

figure.video.embedded iframe,
figure.video video
{
    width: 100%;
    max-width: 120rem;
    height: 67.5rem;
}

figure.video.embedded
{
    background: var(--psd-darkest-gray);
    padding: 6rem 0;
}

figure.video.embedded::before,
figure.video.embedded::after
{
    display: none;
}

figure.video:before
{
    opacity: 1;
    content: "";
    display: block;
    top: 0;
    left: 0;
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12rem;
    background-image: url("../images/playbutton.2c577ea74958.png");
    transition: opacity 250ms ease-in-out;
}

figure.video::after
{
    position: absolute;
    cursor: pointer;
    opacity: 1;
    content: "Play video";
    display: block;
    bottom: 2.5em;
    left: 50%;
    width: 6em;
    padding: .1em 0 .2em 0;
    margin-left: -3em;
    border-radius: 2em;
    background-color: var(--white);
    font-weight: 700;
    text-align: center;
    color: var(--purple);
    box-shadow: rgba(0,0,0,.5) 0 0 .5em;
}

figure.video[data-state="playing"]:before,
figure.video[data-state="playing"]::after
{
    opacity: 0;
    z-index: -1;
    height: 0;
}

figure.video[data-state="playing"] video
{
    z-index: 100;
}

/* Quotes */

#quotes
{
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1em;
    row-gap: 1em;
    align-items: center;

    padding: 2em 0;
}
    #quotes dt:before
    {
        content: "“";
    }
    #quotes dt:after
    {
        content: "”";
    }

#quotes dd
{
    font-weight: 600;
    margin: 0;
    text-align: right;
}

.quote
{
    width: fit-content;
    background: white;
    border-radius: .4em;
    padding: .5em 1em;
    box-shadow: rgba(0,0,0,.15) 0 .1em .3em;
    font-size: 80%;
}

#quotes .quote:nth-child(1)
{
    transform: rotate(2deg);
    font-size: 110%;
}
#quotes .quote:nth-child(2)
{
    transform: rotate(-.6deg);
}
#quotes .quote:nth-child(3)
{
    transform: rotate(2.5deg);
    font-size: 90%;
}
#quotes .quote:nth-child(4)
{
    transform: rotate(2.3deg);
}
#quotes .quote:nth-child(5)
{
    transform: rotate(-2deg);
    font-size: 90%;
}

/* ---------------------- */
/*!---- Forms ---- */
/* ---------------------- */

form p
{
    font-size: 1.2em;
    margin: 0 0 2rem 0;
}

input,
textarea,
select
{
    border: 0.4rem solid transparent;
    outline: 0;
    border-radius: 0.6rem;
    -webkit-appearance: none;
    font-size: 0.525em;
}

div.control-group label,
div.control-group input,
div.control-group select
{
    display: block;
    width: 100%;
    position: relative;
}

div.control-group label,
div.control-group select
{
    font-size: 0.85em;
    margin-bottom: 0.5rem;
    left: 0.25rem;
    color: var(--subtle);
}

div.control-group input,
div.control-group select
{
    padding: 0.5em;
    font: inherit;
    background: var(--input-bg);
    color: var(--input-text);
    border-width: 0.2rem;
    border-style: solid;
    border-color: var(--disabled);
    font-weight: 700;
    margin-bottom: 0;
}

div.submit-button,
div.buttonHolder
{
    text-align: right;
    margin-top: 3rem;
}

div.submit-button button,
div.buttonHolder button
{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;

    text-decoration: none;
    display: inline-block;
    border-radius: 0.6rem;
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    border: 0;
    color: var(--button-text);
    background-color: var(--button-bg);
    padding: 0.15em 1em 0.25em 1em;
    margin: 0 auto 0 auto;
}

button:disabled,
input:disabled
{
    cursor: inherit;
    pointer-events: none;
    opacity: 0.5;
    filter: saturate(0);
}

#status.success,
#status.error
{
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 1.325em;
}

#status.success
{
    background-image: url("../images/success-color.9b484265af36.svg");
}
#status.error
{
    background-image: url("../images/error-color.b7684bddd3bc.svg");
}

hr
{
    background: var(--subtle);
    border-width: 0px;
    height: .075em;
}

/* A wrapped around a block element */

.blockLink
{
    position: relative;
}
a.blockLink::after
{
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
}

/* ---------------- */
/*!---- FORMS ----- */
/* ---------------- */

div.checkbox-field
{
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 5rem 1fr;
    grid-template-columns: 5rem 1fr;
    clear: both;
}

div.checkbox-field .control-group
{
    grid-column: 1 / span 5;
}

div.checkbox-field input
{
    display: inline-block;
    place-self: top center;
    font-size: 5rem;
    border-radius: 0.6rem;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0.075em solid var(--disabled);
    height: 1em;
    width: 1em;
    position: relative;
    top: 1.5rem;
    margin-right: 0.5em;
    cursor: pointer;
}

div.checkbox-field input:checked
{
    background-color: var(--input-text);
    -webkit-mask: url("../images/checkmark.a3cbcd8cf946.svg") no-repeat;
    mask: url("../images/checkmark.a3cbcd8cf946.svg") no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-size: 3rem;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

div.checkbox-field input:checked+label
{
    color: var(--input-text) !important;
}

div.checkbox-field label
{
    color: var(--subtle);
    cursor: pointer;
    margin-bottom: 1em;
}

/* ---------------- */
/*!---- FOOTER ---- */
/* ---------------- */

footer
{
    margin: 6rem auto 0 auto;
    padding-bottom: 3rem;
    position: relative;
}

footer ul.panic
{
    text-align: center;
    margin: 0 auto;
}

footer ul.panic li a[href="https://panic.com/"]::before,
footer ul.panic::before
{
    content: "";
    display: block;
    height: 10rem;
    width: 10rem;
    -webkit-mask-image: url("../images/panic.ff1f61679ac9.svg");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background-color: var(--text);
    margin: 2rem auto;
}

footer ul.panic li a[href="https://panic.com/"]::before
{
    -webkit-mask: none;
    position: absolute;
    display: inline-block;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-140%);
    background: transparent;
}

footer ul
{
    margin: 0;
    padding: 0;
    list-style: none;
}

footer li
{
    margin: 0;
    font-size: 0.75em;
}

/* Subtle footer for certain pages */
.subtleFooter footer
{
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;

    text-align: left;
    font-size: 80%;
    color: var(--subtle);
}

.subtleFooter footer ul:before
{
    float: left;
    clear: none;
    height: 2.6em;
    width: 2.6em;
    -webkit-mask-image: url("../images/panic.ff1f61679ac9.svg");
    -webkit-mask-position: left;
    background-color: var(--subtle);
    margin: 0 .5em 0 0;
}

.subtleFooter footer ul.panic li a[href="https://panic.com/"]::before
{
    transform: 0;
    left: 0;
    top: 0;
    margin: 0;
    transform: none;
    height: 100%;
    width: 50%;
    background: transparent;
}

.subtleFooter footer ul.panic
{
    position: relative;
}

/* ---------------------------- */
/*!---- RESPONSIVE SCALING ---- */
/* ---------------------------- */

html
{
    font-size: 2.4px;
}

body
{
    font-size: 4rem;
}

.hasPageToolbar footer
{
    /* leave room for page toolbar */
    margin-bottom: 2em;
}

/* Start scaling */
@media screen and (min-width: 240px)
{
    html
    {
        font-size: 0.909090909091vw;
    }

    body
    {
        font-size: 3.85rem;
    }

    form
    {
        display: block;
    }
}

@media screen and (min-width: 670px)
{
    body
    {
        font-size: 2.85rem;
    }

    header p
    {
        line-height: 1.3em;
    }

    form
    {
        display: grid;
    }


    #quotes
    {
        grid-template-columns: 1fr 1fr;
    }
        #quotes .quote:nth-child(1)
        {
            grid-column: 1 / span 2;
        }
        #quotes .quote:nth-child(2)
        {
            transform: rotate(-.6deg);
            font-size: 125%;
        }

}

/* Stop scaling */
@media screen and (min-width: 1100px)
{
    html
    {
        font-size: 10px;
    }
}
