@font-face {
    font-family: Newsreader;
    src: url(https://davidfinig.com/pledge/assets/Newsreader-VariableFont_opsz\,wght.ttf);
    font-style: normal;
}

@font-face {
    font-family: Newsreader;
    src: url(https://davidfinig.com/pledge/assets/Newsreader-Italic-VariableFont_opsz\,wght.ttf);
    font-style: italic;
}


/* Universal styles */

:root {
    font-size: 10pt;
    --bg: #f7f7f6;
    --green: #3D8169;
    --green-hl: #88C673;
    --orange: #f2a663;
    --orange-light: #f4da6c;
    --blue: #25299d;
    --blue-light: #70cafa;
    --red: #e36b6b;
    --red-light: #EDA4C2;
    --black: #181924;
    --grey: #A8B0B3;
    --white: #ffffff;
    --font: Newsreader;
    --color: #222;
    --p: 2.3rem;
    --pp: 2rem;
    --ppp: 1.9rem;
    --pppp: 1.5rem;
    --heavy: 600;
    --medium: 400;
    --light: 300;
    --icon: 3rem;
}


*:focus,
*:active {
    outline: none;
}

body {
    background: var(--bg);
    /* background-repeat: repeat; */
    background-size: fit;
    font-size: 16px;
    line-height: 1;
}

#app {
    /* max-width: 1280px; */
    margin: 0 auto;
}

* {
    box-sizing: border-box;
}

@media screen and (min-width: 1441px) {
    :root {
       font-size: 13pt;
    }

    #app {
        /* max-width: 1440px; */
        margin: 0 auto;
    }
}

/**********************************************************************************************/


/**********************************************************************************************/


/**********************************************************************************************/


/* Pressie styles */

.pressie-nav {
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: flex;
    align-items: center;
}

.pressie-nav .text {
    opacity: .6;
    font-weight: 300;
    font-size: var(--ppp);
    color: var(--black);
    /* font-style: italic; */
    margin: 0 20px 0 0;
    text-align: left;
}

.pressie-nav .next {

    background-color: var(--green);
    font-weight: 300;
    color: var(--white);
}

.pressie-nav .next svg {
    width: 44px;
    height: 44px;
    fill: var(--white);
    pointer-events: none;
}

.pressie-nav .previous {
    display: none;
}

.pressie-nav.disabled .next {
    background-color: var(--grey);
}


/**********************************************************************************************/


/**********************************************************************************************/


/**********************************************************************************************/


/* Slide deck styles */

.slide {
    width: 100%;
    height: 100vh;
    padding: 4rem 6rem;
    font-family: var(--font);
    font-size: 1.5em;
    color: var(--color);
    font-size: var(--p);
    line-height: 1.2;
}

.slide.visible {
    display: flex;
}

.slide article {
    width: 100%;
}

.slide h1,
.slide h2,
.slide h3 {
    font-weight: var(--medium);
    margin-top: 0;
    margin-bottom: 0;
}

.slide strong {
    font-weight: var(--heavy);
}

.slide em {
    color: var(--green);
}

.slide p {
    display: inline-block;
    max-width: 90rem;
    margin-block-start: .5em;
    margin-block-end: .5em;
}

.slide.scores {
    padding-top: 2rem;
}


/* Next prompt */

.next-prompt {
    position: fixed;
    right: 211px;
    bottom: 84px;
    text-align: right;
    font-size: var(--pp);
    font-weight: var(--light);
    opacity: .3;
}

.middle-title {
    display: flex;
    align-items: center;
}


/* Title page */

.index-0 {
    justify-content: left;
}

.index-0 .pressie-nav .text {
    font-style: italic;
}

.index-0 h1 {
    position: absolute;
    left: 100px;
    bottom: 50px;
    margin: 0;
    font-size: 3em;
    font-weight: 400;
}


/* Bonus  */

.dollar svg {
    position: relative;
    top: 24px;
    width: 56px;
}

.first-decision article {
    display: flex;
    align-items: center;
}

.explain-consequences article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: var(--p);
}

.investment-decision ul {
    padding-left: 200px;
    list-style: none;
}

.investment-decision li {
    position: relative;
    line-height: 1.5;
    margin-bottom: 30px;
}

.investment-decision ul i {
    position: absolute;
    left: -48px;
    top: 6px;
}

.investments .commitment {
    font-size: 3rem;
}

.investments .commitment table {
    width: 120px;
}

.bank-action-form .investments div * {
    width: 90px;
}

.net-zero-options ul {
    padding-left: 100px;
}

.raise {
    color: var(--blue-light);
}

.stick {
    color: var(--blue);
}

.debrief li {
    margin: 20px 0;
}

.slide.degrees p {
    font-size: var(--ppp);
}

.slide.degrees .degrees-text {
    float: left;
    width: 40%;
    padding-right: 50px;
}

.slide.degrees .image {
    width: 60%;
    float: right;
}

/**********************************************************************************************/


/**********************************************************************************************/


/**********************************************************************************************/


/* Interactive Components */


/* Generic */

.btn {
    border-radius: 50%;
    /* width: 100px; */
    width: 5rem;
    /* height: 100px; */
    height: 5rem;
    cursor: pointer;
    transition: transform .1s ease-in-out;
    align-items: center;
    display: flex;
    justify-content: center;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
}

.white {
    color: var(--white)
}

.hover {
    transition: transform .1s ease-in-out;
}

.hover:hover {
    transform: translateY(-3px);
}

.bg-red {
    background-color: var(--red);
}

.bg-green {
    background-color: var(--green-hl);
}

.bg-orange {
    background-color: var(--orange);
}

.pp p,
.pp li{
    font-size: var(--pp);
}

.ppp li,
.ppp p {
    font-size: var(--ppp);
}

.pppp li,
.pppp p{
    font-size: var(--pppp);
}

/* Countdown */

.countdown {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown .time-string {
    margin: 21px 0 0 34px;
    font-size: 5rem;
}

.countdown .bg-btn {
    background-color: var(--orange);
}


/* Bank Designs */

.no-banks {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 300px;
}

.add-bank {
    flex-shrink: 0;
}

.banks .add-bank {
    margin: 0 0 0 54px;
}

.no-banks .instruction {
    font-size: var(--pp);
    font-style: italic;
    margin-bottom: 50px;
}

.bank-action {
    background-color: var(--green-hl);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 90px;
    font-weight: 900;
}

.remove {
    position: absolute;
    top: 22px;
    right: 22px;
    color: var(--grey);
    padding: 10px;
    cursor: pointer;
    font-size: .6em;
}

.remove svg {
    fill: var(--grey);
    width: 23px;
    height: 23px;
}

.bank-action-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .4);
}

.bank-action-form .avatar {
    font-size: 5rem;
}

.bank-action-form form {
    width: 500px;
    height: 600px;
    background-color: var(--white);
    padding: 80px;
    text-align: center;
    border-radius: 50px;
}

.investments .bank-action-form form {
    padding: 60px;
}

.bank-action-form input {
    margin: 20px 0;
    padding: 10px;
    width: 100%;
    text-align: center;
    border: solid 3px var(--grey);
}

.bank-action-form .bank-ok {
    margin: 10px auto;
    background-color: var(--green-hl);
    display: flex;
    justify-content: center;
    align-items: center;
    fill: var(--white);
}

.bank-action-form .bank-ok svg {
    width: 46px;
    height: 35px;
}

.banks {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banks .bank {
    position: relative;
    margin: 20px;
    width: 23rem;
    height: 30rem;
    padding: 30px;
    border-radius: 50px;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slogan {
    font-size: 1.8rem;
    line-height: 1.1;
    letter-spacing: .8px;
    font-weight: 300;
    display: inline-block;
}

.bank .avatar {
    height: 100px;
    width: 100px;
    font-size: 4rem;
    margin-top: 50px;
    display: inline-block;
}

.bank .avatar svg {
    width: 60px;
}

.banks .bank .token-count .token-text {
    display: block;
    color: var(--green);
}

.banks .bank .token-count .token {
    font-size: 5rem;
    height: 5px;
    display: inline-block;
}


/* Bank interaction modules */

.actions {
    display: flex;
    justify-content: space-around;
}

.actions .bank {
    text-align: center;
}

.commitment {
    margin: 0 auto;
    /* width: 100px; */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    font-size: 5rem;
    transition: transform .1s ease-in-out;
}

.undecided {
    font-size: var(--icon);
    cursor: pointer;
}

.undecided:hover {
    transform: translateY(-3px);
}

.actions .bank {
    flex-grow: 0;
    flex-shrink: 0;
    width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.actions .bank .messages {
    list-style: none;
    padding: 0;
    font-size: var(--ppp);
    font-weight: 600;
}

.bank-action-form .options {
    display: flex;
    margin: 65px 0;
    width: 100%;
    justify-content: space-around;
}

.bank-action-form {
    font-size: 2rem;
}

.bank-action-form .avatar {
    font-size: 4rem;
}

.bank-action-form .options .stick,
.bank-action-form .options .raise {
    cursor: pointer;
}

.bank-action-form .options .stick:hover .btn,
.bank-action-form .options .raise:hover .btn {
    transform: translateY(-3px);
}

.bank-action-form .label {
    display: block;
}

.bank-action-form .btn {
    transition: transform .1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: var(--icon);
}

.raise .btn {
    background-color: var(--blue-light);
}

.stick .btn {
    background-color: var(--blue);
}

.regulation-votes .vote {
    position: relative;
    padding: 10px 30px;
    margin: 10px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    background-color: var(--green);
    color: white;
    font-size: var(--pppp);
}

.regulation-votes .vote.more {
    background-color: var(--green-hl);
    cursor: default;
}

.regulation-votes .vote.disabled {
    background-color: var(--grey);
    color: var(--white)
}

.regulation-votes .vote-text {
    padding: 0 30px;
}

.regulation-votes .vote-control {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    border-radius: 10px;
    height: 100%;
    width: 60px;
    color: var(--green);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.regulation-votes .add-more {
    right: 10px;
}

.regulation-votes .add-less {
    left: 10px;
}


/* ally pause */

.ally-pause {
    margin-top: -50px;
}

.ally-pause .avatar {
    font-size: 4rem;
    margin-bottom: 20px;
}


/* mini score */

.miniscore {
    position: absolute;
    top: 20px;
    right: 45px;
}

.miniscore td {
    text-align: center;
}


/* Scoreboard */

.scoreboard,
.scoreboard table {
    width: 100%;
    border-collapse: collapse;
}

.scoreboard td,
.scoreboard th {
    padding: 16px;
    font-weight: normal;
    text-align: center;
}

.scoreboard td {
    font-size: var(--ppp);
    font-weight: 500;
}

.scoreboard td:first-child {
    text-align: right;
    width: 300px;
}

.scoreboard tr {
    border-bottom: solid 3px var(--blue-light);
    border-bottom-style: dotted;
}

.scoreboard tr:last-child,
.scoreboard tr:first-child {
    border-bottom: none;
}

.scoreboard tr:nth-child(2),
.scoreboard tr:nth-last-child(2) {
    border-bottom: solid 3px var(--blue-light);
}


/* Commitment Graph */

.commitments-review {
    width: 100%;
    position: relative;
}

.news-update {
    position: absolute;
    top: 2rem;
    right: 1rem;
    left: 1rem;
    bottom: 0;
    background-color: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    padding: 70px 100px;
}

.news-update h1,
.news-update h2 {
    text-align: center;
}

.news-update .pullquote {
    position: relative;
}

.news-update .quote {
    width: 900px;
    position: absolute;
    right: 80px;
    top: 30px;
    padding: 20px;
    background-color: var(--orange-light);
    cursor: pointer;
}

.news-update .figure-title {
    top: 284px;
    left: 329px;
    font-size: var(--pp);
    position: absolute;
}

.news-update .figure-img {
    position: absolute;
    left: 51px;
    top: 80px;
    height: 300px;
    width: 200px;
}

.news-update .figure-img img {
    position: absolute;
    bottom: 0;
}


/* ally results, green leaders */
.green-leaders,
.public-pressure-results {
    display: flex;
    justify-content: space-around;
}

.green-leaders .bank,
.public-pressure-results .bank {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* investment results */

.investment-results {
    font-size: 3rem;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.investment-results div {
    margin: 20px;
}

.investment-results div i {
    margin-right: 35px;
}

.investment-results-plus {
    padding: 5rem 9rem;
    position: relative;
}

.investment-results-plus p {
    font-size: var(--pp);
}

.investment-results-plus h3 {
    margin-bottom: 1rem;
}

.investment-results-plus h3 i {
    position: absolute;
    left: 5rem;
    top: 5rem;
}

.winner {
    text-align: center;
    padding-top: 10rem;
}
.winner .avatar {
    font-size: 100px;
}

.winner .bnk {
    margin: 30px;
}


/**********************************************************************************************/


/**********************************************************************************************/


/**********************************************************************************************/


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


/* Tooltips */


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

.tooltip-for,
.clone {
    background-color: var(--orange-light);
    cursor: pointer;
    white-space: nowrap;
}

.clone {
    display: table-cell;
    position: absolute;
    line-height: 1;
}

.tooltip.content {
    width: 650px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: var(--pp);
}

.tooltip em {
    display: inline-block;
    margin-top: 2em;
    color: var(--green);
    font-size: var(--ppp);
}

.tooltip p {
    margin: 0;
}

.tooltip.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .6);
}


/* Enter and leave animations can use different */


/* durations and timing functions.              */

.slide-fade-enter-active {
    transition: all 0.1s ease-out;
}

.slide-fade-leave-active {
    transition: all 0.1s cubic-bezier(1, 0.5, 0.8, 1);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
    /* transform: translateX(20px); */
    opacity: 0;
}

.news-update .figure-img {
    position: absolute;
    left: 51px;
    top: 80px;
    height: 300px;
    width: 200px;
}
.news-update .figure-img img {
    position: absolute;
    bottom: 0;
}

/* ally results */
.public-pressure-results {
    display: flex;
    justify-content: space-around;
}
.public-pressure-results .bank {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* investment results */
.investment-results {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.investment-results div {
    margin: 20px;
}
.investment-results div i {
    margin-right: 35px;
}
.investment-results-plus {
    padding: 6rem 9rem;
    position: relative;
}
.investment-results-plus h3 i {
    position: absolute;
    left: 5rem;
    top: 6rem;
}

/**********************************************************************************************/

/**********************************************************************************************/

/**********************************************************************************************/

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

/* Tooltips */

/* --------- */
.tooltip-for,
.clone {
    background-color: var(--orange-light);
    cursor: pointer;
    white-space: nowrap;
}
.clone {
    display: table-cell;
    position: absolute;
    line-height: 1;
}
.tooltip.content {
    width: 650px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: var(--pp);
}
.tooltip em {
    display: inline-block;
    margin-top: 2em;
    color: var(--green);
    font-size: var(--ppp);
}
.tooltip p {
    margin: 0;
}
.tooltip.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .6);
}

/* Enter and leave animations can use different */

/* durations and timing functions.              */
.slide-fade-enter-active {
    transition: all 0.1s ease-out;
}
.slide-fade-leave-active {
    transition: all 0.1s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter-from,
.slide-fade-leave-to {
    /* transform: translateX(20px); */
    
    opacity: 0;
}


/**********************************************************************************************/

/**********************************************************************************************/

/**********************************************************************************************/

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

/* debug */

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

.pledge-debug * {
    font-size: var(--pppp);
}